header.main_header {
    padding: 10px 0px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: all 0.4s ease;
    background: transparent;
}

/* Desktop sticky animation ONLY */
@media (min-width: 769px) {
    header.main_header.scrolled {
        background: rgba(0, 51, 102, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 8px 0px;
    }
    
    header.main_header.scrolled .header_logo img {
        width: 120px;
    }
}

header.main_header:hover {
    background: var(--blue);
}
.header_inner_main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation wrapper to keep nav and search together */
.header_nav_wrapper {
    display: flex;
    align-items: center;
}

.header_main_nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header_main_nav nav ul {
    display: flex;
    column-gap: 48px;
}
.header_main_nav nav ul li a {
    font-size: 18px;
    color: #fff;
    line-height: 24px;
    display: flex;
    align-items: center;
    column-gap: 12px;
    text-transform: uppercase;
}
.header_right {
    display: flex;
    column-gap: 32px;
}
.header_logo img {
    width: 145px;
    transition: all 0.3s ease;
}

/* Search Icon Styles */
.search_icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
    margin-left: 20px;
    position: relative;
}

.search_icon:hover {
    transform: scale(1.1);
}

.search_icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Desktop In-Header Search */
@media (min-width: 769px) {
    .search_container {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .search_container.active .search_icon {
        opacity: 0;
        pointer-events: none;
    }
    
    .header_search_form {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 8px 16px;
        width: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        overflow: hidden;
        white-space: nowrap;
    }
    
    .header_search_form.active {
        width: 300px;
        opacity: 1;
        visibility: visible;
    }
    
    .header_search_form .search-form {
        display: flex;
        align-items: center;
        border: none;
        padding: 0;
        width: 100%;
    }
    
    .header_search_form .search-field {
        background: transparent;
        border: none;
        color: #333;
        font-size: 16px;
        font-weight: 400;
        padding: 8px 12px;
        width: calc(100% - 50px);
        outline: none;
    }
    
    .header_search_form .search-field::placeholder {
        color: rgba(51, 51, 51, 0.6);
    }
    
    .header_search_form .search-submit {
        background: var(--blue);
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 6px 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .header_search_form .search-submit:hover {
        background: #002a5c;
        transform: scale(1.05);
    }
    
    .header_search_form .search-submit svg {
        width: 14px;
        height: 14px;
    }
    
    .search_close_btn {
        display: none;
    }
}

/* Search Overlay Styles */
.search_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 51, 102, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search_overlay.active {
    opacity: 1;
    visibility: visible;
}

.search_overlay_inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* Search Close Button */
.search_close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search_close:hover {
    border-color: #fff;
    transform: rotate(90deg);
}

.search_close svg {
    width: 24px;
    height: 24px;
}

/* Search Form Wrapper */
.search_form_wrapper {
    width: 90%;
    max-width: 800px;
    animation: searchFadeIn 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transform: translateY(20px);
}

.search_overlay.active .search_form_wrapper {
    opacity: 1;
    transform: translateY(0);
}

@keyframes searchFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.search-field {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    padding: 20px 0;
    width: 100%;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: scale(1.1);
}

.search-submit svg {
    width: 32px;
    height: 32px;
}

/* Prevent body scroll when search is open */
body.search-open {
    overflow: hidden;
}

.companies_dropdown .company_select {
    background: transparent;
    color: #fff;
    border: none !important;
    font-size: 18px;
    line-height: 24px;
    width: 180px;
    display: flex;
    column-gap: 12px;
    align-items: center;
    cursor: pointer;
}
.company_menu ul li a {
    color: #fff;
    font-size: 18px;
    padding: 18px 24px;
    display: inline-block;
    line-height: 1.5;
    border-bottom: 1px solid;
}
.company_menu {
    position: absolute;
    top: 65px;
    background: var(--black);
    right: 0;
    width: 293px;
    height: 337px;
    padding: 0;
    transition: 1.6s cubic-bezier(0.25, 0.1, 0, 1.21);
    max-height: 0px;
    overflow-y: auto;
}
.companies_dropdown {
    display: flex;
    align-items: center;
    column-gap: 12px;
    position: relative;
}
.company_menu_inner h3 {
    margin: 24px 24px 24px 24px;
    color: #fff;
    font-size: 24px;
    border-bottom: 1px solid;
    padding-bottom: 8px;
}
.company_menu.open {
    max-height: 1000px;
}
.hero_main_content_inner {
    display: inline-block;
}
span.hero_title_top {
    font-size: 64px;
    color: #fff;
    display: block;
}
span.hero_title_bottom {
    font-size: 80px;
    font-weight: 600;
    color: #fff;
    margin-left: 50%;
    line-height: 1;
	width: max-content;
}
.about_sl_outer {
    display: flex;
    column-gap: 100px;
    align-items: center;
}
.about_slider_nav button.slick-arrow {
    background: transparent !important;
    border: navajowhite;
    font-size: 20px;
    line-height: 1;
}
.about_slider_nav {
    display: flex;
    column-gap: 20px;
    background: #fff;
    align-items: center;
    height: fit-content;
    padding: 30px 42px;
    border-radius: 100px;
}

.dots ul.slick-dots li button {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #9D9D9D;
    margin: 0;
    padding: 0;
}
.dots ul.slick-dots li button:before{
    display: none;
}
.dots ul.slick-dots li.slick-active button {
    background: #000;
    border: 3px solid #000;
}

/* Megamenu CSS */

.megamenu {
    background: var(--blue);
    position: absolute;
    left: 0;
    width: 100%;
    top: 102px;
    transition: 1.6s cubic-bezier(0.25, 0.1, 0, 1.21);
    max-height: 0px;
    overflow: hidden;
}
.mega_menu_inner{
    padding: 100px 0px;    
}
.megamenu_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.header_main_nav nav .megamenu_grid_item ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.megamenu_grid_item h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 28px;
}
.megamenu.open {
    max-height: 1000px;
}
header.main_header.menu-open{
    background-color: var(--blue);
    transition: 0.5s ease;
}
.header_main_nav nav ul li:has(.megamenu.open) svg {
    transform: rotate(180deg);
}
.header_main_nav nav ul li svg{
    transition: 1s cubic-bezier(0.25, 0.1, 0, 1.21);
}

/* Base header z-index management */
.header_inner_main {
    position: relative;
    z-index: 10;
}

/* Dropdown container positioning */
.header_main_nav nav ul {
    position: relative;
    z-index: 100;
}

/* Dropdown Menu for About */
.header_main_nav nav ul li {
    position: relative;
}

/* Ensure dropdown only shows on hover for desktop */
.has-dropdown .dropdown {
    position: absolute;
    top: calc(100% + 25px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.95);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: max-content;
}

/* Arrow pointing up */
.has-dropdown .dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.95);
}

/* Show dropdown on hover */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown list styles */
.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.dropdown ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown ul li:last-child {
    border-bottom: none;
}

.dropdown ul li a {
    padding: 16px 24px;
    font-size: 16px;
    color: #fff;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Hover effect for dropdown items */
.dropdown ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #fff;
    transition: height 0.3s ease;
}

.dropdown ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 32px;
}

.dropdown ul li a:hover::before {
    height: 100%;
}

/* Arrow animation for dropdown */
.has-dropdown > a svg {
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
    margin-left: 4px;
}

.has-dropdown:hover > a svg {
    transform: rotate(180deg);
}

/* Fix header background on hover */
header.main_header {
    padding: 10px 0px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: all 0.4s ease;
}

/* Remove the default hover background */
header.main_header:hover {
    background: var(--blue);
}

/* Add background when dropdown is active */
.has-dropdown:hover ~ .header_right,
.has-dropdown:hover {
    position: relative;
    z-index: 10000;
}

/* Invisible bridge to maintain hover */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    display: block;
}

/* Mobile Menu Button */
.mobile_menu_btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.mobile_menu_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.mobile_menu_btn span:last-child {
    margin-bottom: 0;
}

.mobile_menu_btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile_menu_btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile_menu_btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Additional styles for professional look */
.header_main_nav nav ul li a {
    position: relative;
}

/* Underline effect on hover for main menu items */
.header_main_nav nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.header_main_nav nav > ul > li:hover > a::after {
    width: 100%;
}

/* Exclude underline from dropdown items */
.has-dropdown > a::after {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header_main_nav nav ul {
        column-gap: 30px;
    }
    
    .header_main_nav nav ul li a {
        font-size: 16px;
    }
    
    .company_select {
        font-size: 16px;
        width: 150px;
    }
    
    .search-field {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    header.main_header {
        padding: 15px 0;
        background: var(--blue);
        position: static !important;
        top: 0;
        width: 100%;
        z-index: 9999;
    }
    
    /* Show mobile menu button */
    .mobile_menu_btn {
        display: block;
    }
    
    /* Hide search icon on mobile menu button click */
    .search_icon {
        display: block;
    }
    
    /* Mobile navigation overlay - target nav instead of .header_main_nav */
    .header_main_nav nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 51, 102, 0.98);
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 9998;
        display: flex;
        flex-direction: column;
    }
    
    .header_main_nav nav.active {
        top: 0;
    }
    
    /* Close button for mobile menu - target nav */
    .header_main_nav nav::before {
        content: '×';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: #fff;
        cursor: pointer;
        z-index: 10001;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .header_main_nav nav::before:hover {
        transform: rotate(90deg);
        border-color: #fff;
    }
    
    /* Center navigation items - adjust for nav targeting */
    .header_main_nav nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 51, 102, 0.98);
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 80px 20px 40px;
    }
    
    .header_main_nav nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    
    .header_main_nav nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 0.5s ease forwards;
    }
    
    /* Stagger animation for menu items - target nav.active */
    .header_main_nav nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
    .header_main_nav nav.active ul li:nth-child(2) { animation-delay: 0.2s; }
    .header_main_nav nav.active ul li:nth-child(3) { animation-delay: 0.3s; }
    .header_main_nav nav.active ul li:nth-child(4) { animation-delay: 0.4s; }
    .header_main_nav nav.active ul li:nth-child(5) { animation-delay: 0.5s; }
    .header_main_nav nav.active ul li:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header_main_nav nav ul li a {
        padding: 20px 0;
        font-size: 24px;
        font-weight: 500;
        width: 100%;
        text-align: center;
        justify-content: center;
        letter-spacing: 1px;
    }
    
    /* Mobile dropdown */
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0;
        box-shadow: none;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: none;
        border: none;
    }
    
    .dropdown::before {
        display: none;
    }
    
    .dropdown.active {
        display: block;
        max-height: 300px;
    }
    
    .dropdown ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown ul li a {
        padding: 15px 20px;
        font-size: 18px;
        text-align: center;
    }
    
    .dropdown ul li a::before {
        display: none;
    }
    
    .dropdown ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 20px;
    }
    
    /* Arrow rotation for mobile */
    .has-dropdown > a svg {
        transition: transform 0.3s ease;
    }
    
    /* Mobile search overlay adjustments */
    .search_close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .search-field {
        font-size: 24px;
        padding: 15px 0;
    }
    
    .search-submit svg {
        width: 24px;
        height: 24px;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    
div#headerSearchForm {
    display: none;
}
    .header_logo img {
        width: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header_main_nav nav ul li a {
        font-size: 20px;
    }
    
    .dropdown ul li a {
        font-size: 16px;
    }
    
    .search-field {
        font-size: 20px;
    }
}

/* Ensure dropdown works on desktop but not mobile */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

.header_search_form{
    z-index: 9999 !important;
}