/**
 * Anupurvi shared design layer
 * File: assets/css/anupurvi-shared.css
 * Load AFTER anupurvi-grid.css, on BOTH article.php and articles.php.
 * Then delete the same rules from article.php's <style> block
 * (:root tokens, .ap-wrap, .ap-hero*, .ap-crumbs, .ap-kicker, .ap-rcard*,
 *  .ap-read, .ap-round, .ap-section-*, .anupurvi-inline-readmore*).
 */

/* ---------- 1. Tokens (single source of truth) ---------- */
:root {
    --ap-brick: #9a2c1a;
    --ap-brick-light: #b8412a;
    --ap-brick-deep: #66190f;
    --ap-brick-tint: rgba(154, 44, 26, 0.12);
    --accent: var(--ap-brick);
    /* retire the old crimson so grid.css rules follow the new brick */
    --anupurvi-crimson: var(--ap-brick);
    --anupurvi-ruby: var(--ap-brick-light);
    /* category themes (mirror anupurvi_category_theme() in PHP) */
    --cat-serial: #2563EB;
    --cat-poetry: #7C3AED;
    --cat-interview: #EA580C;
    --ap-font-serif: 'Noto Serif Bengali', Georgia, serif;
    --ap-font-sans: 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
}

/* Hindi Theme: Classical Matte Indigo / Slate Navy */
body.anupurvi-edition-hindi,
.anupurvi-edition-hindi,
[data-edition="hindi"] {
    --ap-brick: #21436E;
    --ap-brick-light: #345C8F;
    --ap-brick-deep: #14253E;
    --ap-brick-tint: rgba(33, 67, 110, 0.12);
    --accent: var(--ap-brick);
    --anupurvi-crimson: var(--ap-brick);
    --anupurvi-ruby: var(--ap-brick-light);
    --ap-font-serif: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
    --ap-font-sans: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

/* Sanskrit Theme: Sacred Vedic Ochre / Warm Amber Kashaya */
body.anupurvi-edition-sanskrit,
.anupurvi-edition-sanskrit,
[data-edition="sanskrit"] {
    --ap-brick: #9E4E16;
    --ap-brick-light: #BC6624;
    --ap-brick-deep: #6A2E07;
    --ap-brick-tint: rgba(158, 78, 22, 0.12);
    --accent: var(--ap-brick);
    --anupurvi-crimson: var(--ap-brick);
    --anupurvi-ruby: var(--ap-brick-light);
    --ap-font-serif: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
    --ap-font-sans: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

/* Explicit Scoped Hero Gradients per Edition */
.anupurvi-edition-hindi .ap-hero,
[data-edition="hindi"] .ap-hero,
body.anupurvi-edition-hindi .ap-hero {
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.16), transparent 62%),
        radial-gradient(700px 480px at -8% 112%, rgba(0,0,0,.35), transparent 62%),
        linear-gradient(160deg, #345C8F 0%, #21436E 46%, #14253E 100%) !important;
}

.anupurvi-edition-sanskrit .ap-hero,
[data-edition="sanskrit"] .ap-hero,
body.anupurvi-edition-sanskrit .ap-hero {
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.16), transparent 62%),
        radial-gradient(700px 480px at -8% 112%, rgba(0,0,0,.35), transparent 62%),
        linear-gradient(160deg, #BC6624 0%, #9E4E16 46%, #6A2E07 100%) !important;
}

.anupurvi-edition-bengali .ap-hero,
[data-edition="bengali"] .ap-hero,
body.anupurvi-edition-bengali .ap-hero {
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.16), transparent 62%),
        radial-gradient(700px 480px at -8% 112%, rgba(0,0,0,.30), transparent 62%),
        linear-gradient(160deg, #b8412a 0%, #9a2c1a 46%, #66190f 100%) !important;
}

/* Explicit Action Buttons per Edition */
.anupurvi-edition-hindi .ap-read,
[data-edition="hindi"] .ap-read,
body.anupurvi-edition-hindi .ap-read {
    background: #21436E !important;
    color: #fff !important;
}
.anupurvi-edition-hindi .ap-read:hover,
[data-edition="hindi"] .ap-read:hover,
body.anupurvi-edition-hindi .ap-read:hover {
    background: #14253E !important;
}

.anupurvi-edition-sanskrit .ap-read,
[data-edition="sanskrit"] .ap-read,
body.anupurvi-edition-sanskrit .ap-read {
    background: #9E4E16 !important;
    color: #fff !important;
}
.anupurvi-edition-sanskrit .ap-read:hover,
[data-edition="sanskrit"] .ap-read:hover,
body.anupurvi-edition-sanskrit .ap-read:hover {
    background: #6A2E07 !important;
}

/* Explicit Scoped Category Headings, Tabs & Empty States per Edition */
.anupurvi-edition-hindi .ap-sec-head:not(.ap-authors-band .ap-sec-head),
[data-edition="hindi"] .ap-sec-head:not(.ap-authors-band .ap-sec-head),
body.anupurvi-edition-hindi .ap-sec-head:not(.ap-authors-band .ap-sec-head) {
    --sec: #21436E !important;
    border-bottom-color: #21436E !important;
}
.anupurvi-edition-hindi .ap-sec-tab,
[data-edition="hindi"] .ap-sec-tab,
body.anupurvi-edition-hindi .ap-sec-tab {
    background: linear-gradient(180deg, #345C8F 0%, #21436E 100%) !important;
    color: #fff !important;
}
.anupurvi-edition-hindi .ap-sec-cta,
[data-edition="hindi"] .ap-sec-cta,
body.anupurvi-edition-hindi .ap-sec-cta {
    color: #21436E !important;
}
.anupurvi-edition-hindi .ap-empty-cat > div:first-child,
[data-edition="hindi"] .ap-empty-cat > div:first-child,
body.anupurvi-edition-hindi .ap-empty-cat > div:first-child {
    background: rgba(33, 67, 110, 0.12) !important;
    color: #21436E !important;
}
.anupurvi-edition-hindi .ap-empty-cat .filter-pill,
[data-edition="hindi"] .ap-empty-cat .filter-pill,
body.anupurvi-edition-hindi .ap-empty-cat .filter-pill {
    color: #21436E !important;
    border-color: rgba(33, 67, 110, 0.45) !important;
    background: rgba(33, 67, 110, 0.08) !important;
}

.anupurvi-edition-sanskrit .ap-sec-head:not(.ap-authors-band .ap-sec-head),
[data-edition="sanskrit"] .ap-sec-head:not(.ap-authors-band .ap-sec-head),
body.anupurvi-edition-sanskrit .ap-sec-head:not(.ap-authors-band .ap-sec-head) {
    --sec: #9E4E16 !important;
    border-bottom-color: #9E4E16 !important;
}
.anupurvi-edition-sanskrit .ap-sec-tab,
[data-edition="sanskrit"] .ap-sec-tab,
body.anupurvi-edition-sanskrit .ap-sec-tab {
    background: linear-gradient(180deg, #BC6624 0%, #9E4E16 100%) !important;
    color: #fff !important;
}
.anupurvi-edition-sanskrit .ap-sec-cta,
[data-edition="sanskrit"] .ap-sec-cta,
body.anupurvi-edition-sanskrit .ap-sec-cta {
    color: #9E4E16 !important;
}
.anupurvi-edition-sanskrit .ap-empty-cat > div:first-child,
[data-edition="sanskrit"] .ap-empty-cat > div:first-child,
body.anupurvi-edition-sanskrit .ap-empty-cat > div:first-child {
    background: rgba(158, 78, 22, 0.12) !important;
    color: #9E4E16 !important;
}
.anupurvi-edition-sanskrit .ap-empty-cat .filter-pill,
[data-edition="sanskrit"] .ap-empty-cat .filter-pill,
body.anupurvi-edition-sanskrit .ap-empty-cat .filter-pill {
    color: #9E4E16 !important;
    border-color: rgba(158, 78, 22, 0.45) !important;
    background: rgba(158, 78, 22, 0.08) !important;
}

/* ---------- 2. Shared layout + hero (moved from article.php) ---------- */
.ap-wrap {
    width: 100%; max-width: 1520px; margin: 0 auto;
    padding-inline: clamp(1.25rem, 3vw, 3rem); box-sizing: border-box;
}
.ap-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.16), transparent 62%),
        radial-gradient(700px 480px at -8% 112%, rgba(0,0,0,.30), transparent 62%),
        linear-gradient(160deg, var(--ap-brick-light) 0%, var(--ap-brick) 46%, var(--ap-brick-deep) 100%);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem);
    border-bottom: 4px solid rgba(0,0,0,.22);
}
.ap-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px);
}
.ap-hero > .ap-wrap { position: relative; z-index: 1; }
.ap-crumbs {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font: 600 .82rem var(--ap-font-sans); color: rgba(255,255,255,.78);
}
.ap-crumbs a { color: inherit; text-decoration: none; }
.ap-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ap-crumbs .ap-crumb-current { color: #fff; font-weight: 800; }
.ap-kicker {
    display: inline-flex; align-items: center; gap: 6px; color: #fff !important;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
    font: 700 .78rem var(--ap-font-sans);
    padding: 3px 14px; border-radius: 999px; text-decoration: none !important;
}
.ap-title {
    font: 800 clamp(2.1rem, 4.6vw, 3.6rem)/1.22 var(--ap-font-serif);
    letter-spacing: -.02em; color: #fff; margin: 0 0 1rem; text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.ap-subtitle {
    font: 400 clamp(1.05rem, 1.7vw, 1.3rem)/1.7 var(--ap-font-serif);
    color: rgba(255,255,255,.86); margin: 0; max-width: 760px;
}
.ap-pill-link {            /* RSS etc. on brick */
    display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
    font: 700 .8rem var(--ap-font-sans); padding: 4px 14px; border-radius: 999px;
}
.ap-pill-link:hover { background: rgba(255,255,255,.26); }

/* ---------- 3. Section heading + cards (shared by "আরও পড়ুন" and catalog) ---------- */
.ap-section-head { border-bottom: 2px solid var(--ap-brick-deep); margin-bottom: 1.75rem; }
.ap-section-tab {
    display: inline-block; margin: 0; color: #fff;
    background: linear-gradient(180deg, var(--ap-brick-light), var(--ap-brick-deep));
    font: 800 1.35rem/1 var(--ap-font-serif);
    padding: .75rem 2.25rem .7rem; border-radius: 16px 16px 0 0;
}
.ap-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.ap-rcard {
    --card-accent: var(--ap-brick);
    display: flex; flex-direction: column; padding: .9rem .9rem 1.1rem;
    background: linear-gradient(180deg, var(--bg-surface), color-mix(in srgb, var(--bg-surface) 88%, #000));
    border: 1px solid var(--border-color); border-top: 3px solid var(--card-accent);
    border-radius: 18px; transition: transform .2s, box-shadow .2s;
}
.ap-rcard:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(0,0,0,.4); }
.ap-rcard-img { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-page); }
.ap-rcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .35s; }
.ap-rcard:hover .ap-rcard-img img { transform: scale(1.04); }
.ap-rcard-badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.ap-badge {
    font: 700 .72rem var(--ap-font-sans); padding: 3px 10px; border-radius: 999px; color: #fff;
}
.ap-badge--open { background: rgba(16,185,129,.92); }
.ap-badge--premium { background: #F59E0B; }
.ap-badge--lang { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.ap-rcard-meta { display: flex; justify-content: space-between; align-items: center; margin: .9rem .25rem .4rem; font: 600 .74rem var(--ap-font-sans); color: var(--text-muted); }
.ap-rcard-cat { color: var(--card-accent); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.ap-rcard-title { margin: 0 .25rem; font: 800 1.2rem/1.45 var(--ap-font-serif); }
.ap-rcard-title a { color: var(--text-main); text-decoration: none; }
.ap-rcard-title a:hover { color: var(--ap-brick); }
.ap-rcard-excerpt {
    margin: .55rem .25rem 0; flex-grow: 1; font: 400 .88rem/1.7 var(--ap-font-sans); color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-rcard-author { display: flex; align-items: center; gap: 10px; margin: .9rem .25rem 0; font: 600 .86rem var(--ap-font-sans); color: var(--text-muted); }
.ap-rcard-avs { display: flex; flex-shrink: 0; }
.ap-rcard-avs a + a { margin-left: -8px; }
.ap-rcard-av {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--ap-brick); color: #fff; display: flex; align-items: center; justify-content: center;
    font: 800 .9rem var(--ap-font-serif); border: 2px solid var(--bg-surface);
}
.ap-rcard-foot { display: flex; align-items: center; justify-content: space-between; margin: 1rem .25rem 0; }
.ap-read {
    background: var(--ap-brick); color: #fff !important; text-decoration: none;
    font: 700 .88rem var(--ap-font-sans); padding: .5rem 1.4rem; border-radius: 999px; transition: background .15s;
}
.ap-read:hover { background: var(--ap-brick-deep); }
.ap-round {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent;
    color: var(--ap-brick); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ap-round:hover { background: var(--ap-brick); color: #fff; border-color: var(--ap-brick); }

/* ---------- 4. Catalog: scoped brick hero (does NOT touch other pages) ---------- */
.anupurvi-category-hero.ap-hero--catalog {
    background:
        radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.16), transparent 62%),
        radial-gradient(700px 480px at -8% 112%, rgba(0,0,0,.30), transparent 62%),
        linear-gradient(160deg, var(--ap-brick-light) 0%, var(--ap-brick) 46%, var(--ap-brick-deep) 100%);
    border-bottom: 4px solid rgba(0,0,0,.22);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.25rem);
}
.ap-hero--catalog .kolkata-heritage-backdrop {
    opacity: .16; filter: brightness(0) invert(1);   /* line drawing becomes white hairlines */
}
.ap-hero--catalog .anupurvi-category-heading,
.ap-hero--catalog .anupurvi-category-desc { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.ap-hero--catalog .anupurvi-category-desc { color: rgba(255,255,255,.86); text-shadow: none; }
.ap-hero--catalog .anupurvi-category-accent-bar { background: rgba(255,255,255,.7) !important; }
.ap-hero--catalog .anupurvi-category-eyebrow {
    background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.4) !important;
}
.ap-hero--catalog .anupurvi-author-hero-avatar { border-color: rgba(255,255,255,.9) !important; box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 10px 25px rgba(0,0,0,.3) !important; }
.ap-hero--catalog .ap-hero-muted { color: rgba(255,255,255,.8); font-family: var(--ap-font-sans); }
[data-theme="dark"] .anupurvi-category-hero.ap-hero--catalog { background: linear-gradient(160deg, color-mix(in srgb, var(--ap-brick-deep) 85%, #000), color-mix(in srgb, var(--ap-brick-deep) 45%, #000)); border-bottom-color: rgba(0,0,0,.4); }
[data-theme="dark"] .ap-hero--catalog .anupurvi-category-heading { color: #fff; }
[data-theme="dark"] .ap-hero--catalog .anupurvi-category-desc { color: rgba(255,255,255,.86) !important; }

/* ---------- 5. Catalog: filter card, pills, pagination ---------- */
.anupurvi-filter-card {
    top: 4.5rem; border-top: 3px solid var(--accent);
    border-radius: var(--radius-md, 12px); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.05));
}
.filter-section-title {
    font-family: var(--ap-font-serif); font-size: 1rem; font-weight: 800;
    text-transform: none; letter-spacing: 0; color: var(--text-main);
}
.filter-section-title i { color: var(--accent); }
.filter-pill, .page-btn { border-radius: 999px; }
.filter-pill:hover, .page-btn:hover:not(.disabled) { border-color: var(--ap-brick); color: var(--ap-brick); }
.filter-pill.active, .page-btn.active { background: var(--ap-brick); border-color: var(--ap-brick); color: #fff !important; }
.filter-list-link:hover { background: color-mix(in srgb, var(--ap-brick) 7%, transparent); color: var(--ap-brick); }
.filter-list-link.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.filter-list-link.active .filter-count-badge { background: var(--accent); }
.filter-show-more-btn {
    color: var(--ap-brick); background: color-mix(in srgb, var(--ap-brick) 6%, transparent);
    border-color: color-mix(in srgb, var(--ap-brick) 40%, transparent); border-radius: 999px;
}
.filter-quick-search-input, .ap-search-input { border-radius: 999px; }
.filter-quick-search-input:focus, .ap-search-input:focus {
    border-color: var(--ap-brick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ap-brick) 18%, transparent);
}

/* Mobile: filters become a collapsible panel */
@media (max-width: 991px) {
    .anupurvi-filter-card { position: static; }
    .anupurvi-filters-sidebar details > summary { cursor: pointer; list-style: none; }
}

/* ---------- 6. Dark mode for shared cards ---------- */
[data-theme="dark"] .ap-rcard { background: #1C1A17; border-color: #2F2B26; border-top-color: var(--card-accent); }

/* ---------- 7. Responsive hero byline ---------- */
@media (max-width: 640px) { .ap-rcard-title { font-size: 1.1rem; } }

/* =====================================================================
   8. PORTAL HOME (index.php) additions
   ===================================================================== */
/* featured hero band: lead + সাম্প্রতিক + সম্পাদকের বাছাই sit on the brick gradient */
.ap-hero--feature { padding: clamp(1.75rem, 3vw, 2.75rem) 0 clamp(2rem, 3.5vw, 3rem); margin-bottom: 0; }
.ap-hero--feature .smart-hero-grid { margin-bottom: 2.5rem; }
.ap-hero--feature .smart-hero-grid:last-child, .ap-hero--feature .curated-twins-grid { margin-bottom: 0; }
.ap-hero--feature .lead-centerpiece-card,
.ap-hero--feature .aaro-trending-box,
.ap-hero--feature .twin-smart-card,
.ap-hero--feature .ap-empty-cat { color: var(--text-main); box-shadow: 0 24px 44px -24px rgba(0,0,0,.55); border-color: rgba(255,255,255,.18); }
.ap-hero--feature .ap-empty-cat { background: var(--bg-surface); border-style: solid; }
.ap-feature-label {
    display: flex; align-items: center; gap: 8px; margin: 0 0 1rem; color: #fff;
    font: 800 1.2rem/1 var(--ap-font-serif); text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ap-feature-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.3); }
.ap-hero-muted { color: rgba(255,255,255,.8); font-family: var(--ap-font-sans); font-size: .88rem; font-weight: 600; }
.ap-btn-light {
    display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ap-brick) !important; text-decoration: none;
    font: 800 .9rem var(--ap-font-sans); padding: .55rem 1.5rem; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.ap-btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.ap-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px; color: #fff !important; text-decoration: none;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
    font: 700 .9rem var(--ap-font-sans); padding: .55rem 1.3rem; border-radius: 999px;
}
.ap-btn-ghost:hover { background: rgba(255,255,255,.24); }

/* avatars at other sizes */
.ap-rcard-av.ap-av-sm { width: 26px; height: 26px; font-size: .72rem; }
.ap-rcard-av.ap-av-lg { width: 38px; height: 38px; font-size: 1rem; }

/* lead card + smart cards follow the shared radius/accent */
.lead-centerpiece-card, .twin-smart-card, .smart-card, .poetry-smart-card, .aaro-trending-box {
    border-radius: 18px;
}
.lead-centerpiece-card, .twin-smart-card, .smart-card, .poetry-smart-card {
    border-top: 3px solid var(--card-accent, var(--ap-brick));
}
.lead-title a { color: inherit; text-decoration: none; transition: color .15s; }
.lead-title a:hover { color: var(--card-accent, var(--ap-brick)); }
.twin-smart-card h3 a:hover, .smart-card h3 a:hover { color: var(--card-accent, var(--ap-brick)); }
.aaro-ranked-item:hover h3 { color: var(--ap-brick); }
.lead-centerpiece-thumb .ap-lead-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }

/* category section heading: reuses the tab heading, tinted per category */
.ap-sec-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--sec); margin-bottom: 1.75rem;
}
.ap-sec-left { display: flex; align-items: flex-end; gap: 1.1rem; flex-wrap: wrap; min-width: 0; }
.ap-sec-tab {
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--sec) 82%, #fff), var(--sec));
}
.ap-sec-sub { font: 400 .88rem/1.5 var(--ap-font-sans); color: var(--text-muted); padding-bottom: .65rem; }
.ap-sec-cta {
    font: 700 .92rem var(--ap-font-sans); color: var(--sec); text-decoration: none; padding-bottom: .65rem;
    display: inline-flex; align-items: center; gap: 5px; transition: transform .15s;
}
.ap-sec-cta:hover { transform: translateX(3px); }
.ap-empty-cat {
    background: var(--bg-surface); border: 1px dashed var(--border-color); border-radius: 18px;
    padding: 2.25rem 1.5rem; text-align: center;
}

/* closing call-to-writers band shares the hero gradient */
.ap-cta-band {
    color: #fff; border-radius: 18px; padding: 3rem 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center;
    background:
        radial-gradient(700px 300px at 90% -10%, rgba(255,255,255,.14), transparent 62%),
        linear-gradient(160deg, var(--ap-brick-light) 0%, var(--ap-brick) 46%, var(--ap-brick-deep) 100%);
    box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--ap-brick-deep) 75%, transparent);
}
@media (max-width: 860px) { .ap-cta-band { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

.category-hub-card { border-radius: 14px; }

[data-theme="dark"] .smart-card, [data-theme="dark"] .poetry-smart-card, [data-theme="dark"] .twin-smart-card,
[data-theme="dark"] .lead-centerpiece-card { border-top-color: var(--card-accent, var(--ap-brick)) !important; }

/* =====================================================================
   9. AUTHORS BAND (যাঁদের কলমে আনুপূর্বী) on brick
   ===================================================================== */
.ap-authors-band { margin: 0 0 3rem; padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(2.25rem, 4vw, 3.5rem); }
.ap-authors-band .ap-sec-head { --sec: rgba(255,255,255,.5); }
.ap-authors-band .ap-sec-tab { background: #fff; color: var(--ap-brick); box-shadow: 0 -2px 0 #fff; }
.ap-authors-band .ap-sec-sub { color: rgba(255,255,255,.85); }
.ap-authors-band .ap-sec-cta { color: #fff; }
.ap-authors-band .creative-author-card, .ap-authors-band .anupurvi-author-card {
    box-shadow: 0 24px 44px -26px rgba(0,0,0,.6); border-color: rgba(255,255,255,.2);
}
.creative-craft-pill { max-width: 100%; border-radius: 14px; line-height: 1.35; text-align: left; }

/* =====================================================================
   10. ANUPURVI FEATURED IMAGE CREDIT & AI DISCLAIMER
   ===================================================================== */
.ap-cover {
    position: relative !important;
}
.lead-centerpiece-thumb {
    position: relative !important;
}
.ap-cover-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 30%, rgba(15, 23, 42, 0.94) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.73rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    pointer-events: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}
.ap-cover-credit .ap-credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1.2;
}
.ap-cover-credit--ai .ap-credit-badge {
    background: rgba(245, 158, 11, 0.28);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.55);
}
.ap-cover-credit--human .ap-credit-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.ap-cover-credit .ap-credit-text {
    flex: 1;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .ap-cover-credit {
        padding: 6px 10px;
        gap: 6px;
    }
    .ap-cover-credit .ap-credit-text {
        font-size: 0.68rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* =====================================================================
   11. ANUPURVI ABOUT EDITORIAL PAGES (RESPONSIVE LAYOUT & CARDS)
   ===================================================================== */
.ap-about-wrap {
    padding-top: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}
.ap-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}
@media (max-width: 991px) {
    .ap-about-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}
.ap-about-body {
    font-family: var(--ap-font-sans, sans-serif);
    font-size: clamp(0.98rem, 1.6vw, 1.05rem);
    line-height: 1.88;
    color: var(--text-main);
    min-width: 0;
}
.ap-about-body h2 {
    font-family: var(--ap-font-serif, serif);
    font-size: clamp(1.35rem, 2.8vw, 1.7rem);
    font-weight: 800;
    color: var(--text-main);
    margin-top: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.ap-about-body h2:first-child {
    margin-top: 0;
}
.ap-about-body h2 .ap-about-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ap-brick);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ap-about-body p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
}
.ap-about-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2.25rem;
    list-style: none;
    padding: 0;
}
@media (max-width: 576px) {
    .ap-about-cats-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}
.ap-about-cat-card {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-left: 4px solid var(--cat-accent, var(--ap-brick));
    border-radius: 12px;
    padding: 1rem 1.15rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.ap-about-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -6px rgba(0,0,0,0.12);
    border-color: var(--cat-accent, var(--ap-brick));
}
.ap-about-cat-card-title {
    font-family: var(--ap-font-serif, serif);
    font-weight: 750;
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ap-about-cat-card-title .cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cat-accent, var(--ap-brick));
    display: inline-block;
    flex-shrink: 0;
}
.ap-about-cat-card-desc {
    font-family: var(--ap-font-sans, sans-serif);
    font-size: 0.88rem;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
}
.ap-about-callout {
    background: color-mix(in srgb, var(--ap-brick) 6%, var(--bg-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--ap-brick) 24%, var(--border-color, #e5e5e5));
    border-left: 5px solid var(--ap-brick);
    border-radius: 14px;
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
    margin: 2rem 0;
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
}
@media (max-width: 576px) {
    .ap-about-callout {
        flex-direction: column;
        gap: 0.75rem;
    }
}
.ap-about-callout-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ap-brick) 14%, transparent);
    color: var(--ap-brick);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.ap-about-callout-content {
    flex: 1;
    min-width: 0;
}
.ap-about-callout-content h4 {
    font-family: var(--ap-font-serif, serif);
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--text-main);
    margin: 0 0 0.45rem;
}
.ap-about-callout-content p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.ap-about-side {
    position: sticky;
    top: 5rem;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-top: 4px solid var(--ap-brick);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.85rem);
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.14);
}
@media (max-width: 991px) {
    .ap-about-side {
        position: static;
        margin-top: 1rem;
    }
}
.ap-about-side h3 {
    font-family: var(--ap-font-serif, serif);
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 1.15rem;
    border-bottom: 2px solid var(--ap-brick);
    padding-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ap-about-side h3 i {
    color: var(--ap-brick);
}
.ap-about-specs {
    font-family: var(--ap-font-sans, sans-serif);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}
.ap-about-spec-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}
.ap-about-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ap-about-spec-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.ap-about-spec-val {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
}
.ap-about-side-btn {
    font-family: var(--ap-font-sans, sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    background: var(--ap-brick);
    border: 1px solid var(--ap-brick);
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.25);
    width: 100%;
    box-sizing: border-box;
}
.ap-about-side-btn:hover {
    background: var(--ap-brick-deep);
    border-color: var(--ap-brick-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -6px rgba(0, 0, 0, 0.35);
}
.ap-about-side-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ap-about-side-link {
    font-family: var(--ap-font-sans, sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.ap-about-side-link:hover {
    color: var(--ap-brick);
    background: var(--bg-subtle, rgba(0,0,0,0.03));
}
.ap-about-side-link i {
    font-size: 1.05rem;
    color: var(--ap-brick);
}

/* Dark mode overrides for About page */
[data-theme="dark"] .ap-about-cat-card {
    background: #1C1A17;
    border-color: #2F2B26;
}
[data-theme="dark"] .ap-about-cat-card:hover {
    box-shadow: 0 8px 22px -6px rgba(0,0,0,0.5);
}
[data-theme="dark"] .ap-about-side {
    background: #1C1A17;
    border-color: #2F2B26;
    border-top-color: var(--ap-brick);
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .ap-about-callout {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    border-left-color: var(--ap-brick);
}
[data-theme="dark"] .ap-about-side-link:hover {
    background: rgba(255, 255, 255, 0.06);
}