/* Header specific styles */

/* Add margin to body for fixed header */
body {
    padding-top: 90px; /* Match header height */
}

/* Remove default margin from ul elements in header */
#header ul {
    margin-bottom: 0 !important;
}

/* Header logo styling */
.header-logo {
    height: 50px !important;
}

.mobile-logo {
    height: 50px !important;
}

/* Header height and centering */
#header {
    height: 90px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Desktop Navigation - Web Navbar */
.web_navbar {
    display: flex;
    align-items: center;
    height: 90px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Web navbar responsive container widths */
@media (min-width: 576px) {
    .web_navbar {
        max-width: 540px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 768px) {
    .web_navbar {
        max-width: 720px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    .web_navbar {
        max-width: 960px;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 1200px) {
    .web_navbar {
        max-width: 1140px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1400px) {
    .web_navbar {
        max-width: 1320px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 1600px) {
    .web_navbar {
        max-width: 1500px;
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (min-width: 1920px) {
    #header {
        height: 120px;
    }

    .web_navbar {
        max-width: 1800px;
        height: 120px;
        padding-left: 80px;
        padding-right: 80px;
    }

    .header-logo {
        height: 70px !important;
    }

    .mobile-logo {
        height: 70px !important;
    }

    .nav-link.header-nav-link {
        font-size: 1.2rem !important;
        padding: 0.75rem 0 !important;
    }

    .main-navbar-area ul.desktop-nav li {
        margin-right: 3rem;
    }

    .user-dropdown-menu {
        min-width: 180px;
        font-size: 1.1rem;
    }

    .dropdown-content {
        min-width: 220px;
    }

    .dropdown-content .header-dropdown-link {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
    }

    /* Adjust body padding for larger header */
    body {
        padding-top: 120px;
    }
}

@media (min-width: 2560px) {
    #header {
        height: 140px;
    }

    .web_navbar {
        max-width: 2400px;
        height: 140px;
        padding-left: 100px;
        padding-right: 100px;
    }

    .header-logo {
        height: 90px !important;
    }

    .mobile-logo {
        height: 90px !important;
    }

    .nav-link.header-nav-link {
        font-size: 1.4rem !important;
        padding: 1rem 0 !important;
    }

    .main-navbar-area ul.desktop-nav li {
        margin-right: 4rem;
    }

    body {
        padding-top: 140px;
    }
}

/* Extra large screens 2560px and above */
@media (min-width: 2560px) {
    #header {
        max-width: 2400px;
        height: 140px;
        padding-left: 100px;
        padding-right: 100px;
    }

    .web_navbar {
        height: 140px;
    }

    .header-logo {
        height: 90px !important;
    }

    .mobile-logo {
        height: 90px !important;
    }

    .nav-link.header-nav-link {
        font-size: 1.4rem !important;
        padding: 1rem 0 !important;
    }

    .main-navbar-area ul.desktop-nav li {
        margin-right: 4rem;
    }

    body {
        padding-top: 140px;
    }

    /* Better column distribution for ultra-wide */
    .web_navbar .col-2 {
        flex: 0 0 20%;
    }

    .web_navbar .col-8 {
        flex: 0 0 60%;
    }

    .web_navbar .col-2:last-child {
        flex: 0 0 20%;
    }
}

/* Desktop Navigation - Web Navbar */
.web_navbar {
    display: flex;
    align-items: center;
    height: 90px;
    width: 100%;
    max-width: none;
}

.web_navbar .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.main-navbar-area ul.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.main-navbar-area ul.desktop-nav li {
    margin-right: 2.5rem;
    position: relative;
}

.main-navbar-area ul.desktop-nav li:last-child {
    margin-right: 0;
}

/* Mobile Navigation - Hidden by default */
.mobile_navbar {
    display: none;
    align-items: center;
    height: 70px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.mobile_navbar .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.mobile_menu_btn button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #374151;
}

.mobile_menu_btn button:hover {
    color: #ce4f49;
}

/* Navigation menu hover color */
.header-nav-link:hover {
    color: #ce4f49 !important;
}

/* Bootstrap nav-link override */
.nav-link.header-nav-link {
    color: #374151 !important;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex !important;
    align-items: center;
    padding: 0.5rem 0 !important;
    text-decoration: none;
}

.nav-link.header-nav-link:hover {
    color: #ce4f49 !important;
}

/* Navigation divider */
.nav-divider {
    width: 1px;
    height: 30px;
    background-color: #ce4f49;
    margin: 0 auto;
}

/* Mobile navigation divider */
.mobile-nav-divider {
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-divider .nav-divider {
    width: 100%;
    height: 1px;
    background-color: #ce4f49;
    margin: 0;
}

/* Dropdown styling for desktop HELP menu */
.dropDown {
    position: relative;
}

.dropDown .header-nav-link svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropDown:hover .header-nav-link svg {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropDown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0 !important;
}

.dropdown-content .header-dropdown-link {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    padding: 0.75rem 1.5rem !important;
    display: block;
    text-decoration: none;
}

.dropdown-content .header-dropdown-link:hover {
    color: #ce4f49 !important;
    background-color: #f8f9fa !important;
}

/* User icon styling */
.header-user-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #CC554E;
    padding: 12px;
}

.logo_right {
    cursor: pointer;
}

/* User dropdown hover functionality */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 160px;
    margin-top: 0;
    background-color: #CC554E !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu:hover {
    display: block !important;
}

/* User dropdown link styling */
.user-dropdown-menu .header-dropdown-link {
    color: white !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block;
    text-decoration: none;
}

.user-dropdown-menu .header-dropdown-link:last-child {
    border-bottom: none !important;
}

.user-dropdown-menu .header-dropdown-link:hover {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-nav.show {
    transform: translateX(0);
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #374151;
}

.mobile-close:hover {
    color: #ce4f49;
}

/* Mobile menu content */
.mobile-menu-content {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.mobile-nav-link {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 1.125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    padding: 1.5rem 2rem !important;
    display: block !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

.mobile-nav-link:hover {
    color: #ce4f49 !important;
    background: none !important;
}

/* Smaller laptop adjustments */
@media (max-width: 1200px) {
    .main-navbar-area ul.desktop-nav li {
        margin-right: 1.5rem;
    }

    .nav-link.header-nav-link {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 1024px) {
    .main-navbar-area ul.desktop-nav li {
        margin-right: 1rem;
    }

    .nav-link.header-nav-link {
        font-size: 0.85rem !important;
    }

    .header-logo {
        height: 45px !important;
    }
}

/* Tablet/iPad specific adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
    .mobile_navbar .row {
        justify-content: space-between !important;
    }

    .mobile_navbar .col-4:first-child {
        display: none;
    }

    .mobile_navbar .col-4:nth-child(2) {
        flex: 0 0 auto;
        max-width: none;
        text-align: left !important;
    }

    .mobile_navbar .col-4:last-child {
        flex: 0 0 auto;
        max-width: none;
        text-align: right;
    }
}

/* Responsive header padding adjustments */
@media (max-width: 1200px) {
    #header {
        padding-left: 120px;
        padding-right: 120px;
    }
}

@media (max-width: 1024px) {
    #header {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Tablet/iPad specific adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
    #header {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    /* Adjust body padding for mobile header height */
    body {
        padding-top: 70px;
    }

    /* Adjust header height for mobile */
    #header {
        height: 70px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hide desktop navigation */
    .web_navbar {
        display: none !important;
    }

    /* Show mobile navigation */
    .mobile_navbar {
        display: flex !important;
    }

    /* Show mobile navigation menu when toggled */
    .mobile-nav {
        display: block !important;
    }
}

/* Ensure proper Bootstrap grid behavior */
/* .container {
    max-width: 1440px;
} */

@media (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media only screen and (max-width: 515px) {
    #header .logo img {
        height: auto !important;
    }
} 

/* Navigation container improvements */
.main-navbar-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* User icon section improvements */
.icons.nav-dropdown {
    display: flex;
    justify-content: flex-end;
    align-items: center;
} 