/* Floating White Header Styles */

/* Main Fixed Header - Always Sticky */
.header-area.style-2,
.header-area.style-2.stricky-fixed {
    position: fixed !important;
    top: 20px !important;
    left: 0;
    right: 0;
    width: 95% !important;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 8px 20px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

/* Override default header styles from style.css */
.header-area.style-2 .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

.header-area.style-2 .row {
    margin: 0 !important;
    align-items: center !important;
}

/* Logo styling */
.header-area .logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin-top: 0 !important;
}

.header-area .logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Main menu container */
.mainmenu-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
}

/* Remove gray background but keep menu visible */
.header-area.style-2 .mainmenu-area .mainmenu-bg {
    background: none !important;
    padding: 0 !important;
}

.header-area.style-2 .mainmenu-area {
    background: transparent !important;
}

/* Override any background on parent elements */
.header-area.style-2::before,
.header-area.style-2::after {
    display: none !important;
}

/* Make sure navigation is visible */
.main-menu.style-2 .navigation {
    display: flex !important;
}

/* Navigation Links - Force black color for white header */
.main-menu.style-2 .navigation>li {
    position: relative;
    padding: 0 15px;
}

.header-area.style-2 .main-menu.style-2 .navigation>li>a,
.header-area.style-2.stricky-fixed .main-menu.style-2 .navigation>li>a {
    color: #222222 !important;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    padding: 20px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: none !important;
}

.header-area.style-2 .main-menu.style-2 .navigation>li>a:hover,
.header-area.style-2.stricky-fixed .main-menu.style-2 .navigation>li>a:hover,
.header-area.style-2 .main-menu.style-2 .navigation>li.current>a,
.header-area.style-2.stricky-fixed .main-menu.style-2 .navigation>li.current>a {
    color: #e31e24 !important;
    text-shadow: none !important;
}

/* Underline effect on hover */
.main-menu.style-2 .navigation>li>a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e31e24;
    transition: width 0.3s ease;
}

.main-menu.style-2 .navigation>li>a:hover::after,
.main-menu.style-2 .navigation>li.current>a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    background: #e31e24;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 15px;
}

.navbar-toggle .icon-bar {
    background-color: #ffffff;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    margin: 4px 0;
}

.navbar-toggle:hover {
    background: #c41a1f;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    background: #ffffff;
    border-radius: 20px;
    margin-top: 15px;
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu li {
    padding: 8px 20px;
}

.mobile-menu li a {
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu li a:hover {
    background: #f5f5f5;
    color: #e31e24;
}

/* Responsive adjustments */
@media only screen and (max-width: 1199px) {
    .header-area.style-2 {
        width: 98%;
        padding: 8px 15px;
    }

    .main-menu.style-2 .navigation>li {
        padding: 0 10px;
    }

    .main-menu.style-2 .navigation>li>a {
        font-size: 14px;
    }
}

@media only screen and (max-width: 991px) {
    .header-area.style-2 {
        border-radius: 30px;
        padding: 10px 20px;
    }

    .header-area .logo img {
        max-height: 50px;
    }

    .navigation {
        display: none !important;
    }
}

@media only screen and (max-width: 767px) {
    .header-area.style-2 {
        width: 92%;
        top: 15px;
        border-radius: 50px;
        padding: 12px 20px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-area.style-2 .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .header-area.style-2 .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

    /* Logo column - centered */
    .header-area.style-2 .col-lg-3,
    .header-area.style-2 .col-md-3,
    .header-area.style-2 .col-sm-12,
    .header-area.style-2 .col-xs-12 {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .header-area.style-2 .col-lg-9,
    .header-area.style-2 .col-md-9 {
        display: none !important;
        /* Hide the navmenu column on mobile */
    }

    .header-area .logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-area .logo img {
        max-height: 42px;
        width: auto;
    }
}

@media only screen and (max-width: 479px) {
    .header-area.style-2 {
        width: 90%;
        border-radius: 40px;
        padding: 10px 15px;
    }

    .header-area .logo img {
        max-height: 38px;
    }
}

/* Remove body padding - header floats over hero section */
body {
    padding-top: 0 !important;
}

@media only screen and (max-width: 767px) {
    body {
        padding-top: 0 !important;
    }
}