/* =============================================
   RESET & BASE
   ============================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}






/* =============================================
   NEW ERA MAGAZINE — LAYOUT NAV / TOP BAR / HEADER
   Polished UI + responsive + light animations
   Works with _Layout.cshtml
   ============================================= */

/* ---------- Tokens ---------- */
:root {
    --nem-primary: #E4213A;
    --nem-primary-dark: #B8172E;
    --nem-primary-light: #FDEAEC;
    --nem-ink: #1A1A1A;
    --nem-ink-soft: #4B4B4B;
    --nem-muted: #7A7A7A;
    --nem-border: #EDEAE6;
    --nem-radius-sm: 8px;
    --nem-radius-md: 14px;
    --nem-radius-pill: 999px;
    --nem-shadow-sm: 0 2px 10px rgba(20, 15, 10, 0.05);
    --nem-shadow-lg: 0 20px 48px rgba(20, 15, 10, 0.14);
    --nem-ease: cubic-bezier(.4, 0, .2, 1);
    --nem-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --nem-t-fast: .2s;
    --nem-red: #e8192c;
    --nem-header-h: 72px;
}

/* Reduced motion — no hang / no dizziness */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .main-trending-badge i,
    .site-logo::before {
        animation: none !important;
    }
}

/* Shared keyframes */
@keyframes navFadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoShine {
    0% {
        left: -140%;
    }

    18% {
        left: 160%;
    }

    100% {
        left: 160%;
    }
}

@keyframes drawerItemIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawerHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordionItemIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Unified container widths */
.top-bar-inner,
.main-header-inner,
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-content {
    flex: 1;
    min-width: 0;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 6px 0;
    position: relative;
    z-index: 1005;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.trending-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.main-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .main-trending-badge i {
        color: #ff5722;
        font-size: 11px;
        animation: badgePulse 1.8s ease-in-out infinite;
        display: inline-block;
        will-change: transform;
    }

    .main-trending-badge span {
        color: #E51A25;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

.trending-items {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}

.trending-link {
    font-size: 11px;
    color: #444;
    font-weight: 500;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    max-width: 280px;
}

    .trending-link:hover {
        color: var(--nem-red);
    }

.t-sep {
    color: #bbb;
    font-size: 9px;
    flex-shrink: 0;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .top-right > a {
        font-size: 11px;
        color: #555;
        font-weight: 500;
        transition: color 0.2s ease;
        text-decoration: none;
        position: relative;
        padding-bottom: 2px;
    }

        .top-right > a:hover {
            color: var(--nem-red);
        }

        .top-right > a.top-active {
            color: var(--nem-red);
            font-weight: 700;
        }

            .top-right > a.top-active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -2px;
                height: 2px;
                background: var(--nem-red);
                border-radius: 20px;
            }

.top-divider {
    width: 1px;
    height: 14px;
    background: #d0d0d0;
    flex-shrink: 0;
}

.top-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .top-social a {
        color: #666;
        font-size: 12px;
        transition: color 0.2s ease, transform 0.2s ease;
        text-decoration: none;
        display: inline-flex;
        width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
    }

        .top-social a:hover {
            color: var(--nem-red);
            transform: translateY(-1px);
        }

/* =============================================
   MAIN HEADER
   ============================================= */
.main-header {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), padding .3s ease, background .3s ease, box-shadow .3s ease;
    will-change: transform;
    animation: navFadeDown 0.45s ease both;
}

.main-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.site-logo,
.nav-list-wrap,
.nav-actions {
    min-width: 0;
}

/* =============================================
   HAMBURGER
   ============================================= */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    transition: background 0.2s ease, transform 0.15s ease;
    animation: popIn 0.4s ease both;
    padding: 0;
}

    .mobile-toggle:hover {
        background: rgba(232, 25, 44, 0.07);
    }

    .mobile-toggle:active {
        transform: scale(0.93);
    }

.hamburger-box {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    width: 22px;
    height: 18px;
    pointer-events: none;
}

.hamburger-bar {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 6px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1),
                opacity   0.2s  ease,
                top       0.35s cubic-bezier(0.4, 0.0, 0.2, 1),
                width     0.3s  ease;
}

    /* Top bar - slightly shorter for style */
    .hamburger-bar:nth-child(1) {
        top: 1px;
        width: 16px;
    }

    /* Middle bar - full width */
    .hamburger-bar:nth-child(2) {
        top: 8px;
        width: 22px;
    }

    /* Bottom bar - medium width */
    .hamburger-bar:nth-child(3) {
        top: 15px;
        width: 19px;
    }

/* Active (X) state */
.mobile-toggle.active .hamburger-bar:nth-child(1) {
    top: 8px;
    width: 22px;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-6px);
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    top: 8px;
    width: 22px;
    transform: rotate(-45deg);
}

/* Color the bars with red accent when active */
.mobile-toggle.active .hamburger-bar {
    background: var(--nem-red);
}

/* Drawer close button uses same bars — force X when needed via JS .active */
.nav-drawer-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

    .nav-drawer-close:hover {
        background: rgba(232, 25, 44, 0.1);
        color: var(--nem-red);
    }

    .nav-drawer-close:active {
        transform: scale(0.92);
    }

    /* Always show X style on drawer close */
    .nav-drawer-close .hamburger-bar {
        background: currentColor;
    }
    
    .nav-drawer-close .hamburger-bar:nth-child(1) {
        top: 8px;
        width: 22px;
        transform: rotate(45deg);
    }

    .nav-drawer-close .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-6px);
    }

    .nav-drawer-close .hamburger-bar:nth-child(3) {
        top: 8px;
        width: 22px;
        transform: rotate(-45deg);
    }

/* =============================================
   LOGO
   ============================================= */
.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 2px 0;
}

    .site-logo:hover {
        transform: translateY(-1px);
    }

    .site-logo::before {
        content: "";
        position: absolute;
        top: 0;
        left: -140%;
        width: 70px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
        transform: skewX(-25deg);
        animation: logoShine 8s ease-in-out infinite;
        pointer-events: none;
    }

.logo-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.logo-new,
.logo-mag {
    font-family: 'Antonio', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: font-size .3s ease, color .3s ease;
    white-space: nowrap;
}

.logo-new {
    color: var(--nem-red);
    text-shadow: 0 2px 4px rgba(232, 25, 44, 0.12);
}

.logo-mag {
    color: #222;
}

.logo-sub {
    font-size: 9px;
    color: #555;
    margin-top: 3px;
    letter-spacing: 0.35px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity .3s ease, margin .3s ease;
}

/* =============================================
   NAV LIST (DESKTOP)
   ============================================= */
.nav-list-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    margin-left: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.nav-drawer-header {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-wrap: nowrap;
}

    .nav-list li {
        position: relative;
        flex-shrink: 0;
    }

        .nav-list li a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 8px 10px;
            font-size: 12px;
            font-weight: 700;
            color: #222;
            letter-spacing: 0.2px;
            transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
            cursor: pointer;
            white-space: nowrap;
            position: relative;
            border-radius: 6px;
            text-decoration: none;
        }

            .nav-list li a:hover {
                color: var(--nem-red);
                background: rgba(232, 25, 44, 0.05);
                transform: translateY(-1px);
            }

        .nav-list li.active > a {
            color: var(--nem-red);
            background: rgba(232, 25, 44, 0.08);
        }

        .nav-list li a::after {
            content: '';
            position: absolute;
            bottom: 1px;
            left: 10px;
            right: 10px;
            height: 2px;
            background: var(--nem-red);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.25s ease;
            border-radius: 2px;
        }

        .nav-list li a:hover::after,
        .nav-list li.active > a::after {
            transform: scaleX(1);
        }

    .nav-list .nav-arrow {
        font-size: 9px;
        opacity: 0.7;
        transition: transform 0.25s ease;
    }

.nav-dropdown:hover > a .nav-arrow,
.nav-dropdown.is-open > a .nav-arrow {
    transform: rotate(180deg);
}

/* Collapsible items — JS may hide on tight widths */
.nav-collapsible-item.collapsed-hidden {
    display: none !important;
}

.dropdown-toggle-mobile {
    display: none;
}

/* =============================================
   DESKTOP DROPDOWNS
   ============================================= */
.nav-dropdown {
    position: relative;
}

    /* Hover bridge so menu doesn't close instantly */
    .nav-dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 14px;
        display: block;
    }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(.22, .61, .36, 1), visibility 220ms;
    z-index: 1003;
}

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-dropdown-menu li {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity .25s ease, transform .25s ease;
    }

    .nav-dropdown:hover .nav-dropdown-menu li,
    .nav-dropdown:focus-within .nav-dropdown-menu li,
    .nav-dropdown-menu:hover li {
        opacity: 1;
        transform: translateX(0);
    }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(1),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(1) {
            transition-delay: .03s;
        }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(2),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(2) {
            transition-delay: .06s;
        }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(3),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(3) {
            transition-delay: .09s;
        }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(4),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(4) {
            transition-delay: .12s;
        }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(5),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(5) {
            transition-delay: .15s;
        }

        .nav-dropdown:hover .nav-dropdown-menu li:nth-child(6),
        .nav-dropdown:focus-within .nav-dropdown-menu li:nth-child(6) {
            transition-delay: .18s;
        }

    .nav-dropdown-menu li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 9px 10px;
        font-size: 12.5px;
        font-weight: 600;
        color: #333;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease, transform 0.2s ease;
    }

        .nav-dropdown-menu li a::after {
            display: none !important;
        }

        .nav-dropdown-menu li a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: var(--nem-red);
            transform: scaleY(0);
            transition: transform .22s ease;
        }

        .nav-dropdown-menu li a:hover::before {
            transform: scaleY(1);
        }

        .nav-dropdown-menu li a:hover {
            background: linear-gradient(90deg, #fff4f5, #ffffff);
            color: var(--nem-red);
            padding-left: 16px;
            transform: translateX(2px);
        }

        .nav-dropdown-menu li a span,
        .nav-dropdown-menu .menu-item-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .nav-dropdown-menu li a span i,
            .nav-dropdown-menu .icon-item {
                transition: transform .22s ease, color .22s ease;
                color: #E53935;
                width: 16px;
                text-align: center;
            }

        .nav-dropdown-menu li a:hover span i,
        .nav-dropdown-menu li a:hover .icon-item {
            transform: rotate(-8deg) scale(1.12);
            color: var(--nem-red);
        }

    .nav-dropdown-menu .fa-angle-right,
    .nav-dropdown-menu .arrow-icon {
        opacity: .4;
        font-size: 11px;
        transition: transform .22s ease, opacity .22s ease;
    }

    .nav-dropdown-menu li a:hover .fa-angle-right,
    .nav-dropdown-menu li a:hover .arrow-icon {
        opacity: 1;
        transform: translateX(4px);
    }

/* =============================================
   NAV ACTIONS
   ============================================= */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1010;
}

    .nav-actions > * {
        flex-shrink: 0;
    }

/* Search */
.search-box {
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    width: 155px;
    height: 36px;
    flex-shrink: 0;
    position: relative;
    z-index: 1011;
}

    .search-box:focus-within {
        border-color: var(--nem-red);
        box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
        transform: translateY(-1px);
    }

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        padding: 4px 10px;
        font-size: 12px;
        color: #333;
        width: 100%;
        min-width: 0;
    }

        .search-box input::placeholder {
            color: #aaa;
        }

    .search-box button {
        border: none;
        background: transparent;
        padding: 0 10px;
        cursor: pointer;
        color: #888;
        font-size: 12px;
        border-left: 1px solid #eee;
        transition: color 0.2s ease, background 0.2s ease;
        min-height: unset;
        min-width: unset;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .search-box button:hover {
            color: var(--nem-red);
            background: rgba(232, 25, 44, 0.05);
        }

/* More menu */
.nav-more-wrap {
    position: relative;
    flex-shrink: 0;
}

.more-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    animation: popIn 0.4s ease both;
}

    .more-menu-btn:hover {
        color: var(--nem-red);
        background: rgba(232, 25, 44, 0.05);
        border-color: var(--nem-red);
    }

    .more-menu-btn.active {
        background: rgba(232, 25, 44, 0.1);
        border-color: var(--nem-red);
        color: var(--nem-red);
        transform: rotate(90deg);
    }

.more-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1002;
}

    .more-dropdown.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .more-dropdown li {
        margin: 2px 0;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .more-dropdown.open li {
        opacity: 1;
        transform: translateX(0);
    }

        .more-dropdown.open li:nth-child(1) {
            transition-delay: 0.03s;
        }

        .more-dropdown.open li:nth-child(2) {
            transition-delay: 0.06s;
        }

        .more-dropdown.open li:nth-child(3) {
            transition-delay: 0.09s;
        }

    .more-dropdown li a {
        display: block;
        padding: 9px 11px;
        font-size: 12px;
        font-weight: 600;
        color: #333;
        border-radius: 6px;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
        text-decoration: none;
        min-height: unset;
        min-width: unset;
    }

        .more-dropdown li a:hover {
            background: rgba(232, 25, 44, 0.08);
            color: var(--nem-red);
            padding-left: 14px;
        }

/* Action buttons */
.btn-sign-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--nem-primary, #e8192c);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 0 16px;
    height: 36px;
    border-radius: var(--nem-radius-pill);
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s var(--nem-ease-spring), box-shadow .2s ease, background .2s ease;
}

    .btn-sign-in:hover {
        background: #c41224;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(232, 25, 44, 0.3);
        color: #fff !important;
    }

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #333 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 0 14px;
    height: 36px;
    border-radius: var(--nem-radius-pill);
    border: 1.5px solid #ddd;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .btn-register:hover {
        border-color: var(--nem-red);
        color: var(--nem-red) !important;
        background: rgba(232, 25, 44, 0.05);
        transform: translateY(-1px);
    }

.btn-submit-story {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #111;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 0 14px;
    height: 36px;
    border-radius: var(--nem-radius-pill);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-submit-story:hover {
        background: var(--nem-red);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(232, 25, 44, 0.25);
        color: #fff !important;
    }

.signin-btn.signin-active {
    background: #111;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
    transform: translateY(-1px);
}

    .signin-btn.signin-active:hover {
        background: #000;
    }

/* =============================================
   PROFILE DROPDOWN
   ============================================= */
.nem-profile {
    position: relative;
}

.nem-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--nem-border);
    background: #fff;
    padding: 4px 8px 4px 4px;
    border-radius: var(--nem-radius-pill);
    cursor: pointer;
    transition: box-shadow var(--nem-t-fast) var(--nem-ease), border-color var(--nem-t-fast) var(--nem-ease);
    min-height: unset;
    min-width: unset;
}

    .nem-profile-trigger:hover {
        box-shadow: var(--nem-shadow-sm);
        border-color: #e2c9cc;
    }

.nem-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nem-primary-light);
}

.nem-profile-trigger span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nem-ink);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nem-profile-trigger i.nem-chevron {
    font-size: 10px;
    color: var(--nem-muted);
    transition: transform var(--nem-t-fast) var(--nem-ease);
}

.nem-profile.is-open .nem-chevron {
    transform: rotate(180deg);
}

.nem-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--nem-border);
    border-radius: var(--nem-radius-md);
    box-shadow: var(--nem-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    transition: opacity var(--nem-t-fast) var(--nem-ease), transform var(--nem-t-fast) var(--nem-ease-spring), visibility var(--nem-t-fast);
    z-index: 1050;
}

    .nem-dropdown.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nem-dropdown a {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        border: none;
        background: transparent;
        border-radius: var(--nem-radius-sm);
        font-size: 13px;
        color: var(--nem-ink-soft);
        text-decoration: none;
        transition: background var(--nem-t-fast) var(--nem-ease), color var(--nem-t-fast) var(--nem-ease), padding-left var(--nem-t-fast) var(--nem-ease);
        min-height: unset;
        min-width: unset;
    }

        .nem-dropdown a:hover {
            background: var(--nem-primary-light);
            color: var(--nem-primary);
            padding-left: 16px;
        }

    .nem-dropdown .nem-dropdown-divider {
        height: 1px;
        background: var(--nem-border);
        margin: 6px 4px;
    }

    .nem-dropdown .is-danger {
        color: var(--nem-primary-dark);
    }

/* =============================================
   BREAKING NEWS (layout default — light bar)
   Home page can override if needed
   ============================================= */
.breaking-news-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    height: 38px;
    overflow: hidden;
    transition: transform .35s ease, opacity .35s ease;
    position: relative;
    z-index: 50;
}

.bn-label {
    background: var(--nem-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.bn-ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}

/* JS-driven transform only — no CSS animation hang */
.bn-ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
}

.bn-item {
    font-size: 12.5px;
    color: #222;
    font-weight: 400;
    padding: 0 28px 0 0;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

    .bn-item:hover {
        color: var(--nem-red);
    }

.bn-dot {
    color: var(--nem-red);
    margin-right: 8px;
    font-size: 14px;
}

.bn-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 10px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    height: 100%;
    background: #fff;
    z-index: 2;
}

.bn-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 11px;
    padding: 0 7px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    min-height: unset;
    min-width: unset;
}

    .bn-btn:hover {
        color: var(--nem-red);
    }

.breaking-news-bar.hide-bar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* =============================================
   OVERLAY + SCROLL LOCK
   ============================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    overscroll-behavior: contain;
    transition: opacity 0.3s ease, visibility 0.3s ease, pointer-events 0.3s ease;
}

    /* FIX: previously opacity/visibility were commented out */
    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

html.nav-open,
body.nav-open {
    overflow: hidden !important;
}

body.nav-open {
    /* JS sets top offset to avoid scroll jump */
}

/* =============================================
   STICKY / HIDE ON SCROLL
   ============================================= */
.main-header.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9990;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 10px 0;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.main-header.hide-nav {
    transform: translateY(-110%);
}

.main-header.show-nav {
    transform: translateY(0);
}

body.nav-padding {
    padding-top: var(--nem-header-h);
}

.main-header.nav-fixed .logo-new,
.main-header.nav-fixed .logo-mag {
    font-size: 22px;
}

.main-header.nav-fixed .logo-sub {
    opacity: 0.9;
    margin-top: 2px;
}

.main-header.nav-fixed .nav-list li a {
    padding: 7px 9px;
}

/* =============================================
   HELPER LINK
   ============================================= */
.content-landing__small-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #e8e1da;
    border-radius: 7px;
    color: var(--nem-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .content-landing__small-link:hover {
        background: var(--nem-red);
        color: #fff;
        border-color: var(--nem-red);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(232, 25, 44, 0.22);
    }

    .content-landing__small-link i {
        font-size: 10px !important;
        color: inherit !important;
    }

/* =============================================
   MOBILE DRAWER (works with mobile-menu.js)
   ============================================= */
@media (max-width: 1100px) {
    .mobile-toggle {
        display: inline-flex;
    }

    .more-menu-btn {
        display: inline-flex;
    }

    /* Hide collapsibles into more menu via JS; keep visual safe */
    .nav-list-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: min(360px, 88vw);
        height: 100dvh;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.32s cubic-bezier(.22, .61, .36, 1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

        .nav-list-wrap.is-open,
        body.nav-open .nav-list-wrap.open,
        .nav-list-wrap.open {
            transform: translateX(0);
        }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 16px 14px;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        animation: drawerHeaderIn 0.35s ease both;
    }

    .nav-drawer-logo {
        text-decoration: none;
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
        font-family: 'Antonio', sans-serif;
        font-weight: 800;
        letter-spacing: 0.6px;
        font-size: 20px;
    }

    .nav-drawer-logo-new {
        color: var(--nem-red);
    }

    .nav-drawer-logo-mag {
        color: #111;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 12px 28px;
        width: 100%;
    }

        .nav-list li {
            width: 100%;
            flex-shrink: 1;
            animation: drawerItemIn 0.35s ease both;
        }

            .nav-list li:nth-child(1) {
                animation-delay: 0.04s;
            }

            .nav-list li:nth-child(2) {
                animation-delay: 0.07s;
            }

            .nav-list li:nth-child(3) {
                animation-delay: 0.10s;
            }

            .nav-list li:nth-child(4) {
                animation-delay: 0.13s;
            }

            .nav-list li:nth-child(5) {
                animation-delay: 0.16s;
            }

            .nav-list li:nth-child(6) {
                animation-delay: 0.19s;
            }

            .nav-list li:nth-child(7) {
                animation-delay: 0.22s;
            }

            .nav-list li:nth-child(8) {
                animation-delay: 0.25s;
            }

            .nav-list li a {
                width: 100%;
                padding: 12px 12px;
                border-radius: 10px;
                justify-content: flex-start;
                font-size: 13px;
            }

                .nav-list li a::after {
                    display: none;
                }

                .nav-list li a:hover {
                    transform: none;
                }

    /* Mobile accordion for dropdowns */
    .nav-dropdown {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

        .nav-dropdown > .nav-link-main {
            grid-column: 1;
        }

    .dropdown-toggle-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: #555;
        border-radius: 8px;
        cursor: pointer;
        grid-column: 2;
        grid-row: 1;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

        .dropdown-toggle-mobile:hover,
        .dropdown-toggle-mobile[aria-expanded="true"] {
            color: var(--nem-red);
            background: rgba(232, 25, 44, 0.06);
        }

            .dropdown-toggle-mobile[aria-expanded="true"] i {
                transform: rotate(180deg);
            }

        .dropdown-toggle-mobile i,
        .dropdown-toggle-mobile svg {
            transition: transform 0.25s ease;
            font-size: 14px;
            display: inline-block;
            transform-origin: center center;
        }

    .nav-dropdown .nav-arrow {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        width: 100%;
        grid-column: 1 / -1;
        box-shadow: none;
        border: none;
        border-radius: 10px;
        background: #fafafa;
        padding: 0;
        margin: 0 0 6px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .nav-dropdown.is-open .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu,
    .nav-dropdown.accordion-open .nav-dropdown-menu {
        max-height: 480px;
        padding: 6px;
        margin-bottom: 8px;
    }

    .nav-dropdown-menu li {
        opacity: 1;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu li,
    .nav-dropdown.open .nav-dropdown-menu li,
    .nav-dropdown.accordion-open .nav-dropdown-menu li {
        animation: accordionItemIn 0.28s ease both;
    }

    /* Arrow rotation for both .open and .is-open */
    .nav-dropdown.is-open > .dropdown-toggle-mobile i,
    .nav-dropdown.is-open > .dropdown-toggle-mobile svg,
    .nav-dropdown.open > .dropdown-toggle-mobile i,
    .nav-dropdown.open > .dropdown-toggle-mobile svg,
    .dropdown-toggle-mobile[aria-expanded="true"] i,
    .dropdown-toggle-mobile[aria-expanded="true"] svg {
        transform: rotateX(180deg) !important;
    }

    .nav-dropdown.is-open > .dropdown-toggle-mobile,
    .nav-dropdown.open > .dropdown-toggle-mobile {
        color: var(--nem-red);
        background: rgba(232, 25, 44, 0.06);
    }

    .nav-dropdown-menu li a {
        padding: 10px 12px;
        background: transparent;
    }

        .nav-dropdown-menu li a:hover {
            transform: none;
            padding-left: 14px;
        }

    /* On tablet, desktop hover menus off */
    .nav-dropdown::after {
        display: none;
    }
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 1280px) {
    .search-box {
        width: 140px;
    }

    .nav-list li a {
        padding: 8px 8px;
        font-size: 11.5px;
    }

    .btn-text-register {
        display: none;
    }

    .btn-register {
        padding: 0 12px;
        width: 36px;
    }
}

@media (max-width: 1100px) {
    .top-right > a:not(.top-active) {
        /* keep all if space; hide some on smaller below */
    }

    .logo-new,
    .logo-mag {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .top-right > a {
        display: none;
    }

    .top-divider {
        display: none;
    }

    .top-right {
        gap: 8px;
    }

    .trending-link {
        max-width: 200px;
    }

    .btn-text {
        display: none;
    }

    .btn-sign-in,
    .btn-submit-story {
        width: 36px;
        padding: 0;
    }

        .btn-sign-in i,
        .btn-submit-story i {
            margin: 0;
        }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
    }

    .trending-items {
        mask-image: linear-gradient(to right, #000 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
    }

    .trending-link {
        max-width: 160px;
        font-size: 10.5px;
    }

    .main-header {
        padding: 10px 0;
    }

    .main-header-inner {
        gap: 10px;
    }

    .logo-new,
    .logo-mag {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 8px;
    }

    .search-box {
        width: 42px;
        transition: width 0.25s ease;
    }

        .search-box:focus-within {
            width: min(180px, 42vw);
        }

        .search-box input {
            width: 0;
            padding-left: 0;
            padding-right: 0;
            opacity: 0;
        }

        .search-box:focus-within input {
            width: 100%;
            padding: 4px 8px;
            opacity: 1;
        }

        .search-box button {
            border-left: none;
            width: 42px;
        }

    .bn-label {
        font-size: 10px;
        padding: 0 12px;
        letter-spacing: 0.5px;
    }

    .bn-item {
        font-size: 12px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .nem-profile-trigger span {
        display: none;
    }

    .nem-dropdown {
        right: -8px;
    }

    .top-social a:nth-child(n+3) {
        display: none;
    }

    .main-trending-badge span {
        font-size: 10px;
    }

    .btn-register {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar-inner,
    .main-header-inner {
        padding: 0 12px;
    }

    .logo-sub {
        display: none;
    }

    .bn-controls {
        display: none;
    }

    .trending-wrap {
        gap: 6px;
    }

    .t-sep {
        display: none;
    }

    .trending-items .trending-link:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 400px) {
    .logo-new,
    .logo-mag {
        font-size: 17px;
        letter-spacing: 0.4px;
    }

    .mobile-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .search-box,
    .search-box button,
    .more-menu-btn,
    .btn-sign-in,
    .btn-submit-story {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .nav-list-wrap {
        width: min(320px, 92vw);
    }
}

@media (max-width: 350px) {
    .top-social {
        display: none;
    }

    .logo-mag {
        display: none;
    }

    .main-header-inner {
        gap: 8px;
    }
}

/* =============================================
   Z-INDEX MAP
   50     .breaking-news-bar
   1000   .main-header
   1001   .mobile-toggle
   1002   .more-dropdown
   1003   .nav-dropdown-menu
   1005   .top-bar
   1010   .nav-actions
   1011   .search-box
   1050   .nem-dropdown
   9990   .main-header.nav-fixed
   9998   .nav-overlay
   9999   .nav-list-wrap (mobile drawer)
   ============================================= */

































/*.main-header.nav-fixed {
    padding: 2px 0 !important;
}*/

/*    .main-header.nav-fixed .logo-new,
    .main-header.nav-fixed .logo-mag {
        font-size: 20px !important;
    }

    .main-header.nav-fixed .logo-sub {
        display: none !important;
    }

    .main-header.nav-fixed .nav-list li a {
        padding: 4px 10px !important;
    }

    .main-header.nav-fixed .main-header-inner {
        min-height: 50px !important;
    }*/
/* =============================================
   HERO SECTION
   ============================================= */
/* ===========================================
   HERO SECTION — Desktop
   =========================================== */



/* =============================================
   NEW ERA MAGAZINE — HOME PAGE CSS
   UI polish + responsive + light animations
   (GPU-friendly: transform/opacity only)
   ============================================= */

/* ---------- Shared / Performance ---------- */
.hero-section,
.cat-section,
.featured-section,
.trending-section,
.newsletter-section,
.epk-section,
.breaking-news-bar {
    -webkit-font-smoothing: antialiased;
}

.hero-image-bg img,
.story-image img,
.article-img img,
.trending-image img,
.epk-card-img img,
.cat-icon img {
    will-change: transform;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   BREAKING NEWS BAR
   ============================================= */
.breaking-news-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #111;
    color: #fff;
    min-height: 42px;
    overflow: hidden;
    position: relative;
    z-index: 50;
}

.bn-label {
    flex-shrink: 0;
    background: #e8192c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0 16px;
    height: 42px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

    .bn-label::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 0;
        border-style: solid;
        border-width: 21px 0 21px 10px;
        border-color: transparent transparent transparent #e8192c;
    }

.bn-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 42px;
    mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.bn-ticker {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
}

.bn-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 22px 0 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

    .bn-item:hover {
        color: #fff;
    }

.bn-dot {
    color: #e8192c;
    font-size: 14px;
    line-height: 1;
}

.bn-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    background: #111;
    z-index: 2;
}

.bn-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

    .bn-btn:hover {
        background: rgba(232, 25, 44, 0.85);
        border-color: #e8192c;
    }

    .bn-btn:active {
        transform: scale(0.94);
    }

@media (max-width: 576px) {
    .breaking-news-bar {
        min-height: 38px;
    }

    .bn-label {
        font-size: 9.5px;
        padding: 0 10px;
        height: 38px;
        letter-spacing: 0.6px;
    }

        .bn-label::after {
            border-width: 19px 0 19px 8px;
            right: -8px;
        }

    .bn-ticker-wrap {
        height: 38px;
    }

    .bn-item {
        font-size: 12px;
        padding-right: 16px;
    }

    .bn-controls {
        padding: 0 6px;
        gap: 2px;
    }

    .bn-btn {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 400px) {
    .bn-controls {
        display: none;
    }

    .bn-label {
        font-size: 9px;
        padding: 0 8px;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: #111;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .hero-image-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right;
        display: block;
    }

.hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, #ffffff 0%, #ffffff 28%, rgba(255, 255, 255, 0.6) 38%, rgba(255, 255, 255, 0) 48% );
    z-index: 1;
    pointer-events: none;
}

.hero-text-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 48px 0 48px 48px;
    width: 36%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff5f5;
    color: #e8192c;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    width: fit-content;
    border: 1px solid #fcd5d8;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    margin: 0;
}

.hero-desc {
    font-size: 15.5px;
    color: #333;
    line-height: 1.7;
    margin: 0;
    width: 314px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-author {
    font-size: 12.5px;
    font-weight: 600;
    color: #222;
}

.hero-sep {
    color: #bbb;
    font-size: 12px;
}

.hero-date,
.hero-read {
    font-size: 12px;
    color: #666;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8192c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    width: fit-content;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    margin-top: 4px;
}

    .hero-btn:hover {
        background: #c41224;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(232, 25, 44, 0.28);
    }

/* Hero animations */
@keyframes heroImageZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@keyframes heroTagIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDescIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroMetaIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-image-bg img {
    animation: heroImageZoom 1.4s ease-out both;
}

.hero-tag {
    animation: heroTagIn 0.5s ease 0.1s both;
    transition: transform 0.2s ease;
}

    .hero-tag:hover {
        transform: translateY(-2px);
    }

.hero-title {
    animation: heroTitleIn 0.6s ease 0.2s both;
}

.hero-desc {
    animation: heroDescIn 0.6s ease 0.32s both;
}

.hero-meta {
    animation: heroMetaIn 0.6s ease 0.44s both;
}

.hero-avatar {
    transition: transform 0.2s ease;
}

    .hero-avatar:hover {
        transform: scale(1.12);
    }

.hero-btn {
    animation: heroDescIn 0.6s ease 0.5s both;
}

/* Hero responsive */
@media (max-width: 1600px) {
    .hero-text-panel {
        padding: 48px 0 48px 36px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        width: 280px;
    }

    .hero-text-panel {
        width: 44%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 380px;
    }

    .hero-text-panel {
        width: 58%;
        padding: 36px 0 36px 28px;
        gap: 12px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        width: 100%;
        max-width: 320px;
        font-size: 14.5px;
    }

    .hero-fade {
        background: linear-gradient( to right, #ffffff 0%, #ffffff 42%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0) 68% );
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 340px;
        display: flex;
        align-items: center;
        padding: 0; /* override stray padding from bottom style block */
    }

    .hero-image-bg {
        position: absolute;
        inset: 0;
        height: 100%;
        z-index: 0;
    }

        .hero-image-bg img {
            object-position: center right;
        }

    .hero-fade {
        background: linear-gradient( to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 40%, rgba(255, 255, 255, 0.65) 62%, rgba(255, 255, 255, 0.20) 82%, rgba(255, 255, 255, 0) 100% );
    }

    .hero-text-panel {
        position: relative;
        inset: auto;
        width: 78%;
        max-width: 100%;
        padding: 36px 20px;
        gap: 12px;
        z-index: 2;
        text-align: left; /* magazine look — center only if you prefer */
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        width: 100%;
        max-width: 340px;
        font-size: 14px;
    }

    .hero-btn {
        font-size: 12.5px;
        padding: 9px 18px;
    }
}

@media (max-width: 576px) {
    .hero-fade {
        background: linear-gradient( to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0.75) 75%, rgba(255, 255, 255, 0.35) 100% );
    }

    .hero-text-panel {
        width: 92%;
        padding: 28px 16px;
        gap: 10px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero-tag {
        font-size: 10px;
    }

    .hero-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 400px) {
    .hero-text-panel {
        width: 100%;
        padding: 24px 14px;
    }

    .hero-title {
        font-size: 19px;
    }

    .hero-desc {
        font-size: 12.5px;
    }

    .hero-meta {
        gap: 6px;
    }

    .hero-author,
    .hero-date,
    .hero-read {
        font-size: 11px;
    }

    .hero-avatar {
        width: 22px;
        height: 22px;
    }

    .hero-btn {
        font-size: 11.5px;
        padding: 8px 14px;
    }
}

@media (max-width: 350px) {
    .hero-section {
        min-height: 300px;
    }

    .hero-text-panel {
        padding: 20px 12px;
        gap: 8px;
    }

    .hero-title {
        font-size: 17px;
    }

    .hero-desc {
        font-size: 12px;
    }

    .hero-tag {
        font-size: 9px;
        padding: 3px 8px;
    }

    .hero-btn {
        font-size: 11px;
        padding: 7px 12px;
    }
}

@media (max-width: 300px) {
    .hero-section {
        min-height: 280px;
    }

    .hero-text-panel {
        padding: 16px 10px;
        gap: 6px;
    }

    .hero-title {
        font-size: 15px;
    }

    .hero-desc {
        font-size: 11px;
        line-height: 1.5;
    }

    .hero-meta {
        gap: 4px;
    }

    .hero-avatar {
        width: 18px;
        height: 18px;
    }

    .hero-btn {
        font-size: 10.5px;
        padding: 6px 11px;
    }
}

/* =============================================
   CATEGORY ICONS SECTION
   ============================================= */
.cat-section {
    padding: 16px 20px;
}

.cat-grid {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.cat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

    .cat-item::after {
        content: '';
        position: absolute;
        right: 0;
        top: 16px;
        bottom: 16px;
        width: 1px;
        background: #e8e8e8;
    }

    .cat-item:last-child::after {
        display: none;
    }

    .cat-item:hover {
        background: #fff5f5;
    }

.cat-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cat-icon img {
        width: 46px;
        height: 46px;
        object-fit: contain;
        display: block;
        transition: transform 0.2s ease;
    }

.cat-item:hover .cat-icon img {
    transform: scale(1.08);
}

.cat-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.cat-sub {
    font-size: 11.5px;
    color: #888;
    text-align: center;
    line-height: 1.2;
}

/* Cat animations */
@keyframes catItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes catIconPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18) rotate(-4deg);
    }

    100% {
        transform: scale(1.08) rotate(0deg);
    }
}

.cat-item {
    animation: catItemIn 0.5s ease both;
}

    .cat-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .cat-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .cat-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .cat-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .cat-item:nth-child(5) {
        animation-delay: 0.25s;
    }

    .cat-item:nth-child(6) {
        animation-delay: 0.3s;
    }

    .cat-item:nth-child(7) {
        animation-delay: 0.35s;
    }

    .cat-item:nth-child(8) {
        animation-delay: 0.4s;
    }

    .cat-item:hover .cat-icon img {
        animation: catIconPop 0.4s ease;
    }

    .cat-item:hover .cat-name {
        color: #e8192c;
    }

/* Cat responsive */
@media (max-width: 1600px) {
    .cat-section {
        padding: 16px 18px;
    }
}

@media (max-width: 1200px) {
    .cat-item {
        padding: 18px 8px;
    }

    .cat-icon,
    .cat-icon img {
        width: 40px;
        height: 40px;
    }

    .cat-name {
        font-size: 12.5px;
    }

    .cat-sub {
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .cat-item {
        padding: 16px 6px;
        gap: 6px;
    }

    .cat-icon,
    .cat-icon img {
        width: 36px;
        height: 36px;
    }

    .cat-name {
        font-size: 12px;
    }

    .cat-sub {
        font-size: 10.5px;
    }
}

@media (max-width: 768px) {
    .cat-section {
        padding: 14px 16px;
    }

    .cat-grid {
        flex-wrap: wrap;
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        gap: 10px;
        display: flex; /* keep flex — not CSS grid override fight */
    }

    .cat-item {
        flex: 1 1 calc(33.333% - 10px);
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
        padding: 16px 8px;
    }

        .cat-item::after {
            display: none;
        }
}

@media (max-width: 576px) {
    .cat-grid {
        gap: 8px;
    }

    .cat-item {
        flex: 1 1 calc(50% - 8px);
        padding: 14px 8px;
    }

    .cat-icon,
    .cat-icon img {
        width: 34px;
        height: 34px;
    }

    .cat-name {
        font-size: 11.5px;
    }

    .cat-sub {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .cat-section {
        padding: 12px 12px;
    }

    .cat-grid {
        gap: 6px;
    }

    .cat-item {
        flex: 1 1 calc(50% - 6px);
        padding: 12px 6px;
        gap: 5px;
    }

    .cat-icon,
    .cat-icon img {
        width: 30px;
        height: 30px;
    }

    .cat-name {
        font-size: 11px;
    }

    .cat-sub {
        font-size: 9.5px;
    }
}

@media (max-width: 350px) {
    .cat-item {
        flex: 1 1 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
        padding: 10px 12px;
    }

    .cat-name,
    .cat-sub {
        text-align: left;
    }

    .cat-icon,
    .cat-icon img {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
}

@media (max-width: 300px) {
    .cat-section {
        padding: 10px 8px;
    }

    .cat-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .cat-icon,
    .cat-icon img {
        width: 28px;
        height: 28px;
    }

    .cat-name {
        font-size: 10.5px;
    }

    .cat-sub {
        font-size: 9px;
    }
}

/* =============================================
   FEATURED STORIES SECTION
   ============================================= */
.featured-section {
    margin: 0 auto;
    padding: 22px 35px 0;
}

.featured-main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.featured-left-col {
    flex: 1;
    min-width: 0;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.featured-view-all {
    font-size: 11px;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .featured-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

/* Featured grid 4 (HTML uses this) */
.featured-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.fg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 100%;
}

    .fg-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
        border-color: #f0d0d3;
    }

.fg-badge {
    display: inline-block;
    align-self: flex-start;
    background: #e8192c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 0 0 4px 0;
    text-transform: uppercase;
}

    .fg-badge.cat-poetry {
        background: #7c3aed;
    }

    .fg-badge.cat-novel {
        background: #2563eb;
    }

    .fg-badge.cat-column {
        background: #059669;
    }

    .fg-badge.cat-interview {
        background: #d97706;
    }

    .fg-badge.cat-default {
        background: #e8192c;
    }

.fg-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fg-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fg-card:hover .fg-title {
    color: #e8192c;
}

.fg-excerpt {
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.fg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.fg-author {
    font-size: 11.5px;
    font-weight: 600;
    color: #222;
}

.fg-dot {
    color: #ccc;
    font-size: 10px;
}

.fg-time {
    font-size: 11.5px;
    color: #888;
}

/* Legacy story-card (agar kahin use ho) */
.featured-stories-row {
    display: flex;
    gap: 12px;
}

.story-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

    .story-card:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
        transform: translateY(-2px);
    }

.story-image {
    position: relative;
    width: 100%;
    padding-top: 55%;
    overflow: hidden;
}

    .story-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.story-card:hover .story-image img {
    transform: scale(1.03);
}

.story-content {
    padding: 0 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-badge {
    display: inline-block;
    background: #e8192c;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 20px;
    border-radius: 2px;
    text-transform: uppercase;
    width: fit-content;
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
    margin-left: 10px;
    line-height: 1.3;
    flex-shrink: 0;
}

.story-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 6px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card:hover .story-title {
    color: #e8192c;
}

.story-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.45;
    margin: 0 0 10px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.story-author {
    font-size: 10.5px;
    font-weight: 600;
    color: #222;
}

.story-sep {
    color: #ccc;
    font-size: 8px;
}

.story-read {
    font-size: 10.5px;
    color: #888;
}

/* Top writers */
.featured-right-col {
    flex: 0 0 230px;
    min-width: 0;
}

.tw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tw-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.tw-view-all {
    font-size: 11px;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .tw-view-all:hover {
        color: #c41224;
    }

.tw-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 4px 14px;
}

.tw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .tw-item:last-child {
        border-bottom: none;
    }

    .tw-item:hover .tw-name {
        color: #e8192c;
    }

    .tw-item:hover .tw-avatar {
        transform: scale(1.06);
    }

.tw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.tw-av-1 {
    background: #e8192c;
}

.tw-av-2 {
    background: #2563eb;
}

.tw-av-3 {
    background: #7c3aed;
}

.tw-av-4 {
    background: #059669;
}

.tw-av-5 {
    background: #d97706;
}

.tw-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tw-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tw-count {
    font-size: 10.5px;
    color: #888;
}

.tw-rank {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fbe9eb;
    color: #b23a45;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Featured entrance */
@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fg-card {
    animation: fadeUpSoft 0.5s ease both;
}

    .fg-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .fg-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .fg-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .fg-card:nth-child(4) {
        animation-delay: 0.2s;
    }

.tw-item {
    animation: fadeUpSoft 0.45s ease both;
}

    .tw-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .tw-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .tw-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .tw-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .tw-item:nth-child(5) {
        animation-delay: 0.25s;
    }

/* Featured responsive */
@media (max-width: 1200px) {
    .featured-section {
        padding: 20px 24px 0;
    }

    .featured-right-col {
        flex-basis: 210px;
    }

    .fg-title {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .featured-section {
        padding: 18px 18px 0;
    }

    .featured-main-container {
        gap: 16px;
    }

    .featured-right-col {
        flex-basis: 200px;
    }

    .fg-title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 16px 16px 0;
    }

    .featured-main-container {
        flex-direction: column;
    }

    .featured-left-col,
    .featured-right-col {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .featured-grid-4 {
        grid-template-columns: 1fr;
    }

    .featured-stories-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 14px 12px 0;
    }

    .fg-body {
        padding: 12px 14px 14px;
    }

    .fg-title {
        font-size: 15px;
    }

    .fg-excerpt {
        font-size: 12px;
    }
}

/* =============================================
   LATEST ARTICLES
   ============================================= */
.latest-articles-wrap {
    margin-top: 36px;
    padding-bottom: 8px;
}

.latest-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.latest-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e8192c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.latest-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.latest-view-all {
    font-size: 11px;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .latest-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

.latest-main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
}

    .article-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

.article-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

    .article-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-img .tag,
.article-img [class*="tag-"] {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: #e8192c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.article-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: #e8192c;
}

.article-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    font-size: 11.5px;
    color: #888;
    margin: 0;
    margin-top: auto;
}

    .article-meta .dot {
        margin: 0 4px;
        color: #ccc;
    }

.no-content-msg,
.text-muted {
    font-size: 13px;
    color: #999;
    padding: 12px 0;
}

/* Popular categories sidebar */
.categories-sidebar {
    flex: 0 0 230px;
    min-width: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 16px 10px;
}

.cat-sidebar-hdr h2 {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .categories-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #f2f2f2;
    }

        .categories-list li:last-child {
            border-bottom: none;
        }

    .categories-list .cat-name {
        font-size: 13px;
        font-weight: 600;
        color: #222;
        text-decoration: none;
        transition: color 0.2s ease;
        text-align: left;
    }

        .categories-list .cat-name:hover {
            color: #e8192c;
        }

    .categories-list .pill {
        flex-shrink: 0;
        min-width: 28px;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: #fff5f5;
        color: #b23a45;
        font-size: 11px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.article-card {
    animation: fadeUpSoft 0.5s ease both;
}

    .article-card:nth-child(1) {
        animation-delay: 0.04s;
    }

    .article-card:nth-child(2) {
        animation-delay: 0.08s;
    }

    .article-card:nth-child(3) {
        animation-delay: 0.12s;
    }

    .article-card:nth-child(4) {
        animation-delay: 0.16s;
    }

    .article-card:nth-child(5) {
        animation-delay: 0.2s;
    }

    .article-card:nth-child(6) {
        animation-delay: 0.24s;
    }

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .categories-sidebar {
        flex-basis: 210px;
    }
}

@media (max-width: 992px) {
    .latest-main-container {
        flex-direction: column;
    }

    .articles-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .categories-sidebar {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .latest-articles-wrap {
        margin-top: 28px;
    }

    .latest-main-container {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .categories-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 15px;
    }

    .article-body {
        padding: 12px;
    }
}

/* =============================================
   TRENDING STORIES + POPULAR TAGS
   ============================================= */
.trending-section {
    margin: 0 auto;
    padding: 28px 35px 10px;
}

.trending-main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trending-left-col {
    flex: 1;
    min-width: 0;
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.trending-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.trending-view-all {
    font-size: 11px;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .trending-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

.trending-stories-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.trending-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
}

    .trending-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

.trending-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

    .trending-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.trending-card:hover .trending-image img {
    transform: scale(1.05);
}

.trending-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: #e8192c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.trending-content {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.trending-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.trending-card:hover .trending-card-title {
    color: #e8192c;
}

.trending-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.trending-author,
.trending-read {
    font-size: 11.5px;
    color: #888;
}

.trending-sep {
    color: #ccc;
    font-size: 10px;
}

.trending-right-col {
    flex: 0 0 230px;
    min-width: 0;
}

.tags-header {
    margin-bottom: 12px;
}

.tags-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

    .tag-item:hover {
        background: #fff5f5;
        color: #e8192c;
        border-color: #fcd5d8;
        transform: translateY(-1px);
    }

.tag-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #999;
    background: #fff;
    border-radius: 999px;
    padding: 1px 6px;
}

.tag-item:hover .tag-count {
    color: #e8192c;
}

.tags-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #e8192c;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

    .tags-view-all:hover {
        background: #fff5f5;
    }

.trending-card {
    animation: fadeUpSoft 0.5s ease both;
}

    .trending-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .trending-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .trending-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .trending-card:nth-child(4) {
        animation-delay: 0.2s;
    }

@media (max-width: 1200px) {
    .trending-section {
        padding: 24px 24px 10px;
    }

    .trending-right-col {
        flex-basis: 210px;
    }
}

@media (max-width: 992px) {
    .trending-section {
        padding: 22px 18px 10px;
    }

    .trending-main-container {
        flex-direction: column;
    }

    .trending-right-col {
        width: 100%;
        flex: none;
    }

    .trending-stories-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-section {
        padding: 20px 16px 8px;
    }

    .trending-main-container {
        flex-direction: column;
    }

    .trending-left-col,
    .trending-right-col {
        width: 100%;
        max-width: 100%;
    }

    .trending-stories-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trending-section {
        padding: 16px 12px 6px;
    }

    .trending-card-title {
        font-size: 15px;
    }
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f4f4f3;
    border-radius: 18px;
    padding: 36px 48px;
    width: 100%;
    box-sizing: border-box;
    margin: 24px auto;
    max-width: calc(100% - 70px);
    animation: fadeUpSoft 0.55s ease both;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.newsletter-image {
    flex-shrink: 0;
    width: 130px;
    height: 100px;
}

    .newsletter-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
    }

.newsletter-section:hover .newsletter-image img {
    transform: translateY(-3px) scale(1.03);
}

.newsletter-text {
    flex: 1;
    min-width: 220px;
}

    .newsletter-text h2 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 26px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }

    .newsletter-text p {
        font-size: 14px;
        color: #6b6b6b;
        margin: 0;
        line-height: 1.5;
        max-width: 380px;
    }

.newsletter-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.newsletter-inbtn,
.v-arrow {
    display: contents;
}

.newsletter-input-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .newsletter-input-row:focus-within {
        border-color: #e8192c;
        box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
    }

.newsletter-section .newsletter-input {
    border: none !important;
    outline: none !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: none !important;
    height: auto !important;
    color: #333 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    flex: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter-input::placeholder {
    color: #a3a3a3;
    opacity: 1;
}

.newsletter-section .newsletter-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #b3191c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    width: auto !important;
    flex: none !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter-btn:hover {
    background: #971415 !important;
}

.newsletter-btn:active {
    transform: scale(0.98);
}

.newsletter-note {
    font-size: 12px;
    color: #8a8a8a;
    padding-left: 4px;
}

/* =============================================
   EDITOR'S PICKS SECTION
   ============================================= */
.epk-section,
.epk-section * {
    box-sizing: border-box;
}

.epk-section {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    padding: 28px 0;
    width: 100%;
}

.epk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.epk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.epk-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}

.epk-viewall {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .epk-viewall:hover {
        color: #1a1a1a;
        transform: translateX(2px);
    }

.epk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.epk-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: #f5f5f4;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    animation: epkCardIn 0.5s ease both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .epk-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .epk-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .epk-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .epk-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .epk-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

        .epk-card:hover .epk-card-title {
            color: #b3191c;
        }

.epk-card-img {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e7;
}

    .epk-card-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.epk-card:hover .epk-card-img img {
    transform: scale(1.06);
}

.epk-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.epk-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epk-card-meta {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0;
}

@keyframes epkCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nlFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter + EPK responsive */
@media (max-width: 992px) {
    .newsletter-section {
        max-width: calc(100% - 36px);
        padding: 28px 28px;
    }

    .epk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 28px 24px;
        max-width: calc(100% - 32px);
        margin: 20px auto;
    }

    .newsletter-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 24px;
        flex-direction: column;
    }

    .newsletter-image {
        width: 100px;
    }

    .newsletter-text {
        text-align: center;
        margin-bottom: 0;
    }

        .newsletter-text h2 {
            font-size: 22px;
        }

        .newsletter-text p {
            font-size: 13px;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

    .newsletter-form {
        align-items: center;
        width: 100%;
    }

    .newsletter-input-row {
        width: 100%;
        max-width: 380px;
    }

    .newsletter-section .newsletter-input {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .epk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .epk-card {
        flex-direction: column;
    }

    .epk-card-img {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 22px 16px;
        border-radius: 14px;
        max-width: calc(100% - 24px);
    }

    .newsletter-input-row {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-section .newsletter-input {
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .newsletter-section .newsletter-btn {
        width: 100% !important;
        border-radius: 0 0 8px 8px !important;
    }

    .epk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .newsletter-section {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .newsletter-image {
        width: 80px;
        height: 70px;
    }

    .newsletter-text h2 {
        font-size: 20px;
    }

    .newsletter-text p {
        font-size: 12px;
    }

    .newsletter-section .newsletter-input {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .newsletter-section .newsletter-btn {
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .newsletter-note {
        font-size: 11px;
    }

    .epk-section {
        padding: 20px 0;
    }

    .epk-container {
        padding: 0 16px;
    }

    .epk-heading {
        font-size: 12px;
    }

    .epk-viewall {
        font-size: 12px;
    }

    .epk-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .epk-card {
        padding: 12px;
    }

    .epk-card-img {
        height: 120px;
    }

    .epk-card-title {
        font-size: 14px;
    }

    .epk-card-meta {
        font-size: 11px;
    }
}

@media (max-width: 375px) {
    .newsletter-section {
        padding: 20px 16px;
    }

    .newsletter-image {
        width: 70px;
        height: 60px;
    }

    .newsletter-text h2 {
        font-size: 19px;
    }

    .newsletter-text p {
        font-size: 11.5px;
    }

    .newsletter-section .newsletter-input {
        padding: 11px 12px !important;
        font-size: 12.5px !important;
    }

    .newsletter-section .newsletter-btn {
        padding: 11px 16px !important;
        font-size: 12.5px !important;
    }

    .newsletter-note {
        font-size: 10.5px;
    }

    .epk-section {
        padding: 18px 0;
    }

    .epk-container {
        padding: 0 14px;
    }

    .epk-heading {
        font-size: 11.5px;
    }

    .epk-viewall {
        font-size: 11.5px;
    }

    .epk-card {
        padding: 10px;
    }

    .epk-card-img {
        height: 110px;
    }

    .epk-card-title {
        font-size: 13.5px;
    }

    .epk-card-meta {
        font-size: 10.5px;
    }
}

@media (max-width: 320px) {
    .newsletter-section {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .newsletter-container {
        gap: 16px;
    }

    .newsletter-image {
        width: 60px;
        height: 50px;
    }

    .newsletter-text h2 {
        font-size: 18px;
    }

    .newsletter-text p {
        font-size: 11px;
    }

    .newsletter-input-row {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-section .newsletter-input {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .newsletter-section .newsletter-btn {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        border-radius: 0 0 8px 8px !important;
    }

    .newsletter-note {
        font-size: 10px;
    }

    .epk-section {
        padding: 16px 0;
    }

    .epk-container {
        padding: 0 12px;
    }

    .epk-header {
        margin-bottom: 16px;
    }

    .epk-heading {
        font-size: 11px;
    }

    .epk-viewall {
        font-size: 11px;
    }

    .epk-card {
        padding: 10px;
    }

    .epk-card-img {
        height: 100px;
    }

    .epk-card-title {
        font-size: 13px;
    }

    .epk-card-meta {
        font-size: 10px;
    }
}









































/* =============================================
   NEW ERA MAGAZINE — HOME + SHARED CSS (PART 2)
   Featured · Latest · Trending · Newsletter · EPK
   Footer · Subscribe · Classic · Dark · Nav actions · Live search
   Light animations (transform/opacity) — no hang
   ============================================= */

/* ---------- Shared / Performance ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a.story-card,
a.article-card,
a.trending-card,
a.epk-card,
a.tw-item,
a.fg-card {
    text-decoration: none;
    color: inherit;
}

/* Shared soft entrance */
@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes storyCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twItemIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rankPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tagPop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pillPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes tagItemIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerColIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerBorderIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   FEATURED — extra responsive + animations
   (works with previous featured/fg-card CSS)
   ============================================= */
@media (max-width: 1199px) {
    .featured-right-col {
        flex: 0 0 200px;
    }

    .featured-stories-row {
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .featured-main-container {
        flex-direction: column;
    }

    .featured-right-col {
        width: 100%;
        flex: none;
    }

    .featured-stories-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tw-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .tw-item {
        width: calc(50% - 4px);
        border-bottom: none;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .featured-stories-row {
        grid-template-columns: 1fr;
    }

    .featured-grid-4 {
        grid-template-columns: 1fr;
    }

    .featured-section {
        padding: 20px 16px 0;
    }

    .tw-list {
        flex-direction: column;
    }

    .tw-item {
        width: 100%;
    }
}

/* Featured animations */
.story-card {
    animation: storyCardIn 0.5s ease both;
}

    .story-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .story-card:nth-child(2) {
        animation-delay: 0.12s;
    }

    .story-card:nth-child(3) {
        animation-delay: 0.19s;
    }

    .story-card:nth-child(4) {
        animation-delay: 0.26s;
    }

.story-badge {
    animation: badgePop 0.35s ease 0.15s both;
}

.tw-item {
    animation: twItemIn 0.4s ease both;
}

    .tw-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .tw-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .tw-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .tw-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .tw-item:nth-child(5) {
        animation-delay: 0.25s;
    }

.tw-avatar {
    transition: transform 0.2s ease;
}

.tw-item:hover .tw-avatar {
    transform: scale(1.08);
}

.tw-rank {
    transition: transform 0.2s ease;
}

.tw-item:hover .tw-rank {
    animation: rankPulse 0.5s ease;
}

.featured-view-all {
    transition: color 0.2s ease, transform 0.2s ease;
}

    .featured-view-all svg,
    .featured-view-all i {
        transition: transform 0.2s ease;
    }

    .featured-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

        .featured-view-all:hover svg,
        .featured-view-all:hover i {
            transform: translateX(3px);
        }

/* Featured extended breakpoints */
@media (max-width: 1600px) {
    .featured-section {
        padding: 22px 28px 0;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 18px 12px 0;
    }

    .story-title {
        font-size: 16px;
    }

    .story-desc {
        font-size: 10.5px;
    }

    .story-badge {
        font-size: 8px;
        padding: 4px 14px;
        margin-bottom: 14px;
    }

    .fg-title {
        font-size: 15px;
    }

    .fg-excerpt {
        font-size: 12px;
    }

    .tw-item {
        padding: 8px;
        gap: 8px;
    }

    .tw-avatar {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .tw-name {
        font-size: 12px;
    }

    .tw-count {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .featured-title,
    .tw-title {
        font-size: 11px;
    }

    .story-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }

    .story-content {
        padding: 0 10px 12px;
    }

    .story-meta {
        gap: 4px;
    }

    .story-author,
    .story-read {
        font-size: 10px;
    }

    .tw-item {
        width: 100%;
        border: 1px solid #eee;
        border-radius: 6px;
    }

    .tw-list {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 350px) {
    .featured-section {
        padding: 16px 10px 0;
    }

    .story-title {
        font-size: 14px;
    }

    .story-desc {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .story-badge {
        font-size: 7.5px;
        padding: 3px 10px;
        margin-bottom: 10px;
        margin-left: 8px;
    }

    .tw-avatar {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .tw-name {
        font-size: 11px;
    }

    .tw-count {
        font-size: 9px;
    }

    .tw-rank {
        width: 17px;
        height: 17px;
        font-size: 9px;
    }
}

@media (max-width: 300px) {
    .featured-section {
        padding: 14px 8px 0;
    }

    .featured-stories-row {
        gap: 8px;
    }

    .story-title {
        font-size: 13px;
    }

    .story-content {
        padding: 0 8px 10px;
    }

    .tw-item {
        padding: 6px;
        gap: 6px;
    }

    .tw-avatar {
        width: 24px;
        height: 24px;
        font-size: 8.5px;
    }

    .tw-name {
        font-size: 10.5px;
    }

    .tw-count {
        font-size: 8.5px;
    }
}

/* =============================================
   LATEST ARTICLES SECTION
   ============================================= */
.latest-section,
.latest-articles-wrap {
    margin: 0 auto;
    padding: 22px 35px 0;
}

.latest-main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.latest-left-col {
    flex: 1;
    min-width: 0;
}

.latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.latest-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e8192c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.latest-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
}

.latest-view-all {
    font-size: 11px;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .latest-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

/* Article cards grid
   HTML sometimes forces 3-col inline — CSS below still controls breakpoints */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.article-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
    animation: cardFadeUp 0.5s ease both;
}

    .article-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .article-card:nth-child(2) {
        animation-delay: 0.11s;
    }

    .article-card:nth-child(3) {
        animation-delay: 0.17s;
    }

    .article-card:nth-child(4) {
        animation-delay: 0.23s;
    }

    .article-card:nth-child(5) {
        animation-delay: 0.29s;
    }

    .article-card:nth-child(6) {
        animation-delay: 0.35s;
    }

    .article-card:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
        transform: translateY(-2px);
    }

.article-img {
    position: relative;
    width: 100%;
    padding-top: 55%;
    overflow: hidden;
    background: #f5f5f5;
}

    .article-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.article-card:hover .article-img img {
    transform: scale(1.03);
}

/* Tag badges */
.tag,
.article-img .tag,
.article-img [class*="tag-"] {
    display: inline-block;
    background: #e8192c;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    width: fit-content;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 5;
    line-height: 1.3;
    margin: 0;
    animation: tagPop 0.35s ease 0.15s both;
}

.article-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title {
    color: #e8192c;
}

.article-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.45;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 10.5px;
    color: #888;
    margin: 0;
    margin-top: auto;
}

    .article-meta .dot {
        margin: 0 3px;
        color: #ccc;
    }

.no-content-msg,
.text-muted {
    font-size: 13px;
    color: #999;
    padding: 12px 0;
}

/* Popular categories sidebar */
.categories-sidebar {
    flex: 0 0 230px;
    min-width: 0;
    padding-top: 2px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 16px 10px;
}

.cat-sidebar-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .cat-sidebar-hdr h2 {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.8px;
        margin: 0;
        color: #111;
        text-transform: uppercase;
    }

.cat-view-all-lnk {
    font-size: 11px;
    font-weight: 600;
    color: #e8192c;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .cat-view-all-lnk:hover {
        color: #c41224;
    }

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .categories-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid #f2f2f2;
        cursor: pointer;
        transition: background 0.15s ease;
    }

        .categories-list li:last-child {
            border-bottom: none;
        }

        .categories-list li:hover .cat-name {
            color: #e8192c;
        }

        .categories-list li:hover .pill {
            animation: pillPulse 0.4s ease;
        }

    .categories-list .cat-name,
    .cat-name {
        font-size: 13px;
        color: #333;
        font-weight: 500;
        transition: color 0.2s ease;
        text-align: left;
    }

a.cat-name {
    text-decoration: none;
    color: inherit;
}

.pill {
    background: #fbe9eb;
    color: #b23a45;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    min-width: 30px;
    text-align: center;
    line-height: 1.8;
    flex-shrink: 0;
}

/* Latest responsive */
@media (max-width: 1199px) {
    .categories-sidebar {
        flex: 0 0 200px;
    }

    .articles-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .latest-main-container {
        flex-direction: column;
    }

    .categories-sidebar {
        width: 100%;
        flex: none;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr !important;
    }

    .latest-section,
    .latest-articles-wrap {
        padding: 20px 16px 28px;
    }
}

/* =============================================
   TRENDING STORIES + POPULAR TAGS
   ============================================= */
.trending-section {
    margin: 0 auto;
    padding: 22px 35px 0;
}

.trending-main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trending-left-col {
    flex: 1;
    min-width: 0;
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.trending-title {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.6px;
    margin: 0;
    text-transform: uppercase;
}

.trending-view-all {
    font-size: 11.5px;
    font-weight: 600;
    color: #e8192c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .trending-view-all:hover {
        color: #c41224;
        transform: translateX(2px);
    }

    .trending-view-all svg,
    .trending-view-all i {
        transition: transform 0.2s ease;
    }

    .trending-view-all:hover svg,
    .trending-view-all:hover i {
        transform: translateX(3px);
    }

.trending-stories-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.trending-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    height: 100%;
    animation: cardFadeUp 0.5s ease both;
}

    .trending-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .trending-card:nth-child(2) {
        animation-delay: 0.12s;
    }

    .trending-card:nth-child(3) {
        animation-delay: 0.19s;
    }

    .trending-card:nth-child(4) {
        animation-delay: 0.26s;
    }

    .trending-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
        border-color: #ddd;
    }

.trending-image {
    position: relative;
    width: 100%;
    padding-top: 55%;
    overflow: hidden;
    background: #f5f5f5;
}

    .trending-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.trending-card:hover .trending-image img {
    transform: scale(1.03);
}

.trending-content {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.trending-badge {
    display: inline-block;
    background: #e8192c;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    width: fit-content;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 5;
    line-height: 1.3;
    margin: 0;
    animation: tagPop 0.35s ease 0.15s both;
}

.trending-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card:hover .trending-card-title {
    color: #e8192c;
}

.trending-desc {
    font-size: 11.5px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    flex-wrap: wrap;
}

.trending-author {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.trending-sep {
    color: #ccc;
    font-size: 8px;
    margin: 0;
}

.trending-read {
    font-size: 11px;
    color: #777;
    font-weight: 400;
}

/* Popular tags */
.trending-right-col {
    flex: 0 0 252px;
    min-width: 0;
    min-height: auto;
}

.tags-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8192c;
}

.tags-title {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .tags-title::before {
        content: "#";
        color: #e8192c;
        font-size: 16px;
        font-weight: 900;
    }

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: tagItemIn 0.4s ease both;
}

    .tag-item:nth-child(1) {
        animation-delay: 0.03s;
    }

    .tag-item:nth-child(2) {
        animation-delay: 0.06s;
    }

    .tag-item:nth-child(3) {
        animation-delay: 0.09s;
    }

    .tag-item:nth-child(4) {
        animation-delay: 0.12s;
    }

    .tag-item:nth-child(5) {
        animation-delay: 0.15s;
    }

    .tag-item:nth-child(6) {
        animation-delay: 0.18s;
    }

    .tag-item:nth-child(7) {
        animation-delay: 0.21s;
    }

    .tag-item:nth-child(8) {
        animation-delay: 0.24s;
    }

    /* Shine without continuous GPU thrash */
    .tag-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(232, 25, 44, 0.12), transparent);
        transition: left 0.45s ease;
        pointer-events: none;
    }

    .tag-item:hover::before {
        left: 100%;
    }

    .tag-item:hover {
        background: linear-gradient(135deg, #e8192c 0%, #c01420 100%);
        color: #fff;
        border-color: #e8192c;
        box-shadow: 0 4px 12px rgba(232, 25, 44, 0.28);
        transform: translateY(-2px);
    }

.tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: rgba(232, 25, 44, 0.1);
    color: #e8192c;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tags-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 16px;
    background: transparent;
    color: #e8192c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px dashed #e8192c;
    border-radius: 24px;
    transition: background 0.25s ease, color 0.25s ease, border-style 0.25s ease, transform 0.2s ease;
    width: 100%;
}

    .tags-view-all:hover {
        background: #e8192c;
        color: #fff;
        border-style: solid;
        transform: translateY(-1px);
    }

/* Trending responsive */
@media (max-width: 1199px) {
    .trending-right-col {
        flex: 0 0 220px;
    }

    .trending-stories-row {
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .trending-main-container {
        flex-direction: column;
    }

    .trending-right-col {
        width: 100%;
        flex: none;
    }

    .trending-stories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .trending-stories-row {
        grid-template-columns: 1fr;
    }

    .trending-section {
        padding: 24px 16px 32px;
    }
}

/* Latest + Trending extended breakpoints */
@media (max-width: 1600px) {
    .latest-section,
    .latest-articles-wrap,
    .trending-section {
        padding: 22px 28px 0;
    }
}

@media (max-width: 480px) {
    .latest-section,
    .latest-articles-wrap {
        padding: 18px 12px 24px;
    }

    .trending-section {
        padding: 20px 12px 28px;
    }

    .article-title,
    .trending-card-title {
        font-size: 16px;
    }

    .article-desc,
    .trending-desc {
        font-size: 10.5px;
    }

    .tag,
    .trending-badge {
        font-size: 8px;
        padding: 4px 10px;
    }

    .categories-list li {
        padding: 8px 0;
    }

    .categories-list .cat-name,
    .cat-name {
        font-size: 12px;
    }

    .pill {
        font-size: 10px;
        padding: 2px 8px;
    }

    .tag-item {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 400px) {
    .latest-title,
    .cat-sidebar-hdr h2,
    .trending-title,
    .tags-title {
        font-size: 11px;
    }

    .article-title,
    .trending-card-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }

    .article-body,
    .trending-content {
        padding: 10px 10px 12px;
    }

    .article-meta,
    .trending-author,
    .trending-read {
        font-size: 10px;
    }

    .tag-item {
        font-size: 10.5px;
        padding: 5px 11px;
    }
}

@media (max-width: 350px) {
    .latest-section,
    .latest-articles-wrap {
        padding: 16px 10px 20px;
    }

    .trending-section {
        padding: 18px 10px 24px;
    }

    .article-title,
    .trending-card-title {
        font-size: 14px;
    }

    .article-desc,
    .trending-desc {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .tag,
    .trending-badge {
        font-size: 7.5px;
        padding: 3px 8px;
    }

    .categories-list .cat-name,
    .cat-name {
        font-size: 11.5px;
    }

    .pill {
        font-size: 9px;
        min-width: 26px;
    }

    .tag-item {
        font-size: 10px;
        padding: 4px 10px;
    }
}

@media (max-width: 300px) {
    .latest-section,
    .latest-articles-wrap {
        padding: 14px 8px 18px;
    }

    .trending-section {
        padding: 16px 8px 20px;
    }

    .articles-grid,
    .trending-stories-row {
        gap: 8px;
    }

    .article-title,
    .trending-card-title {
        font-size: 13px;
    }

    .article-body,
    .trending-content {
        padding: 8px 8px 10px;
    }

    .categories-list .cat-name,
    .cat-name {
        font-size: 11px;
    }

    .pill {
        font-size: 8.5px;
        min-width: 24px;
        padding: 2px 6px;
    }

    .tag-item {
        font-size: 9.5px;
        padding: 4px 8px;
    }

    .trending-right-col {
        min-height: auto;
    }
}

/* =============================================
   NEWSLETTER SECTION (New Era Card)
   ============================================= */
.newsletter-section {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f4f4f3;
    border-radius: 18px;
    padding: 50px 48px;
    width: 100%;
    box-sizing: border-box;
    margin: 28px auto;
    max-width: calc(100% - 70px);
    animation: fadeUpSoft 0.55s ease both;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.newsletter-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

    .newsletter-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
        display: block;
        transition: transform 0.3s ease;
    }

.newsletter-section:hover .newsletter-image img {
    transform: translateY(-3px) scale(1.03);
}

.newsletter-text {
    flex: 1;
    min-width: 220px;
}

    .newsletter-text h2 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 30px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }

    .newsletter-text p {
        font-size: 14px;
        color: #6b6b6b;
        margin: 0;
        line-height: 1.5;
        max-width: 380px;
    }

.newsletter-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.newsletter-inbtn,
.v-arrow {
    display: contents;
}

.newsletter-input-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .newsletter-input-row:focus-within {
        border-color: #e8192c;
        box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
    }

.newsletter-section .newsletter-input {
    border: none !important;
    outline: none !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: none !important;
    height: auto !important;
    color: #333 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    flex: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter-input::placeholder {
    color: #a3a3a3;
    opacity: 1;
}

.newsletter-section .newsletter-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #b3191c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    width: auto !important;
    flex: none !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter-btn:hover {
    background: #971415 !important;
}

.newsletter-btn:active {
    transform: scale(0.98);
}

.newsletter-note {
    font-size: 12px;
    color: #8a8a8a;
    padding-left: 4px;
}

@media (max-width: 900px) {
    .newsletter-section {
        padding: 36px 28px;
        max-width: calc(100% - 36px);
    }

    .newsletter-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 24px;
        flex-direction: column;
    }

    .newsletter-text {
        text-align: center;
    }

        .newsletter-text p {
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

    .newsletter-form {
        align-items: center;
        width: 100%;
    }

    .newsletter-input-row {
        width: 100%;
        max-width: 420px;
    }

    .newsletter-section .newsletter-input {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 24px 16px;
        border-radius: 14px;
        max-width: calc(100% - 24px);
        margin: 20px auto;
    }

    .newsletter-image {
        width: 140px;
        height: 110px;
    }

    .newsletter-text h2 {
        font-size: 22px;
    }

    .newsletter-input-row {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-section .newsletter-input {
        width: 100% !important;
        border-radius: 8px 8px 0 0 !important;
        border-bottom: 1px solid #eee !important;
    }

    .newsletter-section .newsletter-btn {
        width: 100% !important;
        border-radius: 0 0 8px 8px !important;
    }
}

/* =============================================
   EDITOR'S PICKS
   ============================================= */
.epk-section,
.epk-section * {
    box-sizing: border-box;
}

.epk-section {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    padding: 28px 0;
    width: 100%;
}

.epk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.epk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-left: 0;
    gap: 12px;
}

.epk-heading {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}

.epk-viewall {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .epk-viewall:hover {
        color: #1a1a1a;
        transform: translateX(2px);
    }

.epk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.epk-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: #f5f5f4;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cardFadeUp 0.5s ease both;
}

    .epk-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .epk-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .epk-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .epk-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .epk-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

        .epk-card:hover .epk-card-title {
            color: #b3191c;
        }

.epk-card-img {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e7;
}

    .epk-card-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.epk-card:hover .epk-card-img img {
    transform: scale(1.06);
}

.epk-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.epk-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epk-card-meta {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0;
}

@media (max-width: 900px) {
    .epk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .epk-card {
        flex-direction: column;
    }

    .epk-card-img {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 520px) {
    .epk-grid {
        grid-template-columns: 1fr;
    }

    .epk-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .epk-container {
        padding: 0 14px;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    margin-top: auto;
}

.footer-main {
    padding: 0 0 20px;
}

.footer-border {
    background-color: #F9F9F9;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    padding: 35px 26px;
    margin: 28px auto;
    max-width: 1270px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    animation: footerBorderIn 0.6s ease both;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 70px;
}

.footer-brand {
    flex: 0 0 226px;
    min-width: 0;
    animation: footerColIn 0.5s ease 0.05s both;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-logo-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.footer-logo-new {
    font-family: 'Antonio', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #e8192c;
    letter-spacing: 0.5px;
}

.footer-logo-mag {
    font-family: 'Antonio', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #111;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

    .footer-social a {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ccc;
        border-radius: 3px;
        color: #444;
        font-size: 11px;
        transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
        text-decoration: none;
    }

        .footer-social a:hover {
            border-color: #e8192c;
            color: #e8192c;
            transform: translateY(-2px);
        }

.footer-cols {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-col {
    flex: 1;
    min-width: 0;
    animation: footerColIn 0.5s ease both;
}

    .footer-col:nth-of-type(1) {
        animation-delay: 0.1s;
    }

    .footer-col:nth-of-type(2) {
        animation-delay: 0.15s;
    }

    .footer-col:nth-of-type(3) {
        animation-delay: 0.2s;
    }

    .footer-col:nth-of-type(4) {
        animation-delay: 0.25s;
    }

.footer-heading {
    font-size: 11.5px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .footer-col ul li a {
        font-size: 12.5px;
        color: #555;
        text-decoration: none;
        position: relative;
        transition: color 0.2s ease, padding-left 0.2s ease;
        line-height: 1.4;
        display: inline-block;
    }

        .footer-col ul li a:hover {
            color: #e8192c;
            padding-left: 3px;
        }

/* Footer newsletter (both class spellings kept) */
.footer-newsletterr,
.footer-newsletter {
    flex: 0 0 200px;
    animation: footerColIn 0.5s ease 0.3s both;
}

.newsletterr-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.newsletterr-form {
    display: flex;
    align-items: stretch;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.25s ease;
    background: #fff;
}

    .newsletterr-form:focus-within {
        box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
    }

    .newsletterr-form input {
        border: none;
        outline: none;
        background: #fff;
        padding: 6px 10px;
        font-size: 12px;
        color: #333;
        flex: 1;
        width: 0;
        min-width: 0;
    }

        .newsletterr-form input::placeholder {
            color: #aaa;
            font-size: 12px;
        }

    .newsletterr-form button,
    .newsletterr-subscribe {
        border: none;
        background: #e8192c;
        color: #fff;
        padding: 0 12px;
        cursor: pointer;
        font-size: 12px;
        transition: background 0.2s ease, transform 0.2s ease;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

        .newsletterr-form button:hover,
        .newsletterr-subscribe:hover {
            background: #c41224;
            color: #fff;
            transform: translateX(1px);
        }

.newsletterr-note {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
    background: #f9f9f9;
}

    .footer-bottom .footer-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .footer-bottom span {
        font-size: 12px;
        color: #777;
    }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .footer-bottom-links a {
        font-size: 12px;
        color: #555;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-bottom-links a:hover {
            color: #e8192c;
        }

.footer-bottom-sep {
    color: #bbb;
    font-size: 11px;
}

/* Bootstrap focus override */
.btn:focus,
.btn:active:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 25, 44, 0.25);
}

/* Footer responsive */
@media (max-width: 1600px) {
    .footer-inner {
        padding: 0 20px;
        gap: 50px;
    }
}

@media (max-width: 1200px) {
    .footer-inner {
        gap: 36px;
    }

    .footer-brand {
        flex: 0 0 190px;
    }

    .footer-newsletterr,
    .footer-newsletter {
        flex: 0 0 180px;
    }
}

@media (max-width: 991px) {
    .footer-inner {
        flex-wrap: wrap;
        gap: 28px;
    }

    .footer-brand {
        flex: 0 0 100%;
    }

    .footer-newsletterr,
    .footer-newsletter {
        flex: 0 0 100%;
    }
}

@media (max-width: 690px) {
    .logo-new,
    .logo-mag {
        font-size: 20px;
    }

    .search-box {
        display: none;
    }

    .signin-btn {
        font-size: 11.5px;
        padding: 6px 12px;
    }

    .footer-inner {
        gap: 20px;
    }

    .footer-col {
        flex: 0 0 calc(50% - 10px);
    }

    .footer-bottom .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-border {
        padding: 24px 16px;
        border-radius: 12px;
        margin: 18px auto;
    }

    .footer-inner {
        padding: 0 4px;
        gap: 16px;
    }

    .footer-col {
        flex: 0 0 100%;
    }

    .footer-logo-new,
    .footer-logo-mag {
        font-size: 22px;
    }

    .footer-desc,
    .newsletterr-desc {
        font-size: 11.5px;
    }

    .footer-newsletterr,
    .footer-newsletter {
        flex: 0 0 100%;
    }
}

@media (max-width: 400px) {
    .footer-border {
        padding: 20px 12px;
    }

    .footer-social a {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .footer-heading {
        font-size: 11px;
    }

    .footer-col ul li a {
        font-size: 12px;
    }

    .newsletterr-form input,
    .newsletterr-form button {
        font-size: 11.5px;
    }

    .footer-bottom span,
    .footer-bottom-links a {
        font-size: 11px;
    }
}

@media (max-width: 350px) {
    .footer-border {
        padding: 18px 10px;
        border-radius: 10px;
    }

    .footer-inner {
        gap: 14px;
    }

    .footer-logo-new,
    .footer-logo-mag {
        font-size: 19px;
    }

    .footer-desc,
    .newsletterr-desc {
        font-size: 11px;
    }

    .footer-social a {
        width: 22px;
        height: 22px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 300px) {
    .footer-border {
        padding: 14px 8px;
        margin: 12px auto;
    }

    .footer-inner {
        padding: 0;
        gap: 12px;
    }

    .footer-logo-new,
    .footer-logo-mag {
        font-size: 17px;
    }

    .footer-desc,
    .newsletterr-desc {
        font-size: 10.5px;
    }

    .footer-heading {
        font-size: 10px;
    }

    .footer-col ul li a {
        font-size: 11px;
    }

    .footer-social a {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .newsletterr-form input {
        font-size: 11px;
        padding: 5px 8px;
    }

    .newsletterr-form button {
        font-size: 11px;
        padding: 0 8px;
    }

    .footer-bottom span,
    .footer-bottom-links a,
    .footer-bottom-sep {
        font-size: 10px;
    }
}

/* =============================================
   SUBSCRIBE POPUP + CLASSIC COLLECTION
   ============================================= */
.subscribe-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

    .subscribe-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

.subscribe-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 20, 19, .68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.subscribe-page {
    position: relative;
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
    transform: translateY(18px) scale(.98);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.is-open .subscribe-page {
    transform: translateY(0) scale(1);
}

.subscribe-page__close {
    position: absolute;
    z-index: 2;
    right: 15px;
    top: 15px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

    .subscribe-page__close:hover {
        background: rgba(0, 0, 0, .14);
        transform: scale(1.05);
    }

.subscribe-page__art {
    min-height: 470px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #4b1720, #d22437 65%, #f0545d);
}

    .subscribe-page__art:before,
    .subscribe-page__art:after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255, 255, 255, .23);
        border-radius: 50%;
    }

    .subscribe-page__art:before {
        width: 340px;
        height: 340px;
    }

    .subscribe-page__art:after {
        width: 490px;
        height: 490px;
    }

    .subscribe-page__art i {
        font-size: 116px;
        z-index: 1;
        transform: rotate(-21deg);
    }

.subscribe-page__sun {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    top: 18%;
    right: 18%;
}

.subscribe-page__line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, .38);
    width: 180px;
}

.subscribe-page__line--one {
    top: 26%;
    left: -20px;
    transform: rotate(-35deg);
}

.subscribe-page__line--two {
    right: -30px;
    bottom: 22%;
    transform: rotate(-35deg);
}

.subscribe-page__content {
    padding: 70px 58px 48px;
    align-self: center;
}

.subscribe-page__eyebrow,
.classic-kicker {
    margin: 0 0 14px;
    color: #d92336;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.subscribe-page h2,
.classic-page h1,
.classic-page h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #211b1a;
}

.subscribe-page h2 {
    font-size: clamp(33px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 17px;
}

    .subscribe-page h2 em,
    .classic-page h1 em,
    .classic-page h2 em {
        color: #dc2134;
        font-style: italic;
    }

.subscribe-page__content > p:not(.subscribe-page__eyebrow) {
    color: #6e6562;
    line-height: 1.65;
    margin: 0 0 26px;
}

.subscribe-page__form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscribe-page__form > div {
    display: flex;
    border: 1px solid #ddd3cf;
    border-radius: 7px;
    overflow: hidden;
}

.subscribe-page__form input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 14px 13px;
    font: inherit;
    outline: 0;
}

.subscribe-page__form button,
.classic-button {
    border: 0;
    background: #df2034;
    color: #fff;
    padding: 13px 17px;
    font: 700 13px Inter, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform .2s ease, background .2s ease;
}

    .subscribe-page__form button:hover,
    .classic-button:hover {
        background: #b91729;
        transform: translateY(-2px);
    }

.subscribe-page__form small {
    display: block;
    color: #9a918e;
    font-size: 10.5px;
    line-height: 1.5;
    margin-top: 9px;
}

.subscribe-page__benefits {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 27px;
    color: #625a57;
    font-size: 11px;
    font-weight: 700;
}

    .subscribe-page__benefits i {
        color: #df2034;
    }

.subscribe-page__success {
    padding: 20px 0;
    color: #23784c;
}

    .subscribe-page__success i {
        font-size: 28px;
        margin-right: 9px;
    }

    .subscribe-page__success span {
        display: block;
        margin-top: 7px;
        font-size: 13px;
        color: #6e6562;
    }

/* Classic page */
.classic-page {
    --classic-red: #d92336;
    --classic-ink: #211b1a;
    --classic-muted: #706966;
    --classic-line: #e7dfda;
    color: var(--classic-ink);
    background: #fff;
    overflow: hidden;
}

.classic-hero {
    padding: 52px 24px 70px;
    background: linear-gradient(120deg, #fff 0%, #fbf4ee 100%);
}

.classic-hero__inner,
.classic-library {
    max-width: 1190px;
    margin: auto;
}

.classic-crumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #8d8581;
    margin-bottom: 55px;
}

    .classic-crumb a {
        color: #8d8581;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .classic-crumb a:hover {
            color: var(--classic-red);
        }

    .classic-crumb i {
        font-size: 9px;
    }

.classic-hero__grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 70px;
}

.classic-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .classic-kicker span {
        width: 28px;
        height: 2px;
        background: var(--classic-red);
    }

.classic-page h1 {
    font-size: clamp(42px, 6vw, 73px);
    line-height: .99;
    letter-spacing: -.035em;
    margin: 0 0 22px;
    max-width: 680px;
}

.classic-hero__copy > p:not(.classic-kicker) {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--classic-muted);
    margin: 0 0 31px;
}

.classic-button {
    border-radius: 4px;
    padding: 15px 21px;
}

.classic-hero__book {
    width: 230px;
    height: 335px;
    margin: auto;
    position: relative;
    filter: drop-shadow(18px 22px 18px rgba(42, 24, 22, .22));
    transform: rotate(5deg);
    transition: transform .35s ease;
}

    .classic-hero__book:hover {
        transform: rotate(0) translateY(-7px);
    }

.classic-hero__cover {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    color: #f6eecb;
    background: linear-gradient(135deg, #6d1623, #b12032 60%, #7c1725);
    border: 7px solid #ebd69b;
    box-shadow: inset 0 0 0 2px rgba(246, 238, 203, .55);
}

    .classic-hero__cover:before {
        content: "";
        position: absolute;
        inset: 13px;
        border: 1px solid rgba(246, 238, 203, .5);
    }

    .classic-hero__cover > * {
        position: relative;
        z-index: 1;
    }

    .classic-hero__cover small {
        font: 700 9px Inter, Arial, sans-serif;
        letter-spacing: .12em;
    }

    .classic-hero__cover strong {
        font: 700 35px/1 'Playfair Display', Georgia, serif;
        margin: auto 0;
        text-align: center;
    }

        .classic-hero__cover strong em {
            font-size: 24px;
        }

    .classic-hero__cover span {
        text-align: center;
        font: italic 13px 'Playfair Display', Georgia, serif;
    }

.classic-hero__spine {
    position: absolute;
    top: 8px;
    bottom: 5px;
    left: -12px;
    width: 16px;
    background: #56101a;
    transform: skewY(-27deg);
}

.classic-library {
    padding: 83px 24px 96px;
}

.classic-section-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
    margin-bottom: 31px;
}

    .classic-section-head h2,
    .classic-letter h2 {
        font-size: clamp(31px, 4vw, 49px);
        line-height: 1.05;
        letter-spacing: -.025em;
        margin: 0;
    }

    .classic-section-head > p {
        color: var(--classic-muted);
        max-width: 370px;
        line-height: 1.6;
        margin: 0;
    }

.classic-filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 31px;
}

    .classic-filters button {
        border: 1px solid var(--classic-line);
        border-radius: 99px;
        background: #fff;
        padding: 9px 15px;
        color: #59514f;
        font: 600 12px Inter, Arial, sans-serif;
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
    }

        .classic-filters button:hover,
        .classic-filters .is-active {
            background: var(--classic-red);
            border-color: var(--classic-red);
            color: #fff;
        }

.classic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.classic-card {
    border: 1px solid var(--classic-line);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .classic-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 19px 34px -22px rgba(40, 24, 21, .42);
    }

    .classic-card.is-hidden {
        display: none;
    }

.classic-cover {
    height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #f9f2df;
    position: relative;
    overflow: hidden;
}

    .classic-cover:after {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid rgba(255, 255, 255, .35);
    }

    .classic-cover p,
    .classic-cover h3,
    .classic-cover span {
        position: relative;
        z-index: 1;
    }

    .classic-cover p {
        margin: 0;
        font: italic 11px 'Playfair Display', Georgia, serif;
    }

    .classic-cover h3 {
        margin: auto 0;
        font: 700 29px/.9 'Playfair Display', Georgia, serif;
    }

        .classic-cover h3 em {
            font-style: italic;
        }

    .classic-cover span {
        font: 700 9px Inter, Arial, sans-serif;
        letter-spacing: .13em;
    }

.classic-cover--rose {
    background: linear-gradient(135deg, #693034, #b65762);
}

.classic-cover--night {
    background: linear-gradient(135deg, #1b3044, #556c76);
}

.classic-cover--sea {
    background: linear-gradient(135deg, #0e4251, #368092);
}

.classic-cover--sage {
    background: linear-gradient(135deg, #526757, #96aa85);
}

.classic-cover--storm {
    background: linear-gradient(135deg, #3a3745, #7b6988);
}

.classic-cover--gold {
    background: linear-gradient(135deg, #705025, #c09146);
}

.classic-card__body {
    padding: 20px;
}

.classic-card__genre {
    font: 800 10px Inter, Arial, sans-serif;
    color: var(--classic-red);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.classic-card__body h3 {
    font: 700 23px 'Playfair Display', Georgia, serif;
    margin: 0 0 8px;
}

.classic-card__body > p:not(.classic-card__genre) {
    font-size: 13px;
    color: var(--classic-muted);
    line-height: 1.55;
    margin: 0 0 18px;
}

.classic-card__body > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.classic-card__body a {
    color: var(--classic-red);
    font: 700 12px Inter, Arial, sans-serif;
    text-decoration: none;
}

    .classic-card__body a i {
        margin-left: 3px;
    }

.classic-card__body button {
    border: 0;
    background: transparent;
    color: #827976;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}

    .classic-card__body button:hover {
        transform: scale(1.08);
    }

    .classic-card__body button.is-saved {
        color: var(--classic-red);
    }

.classic-letter {
    max-width: 1190px;
    margin: 0 auto 94px;
    padding: 53px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: #2a2020;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

    .classic-letter:before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 50%;
        right: -100px;
        top: -180px;
    }

    .classic-letter > * {
        position: relative;
    }

    .classic-letter .classic-kicker {
        color: #ef9ea8;
    }

        .classic-letter .classic-kicker span {
            background: #ef9ea8;
        }

    .classic-letter h2 {
        color: #fff;
    }

        .classic-letter h2 em {
            color: #f07d89;
        }

    .classic-letter p:not(.classic-kicker) {
        color: #d8cac5;
        max-width: 460px;
        line-height: 1.6;
        margin: 13px 0 0;
    }

.classic-button--light {
    background: #fff;
    color: #b6192b;
    white-space: nowrap;
}

    .classic-button--light:hover {
        background: #f7e9e9;
        color: #a31323;
    }

@media (max-width: 800px) {
    .subscribe-page {
        grid-template-columns: 1fr;
    }

    .subscribe-page__art {
        min-height: 150px;
    }

        .subscribe-page__art i {
            font-size: 68px;
        }

    .subscribe-page__sun {
        top: 20%;
        right: 27%;
    }

    .subscribe-page__content {
        padding: 42px 28px 32px;
    }

    .subscribe-page__close {
        background: rgba(0, 0, 0, .25);
        color: #fff;
    }

    .classic-hero__grid {
        grid-template-columns: 1fr;
    }

    .classic-hero__book {
        display: none;
    }

    .classic-section-head {
        align-items: start;
        flex-direction: column;
    }

    .classic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classic-letter {
        margin-left: 18px;
        margin-right: 18px;
        padding: 40px 30px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .subscribe-page__form > div {
        display: block;
        border: 0;
        overflow: visible;
    }

    .subscribe-page__form input {
        width: 100%;
        border: 1px solid #ddd3cf;
        border-radius: 5px;
        margin-bottom: 9px;
    }

    .subscribe-page__form button {
        border-radius: 5px;
        width: 100%;
        justify-content: center;
    }

    .classic-hero {
        padding: 37px 18px 51px;
    }

    .classic-crumb {
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .classic-library {
        padding: 59px 18px 70px;
    }

    .classic-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .classic-letter {
        margin: 0 12px 40px;
        padding: 42px 22px;
    }

    .classic-page h1 {
        font-size: 43px;
    }

    .classic-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscribe-overlay,
    .subscribe-page,
    .classic-card,
    .classic-hero__book,
    .classic-button {
        transition: none !important;
    }
}

/* =============================================
   DARK MODE (dashboard)
   ============================================= */
html[data-theme="dark"] {
    --nem-bg: #121318;
    --nem-surface: #1E1F25;
    --nem-surface-elevated: #262830;
    --nem-card-bg: #1e1e1e;
    --nem-border: #2D303E;
    --nem-text: #ffffff;
    --nem-text-main: #F1F3F9;
    --nem-text-muted: #94A3B8;
    --nem-primary: #E4213A;
}

    html[data-theme="dark"] body.nem-dash-body {
        background-color: var(--nem-bg) !important;
        color: var(--nem-text-main) !important;
    }

    html[data-theme="dark"] .nem-header {
        background-color: var(--nem-surface) !important;
        border-bottom: 1px solid var(--nem-border) !important;
    }

    html[data-theme="dark"] .nem-sidebar {
        background-color: #17181F !important;
        border-right: 1px solid var(--nem-border) !important;
    }

    html[data-theme="dark"] h1,
    html[data-theme="dark"] h2,
    html[data-theme="dark"] h3,
    html[data-theme="dark"] h4,
    html[data-theme="dark"] .eyebrow {
        color: var(--nem-text-main) !important;
    }

    html[data-theme="dark"] p,
    html[data-theme="dark"] span:not(.nem-badge-dot),
    html[data-theme="dark"] label {
        color: var(--nem-text-muted);
    }

    html[data-theme="dark"] .nem-settings-card,
    html[data-theme="dark"] .nem-card,
    html[data-theme="dark"] .nem-dropdown {
        background-color: var(--nem-surface) !important;
        border: 1px solid var(--nem-border) !important;
        color: var(--nem-text-main) !important;
    }

    html[data-theme="dark"] .nem-search,
    html[data-theme="dark"] .nem-field input,
    html[data-theme="dark"] .nem-field textarea {
        background-color: var(--nem-surface-elevated) !important;
        border: 1px solid var(--nem-border) !important;
        color: var(--nem-text-main) !important;
    }

        html[data-theme="dark"] .nem-search input {
            background: transparent !important;
            color: var(--nem-text-main) !important;
        }

        html[data-theme="dark"] .nem-field input:focus,
        html[data-theme="dark"] .nem-field textarea:focus {
            border-color: var(--nem-primary) !important;
            box-shadow: 0 0 0 3px rgba(228, 33, 58, 0.25) !important;
        }

    html[data-theme="dark"] .nem-icon-btn,
    html[data-theme="dark"] .nem-profile-trigger {
        background-color: var(--nem-surface-elevated) !important;
        border: 1px solid var(--nem-border) !important;
        color: var(--nem-text-main) !important;
    }

    html[data-theme="dark"] .nem-dropdown a {
        color: var(--nem-text-main) !important;
    }

        html[data-theme="dark"] .nem-dropdown a:hover {
            background-color: var(--nem-surface-elevated) !important;
        }

/* Toggle switch */
.nem-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

    .nem-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .nem-switch .track {
        position: absolute;
        inset: 0;
        background-color: #475569;
        border-radius: 999px;
        transition: background-color .2s ease;
        cursor: pointer;
    }

        .nem-switch .track::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            background-color: #ffffff;
            border-radius: 50%;
            transition: transform .2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
        }

    .nem-switch input:checked + .track {
        background-color: var(--nem-primary, #E4213A) !important;
    }

        .nem-switch input:checked + .track::after {
            transform: translateX(20px);
        }

/* =============================================
   USER ACTION BUTTONS
   ============================================= */
.btn-submit-story {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 6px;
    height: 38px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-submit-story:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
        color: #fff !important;
    }

    .btn-submit-story:active {
        transform: translateY(0);
    }

.btn-submit-work {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-submit-work:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
        color: #fff !important;
    }

    .btn-submit-work:active {
        transform: translateY(0);
    }

.btn-sign-in {
    background: linear-gradient(135deg, #e8192c 0%, #c41224 100%);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 18px;
    height: 38px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(232, 25, 44, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-sign-in:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(232, 25, 44, 0.35);
        color: #fff !important;
    }

    .btn-sign-in:active {
        transform: translateY(0);
    }

.btn-register {
    background: transparent;
    color: #333 !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid #ddd;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-register:hover {
        border-color: #e8192c;
        color: #e8192c !important;
        background: rgba(232, 25, 44, 0.05);
        transform: translateY(-2px);
    }

    .btn-register:active {
        transform: translateY(0);
    }

@media (max-width: 1024px) {
    .btn-text,
    .btn-text-register {
        display: none;
    }

    .btn-submit-story,
    .btn-submit-work,
    .btn-sign-in,
    .btn-register {
        padding: 0 12px;
        height: 38px;
    }
}

@media (min-width: 1025px) {
    .btn-text,
    .btn-text-register {
        display: inline;
    }
}

/* Profile dropdown */
.nem-profile {
    position: relative;
    flex-shrink: 0;
}

.nem-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px 6px 6px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

    .nem-profile-trigger:hover {
        border-color: #e8192c;
        background: rgba(232, 25, 44, 0.05);
    }

.nem-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nem-chevron {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nem-profile.is-open .nem-chevron {
    transform: rotate(180deg);
}

.nem-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

    .nem-dropdown.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nem-dropdown a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

        .nem-dropdown a:hover {
            background: rgba(232, 25, 44, 0.08);
            color: #e8192c;
            padding-left: 16px;
        }

        .nem-dropdown a.is-danger {
            color: #dc3545;
        }

            .nem-dropdown a.is-danger:hover {
                background: rgba(220, 53, 69, 0.08);
            }

.nem-dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 6px 0;
}

/* =============================================
   LIVE SEARCH RESULTS DROPDOWN
   ============================================= */
.live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 500px;
    overflow-y: auto;
    min-width: 400px;
    animation: fadeUpSoft 0.25s ease both;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover,
    .search-result-item.selected {
        background-color: #f8f9fa;
    }

    .search-result-item a {
        display: flex;
        padding: 12px 16px;
        color: inherit;
        text-decoration: none;
        gap: 12px;
    }

        .search-result-item a:hover {
            text-decoration: none;
        }

.search-result-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

    .search-result-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.search-result-content {
    flex: 1;
    min-width: 0;
}

    .search-result-content h6 {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        margin: 0 0 6px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

    .search-result-meta .badge {
        font-size: 10px;
        font-weight: 600;
        padding: 3px 8px;
    }

    .search-result-meta i {
        font-size: 11px;
    }

.search-result-content p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-results-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

    .search-results-footer .btn {
        font-size: 13px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 6px;
    }

.search-loading,
.search-error,
.search-no-results {
    padding: 40px 20px;
    text-align: center;
}

    .search-loading i,
    .search-error i,
    .search-no-results i {
        display: block;
        margin-bottom: 12px;
        font-size: 2rem;
    }

@media (max-width: 768px) {
    .live-search-results {
        min-width: 0;
        width: 100%;
        max-height: 400px;
        left: 0;
        right: 0;
    }

    .search-result-image {
        width: 50px;
        height: 50px;
    }

    .search-result-content h6 {
        font-size: 13px;
    }

    .search-result-content p {
        font-size: 11px;
    }
}
/* =====================================================
   DARK MODE SUPPORT - Global Site Styles
   Added: August 18, 2026
   ===================================================== */

/* Dark Mode Base */
/*body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}*/

/* Dark Mode - Cards & Panels */
/*body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode .box,
body.dark-mode .container {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}*/

/* Dark Mode - Navigation */
/*body.dark-mode .navbar,
body.dark-mode .sidebar {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}*/

/* Dark Mode - Forms */
/*body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #242424 !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}*/

/* Dark Mode - Text */
/*body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
}*/

/* Make dashboard navigation independently scrollable when the menu exceeds the viewport. */
/*.sidebar,
.dashboard-sidebar,
.nem-dash-sidebar,
.main-menu {
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}*/
