body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
select {
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    cursor: pointer;
}

button {
    padding: 0;
    background-color: transparent;
    cursor: pointer;
}

input,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.nav-logo {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}

.slogan-logo {
    color: #79317f;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 5px 0;
}

.nav-logo img {
    width: 120px;
    margin: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s ease-in-out;
}

.nav-main {
    margin-left: 13.2rem;
    transition: 0.3s ease-in-out;
}

.nav-main .menu-item {
    padding-top: 1.2rem;
    padding-bottom: 0.8rem;
    padding-right: 1.6rem;
    padding-left: 1.6rem;
    border-bottom: 0.3rem solid transparent;
    transition: 0.3s ease-in-out;
}

.nav-main .menu-item-has-children {
    padding-right: 3.4rem;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.menu-link {
    color: #000;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2rem;
    display: inline-block;
    transition: 0.3s ease-in-out;
    text-transform: capitalize;
}

.menu-title {
    color: #060707;
    font-weight: 700;
    padding: 1rem;
    font-size: 1.5rem;
}

.menu-title:hover {
    color: #002244;
}

.nav-bar {
    position: relative;
    cursor: pointer;
    padding: 0 1.5rem;
    display: none;
    height: 100%;
    width: 2.4rem;
}

.nav-bar.active .menu-icon {
    background: transparent;
}

.nav-bar.active .menu-icon::before,
.nav-bar.active .menu-icon::after {
    top: 0;
    transition: top ease 0.3s, transform ease 0.3s 0.3s;
}

.nav-bar.active .menu-icon::before {
    transform: rotate(45deg);
}

.nav-bar.active .menu-icon::after {
    transform: rotate(-45deg);
}

.menu-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #002244;
    display: block;
    height: 0.2rem;
    transition: background ease 0.3s, top ease 0.3s 0.3s, transform ease 0.3s;
    width: 2.4rem;
}

.menu-icon::before,
.menu-icon::after {
    background: #002244;
    content: "";
    display: block;
    height: 0.2rem;
    position: absolute;
    transition: background ease 0.3s, top ease 0.3s 0.3s, transform ease 0.3s;
    width: 2.4rem;
}

.menu-icon::before {
    top: -0.6rem;
}

.menu-icon::after {
    top: 0.6rem;
}

.nav-action {
    display: flex;
    column-gap: 1.6rem;
}

.nav-action .btn {
    height: 4rem;
    font-size: 1.4rem;
    line-height: 2rem;
}

.nav-action .btn-sec {
    font-weight: 600;
}

.child .menu {
    flex-direction: column;
}

.child .menu-item {
    width: 100%;
    padding: 0;
    border-bottom: 0;
}

.child .menu-item .sub-icon .icon-down {
    transform: rotate(-90deg);
}

.child .menu-item:hover .sub-icon .icon-down {
    transform: rotate(-90deg);
}

.child .menu-link {
    color: #000;
    transition: background 0.3s ease-in-out;
    background: #fff;
    padding: 1.6rem 1rem;
    border-radius: 0.8rem;
    display: block;
}

.dropdown-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.sub-icon {
    display: flex;
    align-items: center;
}

.icon-down {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.icon-down img {
    width: 2rem;
}

.icon-down.active {
    transform: rotate(180deg);
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 5px 0;
}

.has-submenu {
    position: relative;
}

/* Submenu ẩn mặc định */
.subnav {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    /* nằm bên phải cha */
    background: white;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 12px;
    min-width: 200px;
    width: fit-content;
    white-space: nowrap;
}

/* Hiện submenu khi hover */
.has-submenu:hover>.subnav {
    display: block;
}

/* Style tùy chọn cho menu con */
.subnav li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.menu-link.level-3:hover {
    background-color: #f8f9fa;
    color: #c8a34e;
}

@media screen and (max-width: 1199.98px) {
    .nav-top {
        flex: 1;
        padding-top: 1rem;
        padding-bottom: 1rem;
        column-gap: 1rem;
        align-items: flex-start;
    }
}

.header-action {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    align-items: flex-start;
}

.btn {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6rem;
    color: #fff;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-pri);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    position: relative;
    overflow: hidden;
    column-gap: 0.8rem;
    cursor: pointer;
}

.btn::before,
.btn::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(316deg, #340268 20%, #79317f 100%);
    z-index: -1;
}

.btn::before {
    transform: translateX(-103%);
    z-index: 1;
}

.btn::after {
    z-index: 0;
    transform: translateX(103%);
    transition: none;
    transition: transform 350ms ease;
}

.btn>* {
    position: relative;
    z-index: 2;
}

.btn:hover {
    color: #fff;
}

.btn:hover::before {
    transform: translateX(0);
    transition: transform 350ms ease;
}

.btn:hover::after {
    opacity: 1;
    transform: translateX(0);
    transition: transform 350ms 360ms ease;
}

.btn-pri {
    transition: 0.5s;
    background-image: linear-gradient(316deg, #340268 20%, #79317f 100%);
}

.btn-pri:hover::before {
    background-image: linear-gradient(to left, #340268 20%, #79317f 87.34%);
}

.btn-sec {
    color: #c8a34e;
}

.btn-three {
    background: transparent;
    border: 0.1rem solid #216ae2;
    color: #216ae2;
}

.btn-four {
    background: #f4f4f4;
    color: #002244;
}

.btn-five {
    background: #f3f4f6;
    color: #9ca3af;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 24px 16px 30px;
    margin-bottom: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
}

.breadcrumb li+li:before {
    content: ">";
    padding: 0 8px;
    color: #999;
}

.breadcrumb a {
    text-decoration: none;
    color: #000;
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #79317f;
}

.breadcrumb .active {
    color: #79317f;
    pointer-events: none;
}

.menu-link.level-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-link.level-2 .arrow {
        margin-left: 8px;
        font-size: 18px;
        font-weight: bold;
    }

    .subnav .back {
        margin-bottom: 1rem;
        display: none;
    }

@media screen and (max-width: 575.98px) {
    .nav-logo img {
        min-width: 7.3rem;
    }
}

@media screen and (min-width: 992px) {
    .nav {
        margin-bottom: 0.8rem;
    }

    .header-box {
        background: #fff;
        box-shadow: 0 0 2.4rem 0 rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 20;
    }

    .nav-main .menu-item:hover {
        border-color: #79317f;
    }

    .menu-item:hover>.menu-link {
        color: #c8a34e;
    }

    .menu-item:hover>.sub-icon .menu-link {
        color: #216ae2;
    }

    .menu-item:hover>.sub-icon .icon-down {
        transform: rotate(180deg);
    }

    .menu-item:hover>.child {
        display: block;
        opacity: 1;
    }

    .menu-item.current-menu-item,
    .menu-item.current-menu-ancestor {
        border-color: #79317f;
    }

    .menu-item.current-menu-item .menu-link,
    .menu-item.current-menu-ancestor .menu-link {
        color: #c8a34e;
    }

    .child {
        transition: 0.3s ease-in-out;
        display: none;
        position: absolute;
        min-width: 200px;
        width: fit-content;
        top: 118%;
        opacity: 0;
        z-index: 40;
        background: #fff;
        border-radius: 0.8rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        width: fit-content;
        padding: 0;
        max-height: 40rem;
        /* overflow: hidden auto; */
        left: 0;
        white-space: nowrap;
    }

    .child::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
    }

    .child::-webkit-scrollbar {
        width: 0.4rem;
    }

    .child::-webkit-scrollbar-thumb {
        background-color: rgba(0, 34, 68, 0.2);
    }

    .child .menu-item:hover>.child {
        top: 0;
        left: 100%;
    }

    .child .menu-item {
        padding-left: 1.5rem;
    }

    .dropdown-inner {
        max-height: 40rem;
        overflow: hidden auto;
    }

    .dropdown-inner::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
    }

    .dropdown-inner::-webkit-scrollbar {
        width: 0.4rem;
    }

    .dropdown-inner::-webkit-scrollbar-thumb {
        background-color: rgba(0, 34, 68, 0.2);
    }

    .child::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
    }

    .child::-webkit-scrollbar {
        width: 0.4rem;
    }

    .child::-webkit-scrollbar-thumb {
        background-color: rgba(0, 34, 68, 0.2);
    }

    .child .menu-item:hover>.child {
        top: 0;
        left: 100%;
    }

    .dropdown::after {
        position: absolute;
        background-color: transparent;
        content: "";
        bottom: -3rem;
        width: 150%;
        height: 3rem;
        left: 0;
        z-index: 5;
    }

    .dropdown:hover::before {
        transform: rotate(180deg);
    }
}

@media screen and (max-width: 1300.98px) {
    .nav-main {
        margin-left: 0;
    }
}

@media screen and (max-width: 1199.98px) {
    /* .nav-wrap {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        background: #fff;
        height: 110px;
        box-shadow: 0 0 2.4rem 0 rgba(0, 0, 0, 0.1);
    } */

    .header-wrap {
        display: flex;
        align-items: center;
        column-gap: 1rem;
    }

    .sub-icon {
        justify-content: space-between;
    }

    .icon-down img {
        width: 1.8rem;
    }

    .menu-item-has-children .child {
        display: none;
        transition: all 0.3s ease;
    }

    .menu-item-has-children.active .child {
        display: block;
        padding-left: 0;
    }

    .child {
        padding-top: 1rem;
    }

    .child .menu-item {
        padding-left: 1.5rem;
    }

    .child .menu-link {
        color: #002244;
    }

    .dropdown.active::before {
        transform: rotate(180deg);
    }

    .dropdown::before {
        right: 1.5rem;
    }
}

@media screen and (max-width: 800px) {
    .menu-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 575.98px) {
    .menu-title {
        padding: 1rem 0;
    }

    .dropdown-inner {
        column-gap: 1.5rem;
    }
}

@media screen and (max-width: 991.98px) {
    .nav-action {
        display: none;
    }

    .nav-wrap .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .child .menu {
        box-shadow: none;
    }

    .child .menu-item {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .child .menu-link {
        justify-content: flex-start;
        padding: 1rem;
    }

    .child .icon-down {
        flex: 1;
    }

    .nav-main {
        display: block;
        position: fixed;
        z-index: 100;
        top: 110px;
        background-color: #fff;
        width: 100%;
        right: -100%;
        height: calc(100vh - 110px);
        transition: 0.3s ease-in-out;
        overflow: hidden auto;
    }

    .nav-main.active {
        right: 0;
    }

    .nav-main.active.is-children {
        overflow: unset;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }

    .menu-item {
        padding: 1.5rem;
        width: 100%;
    }

    .nav-bar {
        display: block;
    }

    .subnav {
        position: absolute;
        left: 200%;
        width: 100vw;
        transition: all 0.3s ease;
        background: #fff;
        height: 100vh;
        z-index: 10;
    }

    .first-child {
        top: calc(-43px * 5);
    }

    .second-child {
        top: calc(-43px * 6);
    }

    .third-child {
        top: calc(-43px * 7);
    }

    .four-child {
        top: calc(-43px * 8);
    }

    .subnav.active {
        left: -1.6rem;
        display: block;
    }

    .menu-link.level-2 {
        position: relative;
        color: #000;
    }

    .menu-link.level-2 .arrow {
        display: block;
    }

    .subnav .back {
        display: block;
    }

    .subnav .back a {
        font-weight: bold;
        color: #007BFF;
        cursor: pointer;
    }

}

.child .menu {
    flex-direction: column;
}

.child .menu-item {
    width: 100%;
    padding: 0;
    border-bottom: 0;
}

.child .menu-item .sub-icon .icon-down {
    transform: rotate(-90deg);
}

.child .menu-item:hover .sub-icon .icon-down {
    transform: rotate(-90deg);
}

.dropdown {
    position: relative;
}

.dropdown .icon-down {
    display: none;
}

.dropdown::before {
    position: absolute;
    transition: 0.3s ease-in-out;
    width: 2rem;
    height: 2rem;
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url(../images/icon/ico_down.svg);
    top: 1.2rem;
    right: 1.2rem;
}