/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

:root {
    --dark-grey: #333333;
    --medium-grey: #636363;
    --medium-light-grey: #dcdcdc;
    --light-grey: #eeeeee;
    --ash: #f4f4f4;
    --primary-colour: #f65568;
    --secondary-colour: #282634;
    --white: white;
    --border: 1px solid var(--light-grey);
    --border-dark: 1px solid #36334a;
    --shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

body {
    font-family: inherit;
    background-color: var(--white);
    color: var(--dark-grey);
    letter-spacing: -0.4px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--white);
}

a.table {
    text-decoration: none;
    color: var(--dark-grey);
    border-bottom: 1px solid var(--medium-light-grey);
}

a.white:hover {
    color: var(--primary-colour);
}


a.table:hover  {
    color: var(--primary-colour);
    border-bottom: 1px solid var(--primary-colour);
}

a.white {
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    color: var(--white);
}

table {
    width: 100%;
    border-style: none;
}

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--white);
}

.btn {
    display: block;
    background-color: var(--primary-colour);
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
}

.icon {
    padding: 0.3rem;
    background-color: var(--light-grey);
    border-radius: 10px;
    max-height: 40px;
}

.logo {
    margin-right: 1.5rem;
}

.website-logo {
    display: flex;
    align-content: center;
    justify-content: center;
    padding-top: 40px;
    background-color: var(--secondary-colour);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
    height: 40px;
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-colour);
    position: fixed;
    width: 100vw;
    z-index: 999;
}

.menu {
    position: relative;
}

.menu-bar li:nth-child(2) .dropdown {
    flex-direction: initial;
    width: 450px
}

.menu-bar li:nth-child(2) ul:nth-child(1) {
    border-right: var(--border);
}

.menu-bar li:nth-child(n + 3) ul:nth-child(1) {
    border-bottom: var(--border);
}

.menu-bar .dropdown-link-title {
    font-weight: 600;
}

.dropdown-title {
    font-weight: 600;
}

.menu-bar .nav-link {
    font-size: 1rem;
    font-weight: 350 !important;
    letter-spacing: -0.6px;
    padding: 0.3rem;
    min-width: 60px;
    margin: 0 0.6rem;
}

.menu-bar .nav-link:hover,
.dropdown-link:hover {
    color: var(--primary-colour);
    font-weight: 400;
}

.nav-start,
.nav-end,
.menu-bar,
.right-container,
.right-container .search {
    display: flex;
    align-items: center;
}

.dropdown {
    display: flex;
    flex-direction: column;
    min-width: 230px;
    background-color: var(--white);
    border-radius: 10px;
    position: absolute;
    top: 32px;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.97) translateX(-5px);
    transition: 0.1s ease-in-out;
    box-shadow: var(--shadow);
}

.dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateX(5px);
}

.dropdown ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem;
    font-size: 0.95rem;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
}

.dropdown-link {
    display: flex;
    gap: 1.0rem;
    padding: 0.5rem 0;
    border-radius: 7px;
    transition: 0.1s ease-in-out;
    color: var(--dark-grey);
}

.dropdown-link p {
    font-size: 0.8rem;
    color: var(--medium-grey);
}

.right-container {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.right-container .search {
    position: relative;
}

.search input {
    background-color: var(--ash);
    border-radius: 6px;
    padding: 0.7rem;
    padding-left: 2.4rem;
    font-size: 16px;
    width: 100%;
    border: var(--border);
}

.search .bx-search {
    position: absolute;
    left: 10px;
    top: 50%;
    font-size: 1.3rem;
    transform: translateY(-50%);
    opacity: 0.6;
}

#hamburger {
    display: none;
    padding: 0.1rem;
    margin-left: 1rem;
    font-size: 1.9rem;
}

@media (max-width: 600px) {
    #hamburger {
        display: block;
        font-size: 1.4rem;
    }

    .container {
        padding: 1.2rem;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        border-bottom: var(--border-dark);
    }

    .menu {
        display: none;
        position: absolute;
        top: 40px;
        left: 0;
        min-height: 50vw;
        width: 100vw;
        background-color: var(--secondary-colour);
    }

    .menu-bar li:nth-child(2) ul:nth-child(1) {
        border-right: none;
        border-bottom: var(--border-dark);
    }

    .dropdown {
        display: none;
        min-width: 100%;
        max-width: 390px;
        border: none !important;
        border-radius: 5px;
        position: static;
        top: 0;
        left: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: var(--secondary-colour);
    }

    .menu.show,
    .dropdown.active {
        display: block;
    }

    .dropdown ul {
        padding-left: 0.3rem;
    }

    .dropdown-link p {
        color: var(--medium-light-grey);
    }
    .dropdown-link {
        color: var(--white);
    }

    .dropdown-title {
        font-weight: 600;
        color: var(--primary-colour);
    }

    .menu-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 1rem;
        padding: 1rem;
    }

    .menu-bar .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-weight: 600;
        font-size: 1.2rem;
        margin: 0;
    }

    .menu-bar li:first-child .dropdown {
        min-width: 100%;
    }

    .menu-bar > li:not(:last-child) {
        padding-bottom: 0.5rem;
        border-bottom: var(--border-dark);
    }

    .menu-bar li:nth-child(n + 3) ul:nth-child(1) {
        border-bottom: var(--border-dark);
    }
}

@media (max-width: 600px) {
    .right-container {
        display: none;
    }
}

@media (max-width: 1100px) {
    .menu-icons {
        display: none;
    }
}