/* style.css */

:root {
    --dark-grey: #333333;
    --medium-grey: #636363;
    --light-grey: #eeeeee;
    --ash: #f4f4f4;
    --primary-color: #2b72fb;
    --white: white;
    --border: 1px solid var(--light-grey);
    --shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}



ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: inherit;
}


.btn-header-menu {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
}

.icon-header-menu {
    padding: 0.5rem;
    background-color: var(--light-grey);
    border-radius: 10px;
}

.logo-header-menu {
    margin-right: 1.5rem;
}

#nav-menu-header-menu {
    border-bottom: var(--border);
}

.container-header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    column-gap: 2rem;
    height: 90px;
    padding: 1.2rem 3rem;
}

.menu-header-menu {
    position: relative;
    margin-left: 80px;
}

.menu-bar-header-menu li:first-child .dropdown-header-menu {
    flex-direction: initial;
}

.menu-bar-header-menu li:first-child ul:nth-child(1) {
    border-right: var(--border);
}

.menu-bar-header-menu li:nth-child(n + 2) ul:nth-child(1) {
    border-bottom: var(--border);
}

.menu-bar-header-menu .dropdown-link-title-header-menu {
    font-weight: 600;
}

.menu-bar-header-menu .nav-link-header-menu {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.6px;
    padding: 0.3rem;
    min-width: 60px;
    margin: 0 0.6rem;
    color: black;
}

.menu-bar-header-menu .nav-link-header-menu:hover {
    color: var(--primary-color);
}

.dropdown-link-header-menu:hover {
    color: black;
}

.dropdown-link-header-menu p:hover {
    color: black;
}

.nav-start-header-menu,
.nav-end-header-menu,
.menu-bar-header-menu,
.right-container-header-menu,
.right-container-header-menu .search-header-menu {
    display: flex;
    align-items: center;
}


.dropdown-header-menu {
    display: flex;
    flex-direction: column;
    min-width: 230px;
    background-color: var(--white);
    border-radius: 10px;
    position: absolute;
    top: 36px;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.97) translateX(-5px);
    transition: 0.1s ease-in-out;
    box-shadow: var(--shadow);
}


.dropdown-header-menu li:hover{
    text-decoration: underline;
    color: black;
}

.dropdown-header-menu.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateX(5px);
}

.dropdown-header-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem;
    font-size: 0.95rem;
    max-width: 350px;
}

.dropdown-btn-header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
}

.dropdown-link-header-menu {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 7px;
    transition: 0.1s ease-in-out;
}

.dropdown-link-header-menu p {
    font-size: 0.8rem;
    color: var(--medium-grey);
}


.right-container-header-menu {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.right-container-header-menu .search-header-menu {
    position: relative;
}

.right-container-header-menu img {
    border-radius: 50%;
}

.search-header-menu input {
    background-color: var(--ash);
    border: none;
    border-radius: 6px;
    padding: 0.7rem;
    padding-left: 2.4rem;
    font-size: 16px;
    width: 100%;
    border: var(--border);
}

.search-header-menu .search-icon-header-menu {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

#hamburger {
    display: none;
    padding: 0.1rem;
    margin-left: 1rem;
    font-size: 1.9rem;
}



@media (max-width: 1100px) {
    #hamburger {
        display: block;
        position: relative;
    }

    .container-header-menu {
        padding: 1.2rem;
        margin-right: 3rem;
        width: 91%;
        border-bottom: #dbdbdb solid;
        height: 50px;
    }

    .menu-header-menu {
        display: none;
        position: absolute;
        top: 87px;
        left: 0;
        min-height: 100vh;
        width: 100vw;
        margin-left: 0;
        background: var(--white);
    }

    .menu-bar-header-menu li:first-child ul:nth-child(1) {
        border-right: none;
        border-bottom: var(--border);
    }

    .dropdown-header-menu {
        display: none;
        min-width: 100%;
        border: none !important;
        border-radius: 5px;
        position: static;
        top: 0;
        left: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
    }

    .menu-header-menu.show,
    .dropdown-header-menu.active {
        display: block;
    }

    .dropdown-header-menu ul {
        padding-left: 0.3rem;
    }

    .menu-bar-header-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 1rem;
        padding: 1rem;
    }

    .menu-bar-header-menu .nav-link-header-menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-weight: 600;
        font-size: 1.2rem;
        margin: 0;
    }

    .menu-bar-header-menu > li:not(:last-child) {
        padding-bottom: 0.5rem;
        border-bottom: var(--border);
    }

    .menu-bar-header-menu li:first-child .dropdown-header-menu {
        flex-direction: initial;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .right-container-header-menu {
        display: none;
    }
}



