/* css header */

.logo img {
    aspect-ratio: 191 / 72;
    max-width: 190.31px;
    width: 100%;
    height: auto;
}

.user-login img {
    max-height: 20px;
}

.user-login.hidden {
    display: none;
}

.user-login.active {
    display: block;
}

.header-top,
.header-bottom {
    justify-content: space-between;
}

.header-function {
    gap: 10px;
}

.slide-container {
    aspect-ratio: 1920 / 807;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.menu-container__item {
    padding: 12px 10px;
    font-weight: 500;
    font-size: calc(var(--font-size-base) - 2px);
    border-bottom: 1px solid transparent;
}

.header-top .menu-container__item {
    background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 10px 20px 10px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: fit-content;
    transition: all 0.6s ease;
}

.header-top .menu-container__item.active,
.header-top .menu-container__item:hover {
    padding: 15px 20px 10px 20px;
    background: var(--error-color);
}

.header-top .menu-container__item>a {
    color: var(--white-color);
}

.menu-container__bar {
    background-color: var(--primary-color);
    width: 48px;
    border: none;
    border-radius: 5px;
    height: auto;
    cursor: pointer;
    padding: 10px;
    display: none;
    padding: 15px;
}

.menu-item__exception {
    display: none;
}

.submenu>div>a,
.menu-item__exception>a,
.menu-item>a {
    text-align: right;
    padding: 10px 0px;
    margin-right: 20px;
}

.clone-menu__container {
    justify-content: left;
    margin-left: 10px;
}

.clone-menu__container p {
    color: var(--white-color);
}

.menu-item__exception>a,
.menu-item>a {
    color: var(--white-color);
}

.menu-item>a::after {
    content: "";
    display: inline-block;
    aspect-ratio: 1 / 1;
    width: 10px;
    height: auto;
    margin-left: 4px;
    background-image: url(../../img/icon/chevron-down-white.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.submenu.active {
    max-height: 500px;
    opacity: 1;
}

.m-menu.active {
    max-height: 2000px;
    padding: 20px 0px;
    opacity: 1;
}

.m-menu__link {
    padding: 0px 20px;
    width: 100%;
}

.m-submenu {
    width: 100%;
}

.submenu div {
    justify-content: right;
}

.drop-down {
    position: relative;
}

.menu-leveltwo__container:has(.menu-list__leveltwo)>a::after {
    content: " ▸";
}

.menu-list__leveltwo,
.menu-list {
    position: absolute;
    min-width: 180px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 99;
}

.menu-list__leveltwo {
    left: 98%;
    top: 0px;
}

.menu-list__leveltwo a {
    padding: 10px;
    border-bottom: 1px solid transparent;
}

.menu-list__leveltwo a:hover {
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.menu-list {
    top: 110%;
    left: 0;
}

.header-bottom .menu-container__item.drop-down:nth-last-child(3) .menu-list {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

.header-container {
    position: relative;
}

.m-menu {
    width: 80vw;
    height: 80vh;
    right: 0px;
    top: calc(100% + 20px);
    border-radius: 20px;
    max-height: 0;
    padding: 0px;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    border-left: 20px solid var(--primary-color);
    border-top: 1px solid var(--deactive-color);
    border-bottom: 1px solid var(--deactive-color);
    border-right: 1px solid var(--deactive-color);
}

.m-submenu__levelthree,
.m-submenu {
    height: 0px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.m-menu__item.active a {
    font-weight: bold;
    color: var(--primary-color);
}

.m-menu__item {
    align-items: end;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.m-submenu__levelthree,
.m-submenu {
    padding-right: 20px;
}

.m-submenu__item a,
.m-menu__root a {
    text-align: right;
    padding: 10px;
}

.m-submenu__item a {
    color: var(--white-color);
}

.m-submenu a {
    color: var(--black-color);
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.m-submenu__item>a>img {
    max-height: 40px;
    min-height: 40px;
    width: fit-content;
}

.top-menu__iconcontact-icon {
    aspect-ratio: 1 / 1;
    width: 20px;
    height: 20px;
}

.top-menu__container:hover .top-menu__list {
    display: flex;
}

.top-menu__container a {
    font-size: var(--font-size-base);
}

.top-menu__list {
    right: 0px;
    top: 100%;
    display: none;
}

.top-menu__list a {
    white-space: nowrap;
}

.header-bottom__res p {
    font-size: calc(var(--font-size-base) - 2px);
}

.header-bottom__item a {
    font-size: calc(var(--font-size-base) - 2px);
}

.header-bottom__item.active a {
    color: var(--white-color);
    font-weight: bold;
}

.header-bottom__item.active {
    border-bottom: 2px solid var(--white-color);
}

/* active thì mở */
.m-submenu__item.is-active>.m-submenu__levelthree,
.m-menu__item.is-active>.m-submenu {
    height: fit-content;
    visibility: visible;
    opacity: 1;
}

.menu-leveltwo__container:hover .menu-list__leveltwo,
.menu-container__item:hover .menu-list {
    opacity: 1;
    visibility: visible;
}

.menu-container__item:hover .menu-list {
    transform: translateY(0);
}

.menu-container__item:hover {
    background-color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: var(--white-color);
}

.menu-leveltwo__container {
    padding: 10px;
}

.menu-leveltwo__container img {
    max-height: 25px;
}

.menu-list__leveltwo,
.menu-leveltwo__container {
    border-bottom: 1px solid transparent;
}

.menu-leveltwo__container:hover {
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.drop-down::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    content: "";
    display: inline-block;
    aspect-ratio: 1 / 1;
    width: 10px;
    height: auto;
    margin-left: 4px;
    background-image: url(../../img/icon/chevron-down.webp);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* css fade */
/* Trạng thái ẩn ban đầu */
.hidden-section {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: opacity, transform, filter;
}

/* Trạng thái hiển thị (Sang - Xịn - Mịn) */
.hidden-section.show-up {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* css roll to top */
.btntotop__container {
    position: fixed;
    width: 42px;
    height: 42px;
    bottom: 30px;
    right: 20px;
    padding: 5px;
    border-radius: 50px;
    transition: all 0.6s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

.btntotop__container img {
    max-width: 52px;
}

.btntotop__container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btntotop__container:hover {
    filter: brightness(1.1);
}

/* css maintenance */
.maintenance-btn {
    width: fit-content;
    padding: 15px 20px;
}

.bg-primary {}

.text-color-white {}

/* css nav bar */
.nav-bar__container {
    justify-content: left;
    padding: 20px 0px;
    gap: 10px;
}

.nav-bar__item {
    font-size: var(--font-size-base);
    text-decoration: underline;
    text-transform: capitalize;
    text-decoration: none;
}

.nav-bar__item:not(:last-child)::after {
    content: "";
    display: inline-block;
    aspect-ratio: 1 / 1;
    width: 10px;
    height: auto;
    margin-left: 10px;
    background-image: url(../img/icon/chevron-right.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* css trang lien hệ */

/* css index */

/* Swiper navigation buttons for service-list */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    /* Tăng z-index lên 10 để không bị cái banner đè */
    width: 28px !important;
    /* Dùng !important để đá bay CSS mặc định của Swiper (nó thường set width to hơn) */
    height: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color) !important;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* SET MŨI TÊN NHỎ LẠI VÀ MÀU THEO CHUẨN */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    color: var(--primary-color);
    transition: all 0.25s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color) !important;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: var(--white-color);
}

.news-slider-wrapper .swiper-button-next,
.guest-comment__wrapper .swiper-button-next,
.logo-brand-wrapper .swiper-button-next,
.project-slider-wrapper .swiper-button-next {
    right: -38px;
}

.news-slider-wrapper .swiper-button-prev,
.guest-comment__wrapper .swiper-button-prev,
.logo-brand-wrapper .swiper-button-prev,
.project-slider-wrapper .swiper-button-prev {
    left: -38px;
}

.slide-container .swiper-button-next {
    right: 20px;
}

.slide-container .swiper-button-prev {
    left: 20px;
}

.process-slider-wrapper .swiper-button-next,
.process-slider-wrapper .swiper-button-prev,
.service-slider-wrapper .swiper-button-next,
.service-slider-wrapper .swiper-button-prev {
    display: none;
}


.service-item__content {
    border: 1px solid transparent;
    transition: all 0.6s ease;
    height: 100%;
}

.service-img,
.news-img {
    border-radius: 5px;
}

.news-img {
    aspect-ratio: 222 / 125;
}

.service-img {
    aspect-ratio: 39 / 22;
    object-fit: cover;
    border-radius: 5px;
}

.service-item__content:hover {
    border: 1px solid var(--primary-color);
}

.service-name {
    font-size: calc(var(--font-size-base) + 2px);
}

.service-link {
    font-size: calc(var(--font-size-base) - 2px);
    opacity: 0.8;
}

.news-list {
    max-height: unset;
    /* Let Swiper manage height */
}

.news-excerpt {
    min-height: 48px;
    -webkit-line-clamp: 2;
    font-size: var(--font-size-base);
    width: 100%;
}

.about-section {}

.about-info p {
    font-size: var(--font-size-base);
}

.about-info a {
    padding: 12px 20px;
    width: fit-content;
}

.widget-title,
.about-title {
    font-size: calc(var(--font-size-base) + 8px);
    text-transform: unset;
}

.about-list img {
    aspect-ratio: 1 / 1;
    max-width: 18px;
}

.about-list p {
    font-size: calc(var(--font-size-base));
}

.calc-form-custom {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--gray-color);
}

.calc-form-container .auth-desc {
    color: var(--black-color);
}

.calc-form-container .auth-desc,
.calc-form-container .auth-title {
    margin: 0px;
    text-align: left;
}

.stat-number {
    font-size: calc(var(--font-size-base) + 22px);
}

/* css footer */
.footer-border__bottom {
    border-bottom: 1px solid var(--deactive-color);
    padding-bottom: 30px;
}

.footer-top__container {}

.footer-menu__container,
.company-info,
.contact-card,
.footer-top__content {
    width: calc((100% - var(--gap)) / 2);
}

.footer-menu {
    width: calc(100% / 3 - 20px);
}

.footer-bottom__container {}

.company-info {}

.company-info__logo {
    aspect-ratio: 548 / 160.9;
    max-width: 80%;
}

.footer-menu__container {}

.footer-menu a:hover {
    color: var(--white-color);
}

.title-border-bottom {}

.social-icon {
    aspect-ratio: 1 / 1;
    width: 32px;
    height: auto;
}

.copyright-padding {}

.contact-card__icon {
    aspect-ratio: 1/1;
    min-width: 56px;
    height: auto;
}

.contact-title {
    font-size: calc(var(--font-size-base) - 4px);
}

.contact-content {
    font-size: calc(var(--font-size-base) + 4px);
}

/* css 404 page */
.pagenotfound-container a {
    padding: 15px 30px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    transition: all 0.4s ease;
}

.pagenotfound-container img {
    max-width: 500px;
    margin-bottom: 20px;
}

/* Swiper Custom Dots */
.swiper-pagination.custom-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-pagination-bullet {
    background: var(--white-color);
    opacity: 0.7;
}

.news-swiper .swiper-pagination.custom-dots .project-swiper .swiper-pagination.custom-dots {
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slide-container .swiper-pagination.custom-dots {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slide-container .swiper-pagination-bullet {
    background: var(--white-color);
    opacity: 0.7;
}

.project-swiper .swiper-pagination-bullet {
    background: var(--deactive-color);
}


.project-swiper .swiper-pagination-bullet-active,
.slide-container .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Swiper pagination dots for news-list */
.news-list .swiper-pagination {
    position: absolute;
    bottom: 10px;
    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.news-list .swiper-pagination-bullet {
    background: var(--gray-color);
    opacity: 0.7;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.news-list .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.service-list .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.service-list .swiper-pagination-bullet {
    background: var(--gray-color);
    opacity: 0.7;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.service-list .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* index */
.home-banner__container {
    width: 100%;
    height: 100%;
}

.home-banner__btn {
    font-size: var(--font-size-base);
}

.service-list .swiper-button-next,
.service-list .swiper-button-prev {
    display: none;
}

.home-banner__title {
    font-size: calc(var(--font-size-base) + 32px);
}

.home-banner__desc {
    font-size: calc(var(--font-size-base) + 2px);
}

.home-banner__blending {
    pointer-events: none;
}

.home-banner__blending,
.home-banner__background {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.icon-box-sm {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    max-width: 56px;
    overflow: hidden;
    border-radius: 5px;
}

.check-list {
    list-style: none;
    padding-left: 10px;
}

.check-list li::before {
    content: "\2713";
    color: var(--primary-color);
    margin-right: 10px;
}

.check-list {
    -webkit-line-clamp: 4;
}

.service-text {
    -webkit-line-clamp: 4;
}

.achievement-stats-box {
    border-left: 10px solid var(--primary-color);
}

.stat-value {
    font-size: calc(var(--font-size-base) * 2);
    color: var(--primary-color);
}

.project-swiper {
    padding-bottom: 50px !important;
}

.logo-brand__swiper .custom-dots,
.project-swiper .custom-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: absolute !important;
    bottom: 0px !important;
    top: auto !important;
}

.logo-brand__swiper .custom-dots .swiper-pagination-bullet,
.project-swiper .custom-dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--gray-color, #ccc);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 !important;
}

.logo-brand__swiper .custom-dots .swiper-pagination-bullet-active,
.project-swiper .custom-dots .swiper-pagination-bullet-active {
    width: 32px;
    background-color: var(--primary-color);
    border-radius: 8px;
    opacity: 1;
}

.news-item__img,
.project-item__img {
    /* aspect-ratio: 1 / 1; */
    aspect-ratio: 985 / 441;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.project-item {
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.6s ease;
}

.project-item:hover {
    border: 1px solid var(--primary-color);
}

.project-item__content p {
    -webkit-line-clamp: 3;
}

.project-item__content h3 {
    -webkit-line-clamp: 2;
}

.news-btn,
.project-btn {
    width: fit-content;
}

.guest-comment__title .title-border-bottom {
    max-width: 350px;
}

.guest-comment__item {}

.guest-comment__icon {
    aspect-ratio: 1 / 1;
    max-width: 91.5px;
}

.user-info b,
.guest-comment__content b {
    font-size: calc(var(--font-size-base) + 4px);
}

.user-info p,
.guest-desc {
    -webkit-line-clamp: 1;
    font-size: calc(var(--font-size-base) - 2px);
}

.rate-star {
    aspect-ratio: 1 / 1;
    max-width: 16px;
    height: auto;
    width: 100%;
}

.star-active {
    aspect-ratio: 1 / 1;
    width: 16px;
    height: 16px;
    top: 0px;
    left: 0px
}

.user-avatar {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    max-width: 56px;
    width: 100%;
    height: auto;
    padding: 10px;
}

.icon-box-50 {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.btn-submit-large {
    padding: 15px;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-submit-large:hover {
    opacity: 0.9;
}

.form-group .error-msg {
    display: none;
    margin-top: 4px;
}

.form-group.error .error-msg {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border: 1px solid var(--error-color);
    background-color: #fff5f5;
}

.contact-section__container {
    border: 1px solid var(--primary-color);
    width: calc((100% - var(--gap)) / 2);
}

.intro-background,
.news-background,
.contact-form__background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.intro-background {
    background-position: left;
    background-image: url(../img/banner-blending/background-intro.png);
}

.news-background {
    background-image: url(../img/banner-blending/background-new.png);
}

.contact-form__background {
    background-image: url(../img/banner-blending/background-form.png);
}

.company-map {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}

.project-swiper .swiper-slide,
.news-swiper .swiper-slide {
    height: auto !important;
    display: flex;
}

.news-item,
.company-map iframe {
    height: 100%;
}

.news-item__title {
    -webkit-line-clamp: 2;
}

.news-item__view p,
.news-item__date p {
    font-size: calc(var(--font-size-base) - 4px);
}

.news-item__view img {
    aspect-ratio: 2 / 1;
    max-width: 20px;
}

.process-item__content {
    border: 1px solid transparent;
    transition: all 0.6s ease;
}

.process-item__content:hover {
    border: 1px solid var(--primary-color);
}

.process-icon__box {
    aspect-ratio: 440 / 238;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.section-title h1,
.section-title h2 {
    font-size: calc(var(--font-size-base) + 8px);
}

.service-content {
    min-height: 100px;
}

.service-name {
    -webkit-line-clamp: 1;
    font-size: calc(var(--font-size-base) + 4px);
}

.service-text {
    -webkit-line-clamp: 2;
    font-size: calc(var(--font-size-base) - 2px);
}

.intro-title {
    font-size: calc(var(--font-size-base) + 12px);
}

.intro-content {
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    padding: 20px;
}

.intro-content span:first-child {
    font-size: calc(var(--font-size-base) + 24px);
}

.intro-content span:last-child {
    font-size: calc(var(--font-size-base) + 4px);
}

.intro-about__image-second,
.intro-about__image-first,
.intro-icon__container {
    width: 100%;
    height: auto;
}

.intro-icon__container {
    max-width: 18px;
}

.intro-about__image-second,
.intro-icon__container {
    aspect-ratio: 1 / 1;
}

.intro-about__image-first {
    aspect-ratio: 16 / 9;
}

.news-item__title,
.news-item__desc {
    -webkit-line-clamp: 2;
}

/* css phần dịch vụ */
.detail-header,
.archive-main {
    width: calc(75% - calc(var(--gap) / 2));
}

.archive-sidebar {
    width: calc(25% - calc(var(--gap) / 2));
    height: fit-content;
}

/* css phần component menu aside */
.widget-search {
    border: 1px solid var(--black-color);
}

.search-submit p {
    font-size: var(--font-size-base);
    line-height: 1.2;
}

.service-mini,
.post-mini {
    border: 1px solid transparent;
    transition: all 0.6s ease;
}

.service-mini:hover,
.post-mini:hover {
    border: 1px solid var(--primary-color);
}

.widget-service,
.widget-posts {
    flex-direction: column;
}

.post-mini__info {
    width: calc(60% - 20px);
}

.post-mini__img {
    width: calc(40% - 20px);
    aspect-ratio: 1 / 1;
}

.service-mini__title,
.post-mini__title {
    font-size: calc(var(--font-size-base) -4px);
}

.post-mini__title {
    -webkit-line-clamp: 2;
}

.service-mini__img {
    aspect-ratio: 1 / 1;
    width: calc(25% - 10px);
}

.service-mini__info {
    width: calc(75% - 10px);
}

.service-mini__title,
.service-mini__desc {
    -webkit-line-clamp: 1;
}

.archive-pagination {}

.pagination-btn {
    aspect-ratio: 1 / 1;
    width: 36px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.09);
    transition: all 0.6s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Bỏ underline nếu dùng thẻ <a> */
    color: inherit;
    /* Giữ màu chữ đồng nhất giữa <a> và <button> */
    line-height: 1;
    /* Tránh lệch do line-height mặc định */
    box-sizing: border-box;
}

.pagination-btn:hover {
    border: 1px solid var(--primary-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 15px;
}

.popup-comment__container,
.popup-register__container {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.popup-comment__container.active,
.popup-register__container.active {
    display: flex;
}

/* css cho trang bài viết sản phẩm */
.icon-box-sm {
    width: 48px;
    height: 48px;
    border: 1px solid transparent;
    transition: border 0.3s ease-in-out;
}

.icon-box-sm:hover {
    border: 1px solid var(--primary-color);
}

.detail-cover {
    /* aspect-ratio: 985 / 441; */
    aspect-ratio: 680 / 480;
    width: 100%;
    height: auto;
}

.detail-content p {
    font-size: var(--font-size-base);
}

.detail-content blockquote {
    padding: 10px 0px 10px 20px;
    border-left: 4px solid var(--primary-color);
}

.detail-content blockquote p {
    font-style: italic;
}

.detail-content blockquote h2 {
    margin-bottom: 10px;
}

.detail-content blockquote p,
.detail-content blockquote h2 {
    font-size: var(--font-size-base);
}

.detail-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.detail-content table {
    border-collapse: collapse;
}

.detail-content table td {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
}

.table-heading__body.active {
    display: block;
    max-height: 300px;
    overflow-y: auto;
}

.table-heading {
    width: fit-content;
    min-width: 300px;
}

.table-heading__top img {
    width: 10px;
}

.table-heading__top {
    background: var(--white-color);
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.table-heading__top:hover {
    background: #eee;
}

.table-heading__top i {
    transition: transform 0.3s;
}

.table-heading__top.active i {
    transform: rotate(180deg);
}

.table-heading__top {
    border: 1px solid #ddd;
}

.table-heading__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.table-heading__body.active {
    max-height: 500px;
    border: 1px solid #ddd;
}

.table-heading__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-heading__body li {
    border-top: 1px solid #eee;
}

.table-heading__body a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.table-heading__body a:hover {
    background: #f2f2f2;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel__container {
    max-height: 4000px;
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
}

.tab-panel__container.hide {
    max-height: 100px;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.tab-panel ul,
.detail-content ul {
    list-style: none;
}

.tab-panel ul li p {
    font-size: var(--font-size-base);
}

.tab-panel ul li,
.detail-content ul li {
    position: relative;
    padding-left: 30px;
}

.tab-panel ul li:after,
.detail-content ul li::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('../img/icon/check-orange.svg');

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    top: 2px;
    left: 0;
}

.tab-panel ul li:not(:last-child),
.detail-content ul li:not(:last-child) {
    margin-bottom: 16px;
}

.review-overview {
    flex: 1 1 33.33%;
}

.review-list {
    flex: 1 1 66.67%
}

.server-detail>.rate-stars,
.server-detail>.rate-stars .star {
    font-size: calc(var(--font-size-base) + 20px);
}

.rate-stars {
    display: flex;
    gap: 2px;
    font-size: calc(var(--font-size-base) + 4px);
}

.rate-stars .star {
    color: var(--deactive-color, #e0e0e0);
}

.rate-stars .star.active {
    color: var(--primary-color, #ff9800);
}

.detail-header__content h1 {
    font-size: calc(var(--font-size-base) + 32px);
    text-transform: unset;
}

.metal-avatar{
    aspect-ratio: 1 / 1;
    overflow: hidden;
    max-width: 46px;
}

.review-overview {}

.review-badge {
    width: fit-content;
}

.review-score-box {}

.score-number {
    font-size: calc(var(--font-size-base) + 48px);
}

.chart-label {
    width: 45px;
    flex-shrink: 0;
    font-weight: bold;
}

.chart-count {
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.chart-track {
    height: 8px;
    border-radius: 4px;
}

.chart-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

.fill-85 {
    width: 85%;
}

.fill-15 {
    width: 15%;
}

.fill-5 {
    width: 5%;
}

.fill-1 {
    width: 1%;
}

.fill-0 {
    width: 0%;
}

.comment-item {
    border-bottom: 1px solid var(--deactive-color);
}

.filter-btn {
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: all 0.5s ease-in-out;
}

.filter-btn:hover {
    border: 1px solid var(--primary-color)
}

.btn-write__container {
    padding-top: 20px;
    border-top: 1px solid var(--deactive-color)
}

.comment-avatar {
    aspect-ratio: 1 / 1;
    max-width: 48px;
    width: 100%;
    max-height: 48px;
}

.popup-comment__close {
    padding: 24px;
    aspect-ratio: 1 / 1;
    width: 59px;
    height: auto;
}

.review-pagination .page-btn {
    border: 1px solid var(--deactive-color);
}

.review-pagination .page-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
}

.tab-panel {
    border: 1px solid var(--deactive-color);
}

.tab-panel img {
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    margin-bottom: 10px;
}


.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.tab-btn {
    background-color: var(--white-color);
    border: 1px solid var(--deactive-color);
}

.tab-panel table {
    border-top: 2px solid var(--second-white-color);
    border-left: 2px solid var(--second-white-color);
    border-right: 2px solid var(--second-white-color);
    border-collapse: collapse;
}

.tab-panel table td {
    padding: 10px 20px;
    min-width: 240px;
    border: 1;
    border-bottom: 2px solid var(--second-white-color);
}

.tab-panel table td:first-child {
    border-right: 2px solid var(--second-white-color);

}

.pagination-btn.dots {
    pointer-events: none;
    border: none;
    background: transparent;
    cursor: default;
}

.pagination-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.search-loading {
    min-height: 80px;
}

#search-results-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-submit-large {
    border: 1px solid var(--primary-color);
}

.popup-comment__content .rate-stars {
    font-size: calc(var(--font-size-base) + 40px);
}

.js-share-btn[data-type="copy"].copied {
    background-color: #e6f4ea;
    border-color: #34a853;
}

.m-land__item.active {
    text-decoration: underline;
}

.m-land a:not(:last-child) {
    padding: 0px 10px;
    border-right: 1px solid var(--black-color);
}

.m-land {
    display: none;
}