/* General Styles */
body {
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll due to sliding menu */
}

/* Header Wrapper: Full Width with Background Color */
.header-wrapper {
    width: 100% !important; /* Full width of the viewport */
    height: 59px !important;
    background: linear-gradient(145deg, #016FB0 50%, #61CE70 100%) !important;
    position: fixed !important; /* Fix the header to the top */
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important; /* Ensure it stays above other elements */
    display: flex !important;
    justify-content: center !important; /* Center the inner content */
    padding: 0 !important; /* Remove any default padding */
}

/* Header: Constrained to 1200px and Centered */
.header {
    max-width: 1200px !important; /* Constrain to 1200px */
    height: 59px; !important;
    width: 100% !important; /* Allow the header to take full available width within the wrapper */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0px !important; /* Horizontal padding for spacing */
    box-sizing: border-box !important; /* Ensure padding is included in width */
    background-color: transparent !important;
}

/* Logo Styles */
.logo img {
    height: 30px !important; /* Set logo height */
}

/* Navigation Container */
.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    /* Remove max-width from nav-container since .header is already constrained */
}

/* Navigation Links */
.nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    flex: 1 !important;
}

.nav-links a {
    text-decoration: none !important;
    color: #fff !important; /* White color for navigation links */
    font-size: 14px !important;
    font-weight: 500 !important; /* Medium weight */
    position: relative !important;
}

/* Dropdown Menu Styles */
.dropdown-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
    cursor: pointer !important; /* Clickable dropdown toggle */
}

.dropdown-content {
    display: none !important;
    position: absolute !important;
    left: 50% !important; /* Center the dropdown content */
    top: 130% !important; /* Gap below the main menu item */
    transform: translateX(-50%) !important; /* Center align */
    white-space: nowrap !important; /* Prevent text wrapping */
    padding: 5px 0 !important; /* Padding for spacing */
    background-color: #fff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    border-radius: 5px !important; /* Rounded corners */
    z-index: 1 !important;
    min-width: 150px !important; /* Dropdown width */
}

.dropdown-content a {
    padding: 10px 20px !important;
    display: block !important;
    text-align: center !important; /* Center text within dropdown */
    text-decoration: none !important;
    color: #000 !important; /* Black color for dropdown links */
}

.dropdown-wrapper:hover .dropdown-content,
.dropdown-content:hover {
    display: block !important; /* Show dropdown on hover */
}

/* Invisible Hover Area */
.dropdown-hover-area {
    position: absolute !important;
    top: 100% !important; /* Align with dropdown content */
    left: 50% !important;
    width: 100% !important;
    height: 30px !important; /* Increase hover area */
    background: transparent !important; /* Invisible */
    z-index: 1 !important;
    transform: translateX(-50%) !important; /* Center */
}

/* Support Login Button */
.support-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #fff !important; /* White border */
    border-radius: 5px !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important; /* Medium weight */
    color: #ffffff !important; /* White text */
    text-decoration: none !important;
    background-color: transparent !important; /* Transparent background */
    white-space: nowrap !important; /* Prevent text wrapping */
}

.support-login-content {
    display: flex !important;
    align-items: center !important;
}

.support-login-content i {
    font-size: 14px !important; /* Icon size */
    margin-left: 8px !important; /* Space between text and icon */
    color: #fff !important; /* White icon */
}

/* Chevron Indicator */
.chevron {
    margin-left: 5px !important;
    border: solid #fff !important; /* White chevron */
    border-width: 0 2px 2px 0 !important;
    display: inline-block !important;
    padding: 3px !important;
    transform: rotate(45deg) !important; /* Rotate to form a chevron */
    position: relative !important;
    top: -2px !important; /* Align with text */
}

/* Mobile Menu Styles */
.burger-menu {
    display: none !important;
    cursor: pointer !important;
    flex-direction: column !important;
    gap: 5px !important;
    z-index: 2 !important;
    padding-left: 20px !important; /* Left padding */
}

.burger-menu div {
    width: 25px !important;
    height: 3px !important;
    background: #fff !important;
}

/* Mobile Menu Container */
.mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: -350px !important; /* Initially hidden off-screen */
    width: 300px !important; /* Menu width */
    height: 100vh !important;
    background-color: #fff !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 20px !important;
    padding-right: 60px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    z-index: 100 !important; /* Above other elements */
    transition: left 0.3s ease !important; /* Slide-in effect */
}

.mobile-menu.active {
    padding-top: 60px !important;
    left: 0 !important; /* Slide into view */
}

.mobile-menu a {
    display: block !important;
    padding: 10px !important;
    color: #463F3A !important; /* Dark text for mobile links */
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: bold !important;
    text-align: left !important;
}

.mobile-menu .chevron {
    border-color: #463F3A !important; /* Dark chevron in mobile */
}

.mobile-menu .close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    cursor: pointer !important;
    font-size: 36px !important; /* Close icon size */
    color: #61CE70 !important; /* Green color for close icon */
    font-weight: bold !important;
    line-height: 1 !important; /* Thinner icon */
}

.mobile-menu .dropdown-menu {
    display: none !important;
    margin-bottom: 10px !important;
}

.mobile-menu .dropdown-menu a {
    font-size: 20px !important;
    font-weight: 500 !important; /* Medium weight */
}

.mobile-menu .dropdown-toggle.active + .dropdown-menu {
    display: block !important; /* Show dropdown when active */
}

/* Support Login Button in Mobile */
.mobile-menu .support-login-btn i {
    margin-left: 8px !important; /* Space between icon and text */
    font-size: 24px !important; /* Icon size */
    vertical-align: middle !important; /* Align with text */
    color: #fff !important; /* White icon */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .burger-menu {
        display: flex !important; /* Show burger menu on smaller screens */
    }
    
    .nav-container {
        display: none !important; /* Hide nav links on smaller screens */
    }
    
    .mobile-menu {
        display: block !important; /* Ensure mobile menu styles are applied */
    }
}

@media (max-width: 1200px) {
    /* Center the logo */
    .header {
        justify-content: center !important; /* Center all items in the header */
    }

    .nav-container {
        display: none !important; /* Hide nav links on smaller screens */
    }

    .logo {
        flex: 1; /* Make the logo take up space to help with centering */
        text-align: center; /* Center align text and images */
    }

    .logo img {
        margin: 0 auto; /* Center the logo image */
    }

    /* Other Mobile Menu Styles */
    .mobile-menu {
        display: block !important; /* Ensure mobile menu styles are applied */
    }

    .burger-menu {
        display: flex !important; /* Show burger menu on smaller screens */
    }
}
