/* =====================================================================
   Whistle Circle — dynamic blog additions
   Only NEW components used by the PHP blog (image thumbnails, search,
   pagination, tags, prev/next, featured card, rich-content elements).
   Colours, fonts and radii reuse the variables from style.css.
   ===================================================================== */

/* ---------- Real featured images inside the existing thumb boxes ---------- */
.post-thumb.has-img,
.blog-thumb.has-img,
.article-hero-thumb.has-img{background:var(--cream-soft);}
.post-thumb.has-img::after,
.article-hero-thumb.has-img::after{display:none;}
.post-thumb.has-img img,
.article-hero-thumb.has-img img,
.blog-thumb.has-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.blog-thumb.has-img{position:relative;overflow:hidden;}
.article-hero-thumb.has-img{height:auto;aspect-ratio:16/9;}

/* ---------- Category links styled like the original filter buttons ---------- */
.filter-pills a{border:1px solid #EAE4DE;background:#fff;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:600;color:#4A4A4A;text-decoration:none;transition:all .2s ease;display:inline-block;}
.filter-pills a:hover{border-color:var(--orange);color:var(--orange);}
.filter-pills a.active{background:var(--orange);border-color:var(--orange);color:#fff;}
.filter-pills a:focus-visible{outline:2px solid rgba(255,75,18,.55);outline-offset:3px;}

/* ---------- Toolbar: pills + search ---------- */
.blog-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;}
.blog-search{display:flex;align-items:center;background:#fff;border:1px solid #EAE4DE;border-radius:999px;padding:4px 4px 4px 16px;min-width:240px;}
.blog-search input{border:0;outline:0;background:transparent;font-size:13.5px;flex:1;min-width:0;color:var(--text);}
.blog-search button{border:0;background:var(--orange);border-radius:999px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;cursor:pointer;}
.blog-search button:hover{background:var(--orange-dark);}
.blog-search:focus-within{border-color:var(--orange);}
@media (max-width:767.98px){.blog-search{width:100%;}}

/* ---------- Card footer: author + read more ---------- */
.post-meta{flex-wrap:wrap;row-gap:4px;}
.post-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
.post-author{font-size:12px;color:var(--text-muted);}

/* ---------- Featured post (wide card) ---------- */
.post-card-featured{flex-direction:row;}
.post-card-featured .post-thumb{flex:0 0 46%;height:auto;min-height:260px;}
.post-card-featured .post-body{padding:28px 30px;justify-content:center;}
.post-card-featured h3{font-size:clamp(20px,2.2vw,26px);}
.featured-badge{background:var(--orange);color:#fff;border-radius:999px;padding:3px 10px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}
@media (max-width:767.98px){
  .post-card-featured{flex-direction:column;}
  .post-card-featured .post-thumb{flex:none;min-height:0;height:190px;}
  .post-card-featured .post-body{padding:18px 20px 20px;}
}

/* ---------- Pagination ---------- */
.wc-pagination{margin-top:36px;}
.wc-pagination ul{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;list-style:none;padding:0;margin:0;}
.wc-pagination a,.wc-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:999px;border:1px solid #EAE4DE;background:#fff;color:#4A4A4A;font-size:13.5px;font-weight:600;text-decoration:none;transition:all .2s ease;}
.wc-pagination a:hover{border-color:var(--orange);color:var(--orange);}
.wc-pagination .current{background:var(--orange);border-color:var(--orange);color:#fff;}
.wc-pagination .gap{border:0;background:transparent;min-width:20px;padding:0;}

/* ---------- Empty state ---------- */
.blog-empty{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:48px 24px;text-align:center;}
.blog-empty img{opacity:.7;margin-bottom:14px;}
.blog-empty h3{font-size:20px;margin-bottom:8px;}
.blog-empty p{color:var(--text-muted);font-size:14px;margin-bottom:18px;}

/* ---------- Tags ---------- */
.post-tags{display:flex;flex-wrap:wrap;gap:8px;}
.post-tags a{font-size:12.5px;font-weight:600;color:#4A4A4A;background:var(--cream-soft);border:1px solid #F3E3D8;border-radius:999px;padding:5px 12px;text-decoration:none;}
.post-tags a:hover{color:var(--orange);border-color:var(--orange);}

/* ---------- Previous / next ---------- */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.post-nav-link{display:flex;flex-direction:column;gap:4px;border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;background:#fff;text-decoration:none;color:var(--text);transition:border-color .2s ease;}
.post-nav-link:hover{border-color:var(--orange);}
.post-nav-link span{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--orange);font-weight:600;}
.post-nav-link strong{font-size:14px;line-height:1.35;}
.post-nav-link.next{text-align:right;grid-column:2;}
@media (max-width:575.98px){.post-nav{grid-template-columns:1fr;}.post-nav-link.next{grid-column:1;text-align:left;}}

/* ---------- TOC sub-headings ---------- */
.toc a.toc-sub{padding-left:14px;font-size:13px;}

/* ---------- Rich content from the editor ---------- */
.prose h2,.prose h3{scroll-margin-top:100px;}
.prose h4{font-size:16px;margin:22px 0 8px;}
.prose img{max-width:100%;height:auto;border-radius:12px;}
.prose figure{margin:22px 0;}
.prose figcaption{font-size:13px;color:var(--text-muted);margin-top:8px;text-align:center;}
.prose table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:14px;display:block;overflow-x:auto;}
.prose th,.prose td{border:1px solid #EAD9CD;padding:10px 12px;text-align:left;vertical-align:top;}
.prose th{background:var(--cream-soft);font-weight:700;color:var(--text);}
.prose pre{background:#1D1D1F;color:#F5F5F5;padding:16px 18px;border-radius:12px;overflow-x:auto;font-size:13px;margin:0 0 18px;}
.prose code{background:var(--cream-soft);padding:1px 6px;border-radius:6px;font-size:.92em;}
.prose pre code{background:transparent;padding:0;}
.prose hr{border:0;border-top:1px solid var(--border);margin:30px 0;opacity:1;}
.prose iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:12px;margin:0 0 18px;}

/* ---------- Admin preview bar ---------- */
.wc-preview-bar{position:sticky;top:0;z-index:1050;background:#111;color:#fff;font-size:13.5px;padding:10px 16px;text-align:center;}
.wc-preview-bar a{color:#FF9A5C;margin-left:10px;text-decoration:underline;}


/* =====================================================================
   Blog top bar (Oct 2026): simple title + one topic filter + search
   ===================================================================== */
.bt{background:#fff;padding:30px 0 26px;border-bottom:1px solid #EFE6DE;}
.bt .wc-breadcrumb{margin-bottom:14px;}
.bt-row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.bt h1{font-family:'Montserrat',sans-serif;font-weight:800;font-size:clamp(30px,3.6vw,44px);line-height:1.1;letter-spacing:-.03em;color:#141110;margin:0;}
.bt h1 em{font-style:normal;color:var(--orange);}
.bt-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.bt-filter{display:flex;align-items:center;gap:10px;margin:0;}
.bt-filter label{font-size:13px;font-weight:600;color:#6B6661;white-space:nowrap;}
.bt-select{position:relative;}
.bt-select::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid #141110;border-bottom:2px solid #141110;transform:translateY(-70%) rotate(45deg);pointer-events:none;}
.bt-select select{appearance:none;-webkit-appearance:none;height:46px;min-width:220px;padding:0 42px 0 16px;border:1px solid #E3DAD2;border-radius:999px;background:#fff;font-family:'Poppins',sans-serif;font-size:14px;font-weight:600;color:#141110;cursor:pointer;}
.bt-select select:hover,.bt-select select:focus{border-color:var(--orange);outline:0;}
.bt-search{min-width:260px;height:46px;}
.bt-lead{font-size:15px;color:#5B5753;margin:12px 0 0;max-width:680px;}
@media (max-width:767.98px){
  .bt{padding:22px 0 20px;}
  .bt-tools,.bt-filter,.bt-select,.bt-search{width:100%;}
  .bt-filter label{display:none;}
  .bt-select select{width:100%;min-width:0;}
  .bt-search{min-width:0;}
}
