        /* ===== ROOT VARIABLES ===== */
        :root {
            --dark-bg: var(--navy-900,#0d1b2a);
            --accent: var(--brand-400,#00d084);
            --accent-dark: var(--brand-700,#00b070);
            --accent-light: rgba(0, 208, 132, 0.12);
            --text-muted: #6c757d;
            --card-radius: 16px;
            --transition: all 0.3s ease;

            /* Theme-aware surface/text tokens — light mode defaults */
            --page-bg: #f8f9fa;
            --surface: #ffffff;
            --surface-alt: #f8fafb;
            --surface-hover: #f1f5f9;
            --text-primary: var(--navy-900,#0d1b2a);
            --text-secondary: #475569;
            --text-tertiary: #64748b;
            --text-faint: #6b7a90;
            --border-color: #e8ecf0;
            --border-color-alt: #e0e6ed;
            --text: var(--text-primary);
            --border: var(--border-color);
        }

        :root[data-theme="dark"] {
            --page-bg: #0a1420;
            --surface: #101c2c;
            --surface-alt: #0d1826;
            --surface-hover: #17263a;
            --text-primary: #eef2f7;
            --text-secondary: #c3ceda;
            --text-tertiary: #9fadbd;
            --text-faint: #7c8ba0;
            --border-color: #223349;
            --border-color-alt: #1b293c;
            --accent-light: rgba(0, 208, 132, 0.16);
        }

        /* Dark-mode overrides for a few Bootstrap utility/default classes used on this page */
        :root[data-theme="dark"] .bg-white {
            background-color: var(--surface) !important;
        }

        :root[data-theme="dark"] .text-muted {
            color: var(--text-tertiary) !important;
        }

        :root[data-theme="dark"] hr {
            border-color: var(--border-color);
        }

        /* ===== THEME TOGGLE BUTTON ===== */
        .theme-toggle-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.06);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .theme-toggle-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--dark-bg);
        }

        /* ===== BASE ===== */
        * {
            box-sizing: border-box;
        }

        html, body {
            /* `clip` contains horizontal overflow WITHOUT turning body into a
               scroll container — `overflow-x: hidden` here forces overflow-y to
               `auto`, which silently breaks `position: sticky` on the navbar. */
            overflow-x: clip;
            max-width: 100%;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--page-bg);
            color: var(--text-primary);
            padding-bottom: 60px; /* space for fixed bottom nav */
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Inter', sans-serif;
        }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--accent);
            border-radius: var(--radius,10px);
        }

        /* ===== TOP NAVBAR ===== */
        .top-navbar {
            background-color: var(--dark-bg) !important;
            padding: 0.75rem 1rem;
            position: sticky;
            top: 0;
            z-index: 4000;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        }

        .navbar-brand {
            color: white;
            font-weight: 800;
            font-size: 1.4rem;
            letter-spacing: -0.5px;
        }

        .search-wrapper {
            position: relative;
            max-width: 420px;
            width: 100%;
        }

        .search-input {
            background-color: rgba(255, 255, 255, 0.1);
            border: 1.5px solid rgba(255, 255, 255, 0.15);
            color: white;
            border-radius: var(--radius-pill,999px);
            padding: 0.6rem 3rem 0.6rem 1.25rem;
            width: 100%;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent);
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
        }

        .search-btn {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }

        .search-btn:hover {
            color: var(--accent);
        }

        .action-icon {
            color: white !important;
            font-size: 1.3rem;
            position: relative;
            margin-left: 1rem;
            text-decoration: none;
            transition: var(--transition);
        }

        .action-icon:hover {
            color: var(--accent) !important;
        }

        .action-badge {
            position: absolute;
            top: -7px;
            right: -7px;
            font-size: 0.6rem;
            padding: 0.25em 0.5em;
            background-color: var(--accent);
            border-radius: var(--radius-pill,999px);
            color: var(--navy-900,#0d1b2a);
            font-weight: 700;
            min-width: 18px;
            text-align: center;
        }

        /* ===== MOBILE NAV ICON ROW (theme / notifications / hamburger) =====
           Below the lg breakpoint the brand and this icon group wrap onto their
           own line (Bootstrap's .navbar sets flex-wrap: wrap, inherited by the
           .container-fluid row). Stretch that wrapped row to full width so the
           hamburger can be pushed to the far right while theme+notifications
           stay put on the left, and give it breathing room above the search bar. */
        @media (max-width: 991.98px) {
            .top-navbar .nav-icon-group {
                width: 100%;
                margin-bottom: 0.6rem;
            }
            .top-navbar .nav-hamburger-btn {
                margin-left: auto !important;
            }
            /* The notifications toggle sits near the left edge on mobile
               (theme + bell are left-aligned); anchoring the menu from the
               right pushes most of its 320px width off-screen to the left.
               Anchor from the left instead, where the free space actually is. */
            .top-navbar .nav-notif-menu {
                position: fixed !important;
                left: 12px !important;
                right: 12px !important;
                width: auto !important;
                max-width: none !important;
                transform: none !important;
                inset-block-start: auto;
            }
        }

        /* ===== BOTTOM NAV ===== */
        .bottom-nav {
            background-color: #0f2133;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding: 0.4rem 0;
            overflow: visible;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1030;
        }

        .bottom-nav .navbar-nav {
            overflow-x: auto;
            flex-wrap: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .bottom-nav .navbar-nav::-webkit-scrollbar {
            display: none;
        }

        .bottom-nav .nav-link {
            color: rgba(255, 255, 255, 0.75) !important;
            font-size: 0.82rem;
            padding: 0.35rem 0.7rem;
            white-space: nowrap;
            border-radius: var(--radius-pill,999px);
            transition: var(--transition);
            font-weight: 500;
        }

        .bottom-nav .nav-link:hover,
        .bottom-nav .nav-link.active {
            color: var(--accent) !important;
            background-color: var(--accent-light);
        }

        .bottom-nav .nav-link:focus,
        .bottom-nav .nav-link:focus-visible,
        .bottom-nav .dropdown-toggle:focus,
        .bottom-nav .dropdown-toggle:focus-visible {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        .hot-badge {
            background-color: #ff3366;
            color: white;
            font-size: 0.6rem;
            padding: 0.15em 0.45em;
            border-radius: 4px;
            margin-left: 0.3rem;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .daily-offers-btn {
            background-color: var(--accent);
            color: var(--navy-900,#0d1b2a) !important;
            font-weight: 700;
            border-radius: var(--radius,10px);
            padding: 0.4rem 1rem;
            font-size: 0.82rem;
            transition: var(--transition);
        }

        .daily-offers-btn:hover {
            background-color: var(--accent-dark);
        }

        /* ===== MENU ANIMATIONS ===== */
        @keyframes menuSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .bottom-nav .dropdown-menu {
            animation: menuSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1.5px solid rgba(0, 208, 132, 0.15) !important;
        }

        /* ===== CC MENU ===== */
        .cc-menu {
            background: linear-gradient(145deg, #f0fdf8 0%, #f8fffe 60%, #f0fdf8 100%) !important;
            border-radius: var(--radius-lg,16px) !important;
            overflow: hidden;
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
        }

        .cc-menu-header {
            background: rgba(0, 208, 132, 0.08);
            padding: 10px 16px;
            border-bottom: 1px solid rgba(0, 208, 132, 0.12);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .cc-menu-header-label {
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--brand-text,#007a4d);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .cc-menu-footer {
            padding: 10px 16px;
            border-top: 1px solid rgba(0, 208, 132, 0.1);
            text-align: center;
            background: rgba(0, 208, 132, 0.04);
        }

        .cc-menu-footer a {
            font-size: 0.78rem;
            color: var(--brand-text,#007a4d);
            text-decoration: none;
            font-weight: 600;
        }

        .cc-menu-footer a:hover {
            color: var(--accent);
        }

        .cc-drop-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            text-decoration: none;
            border-top: 1px solid rgba(0, 208, 132, 0.07);
            transition: background 0.2s;
        }

        .cc-drop-item:first-of-type {
            border-top: none;
        }

        .cc-drop-item:hover {
            background: rgba(0, 208, 132, 0.07);
        }

        .cc-drop-icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius,10px);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1rem;
        }

        /* .cc-menu keeps a fixed light background regardless of site theme,
           so its text stays fixed dark too — not theme-aware vars. */
        .cc-drop-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-primary,#0d1b2a);
        }

        .cc-drop-sub {
            font-size: 0.71rem;
            color: var(--text-tertiary,#64748b);
        }

        /* ===== USER ACCOUNT DROPDOWN ===== */
        .user-menu {
            background: linear-gradient(165deg, #142a3d 0%, var(--navy-900,#0d1b2a) 55%, var(--navy-900,#0d1b2a) 100%) !important;
            border-radius: var(--radius-lg,16px) !important;
            overflow: hidden;
            padding: 0 !important;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
        }

        .user-menu-header {
            padding: 18px 18px 16px;
            background: linear-gradient(135deg, rgba(0, 208, 132, 0.14), rgba(0, 208, 132, 0.02));
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-menu-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            flex-shrink: 0;
            object-fit: cover;
            border: 2px solid rgba(0, 208, 132, 0.5);
        }

        .user-menu-avatar-fallback {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            flex-shrink: 0;
            background: var(--brand-600,#00a86b);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.05rem;
            color: var(--navy-900,#0d1b2a);
            border: 2px solid rgba(0, 208, 132, 0.5);
        }

        .user-menu-name {
            font-size: 0.92rem;
            font-weight: 700;
            color: white;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-menu-email {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.45);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Tall menus stay inside the screen and scroll on their own instead of
           letting the page behind scroll. */
        .user-menu.show { display: flex; flex-direction: column; max-height: calc(100vh - 160px); }
        .user-menu-header { flex-shrink: 0; }
        .user-menu-body {
            padding: 8px;
            overflow-y: auto;
            overscroll-behavior: contain;
            min-height: 0;
        }

        .user-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 9px 10px;
            border-radius: var(--radius,10px);
            text-decoration: none;
            transition: background 0.18s ease, transform 0.18s ease;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .user-menu-item:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateX(2px);
        }

        .user-menu-icon {
            width: 36px;
            height: 36px;
            border-radius: var(--radius,10px);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.95rem;
        }

        .user-menu-item-title {
            font-size: 0.83rem;
            font-weight: 600;
            color: white;
            line-height: 1.3;
        }

        .user-menu-item-sub {
            font-size: 0.68rem;
            color: rgba(255, 255, 255, 0.4);
        }

        .user-menu-divider {
            margin: 6px 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
        }

        .user-menu-item.logout:hover {
            background: rgba(239, 68, 68, 0.12);
        }

        .user-menu-item.logout .user-menu-item-title {
            color: #f87171;
        }

        .rank-num {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm,6px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.82rem;
            font-weight: 800;
            flex-shrink: 0;
        }

        .uni-pill {
            background: rgba(0, 208, 132, 0.08);
            color: var(--brand-700,#00b070);
            border: 1px solid rgba(0, 208, 132, 0.2);
            border-radius: var(--radius-pill,999px);
            padding: 3px 12px;
            font-size: 0.75rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-block;
        }

        .uni-pill:hover {
            background: var(--brand-400,#00d084);
            color: var(--navy-900,#0d1b2a);
            border-color: var(--brand-400,#00d084);
        }

        /* ===== MEGA MENU ===== */
        .mega-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-12px);
            width: 820px;
            max-width: 95vw;
            background: linear-gradient(145deg, #f0fdf8 0%, #f8fffe 60%, #f0fdf8 100%);
            border: 1.5px solid rgba(0, 208, 132, 0.18);
            border-top: 3px solid var(--accent);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
            z-index: 1040;
            opacity: 0;
            visibility: hidden;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 0 20px 20px;
        }

        .mega-trigger:hover .mega-menu,
        .mega-trigger:focus-within .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .mega-menu-inner {
            display: grid;
            grid-template-columns: 190px 1fr;
        }

        .mega-sidebar {
            background: rgba(0, 208, 132, 0.05);
            border-right: 1px solid rgba(0, 208, 132, 0.12);
            padding: 1rem 0;
            border-radius: 0 0 0 20px;
        }

        /* .mega-menu keeps a fixed light background regardless of site theme too */
        .mega-sidebar-label {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--text-faint,#94a3b8);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 1.1rem;
            margin-bottom: 0.6rem;
        }

        .mega-sidebar-item {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.55rem 1.1rem;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-secondary,#475569);
            text-decoration: none;
            border-left: 3px solid transparent;
            transition: all 0.2s;
        }

        .mega-sidebar-item:hover, .mega-sidebar-item.active {
            color: var(--brand-text,#007a4d);
            background: rgba(0, 208, 132, 0.08);
            border-left-color: var(--accent);
        }

        .mega-sidebar-item i {
            color: var(--accent);
            font-size: 0.9rem;
        }

        .mega-content {
            padding: 1.25rem 1.5rem;
        }

        .mega-section-label {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--text-faint,#94a3b8);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(0, 208, 132, 0.12);
        }

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

        .mega-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: var(--radius,10px);
            text-decoration: none;
            border: 1.5px solid transparent;
            transition: all 0.2s;
        }

        .mega-item:hover {
            background: rgba(0, 208, 132, 0.08);
            border-color: rgba(0, 208, 132, 0.2);
            transform: translateY(-2px);
        }

        .mega-icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius,10px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .mega-item-title {
            font-size: 0.84rem;
            font-weight: 700;
            color: var(--text-primary,#0d1b2a);
            margin-bottom: 0.2rem;
            line-height: 1.3;
        }

        .mega-item:hover .mega-item-title {
            color: var(--brand-text,#007a4d);
        }

        .mega-item-desc {
            font-size: 0.72rem;
            color: var(--text-tertiary,#64748b);
            line-height: 1.45;
        }

        /* ===== HERO ===== */
        .hero-section {
            background: linear-gradient(135deg, #e8fdf4 0%, #f0fff8 50%, #e0f9ee 100%);
            padding: 3rem 1rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(0, 208, 132, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .hero-tag {
            display: inline-block;
            background-color: var(--accent-light);
            color: var(--brand-text,#007a4d);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.3rem 0.9rem;
            border-radius: var(--radius-pill,999px);
            margin-bottom: 0.9rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            border: 1px solid rgba(0, 208, 132, 0.3);
        }

        .hero-title {
            font-size: clamp(2rem, 6vw, 4rem);
            font-weight: 900;
            color: #02071a;
            line-height: 1.05;
            letter-spacing: -0.03em;
        }

        .hero-title .highlight {
            color: var(--brand-text,#007a4d);
        }

        .hero-subtitle {
            font-size: 0.95rem;
            color: #4a5568;
            line-height: 1.7;
        }

        .btn-primary-cc {
            background-color: var(--accent);
            color: var(--navy-900,#0d1b2a);
            border: none;
            border-radius: var(--radius,10px);
            padding: 0.7rem 1.6rem;
            font-weight: 700;
            font-size: 0.9rem;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            display: inline-block;
        }

        .btn-primary-cc:hover {
            background-color: var(--accent-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
        }

        .btn-outline-cc {
            background-color: transparent;
            color: var(--dark-bg);
            border: 2px solid #cbd5e0;
            border-radius: var(--radius,10px);
            padding: 0.68rem 1.6rem;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
            display: inline-block;
        }

        .btn-outline-cc:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .hero-stats {
            display: flex;
            gap: 1.5rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .hero-stat-number {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--dark-bg);
            line-height: 1;
        }

        .hero-stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ===== SECTION TITLES ===== */
        .section-title {
            font-size: clamp(1.5rem, 4vw, 2rem);
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .section-title .green {
            color: var(--brand-text,#007a4d);
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            padding: 0 0.25rem;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .view-all-link {
            color: var(--brand-text,#007a4d);
            background: rgba(0,208,132,0.1);
            border: 1.5px solid rgba(0,208,132,0.35);
            font-size: 0.83rem;
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 1.1rem;
            border-radius: var(--radius-pill,999px);
            transition: var(--transition);
            white-space: nowrap;
        }

        .view-all-link:hover {
            color: var(--navy-900,#0d1b2a);
            background: var(--brand-400,#00d084);
            border-color: var(--brand-400,#00d084);
            gap: 0.55rem;
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
        }

        /* ===== CARDS ===== */
        .cc-card {
            border: none;
            border-radius: var(--card-radius);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
            transition: var(--transition);
            overflow: hidden;
            background-color: var(--surface);
            color: var(--text-primary);
        }

        .cc-card .card-title,
        .cc-card .card-text {
            color: inherit;
        }

        .cc-card .text-muted {
            color: var(--text-tertiary) !important;
        }

        .cc-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow,0 4px 12px -2px rgb(16 24 40 / .08));
        }

        .img-wrapper {
            overflow: hidden;
        }

        .img-wrapper img {
            transition: transform 0.6s ease;
            width: 100%;
        }

        .img-wrapper:hover img {
            transform: scale(1.07);
        }

        .card-category-tag {
            display: inline-block;
            background-color: var(--accent-light);
            color: var(--brand-text,#007a4d);
            font-size: 0.72rem;
            font-weight: 700;
            padding: 0.2em 0.7em;
            border-radius: var(--radius-pill,999px);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }

        /* ===== APP SECTION ===== */
        .app-section {
            border-radius: var(--radius-lg,16px);
            margin: 1.5rem 0.75rem;
            overflow: hidden;
            position: relative;
        }

        .app-promo {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
            align-items: center;
            gap: 2rem;
            padding: 3.25rem 3.5rem;
            color: #fff;
        }

        .app-promo__eyebrow {
            color: #00d084;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        .app-promo .app-promo__title {
            color: #fff;
            font-size: clamp(1.8rem, 3.6vw, 3.1rem);
            font-weight: 800;
            line-height: 1.12;
            margin-bottom: 1rem;
        }

        .app-promo .app-promo__lead {
            color: #cbd5e1;
            font-size: 1rem;
            line-height: 1.7;
            max-width: 440px;
            margin-bottom: 1.5rem;
        }

        .app-promo__buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem;
        }

        .app-promo__btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            min-width: 170px;
            min-height: 56px;
            padding: 0.4rem 1.25rem;
            border-radius: 10px;
            line-height: 1.2;
            text-align: center;
        }

        .app-promo__btn small {
            display: block;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .app-promo__btn strong {
            display: block;
            font-size: 1.15rem;
        }

        .app-promo__btn--android {
            background: #00d084;
            color: #0d1b2a;
            text-decoration: none;
            transition: var(--transition);
        }

        .app-promo__btn--android:hover {
            color: #0d1b2a;
            transform: translateY(-2px);
        }

        .app-promo__btn--android:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 3px;
        }

        .app-promo__btn--android i {
            font-size: 1.4rem;
        }

        .app-promo__btn--soon {
            border: 1px solid rgba(255, 255, 255, 0.22);
            color: #94a3b8;
        }

        .app-promo__help,
        .app-promo .app-promo__note {
            color: #94a3b8;
            font-size: 0.85rem;
            margin: 1rem 0 0;
        }

        .app-promo__help summary {
            cursor: pointer;
            list-style: none;
        }

        .app-promo__help summary::-webkit-details-marker {
            display: none;
        }

        .app-promo__help summary span {
            color: #00d084;
            text-decoration: underline;
        }

        .app-promo__help ol {
            margin: 0.75rem 0 0;
            padding-left: 1.2rem;
            line-height: 1.8;
            text-align: left;
        }

        .app-promo__devices svg {
            display: block;
            width: 100%;
            max-width: 620px;
            height: auto;
            margin-left: auto;
        }

        @media (max-width: 991.98px) {
            .app-promo {
                grid-template-columns: minmax(0, 1fr);
                justify-items: center;
                padding: 2rem 1.25rem;
                text-align: center;
            }

            .app-promo .app-promo__lead {
                margin-left: auto;
                margin-right: auto;
            }

            .app-promo__buttons {
                justify-content: center;
            }

            .app-promo__devices {
                width: 100%;
                max-width: 520px;
            }
        }

        @media (max-width: 480px) {
            .app-promo__btn {
                width: 100%;
            }
        }

        /* ===== SLIDER STYLES ===== */
        /* Desktop: slider visible, grid hidden */
        .cards-slider-wrapper {
            display: block;
            position: relative;
            overflow: hidden;
        }

        .cards-grid-wrapper {
            display: none;
        }

        /* Mobile: grid visible, slider hidden */
        @media (max-width: 767px) {
            .cards-slider-wrapper {
                display: none;
            }

            .cards-grid-wrapper {
                display: block;
            }
        }

        /* Slider track */
        .cards-slider {
            display: flex;
            gap: 20px;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        /* Each slider card — 3 per row desktop, 2 tablet */
        .slider-card {
            flex: 0 0 calc(33.333% - 14px);
            min-width: 0;
        }

        @media (min-width: 768px) and (max-width: 991px) {
            .slider-card {
                flex: 0 0 calc(50% - 10px);
            }
        }

        /* ===== MYIDEALCAMPUS BANNER ===== */
        .mic-banner {
            background: linear-gradient(135deg, var(--dark-bg) 0%, #0f2942 60%, #133a2e 100%);
            border-radius: var(--radius-lg,16px);
            margin: 0.5rem 0.75rem 2rem;
            padding: 3rem 2rem;
            position: relative;
            overflow: hidden;
        }
        .mic-banner::before {
            content: '';
            position: absolute; top: -140px; right: -100px;
            width: 420px; height: 420px;
            background: radial-gradient(circle, rgba(0,208,132,0.16) 0%, transparent 70%);
            border-radius: 50%;
        }
        .mic-banner::after {
            content: '';
            position: absolute; bottom: -120px; left: 10%;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(0,208,132,0.08) 0%, transparent 70%);
            border-radius: 50%;
        }
        .mic-banner-eyebrow {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: rgba(0,208,132,0.14); color: var(--brand-text,#007a4d);
            border: 1px solid rgba(0,208,132,0.3); border-radius: var(--radius-pill,999px);
            padding: 0.35rem 1rem; font-size: 0.72rem; font-weight: 800;
            text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.1rem;
            position: relative; z-index: 1;
        }
        .mic-banner h2 {
            font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: white;
            line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem;
            position: relative; z-index: 1;
        }
        .mic-banner h2 .green { color: var(--accent); }
        .mic-banner p.desc {
            color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.7;
            max-width: 480px; margin-bottom: 1.75rem; position: relative; z-index: 1;
        }
        .mic-banner-stats {
            display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem;
            position: relative; z-index: 1;
        }
        .mic-banner-stats .stat-num { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1; }
        .mic-banner-stats .stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
        .mic-banner-visual {
            position: relative; z-index: 1; text-align: center; line-height: 1;
            filter: drop-shadow(0 20px 40px rgba(0,208,132,0.25));
        }
        .mic-banner-visual svg { width: 100%; max-width: 300px; height: auto; }
        @media (max-width: 991px) {
            .mic-banner { padding: 2.25rem 1.5rem; margin: 0.5rem 0.5rem 1.5rem; }
            .mic-banner-visual { margin-top: 1rem; }
        }

        /* ===== NEWSLETTER ===== */
        .newsletter-section {
            background: var(--grad-navy,linear-gradient(135deg,#0d1b2a 0%,#1a3c5e 100%));
            border-radius: var(--radius-lg,16px);
            margin: 1.5rem 0.75rem;
            padding: 2rem 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .newsletter-input {
            background: rgba(255, 255, 255, 0.1);
            border: 1.5px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: var(--radius-pill,999px);
            padding: 0.65rem 1.25rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
            transition: var(--transition);
            width: 100%;
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .newsletter-input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.15);
            color: white;
        }

        /* ===== FOOTER ===== */
        .footer-section {
            background: var(--grad-navy-deep,linear-gradient(180deg,#0d1b2a 0%,#091422 100%));
            padding: 2.5rem 1rem 1.5rem;
        }

        .footer-brand {
            font-size: 1.4rem;
            font-weight: 800;
            color: white;
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.85rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0;
        }

        .footer-link:hover {
            color: var(--accent);
            padding-left: 0.3rem;
        }

        .footer-divider {
            border-color: rgba(255, 255, 255, 0.08);
            margin: 1.5rem 0 1rem;
        }

        .social-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.95rem;
        }

        .social-icon:hover {
            background: var(--accent);
            color: var(--navy-900,#0d1b2a);
            transform: translateY(-2px);
        }

        /* ===== MODAL FIXES ===== */
        /* The auth modal body stays a light surface regardless of site theme
           (compact overlay, not page content) — pin its Bootstrap utility
           classes so the global dark-mode overrides below don't wash it out. */
        .modal-content {
            background-color: #ffffff !important;
        }

        .modal .text-muted,
        .modal .text-dark,
        .modal label {
            color: #495057 !important;
        }

        .modal label.text-dark {
            color: #212529 !important;
        }

        .modal .form-control {
            background-color: #ffffff !important;
            color: #000000 !important;
            border: 1.5px solid #dee2e6 !important;
            border-left: none !important;
            padding-left: 0.5rem;
            font-family: 'Inter', sans-serif;
        }

        .modal .form-control:focus {
            border-color: var(--brand-400,#00d084) !important;
            box-shadow: none !important;
            color: #000000 !important;
            background-color: #ffffff !important;
        }

        .modal .input-group-text {
            background-color: #f8f9fa !important;
            border: 1.5px solid #dee2e6 !important;
            border-right: none !important;
        }

        .modal .input-group:focus-within .input-group-text,
        .modal .input-group:focus-within .form-control {
            border-color: var(--brand-400,#00d084) !important;
        }

        .modal .input-group-text:last-child {
            border-left: none !important;
            border-right: 1.5px solid #dee2e6 !important;
        }

        .modal .input-group:focus-within .input-group-text:last-child {
            border-color: var(--brand-400,#00d084) !important;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 991px) {
            .mega-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .mega-sidebar {
                display: none;
            }

            .mega-menu-inner {
                grid-template-columns: 1fr;
            }

            .mega-menu {
                width: 95vw;
                border-radius: 0 0 16px 16px;
            }
        }

        @media (max-width: 767px) {
            body {
                padding-bottom: 56px;
            }

            .hero-section {
                padding: 2rem 1rem 1.5rem;
                text-align: center;
            }

            .hero-subtitle {
                margin: 0 auto 1rem;
            }

            .hero-stats {
                justify-content: center;
                gap: 1.25rem;
            }

            .d-flex.gap-3.flex-wrap {
                justify-content: center;
            }

            .newsletter-section {
                margin: 1rem 0.5rem;
            }

            .newsletter-section .d-flex.gap-2 {
                flex-direction: column;
            }

            .newsletter-section .btn-primary-cc {
                width: 100%;
                text-align: center;
            }

            .app-section {
                margin: 1rem 0.5rem;
                border-radius: var(--radius-lg,16px);
            }

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

            .cc-menu {
                min-width: 280px !important;
                max-width: 90vw;
            }

            .section-header {
                padding: 0;
            }

            .footer-section {
                padding: 2rem 1rem 1rem;
            }
        }

        /* Dot indicators */
        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 1rem;
        }

        .slider-dot {
            height: 8px;
            border-radius: var(--radius-pill,999px);
            cursor: pointer;
            transition: all 0.3s;
            background: var(--border-color-alt);
            width: 8px;
        }

        .slider-dot.active {
            background: var(--brand-400,#00d084);
            width: 22px;
        }

        /* Slider nav buttons */
        .slider-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1.5px solid var(--border-color-alt);
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .slider-btn:hover {
            border-color: var(--brand-400,#00d084);
            color: var(--brand-400,#00d084);
        }

        /* Article card inner */
        .article-card-inner {
            background: var(--surface);
            color: var(--text-primary);
            border-radius: var(--radius-lg,16px);
            border: 1.5px solid var(--border-color);
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .article-card-inner:hover {
            border-color: var(--brand-400,#00d084);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
            transform: translateY(-2px);
        }

        /* Journal card inner */
        .journal-card-inner {
            background: var(--surface);
            color: var(--text-primary);
            border-radius: var(--radius-lg,16px);
            border: 1.5px solid var(--border-color);
            padding: 1.25rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .journal-card-inner:hover {
            border-color: var(--brand-400,#00d084);
            box-shadow: var(--shadow-sm,0 1px 2px rgb(16 24 40 / .06));
            transform: translateY(-2px);
        }

        /* ===== USER ACCOUNT DROPDOWN MOBILE FIX =====
           Scoped to .user-account-dropdown (not the shared .user-dropdown-menu)
           so this bottom-sheet repositioning doesn't also hijack the
           notifications dropdown, which shares .user-dropdown-menu only for
           its z-index and should stay anchored under its own toggle button. */
        @media (max-width: 767px) {
            .user-account-dropdown {
                position: fixed !important;
                top: auto !important;
                bottom: 65px !important; /* sits above the bottom nav */
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                width: 88vw !important;
                max-width: 320px !important;
                min-width: unset !important;
                margin: 0 !important;
                z-index: 4001 !important;
            }
        }

        .user-dropdown-menu {
            z-index: 4001 !important;
        }

        /* Keep the second navbar menus above the hero */
        .bottom-nav {
            position: relative;
            z-index: 3000 !important;
            overflow: visible !important;
        }

        .bottom-nav .nav-item {
            overflow: visible !important;
        }

        .bottom-nav .container-fluid {
            overflow: visible !important;
        }

        @media (min-width: 768px) {
            .bottom-nav .navbar-nav {
                overflow: visible !important;
            }
        }

        .bottom-nav .dropdown-menu,
        .cc-menu,
        .mega-menu {
            z-index: 3001 !important;
        }

        .modal-backdrop {
            z-index: 4998 !important;
        }

        .modal {
            z-index: 4999 !important;
        }

        @media (max-width: 767px) {
            .bottom-nav .dropdown-menu.cc-menu,
            .bottom-nav .mega-menu {
                position: fixed !important;
                top: var(--campus-menu-top, 112px) !important;
                left: 0.75rem !important;
                right: 0.75rem !important;
                bottom: auto !important;
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                max-height: calc(100vh - var(--campus-menu-top, 112px) - 1rem);
                overflow-y: auto !important;
                transform: none !important;
                z-index: 3001 !important;
            }

            .bottom-nav .mega-menu {
                border-radius: 0 0 16px 16px;
            }

            .mega-trigger:hover .mega-menu,
            .mega-trigger:focus-within .mega-menu {
                transform: none !important;
            }

            #drawerOverlay {
                z-index: 5998 !important;
            }

            #mobileDrawer {
                z-index: 5998 !important;
                height: 100dvh;
                max-height: 100dvh;
            }
        }

        /* The sponsored strip and the hero share ONE gradient, so there is no
           visible seam between them. */
        .cc-home-top {
            background: linear-gradient(145deg, #f0fdf8 0%, #f8fffe 60%, #f0fdf8 100%);
        }
        :root[data-theme="dark"] .cc-home-top {
            background: linear-gradient(165deg, #142a3d 0%, var(--navy-900,#0d1b2a) 55%, var(--navy-900,#0d1b2a) 100%);
        }
        .cc-home-top .hero-section,
        .cc-home-top .cc-spotlight { background: transparent; }
        :root[data-theme="dark"] .hero-section::before {
            background: radial-gradient(circle, rgba(0, 208, 132, 0.14) 0%, transparent 70%);
        }
        :root[data-theme="dark"] .hero-title { color: var(--text-primary); }
        :root[data-theme="dark"] .hero-subtitle { color: var(--text-secondary); }
        :root[data-theme="dark"] .hero-stat-number { color: var(--text-primary); }
        :root[data-theme="dark"] .hero-stat-label { color: var(--text-tertiary); }
        :root[data-theme="dark"] .btn-outline-cc { color: var(--text-primary); border-color: var(--border-color-alt, rgba(255,255,255,0.35)); }
        :root[data-theme="dark"] .btn-outline-cc:hover { color: var(--accent); border-color: var(--accent); }

        .hero-search {
            display: flex; max-width: 460px; background: var(--surface, #fff);
            border: 1px solid var(--border-color, var(--line, #e4e7ec)); border-radius: var(--radius, 10px);
            box-shadow: var(--shadow-sm); overflow: hidden;
        }
        .hero-search:focus-within { border-color: var(--brand-500, #00c27a); }
        .hero-search__input {
            flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.8rem 1rem;
            font-size: 0.95rem; color: var(--text-primary, #0d1b2a); outline: none;
        }
        .hero-search__btn {
            border: 0; background: var(--brand-600, #00a86b); color: #fff; font-weight: 600;
            padding: 0 1.25rem; font-size: 0.9rem; cursor: pointer;
        }
        .hero-search__btn:hover { background: var(--brand-700, #00b070); }

        /* Hero section must be below the nav dropdowns */
        .hero-section {
            z-index: 1 !important;
            position: relative;
        }

        /* Article + Event slide cards — responsive widths */
        .article-slide-card,
        .event-slide-card {
            flex: 0 0 calc(33.333% - 0.75rem); /* 3 per row desktop */
            min-width: 0;
        }

        @media (max-width: 991px) {
            .article-slide-card,
            .event-slide-card {
                flex: 0 0 calc(50% - 0.56rem); /* 2 per row tablet */
            }
        }

        @media (max-width: 639px) {
            .article-slide-card,
            .event-slide-card {
                flex: 0 0 100%; /* 1 per row mobile */
            }
        }

        /* ── PAGINATION MOBILE FIX ── */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            flex-wrap: wrap;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pagination .page-item .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: var(--radius-pill,999px) !important;
            border: 1.5px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 0.82rem;
            font-weight: 600;
            font-family: 'Outfit', sans-serif;
            text-decoration: none;
            transition: var(--transition);
            padding: 0;
        }

        .pagination .page-item .page-link:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }

        .pagination .page-item.active .page-link {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--dark);
            font-weight: 700;
        }

        .pagination .page-item.disabled .page-link {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Hide the word "Previous" and "Next" — show only arrows */
        .pagination .page-item:first-child .page-link span,
        .pagination .page-item:last-child .page-link span {
            display: none;
        }

        /* Replace with arrow icons using CSS */
        .pagination .page-item:first-child .page-link::before {
            content: '‹';
            font-size: 1.1rem;
            line-height: 1;
        }

        .pagination .page-item:last-child .page-link::after {
            content: '›';
            font-size: 1.1rem;
            line-height: 1;
        }

        @media (max-width: 480px) {
            .pagination .page-item .page-link {
                width: 34px;
                height: 34px;
                font-size: 0.78rem;
            }
        }



/* Navigation menus: the light gradient only suits light mode. In dark mode the text follows the theme,
   so the panels must follow it too (light text on a pale panel was unreadable). */
:root[data-theme="dark"] .cc-menu,
:root[data-theme="dark"] .mega-menu {
    background: linear-gradient(145deg, #101c2c 0%, #0d1826 100%) !important;
    border-color: rgba(0, 208, 132, 0.22);
}
:root[data-theme="dark"] .mega-sidebar { background: rgba(0, 208, 132, 0.06); border-right-color: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .cc-menu-header { background: rgba(0, 208, 132, 0.1); border-bottom-color: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .cc-menu-header-label,
:root[data-theme="dark"] .cc-menu-footer a { color: var(--brand-400, #00d084); }
:root[data-theme="dark"] .cc-menu-footer { border-top-color: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .mega-section-label { border-bottom-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .mega-item:hover { background: rgba(0, 208, 132, 0.1); }
