/* ============================================================
   ===================  BLOG CSS — START  ====================
   Everything between this line and "BLOG CSS — END" is scoped
   to the blog listing page. Safe to lift into a separate
   blog.css file later without touching homepage styles.
   ============================================================ */

/* NOTE: intentionally NOT using overflow-x:hidden on html/body — it breaks
   position:sticky for the sidebar. min-width:0 below is the real fix for
   any grid-blowout horizontal scroll on mobile. */
*{ min-width:0; }

/* ==========================================================================
   Shared design tokens — identical to homepage for visual consistency
   ========================================================================== */
:root{
  --primary:#E8590C;
  --primary-dark:#C94A08;
  --ink:#16181D;
  --muted:#6B7280;
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --border:#E5E7EB;
  --radius:12px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg:0 8px 24px rgba(16,24,40,.08);
}
*{box-sizing:border-box; margin:0; padding:0;}
body{font-family:'Inter', system-ui, sans-serif; background:var(--bg); color:var(--ink); line-height:1.5;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
.container{max-width:1200px; margin:0 auto; padding:0 20px;}
@media(max-width:600px){ .container{padding:0 16px;} }


/* ==========================================================================
   NAVBAR — sticky, mobile hamburger, dropdown
   ========================================================================== */
.navbar{
  position:sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.logo{
  font-size:20px; font-weight:800; display:flex; align-items:center; gap:8px;
}
.logo-badge{
  width:30px; height:30px; border-radius:8px;
  background:linear-gradient(135deg,var(--primary),#FFB84D);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:14px;
}
.nav-links{
  display:flex; align-items:center; gap:28px; list-style:none;
}
.nav-links > li{position:relative;}
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--ink);
  padding:8px 0; display:flex; align-items:center; gap:6px;
}
.nav-links a:hover{color:var(--primary);}
.nav-links .caret{font-size:10px; transition:transform .2s;}
.nav-dropdown{
  position:absolute; top:100%; left:0; background:#fff;
  border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow-lg);
  min-width:240px; padding:8px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:all .18s ease; list-style:none;
}
.nav-links li:hover .nav-dropdown{opacity:1; visibility:visible; transform:translateY(0);}
.nav-dropdown li a{padding:9px 12px; border-radius:6px; font-size:14px;}
.nav-dropdown li a:hover{background:var(--bg);}
.nav-cta{
  background:var(--primary); color:#fff !important; padding:9px 18px;
  border-radius:8px; font-weight:600; font-size:14px;
}
.nav-cta:hover{background:var(--primary-dark);}

/* hamburger (hidden on desktop) */
.hamburger{
  display:none; flex-direction:column; gap:4px; background:none; border:none; padding:8px;
  z-index:110;
}
.hamburger span{width:22px; height:2px; background:var(--ink); border-radius:2px; transition:all .25s ease;}
.hamburger.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* ---- Mobile nav ---- */
@media(max-width:900px){
  .nav-links{
    position:fixed; top:64px; left:0; right:0; bottom:0;
    background:#fff; flex-direction:column; align-items:stretch; gap:0;
    padding:12px 20px 30px; overflow-y:auto;
    transform:translateX(100%); transition:transform .28s ease;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-links > li{width:100%; border-bottom:1px solid var(--border);}
  .nav-links a{padding:14px 0; justify-content:space-between; width:100%;}
  .nav-dropdown{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:none; display:none; padding-left:12px; margin-bottom:8px;
  }
  .nav-dropdown.open{display:block;}
  .nav-cta{margin-top:16px; text-align:center;}
  .hamburger{display:flex;}
}


/* ---------- Breadcrumb ---------- */
.breadcrumb{padding:16px 0; font-size:13px; color:var(--muted);}
.breadcrumb a:hover{color:var(--primary);}
.breadcrumb .sep{margin:0 6px;}

/* ---------- Blog Hero ---------- */
.blog-hero{padding:20px 0 40px; text-align:center;}
.blog-hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:#FFF3E8; color:var(--primary-dark);
  font-size:13px; font-weight:600; padding:7px 14px; border-radius:20px; margin-bottom:18px;
}
.blog-hero h1{font-size:clamp(28px,4.5vw,42px); font-weight:800; margin-bottom:12px;}
.blog-hero p{color:var(--muted); font-size:16px; max-width:560px; margin:0 auto 28px;}

.blog-search{max-width:480px; margin:0 auto; position:relative;}
.blog-search-input{
  display:flex; align-items:center; gap:10px; border:1.5px solid var(--border); border-radius:10px;
  padding:12px 14px; background:#fff; box-shadow:var(--shadow);
}
.blog-search-input input{border:none; outline:none; flex:1; font-size:15px; background:none;}
.blog-search-input i{color:var(--muted);}

/* ---------- Category filter pills ---------- */
.cat-tabs{display:flex; gap:10px; overflow-x:auto; padding:8px 0 4px; margin-bottom:36px; scrollbar-width:none;}
.cat-tabs::-webkit-scrollbar{display:none;}
.cat-tab{
  display:flex; align-items:center; gap:8px; white-space:nowrap; padding:10px 18px; border-radius:24px;
  border:1px solid var(--border); background:#fff; font-size:14px; font-weight:600; color:var(--muted);
  flex-shrink:0; transition:all .15s ease;
}
.cat-tab.active, .cat-tab:hover{background:var(--ink); color:#fff; border-color:var(--ink);}

/* ---------- Layout: main grid + sidebar ---------- */
/* minmax(0, ...) prevents CSS Grid from letting wide children (images, cards)
   force the whole layout wider than the screen on mobile. */
.blog-layout{display:grid; grid-template-columns:minmax(0,2.3fr) minmax(0,1fr); gap:40px; padding:8px 0 60px; align-items:start;}
@media(max-width:960px){ .blog-layout{grid-template-columns:minmax(0,1fr);} }

/* ---------- Featured post (large card) ---------- */
.featured-post{
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:0; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; margin-bottom:32px; box-shadow:var(--shadow);
}
@media(max-width:700px){ .featured-post{grid-template-columns:minmax(0,1fr);} }
.featured-thumb{aspect-ratio:16/11; background:linear-gradient(135deg,#FFE3C7,#FFF3E8); position:relative;}
.featured-thumb .cat-badge{
  position:absolute; top:14px; left:14px; background:var(--ink); color:#fff; font-size:11px; font-weight:700;
  padding:5px 12px; border-radius:20px; text-transform:uppercase; letter-spacing:.03em;
}
.featured-body{padding:28px; display:flex; flex-direction:column; gap:12px;}
.post-meta{font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:8px;}
.post-meta .dot{width:3px; height:3px; border-radius:50%; background:var(--muted);}
.featured-body h2{font-size:clamp(19px,2.4vw,24px); font-weight:800; line-height:1.3;}
.featured-body p{font-size:14.5px; color:var(--muted); line-height:1.6;}
.read-more{
  margin-top:auto; font-size:14px; font-weight:700; color:var(--primary); display:flex; align-items:center; gap:6px;
}

/* ---------- Article grid ---------- */
.post-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px;}
@media(max-width:700px){ .post-grid{grid-template-columns:minmax(0,1fr);} }

.post-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease; display:flex; flex-direction:column;
}
.post-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg);}
.post-thumb{aspect-ratio:16/10; background:linear-gradient(135deg,#E7EEFA,#F7F8FA); position:relative;}
.post-thumb .cat-badge{
  position:absolute; top:12px; left:12px; background:#fff; color:var(--ink); font-size:10.5px; font-weight:700;
  padding:4px 10px; border-radius:20px; text-transform:uppercase; letter-spacing:.03em; box-shadow:var(--shadow);
}
.post-card-body{padding:18px; display:flex; flex-direction:column; gap:10px; flex:1;}
.post-card h3{font-size:15.5px; font-weight:700; line-height:1.35;}
.post-card p{font-size:13.5px; color:var(--muted); line-height:1.55;}

.load-more-wrap{text-align:center; margin-top:36px;}
.load-more-btn{
  border:1.5px solid var(--ink); background:none; padding:12px 28px; border-radius:8px;
  font-weight:600; font-size:14.5px;
}
.load-more-btn:hover{background:var(--ink); color:#fff;}

/* ---------- Sidebar ---------- */
.sidebar{display:flex; flex-direction:column; gap:24px; position:sticky; top:84px; min-width:0;}
/* On mobile the sidebar would render after the entire post grid in the DOM
   stack — hidden here rather than reflowed awkwardly, same as article page. */
@media(max-width:960px){
  .sidebar{display:none;}
}
.side-box{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px;}
.side-box h4{font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:16px;}
.side-post{display:flex; gap:12px; margin-bottom:14px;}
.side-post:last-child{margin-bottom:0;}
.side-post-thumb{width:64px; height:64px; border-radius:8px; flex-shrink:0; background:linear-gradient(135deg,#E7EEFA,#FFF3E8);}
.side-post-text{display:flex; flex-direction:column; gap:4px;}
.side-post-text h5{font-size:13.5px; font-weight:700; line-height:1.4;}
.side-post-text span{font-size:12px; color:var(--muted);}
.side-box ul{list-style:none;}
.side-box li{margin-bottom:10px;}
.side-box li a{
  font-size:14px; display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed var(--border);
}
.side-box li:last-child a{border-bottom:none;}
.side-box li a:hover{color:var(--primary);}
.side-box li span.count{color:var(--muted); font-size:12.5px;}

.newsletter-box{background:var(--ink); color:#fff;}
.newsletter-box h4{color:#D1D5DB;}
.newsletter-box p{font-size:13.5px; color:#9CA3AF; margin-bottom:14px; line-height:1.55;}
.newsletter-input{
  display:flex; gap:8px;
}
.newsletter-input input{
  flex:1; padding:10px 12px; border-radius:8px; border:1px solid #2B2F36; background:#22262D; color:#fff; font-size:13.5px;
}
.newsletter-input button{
  background:var(--primary); color:#fff; border:none; padding:10px 14px; border-radius:8px; font-weight:600; font-size:13.5px;
}
.newsletter-input button:hover{background:var(--primary-dark);}

/* ---------- Ad slot ---------- */
.ad-slot{margin:36px auto; max-width:1200px; padding:0 20px;}
.ad-slot .ad-inner{
  border:1px dashed var(--border); border-radius:10px; background:#fff; min-height:90px;
  display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.04em;
}
.ad-slot.inline-ad{margin:0 0 22px; padding:0; max-width:none;}

/* Native in-feed ad card — same shape/spacing as a real post card so it
   sits naturally in the grid rather than looking bolted on */
.post-card.ad-card{ border-style:dashed; }
.post-card.ad-card .ad-inner{
  border:none; background:var(--bg); width:100%; height:100%;
  display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.04em;
}

/* ---------- Footer (same as homepage) ---------- */
footer{background:var(--ink); color:#D1D5DB; padding:52px 0 24px;}
.footer-top{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; border-bottom:1px solid #2B2F36;}
@media(max-width:800px){ .footer-top{grid-template-columns:1fr 1fr;} }
.footer-brand .logo{color:#fff; margin-bottom:12px;}
.footer-brand p{font-size:13.5px; line-height:1.6; color:#9CA3AF; max-width:260px;}
.footer-col h4{font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#9CA3AF; margin-bottom:14px;}
.footer-col ul{list-style:none;}
.footer-col li{margin-bottom:9px; font-size:14px;}
.footer-col a:hover{color:#fff;}
.footer-disclaimer{font-size:12px; color:#7C828B; line-height:1.6; padding:20px 0; max-width:700px;}
.footer-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:#7C828B; padding-top:16px;}
.social-row{display:flex; gap:12px; margin-top:14px;}
.social-row a{width:34px; height:34px; border-radius:8px; background:#22262D; display:flex; align-items:center; justify-content:center;}
.social-row a:hover{background:var(--primary);}

.pagination-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:40px;
    flex-wrap:wrap;
}

.pagination-wrap a,
.pagination-wrap span{
    min-width:40px;
    height:40px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #E5E7EB;
    border-radius:8px;
    background:#fff;
    color:#16181D;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    transition:.2s ease;
}

.pagination-wrap a:hover{
    border-color:#E8590C;
    color:#E8590C;
}

.pagination-wrap .current,
.pagination-wrap strong{
    background:#16181D;
    border-color:#16181D;
    color:#fff;
}

.pagination-wrap .disabled{
    opacity:.4;
    pointer-events:none;
}

.pagination-wrap .ellipsis{
    border:none;
    background:none;
    min-width:auto;
    padding:0 6px;
    color:#6B7280;
}
.pagination-wrap .page-btn.active{
    background:#16181D !important;
    color:#fff !important;
    border:1px solid #16181D !important;

    display:flex;
    align-items:center;
    justify-content:center;
}
/* ==========================================
   Responsive Gutenberg Tables
========================================== */

.prose .wp-block-table{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:24px 0;
    border:1px solid #E5E7EB;
    border-radius:10px;
}

.prose .wp-block-table table{
    width:max-content;
    min-width:700px;
    border-collapse:collapse;
}

.prose .wp-block-table th,
.prose .wp-block-table td{
    white-space:nowrap;
}
/* ---- Responsive WordPress Images ---- */

.prose figure.wp-block-image{
    width:100%;
    max-width:100%;
    margin:24px 0;
}

.prose figure.wp-block-image img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:10px;
    border:1px solid var(--border);
}

.prose figure.wp-block-image figcaption{
    margin-top:8px;
    text-align:center;
    font-size:13px;
    color:var(--muted);
}
.prose{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

    /* ============================================================================
   ADD THIS ENTIRE BLOCK — BLOG HOMEPAGE / CATEGORY PAGE
   Real classes covered: .blog-homepage, .blog-home-hero,
   .article-search-box/.article-search-form, .blog-post-grid, .blog-post-card,
   .blog-post-image, .blog-post-content, .blog-post-meta, .blog-category-chip,
   .blog-read-more, .custom-pagination
   ============================================================================ */

.blog-homepage{padding:8px 0 60px;}

.blog-home-hero{padding:20px 0 36px; text-align:center;}
.blog-home-hero h1{font-size:clamp(28px,4.5vw,42px); font-weight:800; margin-bottom:12px; max-width:820px; margin-left:auto; margin-right:auto;}
.blog-home-hero p{color:var(--muted); font-size:16px; max-width:560px; margin:0 auto;}

.article-search-box{max-width:560px; margin:0 auto 40px;}
.article-search-form{
  display:flex; align-items:center; gap:0; border:1.5px solid var(--border); border-radius:12px;
  background:#fff; box-shadow:var(--shadow); overflow:hidden;
}
.article-search-form input{
  flex:1; border:none; outline:none; padding:14px 16px; font-size:15px; background:none; color:var(--ink);
}
.article-search-form button{
  border:none; background:var(--ink); color:#fff; padding:14px 20px; font-size:15px; cursor:pointer;
  transition:background .15s ease;
}
.article-search-form button:hover{background:var(--primary);}

.blog-post-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; margin-bottom:20px;
}
@media(max-width:900px){ .blog-post-grid{grid-template-columns:repeat(2, minmax(0,1fr));} }
@media(max-width:600px){ .blog-post-grid{grid-template-columns:minmax(0,1fr);} }

.blog-post-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .15s ease, box-shadow .15s ease;
}
.blog-post-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg);}

.blog-post-image{display:block; aspect-ratio:1200/630; overflow:hidden; background:linear-gradient(135deg,#E7EEFA,#F7F8FA);}
.blog-post-image img{width:100%; height:100%; object-fit:cover; display:block;}

.blog-post-content{padding:20px; display:flex; flex-direction:column; gap:12px; flex:1;}

.blog-post-meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12.5px; color:var(--muted);
}
.blog-post-meta i{margin-right:4px;}
.blog-category-chip a{
  display:inline-block; background:#FFF3E8; color:var(--primary-dark); font-size:11px; font-weight:700;
  padding:4px 10px; border-radius:20px; text-transform:uppercase; letter-spacing:.03em;
}

.blog-post-content h2{font-size:16.5px; font-weight:700; line-height:1.4;}
.blog-post-content h2 a:hover{color:var(--primary);}
.blog-post-content p{font-size:13.5px; color:var(--muted); line-height:1.6;}

.blog-read-more{
  margin-top:auto; font-size:13.5px; font-weight:700; color:var(--primary);
  display:inline-flex; align-items:center; gap:6px;
}
.blog-read-more:hover{color:var(--primary-dark);}
.blog-read-more i{transition:transform .15s ease;}
.blog-read-more:hover i{transform:translateX(3px);}

/* Pagination — your markup nests <a> inside <span> for page links, so only
   the OUTER element gets pill styling or you get a double-boxed look. */
.custom-pagination{
  display:flex; justify-content:center; align-items:center; gap:8px; margin-top:36px; flex-wrap:wrap;
}
.custom-pagination > span, .custom-pagination > a{
  min-width:40px; height:40px; padding:0 12px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--ink);
  font-size:14px; font-weight:600; text-decoration:none; transition:.2s ease;
}
.custom-pagination > a:hover{border-color:var(--primary); color:var(--primary);}
.custom-pagination > span.active{background:var(--ink); border-color:var(--ink); color:#fff;}
.custom-pagination > span > a{
  border:none; padding:0; min-width:0; height:auto; background:none;
  width:100%; height:100%; color:inherit; font-weight:inherit;
  display:flex; align-items:center; justify-content:center;
}
.custom-pagination > span:not(.active):hover{border-color:var(--primary); color:var(--primary);}
.custom-pagination > a[rel="next"]{border:none; background:none; min-width:auto; padding:0 4px;}
/* ============================================================================
   ADD THIS ENTIRE BLOCK — BLOG ARTICLE PAGE
   ============================================================================ */

.progress-container{position:fixed; top:0; left:0; right:0; height:3px; background:var(--border); z-index:200;}
.reading-progress-bar{height:100%; width:0%; background:var(--primary); transition:width .1s linear;}

.blog-breadcrumb{
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px; font-size:13px; color:var(--muted);
  margin-bottom:18px;
}
.blog-breadcrumb a:hover{color:var(--primary);}
.blog-breadcrumb span{color:var(--border);}

.blog-hero-content{max-width:820px; margin:0 auto;}
.blog-category{
  display:inline-flex; align-items:center; gap:8px; background:#FFF3E8; color:var(--primary-dark);
  font-size:13px; font-weight:600; padding:7px 14px; border-radius:20px; margin-bottom:18px;
}
.blog-category a{color:inherit;}

.blog-hero h1{max-width:100%; overflow-wrap:break-word; word-break:break-word;}

.blog-meta{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px; margin-top:18px;
  font-size:13.5px; color:var(--muted);
}
.blog-meta .meta-item{display:flex; align-items:center; gap:6px;}
.blog-meta a:hover{color:var(--primary);}

.blog-grid{display:grid; grid-template-columns:minmax(0,2.3fr) minmax(0,1fr); gap:40px; align-items:start; padding:32px 0 60px;}
@media(max-width:960px){ .blog-grid{grid-template-columns:minmax(0,1fr);} }

.blog-content{min-width:0;}
.featured-image{width:100%; border-radius:var(--radius); margin-bottom:28px; aspect-ratio:1200/630; object-fit:cover;}

.toc-box{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:20px 22px; margin-bottom:28px;
}
.toc-header h2{font-size:16px; font-weight:700; display:flex; align-items:center; gap:10px;}
#toc-container ul{list-style:none; margin-top:14px; display:flex; flex-direction:column; gap:2px;}
#toc-container li a{
  display:block; font-size:14px; color:var(--muted); padding:7px 10px; border-radius:6px;
  border-left:2px solid transparent;
}
#toc-container li a:hover{color:var(--primary); background:var(--bg); border-left-color:var(--primary);}
#toc-container li.h3 a{padding-left:24px; font-size:13.5px;}
#toc-container li.h4 a{padding-left:38px; font-size:13px;}

.wp-blog-content{font-size:16px; color:#2A2E33; line-height:1.75;}
.wp-blog-content .wp-block-paragraph{margin-bottom:20px;}
.wp-blog-content .wp-block-heading{
  font-family:'Inter', sans-serif; font-weight:800; margin:36px 0 16px; color:var(--ink); scroll-margin-top:90px;
}
.wp-blog-content h2.wp-block-heading{font-size:26px;}
.wp-blog-content h3.wp-block-heading{font-size:19px; margin-top:28px;}
.wp-blog-content strong{color:var(--ink);}
.wp-blog-content a{color:var(--primary); font-weight:600; border-bottom:1px solid currentColor;}
.wp-blog-content a:hover{color:var(--primary-dark);}

.wp-blog-content figure.wp-block-image{margin:24px 0;}
.wp-blog-content figure.wp-block-image img{width:100%; border-radius:10px; border:1px solid var(--border);}
.wp-blog-content figure.wp-block-image figcaption{font-size:13px; color:var(--muted); text-align:center; margin-top:8px;}

.wp-blog-content figure.wp-block-table{overflow-x:auto; margin:24px 0; border:1px solid var(--border); border-radius:10px; -webkit-overflow-scrolling:touch;}
.wp-blog-content table{width:100%; border-collapse:collapse; font-size:14px; min-width:520px;}
.wp-blog-content thead{background:var(--ink); color:#fff;}
.wp-blog-content th{padding:12px 16px; text-align:left; font-weight:600; font-size:13px;}
.wp-blog-content td{padding:12px 16px; border-top:1px solid var(--border);}
.wp-blog-content tbody tr:nth-child(even){background:var(--bg);}

@media(max-width:640px){
  .wp-blog-content table{table-layout:auto !important; min-width:0; width:100%; font-size:12.5px;}
  .wp-blog-content th, .wp-blog-content td{padding:8px 10px; white-space:normal; word-break:break-word;}
}

.rank-math-block{margin-top:20px;}
.rank-math-list-item{border-bottom:1px solid var(--border); padding:18px 0;}
.rank-math-question{font-size:16px; font-weight:700; margin-bottom:10px; color:var(--ink);}
.rank-math-answer p{font-size:14.5px; color:var(--muted); line-height:1.65;}

.author-box{
  display:flex; gap:18px; background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; margin-top:44px; scroll-margin-top:90px;
}
@media(max-width:560px){ .author-box{flex-direction:column;} }
.author-box img{width:64px; height:64px; border-radius:50%; flex-shrink:0; object-fit:cover;}
.author-box h4{font-size:16px; font-weight:700; margin-bottom:6px;}
.author-box p{font-size:14px; color:var(--muted); line-height:1.6;}

.related-posts{margin-top:44px;}
.related-posts h3{font-size:18px; font-weight:700; margin-bottom:18px; display:flex; align-items:center; gap:10px;}
.related-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px;}
@media(max-width:700px){ .related-grid{grid-template-columns:minmax(0,1fr);} }
.related-card{background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; display:block;}
.related-card img{width:100%; aspect-ratio:16/10; object-fit:cover;}
.related-card h4{font-size:13.5px; font-weight:700; padding:14px; line-height:1.4;}
.related-card:hover h4{color:var(--primary);}

.blog-sidebar{display:flex; flex-direction:column; gap:24px; position:sticky; top:84px; min-width:0;}
@media(max-width:960px){ .blog-sidebar{position:static;} }
.sidebar-widget{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px;}
.sidebar-widget h3{font-size:14px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:8px;}
.sidebar-search{width:100%; border:1.5px solid var(--border); border-radius:8px; padding:10px 12px; font-size:14px; font-family:inherit; outline:none;}
.sidebar-search:focus{border-color:var(--primary);}

.popular-post{display:flex; gap:12px; margin-bottom:14px;}
.popular-post:last-child{margin-bottom:0;}
.popular-post img{width:64px; height:64px; border-radius:8px; object-fit:cover; flex-shrink:0;}
.popular-post a{font-size:13.5px; font-weight:600; line-height:1.4;}
.popular-post a:hover{color:var(--primary);}

.category-list{list-style:none; display:flex; flex-direction:column; gap:8px;}
.category-list li a{display:block; font-size:14px; padding:8px 10px; border-radius:6px; color:var(--ink);}
.category-list li a:hover{background:var(--bg); color:var(--primary);}  
 
/* ============================================================
   ====================  BLOG CSS — END  ======================
   ============================================================ */
