/* header.css */
header {
    width: 100%;
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
    color: var(--secondary-color);
}

.top-contact i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.top-social {
    display: flex;
    gap: 20px;
}

.top-social a {
    transition: var(--transition);
}

.top-social a:hover {
    transform: translateY(-2px);
}

.top-faq {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.top-faq:hover {
    background: var(--white);
    color: var(--primary-color);
}

.main-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 3vw;
}

.header-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 20px;
}

.header-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-left: 0;
    /* Adjusted since it's in flex container with gap */
}

.header-cta:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.search-toggle {
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.logo img {
    height: 25px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.logo-slogan {
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 700;
    /* margin-top: 5px; */
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
}

/* .nav-menu li {
    margin-left: 20px;
} */

.nav-menu a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    position: relative;
}

.nav-menu a i {
    margin-right: 5px;
    font-size: 1.15rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .top-bar .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main-header .container {
        display: flex;
        justify-content: space-between;
    }

    .top-contact,
    .top-social {
        width: 100%;
    }
    .top-contact{
        display: flex;
        gap: 15px;
    }
    .top-contact span{
        margin-right: 0;
        font-size: 13px;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        display: none;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu li {
        margin: 10px 0;
    }
}

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.search-overlay.active {
    transform: translateY(0);
}

.search-overlay .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.search-bar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.search-bar form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.search-bar input {
    width: 500px;
    border: none;
    outline: none;
    font-size: 1.5rem;
    padding: 10px 0;
    background: transparent;
    color: var(--primary-color);
}

.search-bar button {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--secondary-color);
}

.search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--primary-color);
    line-height: 1;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .logo{
        width: 100px;
    }
    .logo img{
        width: 100px;
        height: auto;
        margin-bottom: 0;
    }
    .logo-slogan{
        display: none;
    }
    .search-overlay {
        height: 100px;
    }

    .search-bar input {
        font-size: 1.2rem;
        width: 200px;
    }

    .search-bar {
        padding: 0 30px;
    }
}
@media (max-width: 1281px){
    .logo-slogan {
    font-size: 0.6rem;
    }
}