@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif !important;
}

/* HEADER CHUNG */
#header {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;

    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);

    position: fixed;
    /* luôn dính trên cùng */
    top: 0;
    left: 0;
    z-index: 1000;

    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* Khi kéo xuống */
#header.scrolled {
    background: rgba(255, 255, 255, 0.808);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin: 0;
}

.logo-mobile {
    display: none;
    margin: 0;
}

/* Menu desktop */
#menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

/* Gtranslate wrapper styling */
.gtranslate_wrapper {
    display: inline-flex !important;
    align-items: center;
    margin-left: 15px;
    position: relative !important;
}

/* Ensure gtranslate widget stays inline */
.gtranslate_wrapper * {
    position: relative !important;
}

/* Style the dropdown trigger */
.gtranslate_wrapper a {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}


#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding-right: 70px;

}

#navbar li {
    list-style: none;
    padding: 0 20px;
    position: relative;
}

#navbar li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    transition: 0.3s ease;
    white-space: nowrap;
}

#navbar li a:hover,
#navbar li a.active {
    color: #000;
    font-weight: 700;
}

#navbar li a.active::after,
#navbar li a:hover::after {
    content: "";
    width: 70%;
    height: 3px;
    background: #ea7225;
    position: absolute;
    bottom: -4px;
    left: 20px;
}

/* Nút toggle mobile */
#mobile-toggle {
    display: none;
}

/* ====== ≤ 1200px ====== */
@media only screen and (max-width: 1200px) {
    #header {
        padding: 20px 50px;
    }

    #navbar li {
        padding: 0 15px;
    }
}

/* ====== ≤ 1024px (tablet) ====== */
@media only screen and (max-width: 1024px) {
    #header {
        height: 120px;
        padding: 20px 40px;
    }

    #navbar li {
        padding: 0 8px;
    }

    #navbar li a {
        font-size: 15px;
    }

    #navbar li a.active::after,
    #navbar li a:hover::after {
        left: 8px;
    }
}

/* ====== ≤ 768px (mobile) ====== */
@media only screen and (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        display: none;
    }

    .logo-mobile {
        display: block !important;
        width: 70px;
        height: 70px;
    }

    #header {
        justify-content: space-between;
        padding: 20px 40px;
        height: 70px;
        width: 100%;
    }



    #mobile-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #1a1a1a;
        z-index: 1100;
    }

    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        position: fixed;
        top: 70px;
        /* bằng chiều cao header mobile */
        right: -100%;

        width: 80%;
        max-width: 300px;
        height: calc(100vh - 100px);

        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
        padding: 30px 0 0 30px;
        transition: all 0.35s ease;
        z-index: 1050;
    }

    #navbar.active {
        right: 0;
    }

    #navbar li {
        width: 100%;
        margin-bottom: 25px;
    }

    #navbar li a {
        display: block;
        width: 100%;
        font-size: 16px;
        text-align: left;
        color: #1a1a1a;
    }

    #navbar li a::after {
        display: none;
    }
}