:root {
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

p,
span,
.medium-text,
li {
    font-family: var(--font-main);
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6,
.semi-bold-text {
    font-family: var(--font-main);
    font-weight: 700;
}

body {
    font-family: var(--font-main);
    font-weight: 600;
    background:
        radial-gradient(ellipse 120% 50% at 50% -5%, rgba(2, 123, 255, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 70% 40% at -5% 40%, rgba(77, 163, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 60% 35% at 105% 70%, rgba(2, 123, 255, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 80% 30% at 50% 105%, rgba(2, 123, 255, 0.06) 0%, transparent 60%),
        #f8fbff;
    background-attachment: fixed;
    min-height: 100%;
    color: #101828;
}

html {
    font-size: 10px;
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    text-decoration: none;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #027BFF 0%, #4da3ff 50%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

header {
    width: 100%;
    height: 7rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    border-bottom: 0.1rem solid #EAECF0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 4.8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease-in-out;
}

.container {
    padding-top: 7rem;
}

header.header-hidden {
    transform: translateY(-100%);
}

.logo {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 14rem;
    height: 4.8rem;
}

.content-header {
    width: 144rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    position: relative;
}

.content-header .logo img {
    width: 3.8rem;
    height: 3.8rem;
}

.logo h1 {
    width: 9rem;
    height: 4.8rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 4.8rem;
    color: #101828;
    font-family: var(--font-main);
}

.menu {
    cursor: pointer;
    width: 75.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
}

.ul-menu a:hover {
    color: #0066db;
}

.ul-menu a.active-menu {
    color: #0066db;
}

.mobile-menu-popup .ul-menu a.active-menu {
    color: #0066db;
}

.ul-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    list-style-type: none;
    width: 75.5rem;
    height: 4rem;
    gap: 2.4rem;
}

.ul-menu li a {
    text-decoration: none;
    color: #475467;
    font-size: 1.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-header {
    width: auto;
    height: 4.8rem;
    font-size: 1.6rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.2rem;
    align-items: center;
}

.btn-change-languege {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 0.8rem;
    transition: background 0.2s ease;
    position: relative;
    /* Thêm để menu con position absolute đúng */
}

.menu-change-langue {
    position: absolute;
    width: 15rem;
    top: 100%;
    right: 0;
    margin-top: 0.8rem;
    padding: 1rem;
    background: #ffffff;
    border: 0.1rem solid #EAECF0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.3s ease;
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-radius: 1rem;
    pointer-events: none;
}

.btn-change-languege:hover .menu-change-langue {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.flag {
    width: 2.8rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.4rem;
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1);
}

.flag svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drop-dow i,
.drop-up i {
    font-size: 1.2rem;
    color: #667085;
}

.btn-header-login {
    cursor: pointer;
    width: 12.3rem;
    height: 4.8rem;
    border: 0.1rem solid #D0D5DD;
    background-color: #ffffff;
    border-radius: 1rem;
    font-size: 1.6rem;
    color: #344054;
    transition: all 0.3s ease;
}

.btn-header-login:hover {
    background-color: #f0f7ff;
    border-color: #027BFF;
    color: #0066db;
}

.btn-header-signup {
    cursor: pointer;
    width: 10.2rem;
    height: 4.8rem;
    border: none;
    border-radius: 1rem;
    padding: 0;
    background: linear-gradient(135deg, #027BFF, #4da3ff);
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0.4rem 1.2rem rgba(2, 123, 255, 0.25);
}

.btn-header-signup:hover {
    background: linear-gradient(135deg, #0066db, #3d93ff);
    box-shadow: 0 0.6rem 2rem rgba(2, 123, 255, 0.35);
    transform: translateY(-0.1rem);
}

.mobile-menu-popup {
    display: none;
}

.menu-mobile svg {
    display: none;
}

.menu-mobile {
    display: none;
}

.close-menu {
    display: none;
}

.close-menu svg {
    display: none;
}

.drop-up {
    display: none;
}

.drop-up svg {
    width: 2.8rem;
    height: 2.8rem;
    padding-top: 1rem;
}

.ul-menu-change-langue {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ul-menu-change-langue li {
    font-size: 1.6rem;
    list-style: none;
    width: 100%;
    height: 3rem;
    color: #475467;
    cursor: pointer;
    transition: color 0.3s;
}

.ul-menu-change-langue li:hover {
    color: #0066db;
}

@media (width <=1440px) {
    html {
        font-size: 8px;
    }
}

@media (width <=1228px) {
    html {
        font-size: 7px;
    }

    .menu-mobile {
        display: none;
    }
}

@media (width <=1024px) {
    html {
        font-size: 5px;
    }

    .menu-mobile {
        display: none;
    }
}

@media (width <=800px) {
    html {
        font-size: 4px;
    }
}

@media (width <=768px) {
    html {
        font-size: 3.5px;
    }
}

@media (width <=480px) {
    html {
        font-size: 3px;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 10px;
    }

    .container {
        padding-top: 7.2rem;
    }

    header {
        height: 7.2rem;
        width: 100%;
        padding: 0 2rem;
    }

    .content-header {
        width: 100%;
        height: 7.2rem;
        justify-content: space-between;
    }

    .logo {
        width: auto;
        height: 3.6rem;
    }

    .logo h1 {
        width: auto;
        height: auto;
        font-size: 2.2rem;
        font-weight: 800;
        line-height: normal;
        color: #101828;
    }

    .content-header .logo img {
        width: 3.2rem;
        height: 3.2rem;
    }

    .btn-header {
        width: auto;
        height: 4rem;
    }

    .btn-header-login,
    .btn-header-signup {
        display: none;
    }

    .menu-mobile {
        display: block;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

    .menu-mobile svg {
        display: block;
        width: 2.8rem;
        height: 2.8rem;
        background-color: transparent;
        border: none;
    }

    .close-menu {
        display: none;
        /* JS toggles this */
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

    .close-menu svg {
        display: block;
        width: 2rem;
        height: 2rem;
        background-color: transparent;
        border: none;
    }

    .menu {
        display: none;
    }

    .mobile-menu-popup {
        display: flex;
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 7.2rem;
        left: 0;
        right: 0;
        background: #fff;
        padding: 2.4rem;
        flex-direction: column;
        justify-content: flex-start;
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 4rem 4rem rgba(0, 0, 0, 0.05);
        z-index: 998;
    }

    .mobile-menu-popup.show {
        transform: translateY(0%);
    }

    .mobile-menu-popup .ul-menu {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .mobile-menu-popup .ul-menu li {
        width: 100%;
        padding: 1.2rem 0;
    }

    .mobile-menu-popup .ul-menu li a {
        font-size: 1.8rem;
        font-weight: 600;
        color: #101828;
    }

    .mobile-auth {
        margin-top: 2.4rem;
        padding-top: 2.4rem;
        border-top: 0.1rem solid #EAECF0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .btn-signup,
    .btn-login {
        width: 100%;
        height: 5.2rem;
        border-radius: 1.2rem;
        font-size: 1.6rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-signup {
        background: linear-gradient(135deg, #027BFF, #4da3ff);
        color: #FFFFFF;
        border: none;
    }

    .btn-login {
        border: 0.1rem solid #D0D5DD;
        background-color: #FFFFFF;
        color: #101828;
    }
}