:root{
  --navy:#152452;
  --navy-2:#1b3a75;
  --navy-3:#1e2f66;
  --green:#00784d;
  --green-2:#2fa876;
  --red:#eb1e3b;
  --ink:#1a1a2e;
  --text:#3a3f4b;
  --muted:#6b7280;
  --line:#e6e8ee;
  --bg:#f4f6fa;
  --white:#ffffff;
  --radius:10px;
  --shadow:0 4px 16px rgba(21,36,82,.10);
  --shadow-lg:0 14px 34px rgba(21,36,82,.16);
  --maxw:1360px;
  /* Latin/English glyphs render in Times New Roman (first in the stack);
     Bengali glyphs aren't present in Times New Roman, so the browser's
     per-character font fallback takes them to Noto Sans Bengali. */
  --font:"Times New Roman","Noto Sans Bengali","Hind Siliguri",serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{color:var(--ink);line-height:1.35;margin:0 0 .5em}
p{margin:0 0 1em}
button{font-family:inherit;cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.container{max-width:var(--maxw);margin:0 auto;padding:0 16px}
.skip-link{position:absolute;left:-999px;top:0;background:var(--green);color:#fff;padding:10px 16px;z-index:1000;border-radius:0 0 8px 0}
.skip-link:focus{left:0}

/* ===== Topbar ===== */
.topbar{background:var(--navy);color:#dfe6f5;font-size:13px}
.topbar .container{display:flex;align-items:center;justify-content:space-between;min-height:38px;flex-wrap:wrap;gap:6px;padding-top:6px;padding-bottom:6px}
.topbar-dates{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.topbar-dates span{white-space:nowrap}
.topbar-dates .dot{opacity:.5}
/* Header (.topbar-social) is the single source of truth for social-icon
   styling; .footer-social reuses these exact declarations (rather than a
   separate, driftable copy) so header and footer are always identical. */
.topbar-social,.footer-social{display:flex;gap:10px}
/* Wrapper is a fixed-size circle; padding (exactly 2px, all four sides)
   derives the icon's content box, and the icon fills that box at 100%/100%.
   One number (the wrapper size) plus one fixed padding is the entire model
   — there is no second, independently-tracked icon pixel size to drift out
   of sync, and no per-icon (fb/x/yt) override of any kind. */
.topbar-social a,.footer-social a{width:24px;height:24px;padding:2px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);border-radius:50%;transition:background .2s}
.topbar-social a:hover,.footer-social a:hover{background:var(--green)}
/* Target .icon (a class already on every one of these svgs) rather than the
   bare svg type selector — .footer-social's icons are also descendants of
   .footer-grid, and .footer-grid svg{height:44px;width:auto;margin-bottom:
   12px;display:block} (sized/spaced for the footer LOGO svg) has equal
   specificity to a plain "svg" selector, so it can silently win individual
   properties of this rule on source order alone — including margin-bottom,
   which as a flex item shifts the icon off-center inside its circle even
   though width/height/fill are correct. .icon gives this rule a higher,
   position-independent specificity, and every property .footer-grid svg
   touches (display, margin) is explicitly reset here so none of it can
   leak through. */
.topbar-social .icon,.footer-social .icon{width:100%;height:100%;margin:0;display:block;fill:#fff}
@media (max-width:600px){
  .topbar .container{flex-wrap:nowrap;padding-bottom:4px}
  .topbar-dates{font-size:10.5px;gap:6px;flex-wrap:nowrap;flex:1 1 auto;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .topbar-dates::-webkit-scrollbar{display:none}
  .topbar-social{flex:0 0 auto;gap:6px}
  .topbar-social a{width:20px;height:20px;padding:2px}
}
@media (max-width:400px){
  .topbar-dates .hijri{display:none}
}

/* ===== Header ===== */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:70;transition:box-shadow .2s}
.site-header.is-stuck{box-shadow:0 2px 10px rgba(21,36,82,.12)}
.header-inner{display:flex;align-items:center;padding:10px 16px;gap:16px}
.logo{flex:0 0 auto}
.logo img,.logo svg{height:34px;width:auto;max-width:210px;display:block}
.header-ad.ad-slot{flex:1 1 auto;min-width:0;min-height:0;height:40px;padding:4px;font-size:11px;letter-spacing:.02em}
.header-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px}
.header-search-toggle,.nav-toggle{background:none;border:1px solid var(--line);border-radius:8px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:var(--navy);flex:0 0 auto}
.header-search-toggle svg,.nav-toggle svg{width:18px;height:18px;stroke:var(--navy);fill:none;stroke-width:2}
.nav-toggle{display:none}

/* Second header ad: mobile-only (shown below the logo header, see the
   .top-leaderboard.ad-slot{display:flex} override at <=880px). Hidden by
   default so desktop/laptop never reserves space for it. */
.top-leaderboard.ad-slot{display:none;margin:8px auto;max-width:728px}
@media (max-width:600px){.logo img,.logo svg{height:26px;max-width:150px}.header-inner{padding:6px 12px}.top-leaderboard.ad-slot{margin:6px auto}}

.search-panel{max-height:0;overflow:hidden;background:#fff;border-bottom:1px solid var(--line);transition:max-height .25s ease}
.search-panel.open{max-height:90px}
.search-panel form{display:flex;gap:8px;padding:14px 16px;max-width:var(--maxw);margin:0 auto}
.search-panel input{flex:1;min-width:0;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-family:inherit;font-size:15px}
.search-panel button{background:var(--green);color:#fff;border:none;padding:0 20px;border-radius:8px;font-weight:700}
.search-panel-close{display:none}

/* Mobile: the same panel becomes a fixed sheet that slides up from just
   above the bottom nav (JS sets `bottom` to that nav's real measured
   height) instead of a dropdown under the header — opening/closing it
   never scrolls the page, since it overlays in place regardless of scroll
   position. Desktop/laptop keeps the dropdown behavior above untouched. */
@media (max-width:880px){
  .search-panel{
    /* --mbn-height: the bottom nav's real measured height (safe-area
       padding included). --kb-inset: how much of the layout viewport is
       currently covered by the on-screen keyboard, per the visualViewport
       API (0 when no keyboard is open). Both are set by initSearch() in
       main.js — using CSS vars instead of a hardcoded device height keeps
       this correct across iOS Safari/Android Chrome and any bottom-nav
       height changes, and keeps the panel docked directly above the
       (possibly keyboard-shifted) bottom nav in both states. */
    position:fixed;left:0;right:0;bottom:calc(var(--mbn-height,62px) + var(--kb-inset,0px));
    max-height:none;overflow:visible;
    border-bottom:none;border-top:1px solid var(--line);
    box-shadow:0 -6px 20px rgba(21,36,82,.14);
    transform:translateY(100%);
    z-index:76;
    /* visibility:hidden is the actual "have no visible presence when
       closed" guarantee — translateY(100%) alone can still leave a sliver
       of the panel's own height inside the viewport (it's translated
       relative to its *docked* position, not the true viewport edge), and
       that sliver renders even though pointer-events:none already stops it
       from being clickable. The transition-delay pair below (0s on open,
       .25s — matching the transform duration — on close) lets the slide-up
       animation show immediately while the slide-down animation finishes
       playing before the panel actually vanishes. */
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:transform .25s ease, opacity .25s ease, bottom .2s ease, visibility 0s linear .25s;
  }
  .search-panel.open{
    transform:translateY(0);
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    transition:transform .25s ease, opacity .25s ease, bottom .2s ease, visibility 0s linear 0s;
  }
  .search-panel form{max-width:none;margin:0;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .search-panel-close{
    display:flex;align-items:center;justify-content:center;flex:0 0 auto;
    width:40px;height:40px;border-radius:8px;
    background:none;border:1px solid var(--line);color:var(--navy);padding:0;
  }
}

/* ===== Main nav ===== */
.main-nav{background:var(--navy-2);position:relative;z-index:50}
.main-nav .container{position:relative}
.nav-list{display:flex;flex-wrap:wrap;justify-content:flex-start;max-width:var(--maxw);margin:0 auto;padding-left:16px;padding-right:16px;box-sizing:border-box}
.nav-list>li{flex:0 0 auto;position:relative}
.nav-list a,.mega-trigger{display:flex;align-items:center;gap:7px;padding:14px 14px 12px;color:#fff;font-size:14px;font-weight:500;white-space:nowrap;border-bottom:3px solid transparent;transition:background .2s,border-color .2s;background:none;border-left:none;border-right:none;border-top:none;width:100%;text-align:left}
.nav-list a:hover,.nav-list a.active,.mega-trigger:hover{background:rgba(255,255,255,.08);border-bottom-color:var(--red)}
.nav-list li:first-child a{background:var(--green);font-weight:700}
.nav-list li:first-child a:hover{background:#02613e;border-color:transparent}
.nav-list .icon{opacity:.9;flex:0 0 auto}
.mega-trigger .chevron{margin-left:-2px;transition:transform .2s}
.has-mega.open .mega-trigger .chevron{transform:rotate(180deg)}

.mega-menu{display:none;background:#fff;box-shadow:var(--shadow-lg);border-radius:10px;padding:10px;min-width:560px}
.mega-menu a{display:flex;align-items:center;gap:9px;padding:12px;color:var(--ink);font-size:13.5px;font-weight:500;border-radius:8px;border:none}
.mega-menu a:hover{background:var(--bg);color:var(--green)}
.mega-menu .icon{color:var(--green)}

@media (hover:hover){
  .has-mega:hover .mega-menu{display:grid}
}
.has-mega.open .mega-menu{display:grid}

@media (min-width:881px){
  .mega-menu{position:absolute;top:100%;right:0;grid-template-columns:repeat(3,1fr);gap:2px;z-index:90;margin-top:2px}
}

.nav-scrim{position:fixed;inset:0;background:rgba(10,15,35,.55);opacity:0;pointer-events:none;transition:opacity .25s;z-index:60}
.nav-scrim.open{opacity:1;pointer-events:auto}
.nav-mobile-head{display:none}

@media (max-width:880px){
  .nav-toggle{display:flex}
  .main-nav{position:fixed;top:0;left:-320px;bottom:0;width:300px;overflow-y:auto;transition:left .3s ease;box-shadow:var(--shadow-lg);z-index:50}
  .main-nav.open{left:0;z-index:80}
  .nav-scrim.open{z-index:75}
  .nav-mobile-head{display:flex;align-items:center;justify-content:space-between;padding:16px;background:var(--navy);color:#fff;font-weight:700;position:sticky;top:0}
  .nav-mobile-head button{background:rgba(255,255,255,.12);border:none;width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center}
  .nav-list{flex-direction:column;flex-wrap:nowrap;padding:10px 0}
  .nav-list a,.mega-trigger{border-bottom:1px solid rgba(255,255,255,.08);border-left:3px solid transparent}
  .nav-list a:hover,.nav-list a.active,.mega-trigger:hover{border-bottom-color:rgba(255,255,255,.08);border-left-color:var(--red);background:rgba(255,255,255,.06)}
  .nav-list li:first-child a{background:var(--green)}
  .mega-menu{min-width:0;box-shadow:none;border-radius:0;background:rgba(0,0,0,.15);padding:4px 0 4px 14px;grid-template-columns:1fr}
  .mega-menu a{color:#dfe6f5;border-radius:6px}
  .mega-menu a:hover{background:rgba(255,255,255,.08);color:#fff}
  .mega-menu .icon{color:#9fd8bd}
}

/* Mobile-only blue logo header (hidden on desktop/laptop by default). Not
   sticky/fixed — a plain block, so it scrolls away with the page. */
.mobile-logo-header{display:none}

/* ===== Mobile app-style bottom nav ===== */
.mobile-bottom-nav,.mms-scrim,.mobile-menu-sheet{display:none}
@media (max-width:880px){
  .topbar,.main-nav,.site-header{display:none}
  body{padding-bottom:62px}

  .mobile-logo-header{
    display:flex;align-items:center;justify-content:center;
    background:var(--navy);padding:18px 16px;
  }
  .mobile-logo-header svg{height:36px;width:auto;max-width:220px;display:block}

  .top-leaderboard.ad-slot{display:flex}

  .mobile-bottom-nav{
    display:flex;align-items:center;gap:4px;
    position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:#fff;border-top:1px solid var(--line);
    box-shadow:0 -2px 12px rgba(21,36,82,.1);
    padding:6px 12px calc(6px + env(safe-area-inset-bottom));
    /* Shifts up by the keyboard inset (0 when no keyboard is open) so the
       nav stays visible above the keyboard instead of being hidden behind
       it — see the --kb-inset comment on .search-panel above. */
    transform:translateY(calc(-1 * var(--kb-inset,0px)));
    transition:transform .2s ease;
  }
  .mbn-item{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;background:none;border:none;color:var(--navy-2);
    font-size:10.5px;font-weight:600;padding:4px 8px;flex:0 0 auto;border-radius:8px;
  }
  .mbn-item .icon{stroke:var(--navy-2);fill:none;stroke-width:2}
  .mbn-item[aria-expanded="true"]{color:var(--green)}
  .mbn-item[aria-expanded="true"] .icon{stroke:var(--green)}
  .mbn-logo{flex:1 1 auto;align-items:flex-start;justify-content:center;padding-left:2px}
  .mbn-logo svg{height:24px;width:auto;max-width:130px;display:block}

  .mms-scrim{
    display:block;position:fixed;inset:0;background:rgba(10,15,35,.55);
    opacity:0;pointer-events:none;transition:opacity .25s;z-index:75;
  }
  .mms-scrim.open{opacity:1;pointer-events:auto}

  .mobile-menu-sheet{
    display:block;position:fixed;left:0;right:0;bottom:0;
    max-height:82vh;overflow-y:auto;-webkit-overflow-scrolling:touch;
    background:var(--navy);color:#fff;border-radius:16px 16px 0 0;
    transform:translateY(100%);transition:transform .3s ease;z-index:80;
    padding-bottom:calc(16px + env(safe-area-inset-bottom));
  }
  .mobile-menu-sheet.open{transform:translateY(0)}
  .mms-head{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px;font-weight:700;position:sticky;top:0;background:var(--navy);
    border-radius:16px 16px 0 0;
  }
  .mms-close{background:rgba(255,255,255,.12);border:none;width:32px;height:32px;
    border-radius:8px;display:flex;align-items:center;justify-content:center}
  .mms-dates{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:11.5px;color:#cfd9ef;
    padding:0 16px 14px;border-bottom:1px solid rgba(255,255,255,.1)}
  .mms-dates .dot{opacity:.5}
  .mms-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:12px}
  .mms-grid a{display:flex;align-items:center;gap:9px;padding:12px;
    color:#dfe6f5;font-size:13.5px;font-weight:500;border-radius:8px}
  .mms-grid a:hover,.mms-grid a:active{background:rgba(255,255,255,.08);color:#fff}
  .mms-grid .icon{color:#9fd8bd;flex:0 0 auto}
  .mms-grid a:first-child{background:var(--green);color:#fff;font-weight:700;grid-column:1/-1}
  .mms-social{display:flex;gap:10px;padding:14px 16px 4px}
  .mms-social a{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.12);
    display:flex;align-items:center;justify-content:center}
  .mms-social svg{width:15px;height:15px}
}

/* ===== Buttons / badges ===== */
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--green);color:#fff;padding:11px 22px;border-radius:8px;font-weight:700;font-size:14.5px;border:none;transition:background .2s,transform .2s}
.btn:hover{background:#02613e;transform:translateY(-1px)}
.btn-outline{background:transparent;border:1.5px solid var(--navy-2);color:var(--navy-2)}
.btn-outline:hover{background:var(--navy-2);color:#fff}
.tag,.cat-badge{display:inline-block;background:var(--green);color:#fff;font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:5px}
.cat-badge.alt{background:var(--red)}
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:16px}
.breadcrumbs a{color:var(--navy-2)}
.breadcrumbs a:hover{text-decoration:underline}

/* ===== Section heading ===== */
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;border-bottom:2px solid var(--line);padding-bottom:12px}
.section-head h2{font-size:24px;font-weight:800;margin:0;position:relative;padding-left:15px;border-left:5px solid var(--green)}
.section-head a{font-size:14px;font-weight:700;color:var(--green)}
.section-head a:hover{text-decoration:underline}

/* ===== Layout grids ===== */
.page-wrap{padding:32px 0 60px}
.layout-2col{display:grid;grid-template-columns:1fr 320px;gap:36px;align-items:start}
.layout-2col>*{min-width:0}
@media (max-width:960px){.layout-2col{grid-template-columns:1fr}}

/* ===== Hero ===== */
.hero{padding:28px 0 12px}
.hero-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}
.hero-main{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);min-height:420px;background:var(--navy)}
.hero-main img,.hero-main svg{width:100%;height:420px;opacity:.55}
.hero-main img{object-fit:cover;object-position:center}
.hero-main .hero-content{position:absolute;left:0;right:0;bottom:0;padding:36px;background:rgba(10,16,40,.86)}
.hero-main .hero-content .cat-badge{font-size:13px;padding:6px 14px;margin-bottom:4px}
.hero-main .hero-content h1,.hero-main .hero-content h2{color:#fff;font-size:clamp(24px,3.8vw,36px);font-weight:800;line-height:1.2;margin:14px 0}
.hero-main .hero-content p{color:#dfe6f5;font-size:16.5px;line-height:1.6;max-width:620px}
.hero-side{display:flex;flex-direction:column;gap:16px}
.hero-side .post-card-sm{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;display:flex;gap:12px}
.hero-side .post-card-sm img,.hero-side .post-card-sm svg{width:100px;height:84px;border-radius:6px;flex:0 0 auto}
.hero-side .post-card-sm img{object-fit:cover}
.hero-side .post-card-sm h3{font-size:15px;line-height:1.4;margin:0 0 7px}
.hero-side .post-card-sm .meta{font-size:11.5px;color:var(--muted)}
@media (max-width:800px){.hero-grid{grid-template-columns:1fr}.hero-main img,.hero-main svg,.hero-main{height:300px}.hero-main .hero-content{padding:24px}}

/* ===== Post cards / grid ===== */
/* Every post/article listing site-wide (homepage sections, archive, author
   pages, related posts) shares this one .posts-grid class — exactly 2
   columns on desktop/laptop, 1 on mobile, everywhere, by design. */
.posts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.archive-empty{text-align:center;color:var(--muted);padding:40px 0;font-size:15px}
@media (max-width:560px){.posts-grid{grid-template-columns:1fr}}

.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s;height:100%}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.post-card .thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--line)}
.post-card .thumb img,.post-card .thumb svg{width:100%;height:100%;transition:transform .3s}
.post-card .thumb img{object-fit:cover}
.post-card:hover .thumb img{transform:scale(1.04)}
.post-card .thumb .cat-badge{position:absolute;left:10px;top:10px}
.post-card .body{padding:20px;display:flex;flex-direction:column;flex:1}
.post-card h3{font-size:18px;font-weight:700;line-height:1.35;margin:0 0 10px}
.post-card h3 a:hover{color:var(--green)}
.post-card .excerpt{font-size:14.5px;line-height:1.6;color:var(--muted);flex:1}
.post-card .meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.post-card .meta img,.post-card .meta svg{width:22px;height:22px;border-radius:50%;flex:0 0 auto}
.post-card-author{display:inline-flex;align-items:center;gap:8px;min-width:0;flex-shrink:1}
.post-card-author .author-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.post-card-date{flex:0 0 auto;white-space:nowrap}
.post-card-author:hover,.post-meta-row .author:hover,.author-box h4 a:hover{text-decoration:underline}

.post-row{display:flex;gap:16px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;margin-bottom:16px}
.post-row .thumb{width:180px;flex:0 0 auto;aspect-ratio:4/3;border-radius:8px;overflow:hidden}
.post-row .thumb img,.post-row .thumb svg{width:100%;height:100%}
.post-row .thumb img{object-fit:cover}
.post-row h3{font-size:19px;font-weight:700;line-height:1.35;margin:2px 0 8px}
.post-row .excerpt{font-size:14.5px;line-height:1.6;color:var(--muted);margin-bottom:8px}
@media (max-width:560px){.post-row{flex-direction:column}.post-row .thumb{width:100%;aspect-ratio:16/9}}

/* ===== Category strip (home) ===== */
.cat-strip{display:flex;gap:10px;overflow-x:auto;padding:20px 0}
.cat-strip a{flex:0 0 auto;background:#fff;border:1px solid var(--line);padding:9px 16px;border-radius:30px;font-size:13.5px;font-weight:600;color:var(--navy-2)}
.cat-strip a:hover{background:var(--navy-2);color:#fff;border-color:var(--navy-2)}

/* ===== Sidebar ===== */
.widget{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin-bottom:26px}
.widget h3{font-size:17.5px;font-weight:800;padding-bottom:10px;margin-bottom:16px;border-bottom:2px solid var(--line);position:relative}
.widget h3::after{content:"";position:absolute;left:0;bottom:-2px;width:44px;height:2px;background:var(--green)}
.widget-post{display:flex;gap:11px;margin-bottom:15px}
.widget-post:last-child{margin-bottom:0}
.widget-post .num{flex:0 0 auto;width:26px;height:26px;background:var(--navy-2);color:#fff;font-size:12px;font-weight:700;border-radius:50%;display:flex;align-items:center;justify-content:center}
.widget-post img,.widget-post svg{width:60px;height:52px;border-radius:6px;flex:0 0 auto}
.widget-post img{object-fit:cover}
.widget-post h4{font-size:14.5px;line-height:1.4;margin:0 0 4px;font-weight:600}
.widget-post .meta{font-size:12px;color:var(--muted)}
.widget-tags{display:flex;flex-wrap:wrap;gap:8px}
.widget-tags a{background:var(--bg);border:1px solid var(--line);padding:6px 12px;border-radius:20px;font-size:13px}
.widget-tags a:hover{background:var(--green);color:#fff;border-color:var(--green)}

.ad-slot{background:#eef1f7;border:1px dashed #c4cbdb;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px;min-height:100px;text-align:center;padding:10px}
.ad-slot.leaderboard{min-height:50px;padding:6px}
@media (max-width:600px){.ad-slot.leaderboard{min-height:40px;font-size:10px;padding:4px}}
.ad-slot.rectangle{min-height:250px}
.ad-slot.infeed{margin:28px 0}

/* A configured image ad (.ad-banner, added by adBanner() in src/lib/ads.js
   once a slot has a real image+link) replaces the dashed placeholder
   entirely — the image itself (via the site-wide img{max-width:100%;
   height:auto} reset already in this file) handles responsive sizing and
   aspect-ratio preservation, so nothing here constrains its shape.
   div.ad-slot.ad-banner (type+2 classes) is used, not just .ad-slot.ad-
   banner, so this reliably overrides every .ad-slot variant above —
   including .header-ad.ad-slot, which is equal-specificity otherwise. */
div.ad-slot.ad-banner{background:none;border:none;padding:0;min-height:0;height:auto;overflow:hidden;display:block}
div.ad-slot.ad-banner a{display:block;line-height:0}

/* ===== Section vertical rhythm ===== */
section+section{margin-top:44px}
@media (max-width:600px){
  .ad-slot.infeed{margin:22px 0}
  section+section{margin-top:32px}
}

.newsletter-box{background:var(--navy-2);color:#fff;border-radius:var(--radius);padding:22px;text-align:center;margin-bottom:22px}
.newsletter-box h3{color:#fff;border:none;margin-bottom:8px}
.newsletter-box p{font-size:13px;color:#cfd9ef;margin-bottom:14px}
.newsletter-box form{display:flex;gap:8px}
.newsletter-box input{flex:1;min-width:0;padding:10px 12px;border-radius:6px;border:none;font-family:inherit}
.newsletter-box button{background:var(--green);color:#fff;border:none;padding:0 16px;border-radius:6px;font-weight:700}
.newsletter-msg{font-size:12.5px;color:#cfd9ef;margin:10px 0 0}

/* ===== Single post ===== */
.post-header{margin-bottom:20px}
.post-header .cat-badge{margin-bottom:12px}
.post-header h1{font-size:clamp(26px,4.2vw,38px);font-weight:800;margin:10px 0 16px}
.post-meta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;color:var(--muted);font-size:13.5px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}
.author-meta{display:flex;align-items:center;flex-shrink:0}
.post-meta-row .author{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:600}
.post-meta-row .author img,.post-meta-row .author svg{width:34px;height:34px;border-radius:50%;flex:0 0 auto}
.author-name{white-space:nowrap}
.post-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 16px;flex:1 1 auto;min-width:0}
.post-meta>span{display:inline-flex;align-items:center;gap:6px}
@media (max-width:600px){.post-meta{justify-content:flex-start}}
.post-cover{border-radius:var(--radius);overflow:hidden;margin:20px 0;box-shadow:var(--shadow)}
.post-cover img,.post-cover svg{width:100%;height:auto;aspect-ratio:8/5}
.post-cover img{object-fit:cover}
.post-cover figcaption{background:#fff;padding:8px 14px;font-size:12.5px;color:var(--muted)}

.post-body{font-size:17px;line-height:1.8;color:var(--text);max-width:760px}
.post-body h2{font-size:22px;margin-top:1.6em}
.post-body h3{font-size:18.5px;margin-top:1.4em}
.post-body p{margin-bottom:1.1em}
.post-body ul,.post-body ol{margin:0 0 1.1em 1.4em}
.post-body li{margin-bottom:.4em}
.post-body blockquote{border-left:4px solid var(--green);background:var(--bg);padding:14px 18px;margin:1.4em 0;border-radius:0 8px 8px 0;font-style:italic;color:var(--ink)}
.post-body a{color:var(--green-2);text-decoration:underline}
.post-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;border-collapse:collapse;margin:1.2em 0;font-size:14.5px}
.post-body th,.post-body td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.post-body th{background:var(--bg)}

.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0}
.post-share{display:flex;align-items:center;gap:10px;margin:22px 0;padding:16px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}
.post-share span{font-weight:700;font-size:13.5px}
.share-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.share-btn svg{width:16px;height:16px;fill:#fff}
.share-fb{background:#1877f2}
.share-x{background:#000}
.share-wa{background:#25d366}
.share-link{background:var(--navy-2)}
.share-link svg{fill:none;stroke:#fff;stroke-width:2}
.icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;flex:0 0 auto}

.author-box{display:flex;gap:16px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin:26px 0}
.author-box img,.author-box svg{width:72px;height:72px;border-radius:50%;flex:0 0 auto}
.author-box h4{margin:0 0 6px;font-size:16px}
.author-box p{font-size:13.5px;color:var(--muted);margin:0}

.related-posts{margin-top:36px}
.comments-box{margin-top:36px}
.comments-list{margin-top:16px}
.comment-item{padding:14px 0;border-bottom:1px solid var(--line)}
.comment-item:last-child{border-bottom:none}
.comment-item-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.comment-item-head strong{font-size:14px;color:var(--navy)}
.comment-item-date{font-size:12px;color:var(--muted)}
.comment-item p{font-size:14px;line-height:1.7;color:var(--text);margin:0;white-space:pre-wrap}
.comments-empty{color:var(--muted);font-size:14px;padding:6px 0}
.hp-field{position:absolute;left:-9999px;top:-9999px}
.comment-form{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-top:16px}
.comment-form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.comment-form input,.comment-form textarea{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:8px;font-family:inherit;font-size:14.5px}
.comment-form textarea{grid-column:1/-1;min-height:110px}
.comment-form button[disabled]{opacity:.6;cursor:not-allowed}
@media (max-width:560px){.comment-form .row{grid-template-columns:1fr}}

/* ===== Pagination ===== */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:30px;flex-wrap:wrap}
.pagination a,.pagination span{min-width:38px;height:38px;padding:0 10px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:var(--shadow);font-size:14px;font-weight:600}
.pagination a:hover{background:var(--green);color:#fff}
.pagination .current{background:var(--navy-2);color:#fff}

/* ===== Static/legal pages ===== */
.page-content{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(20px,4vw,44px)}
.page-content h1{font-size:clamp(24px,4vw,32px);margin-bottom:6px}
.page-content .updated{color:var(--muted);font-size:13px;margin-bottom:24px}
.page-content h2{font-size:20px;margin-top:1.6em}
.page-content p,.page-content li{font-size:15.5px}
.page-content ul{margin:0 0 1.1em 1.4em}
.page-content ul li{margin-bottom:.4em;list-style:disc}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:20px}
@media (max-width:760px){.contact-grid{grid-template-columns:1fr}}
.contact-card{background:var(--bg);border-radius:8px;padding:18px;display:flex;gap:12px;align-items:flex-start}
.contact-card .ic{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.contact-card .ic svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.contact-form{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-top:20px}
.contact-form label{display:block;font-size:13.5px;font-weight:600;color:var(--ink);margin-bottom:6px}
.contact-form label span{color:var(--red)}
.contact-form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.contact-form .field{margin-bottom:14px}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:8px;font-family:inherit;font-size:15px;background:#fff;color:var(--text)}
/* .contact-form input (0,1,1) would otherwise beat .visually-hidden (0,1,0)
   and stretch the hidden file input back to full width — .visually-hidden
   scoped under .contact-form input (0,2,0) guarantees it stays hidden. */
.contact-form input.visually-hidden{width:1px;height:1px;padding:0;border:0}
.contact-form textarea{min-height:130px;resize:vertical}
.file-upload{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.file-upload-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--bg);border:1px solid var(--line);color:var(--navy-2);font-weight:600;font-size:14px;padding:11px 18px;border-radius:8px;cursor:pointer;white-space:nowrap}
.file-upload-btn:hover{background:var(--navy-2);color:#fff;border-color:var(--navy-2)}
.contact-file-hint{font-size:12px;color:var(--muted);margin:8px 0 0}
.contact-file-list{font-size:13px;color:var(--muted);word-break:break-word}
.contact-form button[disabled]{opacity:.6;cursor:not-allowed}
@media (max-width:560px){.contact-form .row{grid-template-columns:1fr}}
@media (max-width:480px){
  .contact-form{padding:16px;margin-top:16px}
  .contact-form button[type=submit]{width:100%;justify-content:center}
}

/* ===== Footer ===== */
.site-footer{background:var(--navy);color:#c7cfe8;margin-top:40px}
.footer-top{padding-top:48px;padding-bottom:36px}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr}}
.footer-grid img,.footer-grid svg{height:44px;margin-bottom:12px;width:auto;display:block}
.footer-grid p{font-size:13.5px;color:#aeb8db;line-height:1.8}
.footer-grid h4{color:var(--green-2);font-size:15px;margin-bottom:14px}
.footer-grid ul li{margin-bottom:10px}
.footer-grid ul a{font-size:13.5px;color:#c7cfe8}
.footer-grid ul a:hover{color:#fff;text-decoration:underline}
.footer-social{margin-top:14px}
.footer-bottom{background:#0c1533;text-align:center;padding:16px;font-size:13px;color:#9aa5c7}
.footer-bottom a{color:#c7cfe8}

/* ===== Back to top ===== */
.back-to-top{position:fixed;right:20px;bottom:20px;width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);border:none;opacity:0;pointer-events:none;transition:opacity .25s,transform .2s;z-index:40}
.back-to-top.show{opacity:1;pointer-events:auto}
.back-to-top:hover{transform:translateY(-3px)}
.back-to-top svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.4}
@media (max-width:880px){.back-to-top{bottom:56px}}

/* ===== Utility ===== */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mt-0{margin-top:0}
.text-center{text-align:center}
