/* NaukriSync — Unified Design System */

:root {
    --navy:         #0f2d4a;
    --navy-2:       #163d62;
    --navy-3:       #1f527d;
    --saffron:      #e8890c;
    --saffron-deep: #c46f00;
    --saffron-soft: #fff4e0;
    --green:        #1a6e40;
    --green-soft:   #e8f5ee;
    --sky:          #0b69b7;
    --sky-soft:     #e6f3ff;
    --rose:         #b42318;
    --rose-soft:    #fff0ef;
    --ink:          #1a2433;
    --ink-mid:      #3a4a5c;
    --ink-soft:     #56657a;
    --muted:        #7a8899;
    --border:       #e2e6ea;
    --border-strong:#c8d0d9;
    --card:         #ffffff;
    --card-soft:    #f9fafb;
    --bg:           #f2f4f7;
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --shadow-sm:    0 1px 3px rgba(15,45,74,0.07), 0 2px 8px rgba(15,45,74,0.05);
    --shadow-md:    0 4px 16px rgba(15,45,74,0.10);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15,45,74,0.14);
    transition: top 0.16s ease;
}
.skip-link:focus { top: 10px; }

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
a:visited { color: var(--navy-2); }

/* Override visited for specific UI chrome so colours stay predictable */
.alert-strip-cta:visited,
.brand-title a:visited,
.brand-name a:visited,
.section-header a:visited,
.sidebar-card-head a:visited,
.mini-action.primary:visited,
.compact-search-links a:visited,
.hero-query-pill:visited { color: inherit; }

/* ─── Alert Strip ─────────────────────────────────────── */
.alert-strip {
    background: var(--navy);
    color: #fff;
}

.alert-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-dot,
.hl-dot,
.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff6b57;
    box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.2);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.alert-strip-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.alert-strip-cta {
    color: #fff !important;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.alert-strip-cta:hover { background: rgba(255,255,255,0.18); text-decoration: none; color:#fff !important; }
.alert-strip-cta:visited { color:#fff !important; }

/* ─── Header ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 8px rgba(10,24,40,0.18);
}

.header-inner,
.top-nav-inner,
.page-shell,
.topline-inner,
.brandbar-inner,
.hero-grid,
.shell {
    max-width: 1280px;
    margin: 0 auto;
}

.header-inner {
    padding: 14px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.brand-title,
.brand-name {
    font-family: "Baloo 2", "Inter", sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-title a,
.brand-title a:visited,
.brand-name a,
.brand-name a:visited { color: #fff; }
.brand-title a:hover,
.brand-name a:hover { text-decoration: none; }

.brand-accent { color: var(--saffron); }

.brand-sub,
.brand-note {
    margin-top: 5px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.official-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.official-badge-soft,
.official-badge-soft:visited { color: rgba(255,255,255,0.78); }

/* ─── Top Nav ─────────────────────────────────────── */
.top-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255,255,255,0.03);
}

.top-nav-inner {
    padding: 0 16px;
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    position: relative;
}
.top-nav-inner::-webkit-scrollbar { display: none; }

.nav-more {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-more-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    display: none;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15,45,74,0.08);
    box-shadow: 0 16px 34px rgba(15,45,74,0.16);
    z-index: 220;
}

.nav-more.open .nav-more-menu {
    display: grid;
}

.nav-link-more,
.nav-link-more:visited {
    color: var(--ink) !important;
    border-bottom: none !important;
    border-radius: 12px;
}

.nav-link-more:hover {
    background: #f8fafc;
    text-decoration: none;
}

.nav-link,
.nav-link:visited {
    display: inline-flex;
    align-items: center;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover,
.nav-link.active,
.nav-link.active:visited {
    color: #fff;
    border-bottom-color: var(--saffron);
    text-decoration: none;
}

.top-nav .nav-link[href="/current-affairs/today"],
.top-nav .nav-link[href="/current-affairs"] {
    background: linear-gradient(180deg, rgba(232,137,12,0.24) 0%, rgba(232,137,12,0.08) 100%);
    border: 1px solid rgba(232,137,12,0.45);
    border-bottom-width: 3px;
    border-radius: 12px 12px 0 0;
    color: #fff !important;
    font-weight: 800;
}

.sidebar-link-list a[href="/current-affairs/today"],
.sidebar-link-list a[href="/current-affairs"],
.footer-legal-links a[href="/current-affairs/today"],
.footer-legal-links a[href="/current-affairs"],
.ca-topnav a[href="/current-affairs/today"] {
    background: var(--saffron-soft);
    border: 1px solid #f3be79;
    border-radius: 999px;
    color: #7a4300 !important;
    padding: 4px 10px;
    font-weight: 800;
    text-decoration: none;
}

.nav-filter-pills { display: none; }

/* ─── Page Shell ─────────────────────────────────────── */
.page-shell,
.shell { padding: 20px 16px 0; }

/* ─── HOME HERO ─────────────────────────────────────── */
.home-hero {
    display: block;
    margin-bottom: 20px;
}

/* Compact hero banner — saffron accent, no GPU-heavy gradient */
.compact-hero {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.compact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,137,12,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.compact-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 5px;
    background: var(--saffron);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.compact-hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    position: relative;
}

.compact-hero .hero-kicker {
    background: rgba(232,137,12,0.22);
    color: var(--saffron);
    border: 1px solid rgba(232,137,12,0.3);
}

.compact-hero-title {
    margin-top: 14px;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #fff;
    font-weight: 800;
}

.compact-hero-text {
    margin: 14px auto 0;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

/* ─── Search Panel ─────────────────────────────────────── */
.compact-search-panel {
    margin: 20px auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px 20px;
    box-shadow: var(--shadow-sm);
}

.compact-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.compact-search-panel .hero-search-label {
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
}

.compact-search-panel .hero-search-note {
    color: var(--muted);
    font-size: 13px;
}

.compact-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compact-search-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--saffron-soft);
    border: 1px solid rgba(232,137,12,0.22);
    color: var(--saffron-deep);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.compact-search-links a:hover {
    background: #ffe8b8;
    text-decoration: none;
}

/* ─── Search Form ─────────────────────────────────────── */
.search-hero,
.hero-search-card {
    scroll-margin-top: 120px;
}

.hero-search-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-search-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.hero-search-note,
.hero-live-sub,
.insight-sub,
.feed-sub,
.highlights-copy {
    color: var(--muted);
    font-size: 12px;
}

/* Compact 3-column grid form */
.compact-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr) 160px;
    gap: 10px;
    align-items: flex-end;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.compact-search-form:focus-within { box-shadow: none; }

.search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.search-form:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,137,12,0.14);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-field-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.search-field-control {
    display: flex;
    align-items: center;
    min-width: 0;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1.5px solid var(--border-strong);
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.search-field-control:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,137,12,0.13);
}

.search-icon {
    padding: 0 12px;
    color: var(--muted);
    font-size: 15px;
    flex-shrink: 0;
}

.search-icon-pin { font-size: 10px; }

.compact-search-form input,
.search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 10px 14px 2px;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

.compact-search-form input::placeholder,
.search-form input::placeholder { color: #9aa3b0; }

/* Search button — saffron, on-brand */
.compact-search-form button,
.search-form button {
    min-height: 56px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--saffron), #f5a030);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: background 0.18s, transform 0.12s;
}

.compact-search-form button:hover,
.search-form button:hover {
    background: linear-gradient(135deg, var(--saffron-deep), var(--saffron));
    transform: translateY(-1px);
}

.search-hero-inner { position: relative; }

/* Search results dropdown */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.search-results.active { display: block; }

.search-result-item {
    display: block;
    padding: 11px 15px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: background 0.12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--card-soft); text-decoration: none; }

.search-result-type {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--saffron-soft);
    color: var(--saffron-deep);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-result-title {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.search-result-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted);
}

/* Search pill shortcuts */
.hero-search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-query-pill {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--card-soft);
    color: var(--ink-mid);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s;
}
.hero-query-pill:hover {
    background: var(--saffron-soft);
    border-color: rgba(232,137,12,0.3);
    color: var(--saffron-deep);
}

/* ─── Hero Metrics ─────────────────────────────────────── */
.hero-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-metric {
    min-width: 120px;
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--card-soft);
    border: 1px solid var(--border);
}

.hero-metric-value {
    display: block;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.hero-metric-label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ─── State / Region Chips Ribbon ─────────────────────────────────────── */
.insight-ribbon {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.insight-ribbon-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.insight-title,
.feed-title {
    color: var(--navy);
    letter-spacing: -0.02em;
}

.insight-title { font-size: 18px; font-weight: 700; }

.insight-chip-row .filter-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 6px;
}
.insight-chip-row .filter-track::-webkit-scrollbar { display: none; }

/* Rail pills - now styled for light backgrounds */
.rail-pill {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--card-soft);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.rail-pill span { color: var(--muted) !important; font-size: 10px; font-weight: 600; }
.rail-pill:hover {
    background: var(--saffron-soft);
    border-color: rgba(232,137,12,0.35);
    color: var(--saffron-deep);
    text-decoration: none;
}

/* ─── Horizontal Scrolling Ribbons (State + Dept under insight bar) ─────────────── */
.horiz-ribbon {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.horiz-ribbon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--card-soft);
    border-left: 4px solid var(--saffron);
}

.horiz-ribbon-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}

.horiz-ribbon-scroll {
    overflow: hidden;         /* hide scrollbar, JS drives it */
    cursor: default;
    padding: 10px 12px;
}

.horiz-ribbon-track {
    display: flex;
    gap: 8px;
    width: max-content;       /* expands to fit all pills */
    will-change: transform;
}

/* ─── Priority Highlights Bar ─────────────────────────────────────── */
.highlights-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.highlights-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px 6px;
    color: var(--rose);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.highlights-copy {
    padding: 0 16px 12px;
    color: var(--muted);
    font-size: 12px;
}

.compact-alert-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.compact-alert-item {
    min-width: 0;
    padding: 13px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.13s;
}

.compact-alert-item:nth-child(3n) { border-right: none; }
.compact-alert-item:hover { background: var(--saffron-soft); }
.compact-alert-item > a { color: var(--ink); font-weight: 600; font-size: 13px; }

.browse-pages-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.browse-pages-head {
    margin-bottom: 12px;
}

.browse-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.browse-page-card {
    display: block;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 26, 48, 0.06);
}

.browse-page-card:hover {
    text-decoration: none;
    border-color: rgba(232,137,12,0.35);
    background: var(--saffron-soft);
}

.browse-page-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sky-text);
}

.browse-page-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.22;
    color: var(--navy);
}

.browse-page-card span:last-child {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

/* ─── Content Layout (2-col grid) ─────────────────────────────────────── */
.content-layout,
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.feed-pane { min-width: 0; }

.feed-header { padding: 0 2px 14px; }

.feed-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--saffron-soft);
    color: var(--saffron-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.feed-title {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
}

.feed-sub { margin-top: 4px; }

.category-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── Data Section Cards ─────────────────────────────────────── */
.data-section,
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Single, uniform card header — navy text, saffron left accent */
.section-header,
.panel-head {
    padding: 11px 15px;
    background: var(--card-soft);
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--saffron);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-header a { color: inherit; }
.section-header a:hover { text-decoration: none; color: var(--saffron-deep); }

/* Remove the old 6-colour cycling rule — replaced above */

.data-list,
.urgent-list,
.mini-list,
.sidebar-link-list {
    list-style: none;
}

.data-list li,
.urgent-list li,
.mini-list li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
    transition: background 0.12s;
}

.data-list li:last-child,
.urgent-list li:last-child,
.mini-list li:last-child,
.sidebar-link-list li:last-child,
.ticker-row:last-child { border-bottom: none; }

.data-list li:hover,
.urgent-list li:hover,
.mini-list li:hover { background: var(--card-soft); }

.data-list a,
.urgent-list a,
.mini-list a {
    display: inline;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
}
.data-list a:hover,
.urgent-list a:hover,
.mini-list a:hover { color: var(--navy); }

/* ─── Meta Chips ─────────────────────────────────────── */
.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    margin-right: 5px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.new-tag {
    display: inline-block;
    width: 30px;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
    transform: translateY(1px);
}

/* ─── Post Actions ─────────────────────────────────────── */
.urgent-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--card);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.13s;
}
.mini-action:hover { text-decoration: none; background: var(--card-soft); }

.mini-action.primary {
    background: linear-gradient(135deg, var(--saffron), #f5a030);
    border-color: var(--saffron);
    color: #fff;
}
.mini-action.primary:hover {
    background: linear-gradient(135deg, var(--saffron-deep), var(--saffron));
}

.slider-more {
    background: var(--card-soft);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 11px 15px;
}
.slider-more a { color: var(--sky); }
.slider-more a:hover { color: var(--navy); }

/* ─── Sidebar ─────────────────────────────────────── */
.sidebar-pane {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Remove the old sidebar-card-emphasis gradient — now just a card */
.sidebar-card-emphasis { background: var(--card); }

.sidebar-card-head {
    padding: 11px 15px;
    background: var(--card-soft);
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--saffron);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sidebar-card-head a { color: inherit; }

.sidebar-link-list li {
    border-bottom: 1px solid var(--border);
}

.sidebar-link-list a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.12s, color 0.12s;
}
.sidebar-link-list a:hover {
    background: var(--saffron-soft);
    color: var(--saffron-deep);
    text-decoration: none;
}

/* ─── Vertical Ticker (State / Dept sidebar) ─────────────────────────────────────── */
.ticker-table {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.ticker-table[data-speed="0"] {
    height: auto;
    max-height: 280px;
    overflow-y: auto;
}

.ticker-inner {
    width: 100%;
    border-collapse: collapse;
    will-change: transform;
}

.ticker-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.ticker-row:hover { background: var(--saffron-soft); }

.ticker-name,
.ticker-count { padding: 10px 15px; }

.ticker-name {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}
.ticker-name a { color: inherit; }
.ticker-name a:hover { color: var(--saffron-deep); text-decoration: none; }

.ticker-count {
    white-space: nowrap;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

/* ─── Ad Slots ─────────────────────────────────────── */
.ad-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin: 10px 0;
}

.ad-shell .sponsored-flag {
    display: inline-flex;
    margin: 10px 12px 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ad-shell .ad-body { padding: 8px 12px 12px; font-family: inherit; }
.ad-shell .ad-title { margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ad-shell .ad-copy  { margin-bottom: 7px; font-size: 12px; color: var(--muted); }

.ad-shell .ad-media {
    display: block;
    width: calc(100% - 16px);
    margin: 6px auto 0;
    border-radius: var(--radius-sm);
    max-height: 200px;
    object-fit: cover;
}

.ad-shell .ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.ad-shell .ad-cta:hover { text-decoration: none; }

/* ─── Floating Search Button ─────────────────────────────────────── */
.floating-search {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 300;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--saffron), #f5a030);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: grab;
    box-shadow: 0 8px 24px rgba(232,137,12,0.35);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.16s;
}

.floating-search::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 7px 7px 0 -5px #fff;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

.floating-search:hover { background: linear-gradient(135deg, var(--saffron-deep), var(--saffron)); }
.floating-search.dragging { cursor: grabbing; }

/* ─── Browse Page (brandbar / topline) ─────────────────────────────────────── */
.topline {
    background: var(--navy);
    color: #fff;
}

.topline-inner {
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.live-stamp {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.topline-note { flex: 1; color: rgba(255, 255, 255, 0.75); font-size: 12px; }
.topline-link { color: var(--saffron); font-weight: 700; }
.topline-link:hover { color: #f5a030; text-decoration: none; }

.brandbar {
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.brandbar-inner {
    padding: 18px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-grid { padding: 18px 16px; }

/* ─── Footer ─────────────────────────────────────── */
footer {
    margin-top: 32px;
    padding: 24px 16px 28px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    font-size: 12px;
}

footer a,
footer a:visited { color: var(--saffron); font-weight: 600; }
footer a:hover { color: #f5a030; text-decoration: none; }

/* ─── Catalog Grid (for sidebar sub-sections) ─────────────────────────────────────── */
.catalog-grid {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
}

.catalog-grid .data-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
}

.catalog-grid .section-header {
    background: var(--card-soft);
    color: var(--navy);
}

.catalog-grid .data-list li { padding: 9px 13px; }

/* ─── Animation ─────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ─── Responsive — 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-layout,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-pane {
        position: static;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 260px;
    }

    .compact-alert-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-alert-item:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .compact-alert-item:nth-child(2n) {
        border-right: none;
    }
}

/* ─── Responsive — 900px ─────────────────────────────────────── */
@media (max-width: 900px) {
    .compact-hero { padding: 22px 20px; }
    .compact-hero-title { font-size: 38px; }
    .compact-hero-text { font-size: 15px; }

    .compact-search-head {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-search-links { justify-content: flex-start; }

    .compact-search-form {
        grid-template-columns: 1fr;
    }
}

/* ─── Responsive — 768px ─────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner,
    .top-nav-inner,
    .page-shell,
    .shell,
    .hero-grid,
    .topline-inner,
    .brandbar-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-inner { padding-top: 11px; padding-bottom: 11px; align-items: center; }
    .header-right { width: 100%; justify-content: flex-start; }

    .brand-title,
    .brand-name { font-size: 26px; }

    .brand-sub,
    .official-badge-soft,
.official-badge-soft:visited { color: rgba(255,255,255,0.78); }

    .nav-link { padding: 10px 11px; font-size: 11.5px; }

    .compact-hero { border-radius: var(--radius-lg); padding: 20px 16px; }
    .compact-hero-title { font-size: 32px; }

    .compact-search-panel { padding: 18px 16px; border-radius: var(--radius-lg); }

    .compact-search-form button { min-height: 52px; width: 100%; }
    .search-results { max-height: 50vh; }

    .hero-search-head,
    .insight-ribbon-head,
    .horiz-ribbon-head,
    .feed-header,
    .section-header { align-items: flex-start; }

    .insight-title,
    .feed-title { font-size: 18px; }

    .compact-alert-list { grid-template-columns: 1fr; }
    .compact-alert-item { border-right: none !important; }
    .browse-pages-grid { grid-template-columns: 1fr 1fr; }

    .sidebar-pane { flex-direction: column; }
    .sidebar-card { min-width: 0; }
    .horiz-ribbon-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rail-pill { min-width: 108px; }

    .floating-search { right: 14px; bottom: 14px; padding: 10px 15px; font-size: 12px; }
}

/* ─── Responsive — 480px ─────────────────────────────────────── */
@media (max-width: 480px) {
    .compact-hero-title { font-size: 26px; }
    .compact-hero,
    .compact-search-panel,
    .insight-ribbon,
    .horiz-ribbon,
    .highlights-bar,
    .browse-pages-shell,
    .data-section,
    .panel { border-radius: 14px; }
    .compact-search-links a,
    .hero-query-pill,
    .hero-metric { width: 100%; justify-content: center; }
    .alert-strip-inner { padding: 9px 12px; }
    .hero-metrics { gap: 8px; }
    .page-shell,
    .shell { padding-top: 14px; }
}

@media (max-width: 640px) {
    .top-nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding-bottom: 8px;
    }
    .top-nav-inner > .nav-link {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
    }
    .top-nav-inner > .nav-link[href="/current-affairs/today"],
    .top-nav-inner > .nav-link[href="/current-affairs"] {
        flex: 1 1 100%;
        border-radius: 12px;
        margin-top: 2px;
    }
    .top-nav-inner > .nav-link:nth-child(n+6) {
        display: none;
    }
    .browse-pages-shell { padding: 13px 11px 11px; }
    .browse-pages-grid { grid-template-columns: 1fr; gap: 8px; }
    .browse-page-card { padding: 11px 12px; border-radius: 14px; }
    .browse-page-label { margin-bottom: 5px; font-size: 8.5px; }
    .browse-page-card strong { font-size: 14px; line-height: 1.2; }
    .browse-page-card span:last-child { margin-top: 4px; font-size: 11.5px; }
}

/* ─── Elements that are hidden on this layout (dead code cleanup) ─────────────────────────────────────── */
.hero-live-card,
.hero-spotlight,
.hero-copy.hero-copy,
.hero-search-trust,
.hero-copy,
.hero-live-card { display: none; }

/* Current Affairs Trail */
.gk-trail { margin-top: 30px; padding: 0 var(--spacing-md); }
.gk-trail-shell { border: 1px solid var(--border-strong); border-radius: calc(var(--radius-lg) + 4px); background: linear-gradient(135deg, #fffdf8 0%, #f6efe2 100%); padding: clamp(18px, 3vw, 28px); box-shadow: 0 14px 32px rgba(17, 24, 39, 0.05); }
.gk-trail-header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.gk-trail-copy { max-width: 700px; }
.gk-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron); }
.gk-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gk-title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; color: var(--navy); }
.gk-subtitle { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--slate); }
.gk-trail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gk-trail-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-light); background: rgba(255,255,255,0.82); color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.gk-trail-link:hover { text-decoration: none; transform: translateY(-1px); }
.gk-trail-link-primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(15, 35, 60, 0.16); }
.gk-trail-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gk-trail-item { display: block; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); text-decoration: none; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04); }
.gk-trail-item:hover { text-decoration: none; border-color: rgba(15, 35, 60, 0.18); transform: translateY(-2px); }
.gk-trail-topline { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gk-trail-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 14px; background: #eef2ff; color: #334155; font-size: 15px; font-weight: 800; }
.gk-trail-badge.hot { background: #fee2e2; color: #b91c1c; }
.gk-trail-badge.warm { background: #ffedd5; color: #c2410c; }
.gk-trail-date { font-size: 12px; font-weight: 700; color: var(--muted); }
.gk-trail-headline { margin: 0 0 10px; font-size: 17px; line-height: 1.45; color: var(--navy); }
.gk-trail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gk-trail-chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.gk-trail-summary { margin: 0; font-size: 13px; line-height: 1.65; color: var(--slate-dark); }
.gk-trail-empty { grid-column: 1 / -1; padding: 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.7); border: 1px dashed var(--border-light); color: var(--muted); font-size: 14px; text-align: center; }
.gk-trail-compact { margin-top: 18px; }
.gk-trail-compact .gk-trail-shell { padding: 16px 18px; }
.gk-trail-compact .gk-trail-header { margin-bottom: 12px; }
.gk-trail-compact .gk-trail-copy { max-width: 620px; }
.gk-trail-compact .gk-title { font-size: clamp(20px, 2.4vw, 28px); }
.gk-trail-compact .gk-subtitle { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.gk-trail-compact .gk-trail-list { grid-template-columns: minmax(0, 1fr); }
.gk-trail-compact .gk-trail-item:nth-child(n+2) { display: none; }
.gk-trail-compact .gk-trail-item { padding: 16px; }
.gk-trail-compact .gk-trail-headline { font-size: 16px; line-height: 1.35; }
.gk-trail-compact .gk-trail-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 980px) { .gk-trail-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .gk-trail-shell { padding: 16px; }
    .gk-trail-actions { width: 100%; }
    .gk-trail-link { width: 100%; }
    .gk-trail-compact .gk-trail-shell { padding: 14px; }
    .gk-trail-compact .gk-trail-header { margin-bottom: 10px; }
}

/* ─── RICH FOOTER ─────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    margin-top: 40px;
    border-top: 3px solid var(--saffron);
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 28px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-col {}

.footer-brand-logo {
    font-family: "Baloo 2","Poppins",sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}
.footer-brand-logo span.accent { color: var(--saffron); }
.footer-brand-logo:hover { text-decoration: none; }

.footer-brand-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 260px;
    margin-bottom: 20px;
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.footer-social-btn:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    text-decoration: none;
}
.footer-social-btn.telegram { background: rgba(36,161,222,0.18); border-color: rgba(36,161,222,0.35); }
.footer-social-btn.telegram:hover { background: rgba(36,161,222,0.28); }
.footer-social-btn.whatsapp { background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.3); }
.footer-social-btn.whatsapp:hover { background: rgba(37,211,102,0.25); }

.footer-col-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.13s;
    display: block;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}
.footer-links a:visited { color: rgba(255,255,255,0.55); }
.footer-links a:visited:hover { color: #fff; }

.site-footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.footer-legal-links a:hover { color: #fff; }

@media (max-width: 900px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
    .footer-brand-desc { max-width: 100%; }
    .site-footer-inner { padding: 32px 16px 20px; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── MOBILE HERO SEARCH COLLAPSE ─────────────────────────────────────── */
/* On small screens, the search card collapses to a single tappable trigger */
.search-hero-collapsed-bar {
    display: none; /* shown only at mobile via @media */
}

@media (max-width: 640px) {
    /* Hide the full expanded search panel by default on mobile */
    .search-hero .compact-search-head,
    .search-hero .compact-search-form,
    .search-hero .hero-search-pills {
        display: none;
    }

    /* Show compact single-tap bar */
    .search-hero-collapsed-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 14px;
        border-radius: var(--radius-md);
        background: var(--card-soft);
        border: 1.5px solid var(--border-strong);
        cursor: pointer;
        color: #9aa3b0;
        font-size: 14px;
        font-weight: 500;
        user-select: none;
    }

    .search-hero-collapsed-bar:hover { border-color: var(--saffron); }
    .search-hero-collapsed-bar .bar-icon { font-size: 17px; flex-shrink: 0; }

    /* When expanded (JS toggles class), show everything again */
    .search-hero.is-expanded .compact-search-head,
    .search-hero.is-expanded .compact-search-form,
    .search-hero.is-expanded .hero-search-pills {
        display: flex;
    }
    .search-hero.is-expanded .compact-search-head { flex-direction: column; align-items: stretch; }
    .search-hero.is-expanded .search-hero-collapsed-bar { display: none; }

    /* Tighten hero title on mobile */
    .compact-hero-copy { text-align: left; }
    .compact-hero-title { font-size: 28px; }
    .compact-hero-text { font-size: 14px; }
}

/* ─── WHATSAPP / TELEGRAM SHARE BUTTONS (homepage feed cards) ─────────── */
/* These appear when we add share buttons to category feed items */
.post-share-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.post-share-wa, .post-share-tg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.12s;
}
.post-share-wa:hover, .post-share-tg:hover {
    text-decoration: none;
    opacity: 0.88;
    transform: translateY(-1px);
}

.post-share-wa {
    background: #25d366;
    color: #fff;
}
.post-share-tg {
    background: #24a1de;
    color: #fff;
}

/* ─── SCROLL TO TOP BUTTON ─────────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 90;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--navy);
    border: 2px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    box-shadow: 0 4px 16px rgba(15,45,74,0.3);
}
.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-to-top:hover {
    background: var(--saffron);
    border-color: var(--saffron);
    transform: translateY(-2px);
}

/* ─── LAST UPDATED STAMP ─────────────────────────────────────── */
.post-updated-stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted);
    padding: 4px 10px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-right: 6px;
}
.post-updated-stamp::before {
    content: "🕐";
    font-size: 11px;
}









