:root {
    --color-navy: #12233d;
    --color-navy-light: #1c3660;
    --color-accent: #c8102e;
    --color-bg: #f5f6f8;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(18, 35, 61, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.status-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.status-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 640px;
    width: 100%;
}

.badge {
    display: inline-block;
    background: var(--color-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.badge-error {
    background: var(--color-accent);
}

h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: var(--color-navy);
}

.subtitle {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.check-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.check-list li {
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border-left: 3px solid var(--color-accent);
    border-radius: 6px;
    font-size: 0.95rem;
}

.check-list li span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    font-family: 'Courier New', monospace;
    margin-top: 0.2rem;
}

.next {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-navy);
}

.error-card {
    text-align: center;
}

/* ===== Auth pages ===== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    font-size: 1.6rem;
}

.auth-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-navy);
    font-size: 1.15rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.25rem;
}

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

.btn-brand {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--color-navy-light);
    border-color: var(--color-navy-light);
    color: #fff;
}

.link-brand {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.link-brand:hover {
    text-decoration: underline;
}

.form-control:focus {
    border-color: var(--color-navy-light);
    box-shadow: 0 0 0 0.2rem rgba(18, 35, 61, 0.15);
}

.otp-input {
    letter-spacing: 0.5rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

.auth-foot {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.password-toggle {
    cursor: pointer;
}

.flash-alert {
    max-width: 640px;
    margin: 1rem auto 0;
}

/* ===== Admin dashboard shell ===== */

.admin-body {
    background: var(--color-bg);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--color-navy);
    color: #fff;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2rem;
    display: block;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav-link.active {
    background: var(--color-accent);
    color: #fff;
}

.admin-nav-link .badge {
    margin-left: 0.4rem;
}

.admin-nav-soon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    cursor: default;
}

.admin-nav-soon em {
    font-style: normal;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-page-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-navy);
    margin: 0;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.admin-content {
    padding: 2rem;
}

/* ===== Admin dashboard shell: mobile ===== */
@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
        min-height: 0;
    }

    .admin-sidebar {
        width: 100%;
        padding: 1rem;
    }

    .admin-brand {
        margin-bottom: 0.75rem;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav-link,
    .admin-nav-soon {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-topbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-content {
        padding: 1rem;
    }
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-card .stat-label {
    color: var(--color-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 0.4rem;
}

.bar-row .bar-label {
    width: 130px;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.bar-row .bar-track {
    flex: 1;
    background: var(--color-bg);
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.bar-row .bar-fill {
    height: 100%;
    background: var(--color-navy);
    border-radius: 4px;
}

.bar-row .bar-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ===== Public site shell ===== */

.public-body {
    background: var(--color-bg);
}

/* ===== Site Topbar (redesign) ===== */
.site-topbar {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.site-topbar-left,
.site-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-topbar-location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.site-topbar-right a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-topbar-right a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
}

.site-topbar-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-topbar-social a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
}

.site-topbar-social a:hover {
    color: #fff;
}

/* ===== Wider content container (matches major Hindi news portals: Bhaskar, Aaj Tak — small fixed gutters instead of Bootstrap's narrow centered column) ===== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 992px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1220px;
    }
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1340px;
    }
}

@media (min-width: 1440px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1560px;
    }
}

/* ===== Site Header (redesign) ===== */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.site-brand-logo {
    max-height: 56px;
    width: auto;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.15rem;
}

.site-header-ad {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
    overflow: hidden;
}

.site-header-ad:empty {
    display: none;
}

/* ===== Site Nav (redesign) ===== */
.site-nav {
    background: var(--color-navy);
}

.site-nav-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.9rem 0;
    cursor: pointer;
}

.site-nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
}

.site-nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav-list > li {
    position: relative;
}

.site-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}

.site-nav-list > li > a:hover,
.site-nav-list > li.has-children:hover > a {
    background: var(--color-navy-light);
    color: #fff;
}

.site-nav-home {
    background: var(--color-accent);
}

.site-nav-list .dropdown {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    min-width: 180px;
    border-radius: 0 0 6px 6px;
    display: none;
    z-index: 20;
}

.site-nav-list li.has-children:hover .dropdown {
    display: block;
}

.site-nav-list .dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
}

.site-nav-list .dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.site-search-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.3rem 0.3rem 0.3rem 0.9rem;
}

.site-search-form input {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    width: 140px;
    outline: none;
}

.site-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.site-search-form button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== Breaking Ticker (redesign — rotating single headline) ===== */
.breaking-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breaking-label svg {
    animation: breaking-pulse 1.4s ease-in-out infinite;
}

@keyframes breaking-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.breaking-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin: 0 0.2rem;
    padding: 0;
}

.breaking-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.breaking-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 1.3rem;
}

.breaking-item {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.breaking-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.breaking-item:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-topbar-left { display: none; }
    .site-nav-toggle { display: flex; }
    .site-nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-navy);
        z-index: 30;
        box-shadow: var(--shadow);
    }
    .site-nav-list.open { display: flex; }
    .site-nav-list .dropdown {
        position: static;
        box-shadow: none;
        background: var(--color-navy-light);
    }
    .site-nav-list .dropdown a { color: rgba(255, 255, 255, 0.85); }
    .site-search-form { margin: 0.5rem 0; width: 100%; }
    .site-search-form input { width: 100%; }
    .site-header-ad { display: none; }
}

.public-header {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-navy);
}

.public-brand {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.public-brand-logo {
    max-height: 52px;
    width: auto;
    display: block;
}

.public-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
}

.public-search-form input[type="search"] {
    border: none;
    outline: none;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    width: 200px;
    background: transparent;
}

.public-search-form button {
    border: none;
    background: var(--color-navy);
    color: #fff;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.public-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.public-nav a:hover {
    color: var(--color-accent);
}

.public-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
}

.public-footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.ad-slot {
    margin: 1.25rem auto;
    min-height: 90px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-label {
    color: var(--color-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ad-slot--sidebar {
    min-height: 250px;
}

.ad-slot.ad-slot-filled {
    display: block;
    min-height: 0;
    border: none;
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.ad-slot.ad-slot-filled img {
    border-radius: 8px;
}

/* ===== Article page ===== */

.article-hero {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
}

.article-headline {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.25;
    color: var(--color-navy);
    margin: 1rem 0 0.5rem;
}

.article-sub-heading {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-buttons a,
.engage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
}

.share-buttons a:hover,
.engage-btn:hover {
    border-color: var(--color-navy);
}

.engage-btn.active {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.related-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.related-card .related-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.prev-next-nav a {
    flex: 1;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
}

.prev-next-nav a:hover {
    border-color: var(--color-navy);
}

.prev-next-nav .direction-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

/* ===== Top bar, mega nav, breaking ticker ===== */

.public-topbar {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.public-topbar-social {
    display: flex;
    gap: 1rem;
}

.public-topbar-social a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.public-topbar-social a:hover {
    color: #fff;
}

.lang-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.lang-toggle a {
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-toggle a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.public-tagline {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-muted);
    letter-spacing: 0.03em;
}

.public-meganav {
    background: var(--color-navy);
}

.public-meganav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.public-meganav > div > ul > li {
    position: relative;
}

.public-meganav a {
    display: block;
    padding: 0.65rem 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.public-meganav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.public-meganav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    min-width: 180px;
    flex-direction: column;
}

.public-meganav .dropdown a {
    color: var(--color-text);
    padding: 0.55rem 1rem;
}

.public-meganav .dropdown a:hover {
    background: var(--color-bg);
}

.public-meganav li.has-children:hover .dropdown {
    display: flex;
}

.breaking-ticker {
    background: var(--color-accent);
    color: #fff;
    padding: 0.55rem 0;
}

.breaking-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 1rem;
    flex-shrink: 0;
}

.breaking-track {
    overflow: hidden;
    flex: 1;
}

.breaking-track-inner {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: breaking-scroll 30s linear infinite;
}

.breaking-track-inner a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.breaking-track-inner a:hover {
    text-decoration: underline;
}

@keyframes breaking-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Homepage ===== */

.hero-slide {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    color: #fff;
    text-decoration: none;
}

.hero-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.hero-slide-caption h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-navy);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1.25rem;
}

.section-heading h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-navy);
    margin: 0;
}

.section-heading a {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
}

.news-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-body {
    padding: 0.9rem;
}

.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

.news-card-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.news-list-row {
    display: flex;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.news-list-row img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-list-row .news-list-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.gallery-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== Narration player ===== */

.narration-player {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.narration-buttons {
    display: flex;
    gap: 0.5rem;
}

.narration-btn {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.narration-btn-primary {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.narration-btn-primary:hover {
    background: var(--color-navy-light);
}

.narration-settings {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.narration-select {
    margin-left: 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.4rem;
    font-size: 0.82rem;
}

.narration-progress {
    flex: 1 1 140px;
    min-width: 120px;
    height: 6px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.narration-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.15s linear;
}

.narration-word.active {
    background: rgba(200, 16, 46, 0.18);
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.18);
}

/* ===== Popup & sticky ads ===== */

.ad-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 35, 61, 0.65);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.ad-popup-overlay.visible {
    display: flex;
}

.ad-popup-box {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ad-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
}

.ad-sticky-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--color-surface);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    max-height: 110px;
    overflow: hidden;
}

.ad-sticky-close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: var(--color-navy);
    color: #fff;
    padding: 0.85rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent-banner.visible {
    display: block;
}

.cookie-consent-banner p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-banner a {
    color: #fff;
    text-decoration: underline;
}

/* ===== Homepage Redesign: Hero + Trending + Video sidebar ===== */

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.85fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-main {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #fff;
    text-decoration: none;
    min-height: 380px;
    background: var(--color-navy);
}

.hero-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    z-index: 2;
}

.hero-main-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.5rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.hero-main-caption h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.hero-main-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem;
    max-width: 65ch;
}

.hero-main-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 0.5rem;
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-secondary-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    flex: 1;
}

.hero-secondary-item img {
    width: 76px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-secondary-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.hero-read-more {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.5rem;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-card,
.video-card {
    padding: 1.1rem;
}

.trending-heading {
    border-left: 4px solid var(--color-accent);
    padding-left: 0.6rem;
    margin-bottom: 0.85rem;
}

.trending-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.trending-rank {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-list a {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--color-text);
    text-decoration: none;
}

.trending-list a:hover {
    color: var(--color-accent);
}

.side-view-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.video-thumb-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.video-thumb-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.video-thumb-play {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.video-thumb-duration {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-muted);
    background: var(--color-bg);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.video-thumb-title {
    font-size: 0.82rem;
    color: var(--color-text);
    line-height: 1.3;
}

/* ===== Top Stories grid ===== */
.top-stories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* ===== Browse by Category tiles ===== */
.category-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 110px;
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    background-color: var(--color-navy);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 35, 61, 0.85), rgba(18, 35, 61, 0.25));
}

.category-tile-name,
.category-tile-count {
    position: relative;
    z-index: 1;
    color: #fff;
}

.category-tile-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
}

.category-tile-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.1rem 0.55rem;
    flex-shrink: 0;
    align-self: flex-end;
}

/* ===== Bottom row: Live Updates / Gallery / Editorial / Connect ===== */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
}

.bottom-grid .stat-card {
    padding: 1.1rem;
}

.live-updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.live-updates-list li {
    font-size: 0.82rem;
    line-height: 1.35;
    display: flex;
    gap: 0.5rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 0.6rem;
}

.live-updates-time {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-navy);
}

.gallery-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.editorial-item {
    text-decoration: none;
    display: block;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.editorial-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.editorial-title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.connect-card h2,
.connect-card h3 {
    color: var(--color-navy);
}

.connect-social-row {
    display: flex;
    gap: 0.5rem;
}

.connect-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.connect-social-icon:hover {
    background: var(--color-accent);
    color: #fff;
}

.connect-newsletter-form {
    display: flex;
    gap: 0.4rem;
}

.connect-newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
}

.connect-newsletter-form button {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== Site Footer (redesign) ===== */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.9rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    max-width: 32ch;
}

.footer-contact-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

/* ===== Responsive: homepage redesign ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        min-height: 300px;
    }

    .top-stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .top-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-main-caption h1 {
        font-size: 1.25rem;
    }
}

/* "Get the app" banner — article pages, mobile only. See
   application/views/articles/_app_download_banner.php. Hidden on every
   screen size by default; the media query below only ever promotes it to
   flex on mobile widths, and even then only once JS clears the [hidden]
   attribute (dismiss-state / snooze logic lives there). */
.app-download-banner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .app-download-banner:not([hidden]) {
        display: flex;
    }
}

.app-download-banner__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-download-banner__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.app-download-banner__text strong {
    font-size: 0.85rem;
}

.app-download-banner__text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.app-download-banner__install {
    flex-shrink: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.app-download-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}
