/* =============
   HEADER STYLES
================ */
.main-header.top-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    /* overflow-x: hidden; */
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu {
    top: 69px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

}


.main-header {
    background-color: transparent;
    padding: 0;
    margin-bottom: 50px;
}

.main-header .container {
    max-width: 100vw;
    margin: 0 auto;
    padding-bottom: 0.5rem ;
    border-bottom: 1px solid var(--color-gold);
}

.main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    /* border-bottom: 1px solid rgba(212, 165, 116, 0.3); */
    position: relative;
}

/* ============
   LOGO STYLES
===============*/

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}


/* ========================================
   HEADER ACTIONS
======================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Search Button */
.search-btn {
    background: var(--color-grey);
    border: none;
    color: var(--card-white);
    cursor: pointer;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 4px;
}

.search-btn:hover {
    color: var(--color-gold);
    background: var(--color-dark);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Contact Button */
.btn-contact {
    background-color: var(--color-gold);
    color: var(--card-white);
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 4px;
}

.btn-contact:hover {
    color: var(--color-dark);
}


/* Style the active menu link */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, 
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, 
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
    color: var(--color-gold) !important;
    font-weight: 700 !important;
    position: relative !important;
    border-bottom: none !important;
    padding-bottom: 20px !important;
}

/* Create the centered underline using ::after pseudo-element */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link::after, 
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-item > a.mega-menu-link::after,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link::after, 
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important;
    height: 4px !important;
    background-color: var(--color-gold) !important;
    border-radius: 2px !important;
    display: block !important;
    z-index: 10 !important;
}




/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1300px){
    img.logo-img {
        width: 240px;
        object-fit: contain;
    }

    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        font-size: 13px !important;
    }

    .header-inner .btn-contact {
        padding: 0.75rem 0.75rem !important;
    }

    .btn-contact {
	font-size: 13px;
}

}

@media (min-width: 1300px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        font-size: 15px !important;
    }
}

@media (max-width: 1100px) {
    .the-menu-links.d-flex.align-items-center {
        flex-direction: row-reverse;
    }
    .header-actions {
        display: none;
    }
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link::after, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-item > a.mega-menu-link::after, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link::after, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link::after {
    left: initial !important;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        padding: 0 1rem;
    }
    
    .header-inner {
        min-height: 70px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn-contact {
        padding: 0.6rem 1.25rem;
        font-size: 14px;
    }
}


