/* ============================================================
   ROOT VARIABLES - Dark Theme Color System
   ============================================================ */
:root {
    /* Primary Colors - Gold/Amber */
    --color-primary: #F0C13D;
    --color-primary-dark: #d4a832;
    --color-primary-light: #f5d67a;
    --color-primary-hover: #e0b032;
    --color-primary-rgb: 240, 193, 61;
    
    /* Background Colors - Dark Theme */
    --bg-primary: #0a0e14;
    --bg-secondary: #141a21;
    --bg-tertiary: #1a222b;
    --bg-card: #1a222b;
    --bg-card-hover: #24303d;
    --bg-input: #1a222b;
    --bg-dropdown: #1a222b;
    --bg-modal: #1a222b;
    --bg-dark: #060a0e;
    --bg-light: #2a3645;
    --bg-gray: #1a222b;
    --bg-white: #1a222b;
    --bg-hover: #2a3645;
    
    /* Text Colors - Dark Theme */
    --text-primary: #e8edf2;
    --text-secondary: #c8d0d8;
    --text-muted: #8899aa;
    --text-dark: #e8edf2;
    --text-gray: #8899aa;
    --text-light: #667788;
    --text-white: #e8edf2;
    
    /* Accent Colors */
    --accent-blue: #4894ff;
    --accent-blue-dark: #1a3a5a;
    --accent-blue-hover: #6aaeff;
    --accent-gold: #F0C13D;
    --accent-gold-light: #f5d67a;
    --accent-red: #e74c5e;
    --accent-red-hover: #ff6b7a;
    --accent-green: #2ecc71;
    --accent-green-hover: #58d68d;
    --accent-orange: #f39c12;
    --accent-purple: #8e44ad;
    
    /* Border Colors - Dark Theme */
    --border-light: #2a3645;
    --border-gray: #24303d;
    --border-dark: #1a222b;
    --border-primary: #F0C13D;
    
    /* Shadow Colors - Dark Theme */
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --shadow-glow: rgba(240, 193, 61, 0.15);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.65rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.85rem;
    --font-size-md: 0.9rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2.2rem;
    --font-size-4xl: 2.8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #F0C13D, #d4a832);
    --gradient-dark: linear-gradient(135deg, #0a0e14, #141a21);
    --gradient-glow: linear-gradient(135deg, rgba(240, 193, 61, 0.1), rgba(240, 193, 61, 0.05));
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.particles-bg{
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: #050816;
}

.particles-bg span{
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.18;
    mix-blend-mode: screen;
}

/* Large ambient blobs */
.particles-bg span:nth-child(1){width:240px;height:240px;left:8%;top:10%;background:#5f6f86;filter:blur(90px);animation-duration:32s;}
.particles-bg span:nth-child(2){width:190px;height:190px;left:72%;top:8%;background:#6a677d;filter:blur(75px);animation-duration:40s;}
.particles-bg span:nth-child(3){width:280px;height:280px;left:40%;top:68%;background:#5b706d;filter:blur(110px);animation-duration:48s;}
.particles-bg span:nth-child(4){width:150px;height:150px;left:88%;top:72%;background:#756d5e;filter:blur(65px);animation-duration:28s;}
.particles-bg span:nth-child(5){width:210px;height:210px;left:18%;top:82%;background:#666280;filter:blur(85px);animation-duration:38s;}

/* Medium particles */
.particles-bg span:nth-child(6){width:90px;height:90px;left:16%;top:36%;background:#64748b;filter:blur(28px);animation-duration:24s;}
.particles-bg span:nth-child(7){width:70px;height:70px;left:62%;top:22%;background:#5e7985;filter:blur(22px);animation-duration:20s;}
.particles-bg span:nth-child(8){width:110px;height:110px;left:76%;top:52%;background:#6d6878;filter:blur(34px);animation-duration:30s;}
.particles-bg span:nth-child(9){width:60px;height:60px;left:34%;top:18%;background:#7b7f87;filter:blur(18px);animation-duration:18s;}
.particles-bg span:nth-child(10){width:80px;height:80px;left:52%;top:84%;background:#5f7368;filter:blur(25px);animation-duration:26s;}

/* Small floating glow */
.particles-bg span:nth-child(11){width:26px;height:26px;left:8%;top:60%;background:#9ca3af;filter:blur(8px);animation-duration:16s;}
.particles-bg span:nth-child(12){width:18px;height:18px;left:92%;top:28%;background:#8a94a6;filter:blur(6px);animation-duration:15s;}
.particles-bg span:nth-child(13){width:20px;height:20px;left:28%;top:46%;background:#8d8798;filter:blur(5px);animation-duration:14s;}
.particles-bg span:nth-child(14){width:14px;height:14px;left:56%;top:10%;background:#98a09a;filter:blur(4px);animation-duration:12s;}
.particles-bg span:nth-child(15){width:24px;height:24px;left:84%;top:90%;background:#a19b8a;filter:blur(7px);animation-duration:17s;}

@keyframes float{
    0%{
        transform:translate(0,0) scale(1) rotate(0deg);
    }
    25%{
        transform:translate(60px,-80px) scale(1.2) rotate(90deg);
    }
    50%{
        transform:translate(-80px,60px) scale(.85) rotate(180deg);
    }
    75%{
        transform:translate(90px,100px) scale(1.15) rotate(270deg);
    }
    100%{
        transform:translate(0,0) scale(1) rotate(360deg);
    }
}

a, button {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   SCROLLBAR - Dark Theme
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ============================================================
   TOP BAR - Updated with sticky positioning
   ============================================================ */
.top-bar {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    padding: 0 10px;
    gap: 5px;
    position: sticky;
    top: 0;
    z-index: 111;
    box-shadow: 0 2px 10px var(--shadow-light);
    height: auto;
    min-height: 40px; /* Set a consistent height */
}

.top-bar-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: var(--space-sm) var(--space-sm);
    /* gap: var(--space-md); */
    flex-shrink: 0;
}

.top-bar-left a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.top-bar-left a:hover { 
    color: var(--accent-blue); 
    background: var(--bg-hover);
}

.top-bar-left a i {
    font-size: 0.95rem;
    width: 1.2rem;
    text-align: center;
    color: var(--color-primary);
}

/* News Headline - Updated */
.news-headline {
    flex: 1 1 auto;
    overflow: hidden;
    background: #f5b40000;
    color: var(--text-primary);
    padding: 6px 0;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 0;
    border-radius: var(--radius-sm);
    margin: 4px 0;
}

.news-headline p {
    display: inline-block;
    padding-left: 100%;
    margin: 0;
    animation: ticker 25s linear infinite;
    font-weight: 600;
    white-space: nowrap;
    font-size: var(--font-size-md);
}

.news-headline:hover p {
    animation-play-state: paused;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.top-bar-right {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
}

.top-bar-right a {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 0.6rem var(--space-md);
    font-weight: 500;
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    border-left: 1px solid var(--border-light);
    white-space: nowrap;
}

.top-bar-right a:hover { 
    background: var(--color-primary);
    color: var(--bg-primary);
}

/* ============================================================
   MAIN HEADER (sticky)
   ============================================================ */
.navbar {
    position: sticky;
    top: 40px; /* Height of top bar - adjust based on your top bar height */
    z-index: 111;
    background: #141a219c;
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   BRAND
   ============================================================ */
.brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: var(--font-size-2xl);
    letter-spacing: -0.5px;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(240, 193, 61, 0.2));
}

.brand .black { 
    color: var(--text-primary); 
}

.brand .gold { 
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(240, 193, 61, 0.2);
}

/* ============================================================
   DESKTOP MENU
   ============================================================ */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-menu > li { 
    position: relative; 
}

.nav-menu > li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* Bridge to prevent gap */
    background: transparent;
    pointer-events: none;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu > li:hover .mega-dropdown,
.nav-menu > li:focus-within .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) translateY(0px) scale(1);
}

.nav-menu > li > a i {
    font-size: var(--font-size-xs);
    opacity: 0.6;
    transition: transform var(--transition-medium);
}

.nav-menu > li > a:hover {
    color: var(--color-primary);
    background: var(--bg-hover);
}

.nav-menu > li > a:active {
    transform: scale(0.95);
}

.nav-menu > li:hover > a i { 
    transform: rotate(180deg); 
}

.nav-menu > li.active > a {
    color: var(--color-primary);
    background: var(--bg-hover);
}

/* ============================================================
   MEGA DROPDOWN - Smooth Slide Animation
   ============================================================ */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 2px); /* Reduced gap */
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) scale(0.98);
    background: #141a21e1;
    min-width: 550px;
    max-width: 750px;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 20px 60px var(--shadow-medium), 0 0 40px rgba(240, 193, 61, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
    z-index: var(--z-dropdown);
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-light);
    transform-origin: top center;
}

.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    /* background: transparent; */
    pointer-events: auto;
}

.mega-dropdown.one-col {
    grid-template-columns: 1fr;
    min-width: 220px;
    max-width: 280px;
}

.mega-dropdown .col ul {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mega-dropdown .col ul li a {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--font-size-md);
    font-weight: 450;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mega-dropdown .col ul li a:last-child {
    border-bottom: none;
}

.mega-dropdown .col ul li a span {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.05rem;
}


.mega-dropdown .col ul li a:hover {
    color: var(--color-primary);
    padding-left: 8px;
    background: #141a21e1;
}

.mega-dropdown .col .title {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: var(--space-xs);
}

/* ============================================================
   IMAGE COLUMN - Updated for full image display
   ============================================================ */
.mega-dropdown .col.img-col {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    /* Remove any padding or margins */
    padding: 0;
    margin: 0;
    /* Make it take full height of the dropdown */
    height: 100%;
    /* Remove any background */
    /* background: transparent; */
}


.mega-dropdown .col.img-col .title {
    display: none;
}

.mega-dropdown .col.img-col img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform var(--transition-medium);
    /* Ensure image fills the container */
    flex: 1;
}

.mega-dropdown .col.img-col img:hover {
    transform: scale(1.03);
}

/* Show on hover (desktop) - Smooth Slide */
@media (min-width: 993px) {
    .nav-menu > li:hover .mega-dropdown,
    .nav-menu > li:hover .mega-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0px) scale(1) !important;
    }

    .nav-menu > li .mega-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0px) scale(1) !important;
    }
}

/* ============================================================
   NAV ACTIONS
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-actions .menu-trigger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 28px;
    background: var(--bg-tertiary);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.nav-actions .menu-trigger:hover {
    border-color: var(--color-primary);
    background: var(--bg-hover);
}

.nav-actions .menu-trigger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-actions .menu-trigger:hover span {
    background: var(--color-primary);
}

/* ============================================================
   MOBILE OVERLAY & MENU - Smooth Slide Animation
   ============================================================ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--shadow-dark);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium) ease, visibility var(--transition-medium) ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--transition-slow) cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 4px 0 40px var(--shadow-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
}

.mobile-menu.active { 
    transform: translateX(0); 
}

/* Mobile Header */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
    /* Ensure it's above overlay */
    will-change: transform;
}

.mobile-menu.active { 
    transform: translateX(0);
    box-shadow: 4px 0 40px var(--shadow-medium);
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    flex-shrink: 0;
    min-height: 56px;
    transition: background var(--transition-fast);
}

.mobile-header .left-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mobile-header .back-btn {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    padding: 0.2rem 0.4rem;
    display: none;
    transition: color var(--transition-fast);
}

.mobile-header .back-btn:hover { 
    color: var(--color-primary); 
}

.mobile-header .brand-sm {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.mobile-header .brand-sm .gold{
  color: var(--color-primary);
}

.mobile-header .brand-sm img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(240, 193, 61, 0.2));
}

.mobile-header .menu-title {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--color-primary);
    display: none;
}

.mobile-header .close-menu {
    font-size: 1.4rem;
    color: var(--text-secondary);
    padding: 0 0.2rem;
    transition: color var(--transition-fast);
}

.mobile-header .close-menu:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.mobile-header.sub-active .back-btn { 
    display: block; 
}

.mobile-header.sub-active .brand-sm { 
    display: none; 
}

.mobile-header.sub-active .menu-title { 
    display: block; 
}

.mobile-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Main List - Scrollable */
.mobile-main-list {
    height: 100%;
    overflow-y: auto;
    padding: 0.2rem 0;
}

.mobile-main-list::-webkit-scrollbar {
    width: 4px;
}

.mobile-main-list ul {
    display: flex;
    flex-direction: column;
}

.mobile-main-list ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-gray);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.mobile-main-list ul li a i {
    font-size: 0.7rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.mobile-main-list ul li a:hover { 
    background: var(--bg-hover);
    color: var(--color-primary);
    padding-left: 1.8rem;
}

.mobile-main-list ul li a:hover i {
    color: var(--color-primary);
}

/* Mobile Submenu - Smooth Slide */
.mobile-sub-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    transform: translateX(100%);
    transition: transform var(--transition-slow) cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.mobile-sub-wrapper::-webkit-scrollbar {
    width: 4px;
}

.mobile-sub-wrapper.open { 
    transform: translateX(0); 
}

.mobile-sub-wrapper .sub-title {
  display: none;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: var(--space-xs);
    flex-shrink: 0;
}

.mobile-sub-wrapper .sub-items {
    flex: 1;
    overflow-y: auto;
}

.mobile-sub-wrapper a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-gray);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.mobile-sub-wrapper a span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mobile-sub-wrapper a:hover {
    color: var(--color-primary);
    padding-left: 8px;
    background: var(--bg-hover);
}

.mobile-sub-wrapper .sub-image {
    margin-top: 0.8rem;
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS - Updated
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .top-bar {
        padding: 0 5px;
        gap: 3px;
        min-height: 30px;
    }
    
    .top-bar-left {
        gap: 0.5rem;
        padding: var(--space-sm) var(--space-xs);
    }
    
    .top-bar-left a span {
        display: none;
    }
    
    .top-bar-left a i {
        font-size: var(--font-size-base);
        width: 1.1rem;
    }
    
    .top-bar-right a {
        font-size: var(--font-size-xs);
        padding: 0.4rem 0.5rem;
    }
    
    .news-headline {
        padding: 4px 0;
        margin: 2px 0;
    }
    
    .news-headline p {
        /* font-size: 0.65rem; */
        padding-left: 100%;
    }
    
    .top-bar-left {
        padding: var(--space-sm) var(--space-md);
    }
    
    .top-bar-left a i {
        font-size: var(--font-size-md);
        width: auto;
    }
    
    .top-bar-right a {
        font-size: var(--font-size-sm);
        padding: 1rem;
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }

    .navbar{
        top: 40px;
    }
    
    .nav-menu { 
        display: none; 
    }
    
    .nav-actions .menu-trigger { 
        display: flex; 
    }
    
    .brand {
        font-size: var(--font-size-2xl);
    }
    
    .brand img {
        width: 28px;
        height: 28px;
    }
    
    .mega-dropdown { 
        display: none !important; 
    }
}

/* Mobile Medium */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 3px;
        gap: 2px;
        min-height: 25px;
    }
    
    .top-bar-left {
        padding: var(--space-xs) var(--space-xs);
        gap: var(--space-sm);
    }
    
    .top-bar-left a i {
        font-size: 0.85rem;
        width: 1rem;
    }
    
    .top-bar-right a {
        font-size: 0.6rem;
        padding: 0.3rem 0.4rem;
    }
    
    .news-headline {
        padding: 3px 0;
        margin: 2px 0;
    }
    
    .news-headline p {
        /* font-size: 0.6rem; */
        padding-left: 100%;
        /* animation-duration: 20s; */
    }

    .navbar{
        top: 25px;
    }
    
    .main-content h2 {
        font-size: var(--font-size-xl);
    }
    
    .main-content p {
        font-size: var(--font-size-base);
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .top-bar {
        padding: 0 2px;
        gap: 1px;
        min-height: 23px;
    }
    
    .top-bar-left {
        padding: var(--space-xs) 2px;
        gap: 0.2rem;
    }
    
    .top-bar-left a i {
        font-size: 0.7rem;
        width: 0.8rem;
    }
    
    .top-bar-right a {
        font-size: 0.5rem;
        padding: 0.2rem 0.3rem;
    }
    
    .news-headline {
        padding: 2px 0;
        margin: 1px 0;
    }
    
    .news-headline p {
        /* font-size: 0.5rem; */
        padding-left: 100%;
        /* animation-duration: 15s; */
    }
    
    .top-bar-right {
        justify-content: flex-start;
    }
    
    .top-bar-right a {
        padding: 0.3rem 0.6rem;
        font-size: var(--font-size-xs);
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-xs);
    }

    .navbar{
        top: 23px;
    }
    
    .brand {
        font-size: var(--font-size-lg);
    }
    
    .brand img {
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu {
        width: 280px;
        max-width: 90%;
    }
    
    .mobile-main-list ul li a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Very Small Phones */
@media (max-width: 360px) {
    .top-bar-left a i {
        font-size: 0.6rem;
        width: 0.7rem;
    }
    
    .top-bar-right a {
        font-size: 0.4rem;
        padding: 0.15rem 0.2rem;
    }
    
    .news-headline p {
        font-size: 0.45rem;
        animation-duration: 12s;
    }
    
    .brand {
        font-size: var(--font-size-md);
    }
    
    .brand img {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu {
        width: 260px;
        max-width: 95%;
    }
    
    .mobile-main-list ul li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.main-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    background: var(--gradient-glow);
    -webkit-background-clip: text;
}

.main-content p {
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--text-primary); }
.text-dark { color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); }

/* Background */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-card { background: var(--bg-card); }
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }

/* Spacing */
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.ml-1 { margin-left: var(--space-sm); }
.mr-1 { margin-right: var(--space-sm); }

.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

/* Borders */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border-light); }
.border-primary { border: 1px solid var(--color-primary); }
.border-bottom { border-bottom: 1px solid var(--border-light); }

/* Shadows */
.shadow { box-shadow: 0 2px 8px var(--shadow-light); }
.shadow-md { box-shadow: 0 4px 20px var(--shadow-medium); }
.shadow-lg { box-shadow: 0 8px 40px var(--shadow-medium); }
.shadow-glow { box-shadow: 0 0 30px var(--shadow-glow); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hover-glow:hover {
    box-shadow: 0 0 30px var(--shadow-glow);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--shadow-glow); }
    50% { box-shadow: 0 0 40px var(--shadow-glow); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: var(--color-primary);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--bg-primary);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
    background: var(--bg-tertiary);
    background-image: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-light) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   SUBMENU SLIDE ANIMATION - Additional Enhancements
   ============================================================ */
.mega-dropdown .col ul li a {
    position: relative;
    overflow: hidden;
}

.mega-dropdown .col ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-medium) ease;
}

.mega-dropdown .col ul li a:hover::after {
    width: 100%;
}

/* Mobile submenu slide in animation */
.mobile-sub-wrapper.open {
    animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-sub-wrapper:not(.open) {
    animation: slideOutRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0.5;
    }
}