/* Standardized Header Styles */
.main-header {
    background: rgba(41, 41, 41, 0.98) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    margin: 0;
    padding: 10px 0;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.logo-box {
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
}

.logo img {
    max-width: 150px;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    object-fit: contain;
    width: 100%;
}

/* Responsive logo sizing - KEEP CONSISTENT */
@media (max-width: 1199px) {
    .logo img {
        max-width: 150px; /* Same as desktop */
    }
}

@media (max-width: 991px) {
    .logo img {
        max-width: 140px;
    }
    .main-header {
        padding: 8px 0;
    }
}

@media (max-width: 767px) {
    .logo img {
        max-width: 120px;
    }
    .main-header {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 100px;
    }
    .main-header {
        padding: 5px 0;
    }
}

/* Extra large screen optimizations - KEEP SAME SIZE */
@media (min-width: 1600px) {
    .logo img {
        max-width: 150px; /* Same size - NO CHANGE */
    }
    .navigation li a {
        font-size: 0.9rem; /* Same as default */
        padding: 2px 6px;
    }
    /* Keep consistent padding - NO CHANGE */
}

@media (min-width: 1920px) {
    .logo img {
        max-width: 150px; /* Same size - NO CHANGE */
    }
    .navigation li {
        margin-right: 25px; /* Same as default */
    }
    .navigation li a {
        font-size: 0.9rem; /* Same as default */
    }
    /* Keep consistent padding - NO CHANGE */
}

/* Logos Wrapper - Separated from main .logo class */
.logos-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logos */
}

/* BRTC Logo Styling - Independent sizing */
.brtc-logo {
    display: inline-block;
    line-height: 1;
}

.brtc-logo img {
    max-width: 50px; /* Default size for BRTC logo - YOU CAN CHANGE THIS */
    height: auto;
    transition: all 0.3s ease;
}

/* Main Triangle Logo Styling - Independent sizing */
.main-triangle-logo {
    display: inline-block;
    line-height: 1;
}

.main-triangle-logo img {
    max-width: 180px; /* Default size for Triangle logo - YOU CAN CHANGE THIS */
    height: auto;
    transition: all 0.3s ease;
}

/* Responsive Logo Sizes - Desktop */
@media (max-width: 991px) {
    .logos-wrapper {
        gap: 10px;
    }
    
    .brtc-logo img {
        max-width: 100px;
    }
    
    .main-triangle-logo img {
        max-width: 150px;
    }
}

/* Responsive Logo Sizes - Mobile */
@media (max-width: 767px) {
    .logos-wrapper {
        gap: 8px;
    }
    
    .brtc-logo img {
        max-width: 80px; /* Smaller on mobile */
    }
    
    .main-triangle-logo img {
        max-width: 120px; /* Smaller on mobile */
    }
}

/* Responsive Logo Sizes - Very Small Screens */
@media (max-width: 480px) {
    .logos-wrapper {
        gap: 6px;
    }
    
    .brtc-logo img {
        max-width: 60px; /* Even smaller on very small screens */
    }
    
    .main-triangle-logo img {
        max-width: 100px; /* Even smaller on very small screens */
    }
}

/* Navigation Styles */
.navigation {
    display: flex;
    list-style: none;
}

.navigation li {
    margin-right: 25px;
}

/* Mobile navigation styles */
@media (max-width: 991px) {
    /* Override the display: none from inline styles */
    .main-menu.show .navigation,
    .navbar-collapse.show .navigation {
        display: block !important; /* Change to block for mobile */
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navigation li {
        width: 100%;
        margin: 0 0 5px 0;
    }
    
    .navigation li a {
        display: block;
        padding: 15px;
        width: 100%;
    }
}

.nav-outer {
    position: relative;
    z-index: 1001;
}

.navigation li a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation spacing adjustments for larger screens */
@media (min-width: 1600px) {
    .navigation li {
        margin-right: 35px;
    }
    .navigation li a {
        font-size: 1rem;
        padding: 5px 10px;
    }
}

@media (min-width: 1920px) {
    .navigation li {
        margin-right: 45px;
    }
    .navigation li a {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
}

.navigation li a:hover {
    color: #00FF85;
    background: rgba(0, 255, 133, 0.1);
    transform: translateY(-1px);
}

.navigation li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00FF85;
    transition: width 0.3s ease;
}

.navigation li a:hover::after {
    width: 100%;
}

/* Active Page Highlighting */
.navigation li a.active {
    color: #00FF85;
    background: rgba(0, 255, 133, 0.15);
    font-weight: 700;
}

.navigation li a.active::after {
    width: 100%;
}

/* Active Dropdown States */
.dropdown > a.active {
    color: #00FF85;
    background: rgba(0, 255, 133, 0.15);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown ul {
    position: absolute;
    top: calc(100% + 2px); /* Minimal gap - just enough for visual separation */
    left: 0;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 20000 !important; /* Higher z-index to ensure it appears above carousel */
    backdrop-filter: blur(10px);
    margin-top: 0; /* Ensure no additional gap */
}

/* Create invisible bridge to prevent hover loss when moving cursor to dropdown */
@media (min-width: 992px) {
    .dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 15px; /* Increased bridge height to cover the gap completely */
        background: transparent;
        z-index: 19999;
    }
}

/* Scrolling for Servers dropdown - Desktop */
@media (min-width: 992px) {
    .dropdown:nth-child(6) ul { /* Servers is the 6th dropdown */
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        /* Ensure hover is maintained while scrolling */
        pointer-events: auto;
    }
    
    /* Maintain hover state when cursor is over dropdown content */
    .dropdown:nth-child(6):hover ul {
        pointer-events: auto;
    }
    
    /* Custom scrollbar for webkit browsers */
    .dropdown:nth-child(6) ul::-webkit-scrollbar {
        width: 6px;
    }
    
    .dropdown:nth-child(6) ul::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    .dropdown:nth-child(6) ul::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 133, 0.5);
        border-radius: 3px;
    }
    
    .dropdown:nth-child(6) ul::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 255, 133, 0.8);
    }
}

/* Show dropdown on hover for DESKTOP - works alongside click */
@media (min-width: 992px) {
    .dropdown:hover ul,
    .dropdown ul:hover,
    .dropdown ul:focus-within {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Ensure dropdown links are clickable on desktop hover */
    }
}

/* Show dropdown when is-open class is added via JavaScript (mobile click behavior) */
.dropdown.is-open ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto; /* Ensure dropdown is interactive */
}

/* Ensure dropdowns work with click on all devices */
.dropdown a {
    cursor: pointer; /* Ensure cursor indicates interactivity */
}

.dropdown ul li {
    margin: 0;
    display: block;
    pointer-events: auto; /* Ensure list items are clickable */
}

.dropdown ul li a {
    display: block;
    padding: 8px 15px;
    font-size: 0.85rem;
    pointer-events: auto; /* Ensure links are clickable */
    cursor: pointer; /* Show pointer cursor */
}

/* Mobile Navigation Toggler - Enhanced Premium Design */
.mobile-nav-toggler {
    position: relative;
    display: none;
    font-size: 20px;
    line-height: 40px;
    cursor: pointer;
    color: #00FF85;
    margin: 0 0 0 20px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.15), rgba(0, 255, 133, 0.05));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 255, 133, 0.2), inset 0 0 0 1px rgba(0, 255, 133, 0.1);
    z-index: 1001;
    border: 2px solid rgba(0, 255, 133, 0.3);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Active mobile toggler state - TRANSFORM animation */
.mobile-nav-toggler.is-active {
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.35), rgba(0, 255, 133, 0.15));
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 133, 0.5), inset 0 0 0 1px rgba(0, 255, 133, 0.3);
    border-color: rgba(0, 255, 133, 0.6);
    animation: pulse-glow 0.6s ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 255, 133, 0.5), inset 0 0 0 1px rgba(0, 255, 133, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(0, 255, 133, 0.7), inset 0 0 0 2px rgba(0, 255, 133, 0.5);
    }
}

.mobile-nav-toggler:hover {
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.35), rgba(0, 255, 133, 0.2));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 133, 0.4), inset 0 0 0 1px rgba(0, 255, 133, 0.2);
    border-color: rgba(0, 255, 133, 0.5);
}

.mobile-nav-toggler span.fas.fa-bars {
    padding: 12px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 133, 0.6), 0 0 20px rgba(0, 255, 133, 0.4);
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 900;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.mobile-nav-toggler span.fas.fa-bars:hover {
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 0 15px rgba(0, 255, 133, 0.9), 0 0 30px rgba(0, 255, 133, 0.7), 0 0 45px rgba(0, 255, 133, 0.5);
}

/* Animated glow effect on active state */
.mobile-nav-toggler.is-active span.fas.fa-bars {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(0, 255, 133, 1), 0 0 60px rgba(0, 255, 133, 0.8);
    animation: icon-glow 0.8s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(0, 255, 133, 1), 0 0 60px rgba(0, 255, 133, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(0, 255, 133, 1), 0 0 90px rgba(0, 255, 133, 1);
    }
}

/* Ripple effect container */
.mobile-nav-toggler::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 133, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.mobile-nav-toggler:active::before {
    width: 120%;
    height: 120%;
}

/* Outer ring effect */
.mobile-nav-toggler::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(0, 255, 133, 0.4), transparent, rgba(0, 255, 133, 0.4));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-toggler:hover::after {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile Menu Close Button - HIDDEN on desktop by default */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #E0E0E0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none !important; /* FORCE HIDDEN on desktop */
    align-items: center;
    justify-content: center;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.main-menu .mobile-menu-close {
    position: fixed !important;      /* Ensure it stays fixed when menu opens */
    top: 10px !important;            /* Better spacing from top */
    right: 10px !important;          /* Better spacing from right */
    z-index: 20000 !important;       /* Higher than menu z-index */
    display: none !important;        /* FORCE HIDDEN on desktop */
    opacity: 0 !important;
    visibility: hidden !important;
    width: 45px !important;          /* Larger touch target */
    height: 45px !important;         /* Larger touch target */
    font-size: 1.8rem !important;    /* Bigger X icon */
}

.mobile-menu-close:hover {
    background: rgba(0, 255, 133, 0.2);
    color: #00FF85;
    transform: rotate(90deg);
}

/* Responsive Navigation */
@media (max-width: 991px) {
    /* Show close button ONLY on mobile */
    .mobile-menu-close,
    .main-menu .mobile-menu-close {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-nav-toggler {
        display: flex !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        position: relative;
        z-index: 1001;
        background: linear-gradient(135deg, rgba(0, 255, 133, 0.2), rgba(0, 255, 133, 0.1));
        border: 2px solid rgba(0, 255, 133, 0.4);
        padding: 0;
        border-radius: 15px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 4px 15px rgba(0, 255, 133, 0.3), inset 0 0 0 1px rgba(0, 255, 133, 0.15);
        backdrop-filter: blur(5px);
    }
    
    @media (max-width: 768px) {
        .mobile-nav-toggler {
            width: 48px;
            height: 48px;
            padding: 0;
            z-index: 1001;
        }
    }
    
    /* Hide main menu by default on mobile */
    .main-menu {
        display: none;
    }
    
    /* Hide navigation by default on mobile */
    .navigation {
        display: none;
    }
    
    /* Removed conflicting .dropdown ul rule - using more specific .main-menu.show .dropdown selectors instead */
    
    /* Show the navigation when the navbar-collapse has the 'show' class */
    .navbar-collapse.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
    }
    
    /* Ensure navigation is visible when shown - more specific selector to override inline styles */
    .navbar-collapse.show .navigation {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
    
    /* Ensure navigation is visible when shown with show class */
    .navigation.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
    
    /* Mobile menu overlay - MAXIMUM z-index */
    .main-menu.show {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto !important; /* Auto height instead of fixed 100vh */
        min-height: 100vh; /* At least full viewport height */
        max-height: 100vh; /* But don't exceed viewport */
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        z-index: 2147483647 !important; /* ✅ MAXIMUM possible z-index */
        padding: 70px 15px 15px; /* Reduced top padding for better spacing */
        overflow-y: auto !important; /* Allow natural scrolling */
        overflow-x: hidden;
        touch-action: pan-y; /* Allow vertical scrolling */
        box-sizing: border-box;
    }
    
    /* Ensure navigation is scrollable if content overflows */
    .main-menu.show .navigation {
        display: block !important;
        width: 100% !important;
        position: relative;
        z-index: 2147483647 !important;
        height: auto !important; /* Auto height */
        max-height: none !important; /* Remove max-height restriction */
        overflow-y: visible !important; /* Let parent handle scrolling */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        touch-action: pan-y; /* Allow vertical scroll */
        padding-bottom: 20px; /* Add bottom padding for better UX */
    }
    
    /* Dropdown parent items - same z-index */
    .main-menu.show .dropdown {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: 2147483647 !important;
    }
    
    .main-menu.show .navigation > li:last-child {
        border-bottom: none;
    }
    
    .main-menu.show .navigation > li > a {
        display: block;
        padding: 15px 15px; /* Increased padding for better touch targets */
        font-size: 1.1rem;
        color: #E0E0E0;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 5px;
    }
    
    .main-menu.show .navigation > li > a:hover {
        background: rgba(0, 255, 133, 0.15);
        color: #00FF85;
        padding-left: 20px;
    }
    
    /* Style dropdown toggle links */
    .main-menu.show .dropdown > a {
        position: relative;
        padding-right: 35px; /* Increased padding for dropdown arrow */
        transition: all 0.3s ease;
        font-weight: 700;
        color: #00FF85;
        pointer-events: auto; /* Ensure click events work */
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
        touch-action: manipulation; /* Prevent zoom/scroll */
        cursor: pointer; /* Show pointer cursor */
        text-decoration: none !important; /* Remove underline */
    }
    
    /* Remove any default link styling */
    .main-menu.show .dropdown > a[href],
    .main-menu.show .dropdown > a[href="#"],
    .main-menu.show .dropdown > a[href^="javascript"] {
        color: #00FF85;
        text-decoration: none !important;
    }
    
    /* Active/Highlight state for dropdown parent links */
    .main-menu.show .dropdown.is-open > a {
        background: rgba(0, 255, 133, 0.25);
        color: #00FF85;
        border-radius: 5px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(0, 255, 133, 0.2);
    }
    
    .main-menu.show .dropdown > a::after {
        content: '\25BC';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9rem;
        transition: transform 0.3s ease;
        color: #00FF85;
    }
    
    .main-menu.show .dropdown.is-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Mobile dropdown styles - HIDDEN by default */
    .main-menu.show .dropdown ul {
        position: static !important;
        width: 100% !important;
        background: rgba(25, 25, 25, 0.95);
        border: none;
        border-radius: 0;
        padding: 8px 0;
        margin-top: 10px;
        margin-bottom: 10px;
        display: none !important; /* ✅ HIDDEN by default */
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
        /* AUTO-SIZE */
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: 2147483647 !important;
        touch-action: none; /* Prevent touch actions on dropdown */
    }
    
    /* Scrolling for Servers dropdown - Mobile */
    .main-menu.show .dropdown:nth-child(6) ul { /* Servers dropdown */
        max-height: 250px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Custom scrollbar for Servers dropdown - Mobile */
    .main-menu.show .dropdown:nth-child(6) ul::-webkit-scrollbar {
        width: 4px;
    }
    
    .main-menu.show .dropdown:nth-child(6) ul::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }
    
    .main-menu.show .dropdown:nth-child(6) ul::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 133, 0.6);
        border-radius: 2px;
    }
    
    /* When dropdown is CLOSED (no is-open class) - ensure it stays hidden */
    .main-menu.show .dropdown:not(.is-open) > ul {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Show dropdown when is-open class is added (mobile) */
    .main-menu.show .dropdown.is-open > ul {
        display: block !important; /* ✅ OVERRIDE display:none */
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2147483647 !important;
        position: static !important;
        width: 100% !important;
        background: rgba(30, 30, 30, 0.98) !important;
        box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6) !important;
        padding: 8px 0 !important; /* Ensure padding is applied */
    }
    
    /* Force show dropdown items - override any conflicting rules */
    .main-menu.show .dropdown.is-open ul,
    .main-menu.show .dropdown.is-open > ul,
    .main-menu.show li.dropdown.is-open > ul,
    body .main-menu.show .dropdown.is-open ul {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 10px 0 !important;
    }
    
    /* CRITICAL FALLBACK: If JS fails, use CSS hover as backup on mobile */
    @media (max-width: 991px) {
        .main-menu.show .dropdown:active > ul,
        .main-menu.show .dropdown:focus-within > ul {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
    
    .main-menu.show .dropdown ul li {
        display: block !important;
        width: 100%;
        list-style: none;
        position: relative;
        z-index: 2147483647 !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-menu.show .dropdown ul li:last-child {
        border-bottom: none !important;
    }
    
    .main-menu.show .dropdown ul li a {
        padding: 12px 20px;
        font-size: 0.9rem;
        color: #B0B0B0;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 3px;
        margin: 3px 5px;
        line-height: 1.4;
        position: relative;
        z-index: 2147483647 !important;
        touch-action: manipulation; /* Prevent zoom/scroll on tap */
        user-select: none; /* Prevent text selection */
        border-left: 2px solid transparent;
    }
    
    .main-menu.show .dropdown ul li a:hover,
    .main-menu.show .dropdown ul li a:focus {
        background: rgba(0, 255, 133, 0.2);
        color: #00FF85;
        padding-left: 30px;
        outline: none;
        border-left-color: #00FF85;
    }
    
    .navigation {
        display: none;
    }
}

/* Hide mobile menu elements on desktop - FORCE OVERRIDE */
@media (min-width: 992px) {
    .mobile-menu-close,
    .main-menu .mobile-menu-close,
    body .mobile-menu-close,
    header .mobile-menu-close {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Ensure desktop navigation is visible */
    .main-menu {
        display: block !important;
    }
    
    .navbar-collapse {
        display: flex !important;
    }
}

/* Add spacing below header to ensure content is not covered */
body.has-fixed-header {
    padding-top: 80px; /* Adjust based on header height */
}

/* Ensure banner sections have proper spacing from fixed header */
.slider-banner-section,
.hero-section {
    margin-top: 80px; /* Account for fixed header height */
}

/* Fixed Header Logo Sizing */
.main-header.fixed-header .logo-box .logo img {
    max-width: 220px;
    transform: scale(0.95);
}

/* Icon Styles */
.fas {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-bars:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.mobile-nav-toggler .fas.fa-bars {
    font-weight: 900;
}

/* ============================================
   GLOBAL OVERRIDE - Ensure consistent design across ALL pages
   This section overrides any page-specific styles
   ============================================ */

/* Force premium hamburger design on all pages */
.main-header .mobile-nav-toggler,
header .mobile-nav-toggler,
body .mobile-nav-toggler {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.2), rgba(0, 255, 133, 0.1)) !important;
    border: 2px solid rgba(0, 255, 133, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 255, 133, 0.3), inset 0 0 0 1px rgba(0, 255, 133, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    backdrop-filter: blur(5px) !important;
}

.main-header .mobile-nav-toggler:hover,
header .mobile-nav-toggler:hover,
body .mobile-nav-toggler:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 133, 0.4), inset 0 0 0 1px rgba(0, 255, 133, 0.2) !important;
}

.main-header .mobile-nav-toggler.is-active,
header .mobile-nav-toggler.is-active,
body .mobile-nav-toggler.is-active {
    transform: rotate(90deg) scale(1.1) !important;
    animation: pulse-glow 0.6s ease-in-out !important;
}

.main-header .mobile-nav-toggler span.fas.fa-bars,
header .mobile-nav-toggler span.fas.fa-bars,
body .mobile-nav-toggler span.fas.fa-bars {
    font-size: 24px !important;
    text-shadow: 0 0 10px rgba(0, 255, 133, 0.6), 0 0 20px rgba(0, 255, 133, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    padding: 12px !important;
}

.main-header .mobile-nav-toggler.is-active span.fas.fa-bars,
header .mobile-nav-toggler.is-active span.fas.fa-bars,
body .mobile-nav-toggler.is-active span.fas.fa-bars {
    animation: icon-glow 0.8s ease-in-out infinite alternate !important;
}

/* Responsive consistency */
@media (max-width: 768px) {
    .main-header .mobile-nav-toggler,
    header .mobile-nav-toggler,
    body .mobile-nav-toggler {
        width: 48px !important;
        height: 48px !important;
    }
}