/* New Header Styles with Minimal Height */
.new-header {
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 6px;
}

/* Header becomes fixed when scrolling */
.new-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px;
}

/* Header wrapper with minimal spacing and border radius */
.header-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 6px 25px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Enhanced styling when sticky */
.new-header.sticky .header-wrapper {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 6px 25px;
}

/* Header content layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: none;
}

/* Logo section */
.logo-section {
    flex-shrink: 0;
}

.logo-section img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* Main navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    align-items: center;
}

.nav-menu li a {
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 500;
    font-size: 20.32px;
    font-family: Poppins, sans-serif;
    padding-bottom: 3px;
    display: inline-block;
    position: relative;
    transition: all 0.4s ease-in-out;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #1260a0;
}

.nav-menu li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #156788;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.nav-menu li a.active:before,
.nav-menu li a:hover:before {
    opacity: 1;
    visibility: visible;
    width: 20px;
}

/* Desktop Dropdown Styles - Override Bootstrap */
.main-navigation .dropdown {
    position: relative;
}

.main-navigation .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #fff !important;
    min-width: 200px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    list-style: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    float: none !important;
}

.main-navigation .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.main-navigation .dropdown-menu li {
    margin: 0 !important;
}

.main-navigation .dropdown-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    border-bottom: none !important;
    white-space: nowrap !important;
}

.main-navigation .dropdown-menu li a:hover {
    background-color: #f8f9fa !important;
    color: #2c5aa0 !important;
    padding-left: 25px !important;
}

.main-navigation .dropdown-menu li a:before {
    display: none !important;
}

/* Header actions */
.header-actions {
    flex-shrink: 0;
    gap: 20px;
}

.contact-quick {
    display: flex;
    align-items: center;
}

.phone-number {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-shrink: 0;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}



/* Logo stays the same size when sticky */

/* Add padding to body when header becomes sticky */
body.header-sticky {
    padding-top: 60px;
}

/* Responsive Design with Minimal Spacing */
@media (max-width: 1200px) {
    .new-header {
        padding: 5px;
    }

    .header-wrapper {
        padding: 5px 20px;
        border-radius: 10px;
    }

    .new-header.sticky {
        padding: 5px;
    }

    .new-header.sticky .header-wrapper {
        padding: 5px 20px;
        border-radius: 10px;
    }

    .nav-menu {
        gap: 30px;
    }

    .nav-menu li a {
        font-size: 18px;
    }

    .header-actions {
        gap: 15px;
    }

    .phone-number {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .new-header {
        padding: 4px;
    }

    .header-wrapper {
        padding: 4px 18px;
        border-radius: 8px;
    }

    .new-header.sticky {
        padding: 4px;
    }

    .new-header.sticky .header-wrapper {
        padding: 4px 18px;
        border-radius: 8px;
    }

    .nav-menu {
        gap: 25px;
    }

    .nav-menu li a {
        font-size: 16px;
    }

    .logo-section img {
        height: 65px;
    }

    .contact-quick {
        display: none;
    }

    body.header-sticky {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .new-header {
        padding: 4px;
    }

    .header-wrapper {
        padding: 8px 15px;
        border-radius: 8px;
    }

    .new-header.sticky {
        padding: 4px;
    }

    .new-header.sticky .header-wrapper {
        padding: 8px 15px;
        border-radius: 8px;
    }

    /* Hide desktop navigation */
    .main-navigation {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }

    .logo-section img {
        height: 40px;
    }

    .header-actions {
        display: none;
    }

    body.header-sticky {
        padding-top: 55px;
    }
}

@media (max-width: 576px) {
    .new-header {
        padding: 2px;
    }

    .header-wrapper {
        padding: 2px 12px;
        border-radius: 4px;
    }

    .new-header.sticky {
        padding: 2px;
    }

    .new-header.sticky .header-wrapper {
        padding: 2px 12px;
        border-radius: 4px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu li a {
        font-size: 13px;
        padding: 1px 0;
    }

    .logo-section img {
        height: 35px;
    }

    body.header-sticky {
        padding-top: 40px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
    }

    .nav-menu li a {
        font-size: 12px;
    }

    .logo-section img {
        height: 32px;
    }
}



/* Ensure header stays above mobile menu */
.new-header {
    z-index: 1002;
}

/* Additional spacing adjustments for large screens */
@media (min-width: 1400px) {
    .new-header {
        padding: 8px;
    }

    .header-wrapper {
        padding: 8px 35px;
        border-radius: 14px;
    }

    .new-header.sticky {
        padding: 8px;
    }

    .new-header.sticky .header-wrapper {
        padding: 8px 35px;
        border-radius: 14px;
    }

    .nav-menu {
        gap: 40px;
    }

    .nav-menu li a {
        font-size: 18px;
    }

    .logo-section img {
        height: 55px;
    }

    .phone-number {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .new-header {
        position: static !important;
        box-shadow: none !important;
    }
}/* Mobi
le Menu Styles */
.responsive-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.responsive-menu.active {
    right: 0;
}

.responsive-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.responsive-menu ul li {
    margin-bottom: 15px;
}

.responsive-menu ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.responsive-menu ul li a:hover,
.responsive-menu ul li a.active {
    color: #2c5aa0;
    padding-left: 10px;
}

/* Mobile menu button animation */
.menu-toggle.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar2 {
    opacity: 0;
}

.menu-toggle.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li {
    margin-bottom: 0;
}

.mobile-dropdown-menu li a {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e9ecef;
    margin-left: 0;
}

.mobile-dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-dropdown-menu li a:hover {
    background-color: #e9ecef;
    color: #2c5aa0;
    padding-left: 25px;
}