/* Unified typography for the customer-facing website. */
:root {
    --bodyFont: "Lexend", sans-serif;
    --headingFont: "Lexend", sans-serif;
    --contentFont: "Lexend", sans-serif;
}

body,
button,
input,
textarea,
select,
option,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label,
li,
td,
th,
small,
strong,
b,
em {
    font-family: "Lexend", sans-serif !important;
}

/* Clean desktop utility row: logo left, account actions right. */
.header-desktop-utility-row {
    min-height: 62px;
    align-items: center;
}

/* Header mini cart */
.headerarea__right .header__cart .header__right__dropdown__wrapper {
    right: -12px;
    left: auto;
    width: min(390px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 120px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8eaf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(39, 45, 106, 0.2);
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.headerarea__right .header__cart:hover .header__right__dropdown__wrapper {
    top: calc(100% + 42px);
    transform: translateY(0);
}

.headerarea__right .header__cart .mini-cart-empty {
    display: flex;
    min-height: 150px;
    padding: 24px 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.headerarea__right .header__cart .mini-cart-empty__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    color: #343b87;
    background: #f0f2ff;
    font-size: 23px;
}

.headerarea__right .header__cart .mini-cart-empty strong {
    color: #272d6a;
    font-size: 15px;
    line-height: 1.4;
}

.headerarea__right .header__cart .mini-cart-empty small {
    max-width: 245px;
    margin-top: 5px;
    color: #7a8094;
    font-size: 12px;
    line-height: 1.5;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper::before {
    content: "Giỏ hàng của bạn";
    display: block;
    padding: 17px 20px 14px;
    border-bottom: 1px solid #eef0f7;
    color: #272d6a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__inner {
    max-height: 300px !important;
    margin: 0 !important;
    padding: 8px 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: #cfd3e8 transparent;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .single__header__right__dropdown {
    gap: 12px;
    min-height: 86px;
    padding: 12px 26px 12px 0;
    align-items: flex-start;
    border-bottom: 1px solid #f0f1f6;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .single__header__right__dropdown:last-child {
    border-bottom: 0;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__img {
    flex: 0 0 76px;
    width: 76px !important;
    margin-top: 0 !important;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__img a {
    display: block !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 9px;
    background: #f3f4f8;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__img img {
    display: block;
    width: 76px !important;
    height: 58px !important;
    object-fit: cover !important;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__content {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin-left: 0 !important;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__content>a {
    display: -webkit-box;
    overflow: hidden;
    color: #25283d !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__content p {
    margin: 7px 0 0;
    line-height: 1.2;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__content p .price {
    color: #f72570 !important;
    font-size: 14px;
    font-weight: 700;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__close {
    top: 10px !important;
    right: 0 !important;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__close a {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #8b91a7 !important;
    line-height: 1 !important;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__close a:hover {
    color: #f72570 !important;
    background: #fff0f5;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .dropdown__price {
    display: flex;
    margin: 0;
    padding: 16px 20px 10px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef0f7;
    color: #62697d;
    font-size: 15px;
    line-height: 1.4;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .dropdown__price span {
    float: none;
    color: #f72570;
    font-size: 18px;
    font-weight: 800;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__button {
    padding: 4px 20px 20px;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__button a.white__color {
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, #343b87, #272d6a);
    box-shadow: 0 8px 18px rgba(39, 45, 106, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__button a.white__color:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #f72570, #d9185c);
    box-shadow: 0 10px 22px rgba(247, 37, 112, 0.24);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .headerarea__right .header__cart .header__right__dropdown__wrapper {
        position: fixed;
        top: 68px !important;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 84px);
        transform: translateY(6px);
    }

    .headerarea__right .header__cart:hover .header__right__dropdown__wrapper {
        transform: translateY(0);
    }

    .headerarea__right .header__cart .header__right__dropdown__wrapper .header__right__dropdown__inner {
        max-height: calc(100vh - 260px) !important;
    }
}

#cart_content {
    position: relative;
    padding-right: 52px;
}

#purchase_notification_close {
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(39, 45, 106, 0.2);
    border-radius: 50%;
    outline: none;
    background: rgba(255, 255, 255, 0.88);
    color: #272d6a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(39, 45, 106, 0.12);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#purchase_notification_close:hover,
#purchase_notification_close:focus-visible {
    transform: scale(1.06);
    border-color: #f2277e;
    background: #f2277e;
    color: #fff;
}

.header-desktop-actions-wrap {
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.header-desktop-actions {
    min-height: 50px;
    justify-content: flex-end;
    gap: 10px;
}

.header-desktop-actions .headerarea__button a {
    margin: 0;
}

.header-desktop-actions .header-action-button a {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.header-desktop-actions .header-action-button a i {
    font-size: 15px;
}

.header-desktop-actions .header-action-button--secondary a {
    border-color: #dfe3f1;
    background: #f7f8fc;
    color: #30376f;
}

.header-desktop-actions .header-action-button--secondary a:hover,
.header-desktop-actions .header-action-button--secondary a:focus-visible {
    transform: translateY(-1px);
    border-color: #bfc6e4;
    outline: none;
    background: #eef0fb;
    color: #272d6a;
    box-shadow: 0 6px 14px rgba(39, 45, 106, 0.1);
}

.header-desktop-actions .header-action-button--primary a {
    border-color: #272d6a;
    background: linear-gradient(135deg, #272d6a 0%, #3e4798 100%);
    color: #fff;
    box-shadow: 0 7px 16px rgba(39, 45, 106, 0.2);
}

.header-desktop-actions .header-action-button--primary a:hover,
.header-desktop-actions .header-action-button--primary a:focus-visible {
    transform: translateY(-1px);
    border-color: #4f59ad;
    outline: none;
    background: linear-gradient(135deg, #343c85 0%, #515bb0 100%);
    color: #fff;
    box-shadow: 0 9px 20px rgba(39, 45, 106, 0.28);
}

.header-desktop-search-column {
    padding: 0 16px 0 4px;
}

.header-desktop-search-form {
    width: 100%;
    margin: 0;
}

.desktop__menu__wrapper .header-desktop-search input {
    width: 100%;
    height: 44px;
    padding: 0 58px 0 20px;
    border: 1px solid #d8ddec;
    border-radius: 999px;
    outline: none;
    background: #f7f8fc;
    color: #252a48;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(34, 42, 91, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop__menu__wrapper .header-desktop-search input::placeholder {
    color: #9297aa;
}

.desktop__menu__wrapper .header-desktop-search input:focus {
    border-color: #727bc1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(78, 89, 170, 0.11), 0 8px 22px rgba(34, 42, 91, 0.08);
}

.header-desktop-search__button {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #272d6a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(39, 45, 106, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-desktop-search__button:hover,
.header-desktop-search__button:focus-visible {
    transform: translateY(-50%) scale(1.04);
    outline: none;
    background: #414a9b;
    box-shadow: 0 6px 14px rgba(39, 45, 106, 0.28);
}

.desktop__menu__wrapper .header-desktop-search__button i {
    position: static;
    color: inherit;
    font-size: 16px;
    line-height: 1;
}

.desktop__menu__wrapper .header-desktop-search .recent-search-list {
    top: calc(100% + 9px);
    padding: 8px;
    border: 1px solid #e4e7f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 38, 84, 0.16);
}

.desktop__menu__wrapper .header-desktop-search .recent-search-list li {
    border-radius: 9px;
    transition: background-color 0.18s ease;
}

.desktop__menu__wrapper .header-desktop-search .recent-search-list li:hover {
    background: #f0f2ff;
    color: #303a91;
}

.desktop__menu__wrapper .header-desktop-search .recent-search-list li:hover p {
    color: #303a91;
}

/* Main navigation category dropdown */
.main-link-bar {
    position: relative;
    z-index: 1000;
}

.main-link-bar .container {
    max-width: 1480px;
}

/* Keep every desktop header row aligned with the homepage content frame. */
@media (min-width: 992px) {

    .topbararea:not(.main-link-bar)>.container,
    .site-mobile-sticky-header .headerarea.headerarea__2>.desktop__menu__wrapper,
    .main-link-bar>.container {
        width: min(100% - 30px, 1320px);
        max-width: 1320px;
        margin-right: auto;
        margin-left: auto;
    }
}

.main-link-bar #topbar__list,
.main-link-bar #topbar__list>ul {
    width: 100%;
}

.main-link-bar #topbar__list>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.85vw, 16px);
}

.main-link-bar #topbar__list>ul>li {
    position: relative;
    flex: 0 0 auto;
}

.main-link-bar #topbar__list>ul>li>a,
.main-link-bar .topbar-category-toggle {
    min-height: 32px;
    margin: 0;
    padding: 5px 3px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.main-link-bar #topbar__list>ul>li>a:hover,
.main-link-bar #topbar__list>ul>li>a:focus-visible,
.main-link-bar .topbar-category-toggle:hover,
.main-link-bar .topbar-category-toggle:focus-visible,
.main-link-bar .topbar-category-menu.is-open .topbar-category-toggle {
    padding: 5px 3px;
    border-bottom: 3px solid #fff;
    outline: none;
}

.main-link-bar .font-a-style>i:first-child,
.main-link-bar .topbar-category-toggle>i:first-child {
    margin-right: 4px;
    font-size: 16px;
}

.topbar-category-toggle__arrow {
    display: inline-block;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.topbar-category-menu.is-open .topbar-category-toggle__arrow {
    transform: rotate(180deg);
}

.topbar-category-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    width: min(360px, calc(100vw - 30px));
    overflow: hidden;
    transform: translateX(-50%);
    border: 1px solid #e6e9f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 33, 80, 0.22);
    color: #202544;
    text-align: left;
}

.topbar-category-dropdown[hidden] {
    display: none;
}

.topbar-category-dropdown::before {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-top: 1px solid #e6e9f4;
    border-left: 1px solid #e6e9f4;
    background: #fff;
    content: '';
}

.topbar-category-dropdown__heading {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px 12px;
    border-bottom: 1px solid #eef0f7;
}

.topbar-category-dropdown__heading span {
    color: #202544;
    font-size: 15px;
    font-weight: 800;
}

.topbar-category-dropdown__heading small {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0f1ff;
    color: #4b54a5;
    font-size: 11px;
    font-weight: 700;
}

.topbar-category-dropdown__search {
    display: flex;
    position: relative;
    align-items: center;
    margin: 10px 12px 3px;
}

.topbar-category-dropdown__search i {
    position: absolute;
    left: 12px;
    color: #7a809a;
    font-size: 15px;
    pointer-events: none;
}

.topbar-category-dropdown__search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid #dfe3f0;
    border-radius: 9px;
    outline: none;
    background: #f8f9fc;
    color: #252a48;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.topbar-category-dropdown__search input:focus {
    border-color: #6d75bd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(75, 84, 165, 0.12);
}

.topbar-category-dropdown__empty {
    margin: 16px 10px;
    color: #777d95;
    font-size: 12px;
    text-align: center;
}

.topbar-category-dropdown__empty[hidden] {
    display: none;
}

.topbar-category-dropdown__list {
    max-height: min(430px, calc(100vh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7px;
    scrollbar-color: #b7bdd8 transparent;
    scrollbar-width: thin;
}

.topbar-category-dropdown__list>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #2c3151;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.topbar-category-dropdown__list>a:hover,
.topbar-category-dropdown__list>a:focus-visible {
    transform: translateX(2px);
    outline: none;
    background: #f2f3ff;
    color: #303a91;
}

.topbar-category-dropdown__name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.topbar-category-dropdown__name i {
    width: 22px;
    flex: 0 0 22px;
    color: #4b54a5;
    font-size: 16px;
    text-align: center;
}

.topbar-category-dropdown__name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-category-dropdown__count {
    min-width: 28px;
    padding: 3px 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f4f5f9;
    color: #656b85;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

/* Override the legacy topbar link rules inside the dropdown. */
.main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a {
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    color: #2c3151;
    font-size: 13px;
    font-weight: 650;
}

.main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a:hover,
.main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a:focus-visible {
    padding: 8px 10px;
    border: 0;
    color: #303a91;
}

/* Full content-width home banner */
.home-hero {
    width: 100%;
    padding-top: 16px;
    background: #f4f6ff;
}

.home-hero .herobannerarea,
.home-hero .herobannerarea.herobannerarea__2,
.home-hero .herobannerarea.herobannerarea__ecomarece {
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}

.home-hero .ecommerce__slider,
.home-hero .herobannerarea__single__slider,
.home-hero .herobannerarea__img {
    width: 100%;
}

.home-hero .herobannerarea__single__slider {
    display: block;
}

.home-hero .herobannerarea__img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    margin: 0 auto;
}

.home-hero .slider__controls__wrap .swiper-pagination {
    bottom: 13px;
}

.home-hero .slider__controls__wrap.slider__controls__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 4px rgba(23, 28, 62, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
    opacity: 1;
}

.home-hero .slider__controls__wrap.slider__controls__pagination .swiper-pagination-bullet-active {
    background: #272d6a;
    outline-color: #fff;
}

/* Compact category strip under the banner */
.home-category-strip {
    position: relative;
    z-index: 2;
    padding: 16px 0 8px;
    background: linear-gradient(180deg, #f7f8fc 0%, #f4f6fb 100%);
}

.home-category-strip__inner {
    display: grid;
    width: min(100% - 30px, 1320px);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid #e8eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(38, 45, 96, 0.07);
}

.home-category-strip__intro {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 4px 18px 4px 2px;
    border-right: 1px solid #e9ebf4;
    flex-shrink: 0;
}

.home-category-strip__intro>div {
    min-width: 0;
}

.home-category-strip__intro-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #272d6a;
    color: #fff;
    box-shadow: 0 6px 14px rgba(39, 45, 106, 0.18);
}

.home-category-strip__intro-icon i {
    font-size: 18px;
}

.home-category-strip__intro h2 {
    margin: 0 0 3px;
    color: #232842;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.home-category-strip__intro p {
    margin: 0;
    color: #858a9d;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: nowrap;
}

.home-category-list-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
}

.home-category-list {
    display: grid;
    grid-auto-columns: minmax(96px, 1fr);
    grid-auto-flow: column;
    gap: 3px;
    overflow-x: auto;
    padding: 2px 0 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-category-list::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1200px) {
    .home-category-list {
        grid-template-columns: repeat(var(--cat-count, 10), minmax(0, 1fr));
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        overflow-x: visible;
    }
}

.home-category-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e3e6f0;
    background: #ffffff;
    color: #272d6a;
    box-shadow: 0 4px 10px rgba(39, 45, 106, 0.15);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.95;
    padding: 0;
}

.home-category-nav:hover {
    background: #272d6a;
    color: #fff;
    border-color: #272d6a;
    transform: translateY(-50%) scale(1.08);
}

.home-category-nav--prev {
    left: 4px;
}

.home-category-nav--next {
    right: 4px;
}

.home-category-list-wrap.has-overflow .home-category-nav {
    display: inline-flex;
}

.home-category-list-wrap.at-start .home-category-nav--prev {
    opacity: 0;
    pointer-events: none;
}

.home-category-list-wrap.at-end .home-category-nav--next {
    opacity: 0;
    pointer-events: none;
}

.home-category-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    padding: 6px 4px;
    scroll-snap-align: start;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #252a48;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover,
.home-category-card:focus-visible {
    transform: translateY(-1px);
    border-color: #e3e6f5;
    outline: none;
    background: #fafaff;
    box-shadow: 0 6px 14px rgba(54, 62, 133, 0.09);
    color: #303a91;
}

.home-category-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 5px;
    border-radius: 12px;
    background: #f0f2ff;
    color: #3d48a0;
}

.home-category-card:nth-child(4n + 2) .home-category-card__icon {
    background: #fff0f7;
    color: #d84486;
}

.home-category-card:nth-child(4n + 3) .home-category-card__icon {
    background: #ecfbf7;
    color: #148e72;
}

.home-category-card:nth-child(4n + 4) .home-category-card__icon {
    background: #fff7df;
    color: #b77a00;
}

.home-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.home-category-card__icon i {
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-category-card__name {
    width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-category-card__count {
    margin-top: 2px;
    color: #858aa0;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Benefits follow the same visual container as the category panel. */
.home-benefits {
    padding: 6px 0 24px;
    background: #f4f6fb;
}

.home-benefits .home-benefits__container {
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    padding-right: 0;
    padding-left: 0;
}

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
}

.home-benefits__grid>[class*='col-'] {
    display: flex;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.home-benefits .home-benefit-card {
    width: 100%;
    min-width: 0;
    min-height: 94px;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e6e9f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(38, 45, 96, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-benefits .home-benefit-card:hover {
    transform: translateY(-2px);
    border-color: #cfd4ec;
    box-shadow: 0 12px 28px rgba(38, 45, 96, 0.1);
}

.home-benefit-card__inner {
    width: 100%;
}

.home-benefit-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #f3f4ff;
}

.home-benefit-card__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.home-benefits .trainingarea__content {
    min-width: 0;
}

.home-benefits .home-benefit-card .trainingarea__content h6 {
    margin: 0 0 4px;
    color: #252a44;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.home-benefits .home-benefit-card .trainingarea__content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #858a9c;
    font-size: 12.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Compact six-column course rows on the homepage. */
.home-course-section {
    padding: 20px 0 26px;
    border-top: 1px solid #eef0f6;
    background: #fff;
}

.home-course-section+.home-course-section {
    border-top: 0;
    padding-top: 16px;
}

.home-course-section .home-course-section__container {
    max-width: 1320px;
}

.home-course-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceef5;
}

.home-course-section__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.home-course-section__title-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #e9fbf3;
    color: #138b63;
    font-size: 17px;
}

.home-course-section--selling .home-course-section__title-icon {
    background: #fff2e8;
    color: #e56d18;
}

.home-course-section--new .home-course-section__title-icon {
    background: #f0edff;
    color: #6252ba;
}

.home-course-section--combo .home-course-section__title-icon {
    background: #fff3e5;
    color: #e57018;
}

.home-course-section__title h2 {
    margin: 0 0 3px;
    color: #232842;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.home-course-section__title p {
    margin: 0;
    color: #8a8fa1;
    font-size: 13.5px;
    line-height: 1.35;
}

.home-course-section__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.home-course-section__actions>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    margin-left: 2px;
    color: #343d8f;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

.home-course-section__actions>a:hover {
    color: #5f2ded;
}

.home-course-slider__prev,
.home-course-slider__next {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e1e4ef;
    border-radius: 9px;
    background: #fff;
    color: #343d8f;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(38, 45, 96, 0.07);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease,
        transform 0.2s ease, box-shadow 0.2s ease;
}

.home-course-slider__prev:hover,
.home-course-slider__next:hover,
.home-course-slider__prev:focus-visible,
.home-course-slider__next:focus-visible {
    border-color: #343d8f;
    background: #343d8f;
    color: #fff;
    box-shadow: 0 6px 16px rgba(52, 61, 143, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.home-course-slider__prev.swiper-button-disabled,
.home-course-slider__next.swiper-button-disabled {
    border-color: #eceef4;
    background: #f7f8fb;
    color: #b9bdca;
    box-shadow: none;
    cursor: default;
    opacity: 0.7;
    transform: none;
}

.home-course-slider {
    height: 750px;
    overflow: hidden;
    padding: 4px 4px 26px;
}

.home-course-slider.home-course-slider--single-row,
.home-course-section--free .home-course-slider {
    height: 380px;
    padding: 4px 4px 20px;
}

.home-course-slider .swiper-wrapper {
    align-items: stretch;
}

.home-course-slider .swiper-slide {
    display: flex;
    height: auto;
}

.home-course-section .home-course-slider .home-course-card {
    height: 100%;
}

.home-combo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 12px;
}

.home-combo-grid__item {
    display: flex;
    min-width: 0;
    height: auto;
}

.home-course-section--combo .home-course-card {
    height: 100%;
    min-height: 340px;
}

.home-course-section .tab__content__wrapper,
.home-course-section .tab-pane {
    margin: 0;
    padding: 0;
}

.home-course-section .home-course-card {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 340px;
    max-height: 380px;
    margin: 0;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(38, 45, 96, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-course-section .home-course-card:hover {
    transform: translateY(-3px);
    border-color: #cfd4eb;
    box-shadow: 0 13px 28px rgba(38, 45, 96, 0.12);
}

.home-course-section .home-course-card>a {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
}

.home-course-section .home-course-card .gridarea__img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    border-radius: 0 !important;
    background: #f0f2f8 !important;
}

.home-course-section .home-course-card .gridarea__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-course-section .home-course-card .gridarea__small__button {
    top: 8px;
    left: 8px;
}

.home-course-section .home-course-card .grid__badge {
    padding: 4px 7px;
    border-radius: 6px;
    background: #dc1f55;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.home-course-section .home-course-card .home-course-card__free-badge {
    background: #138b63;
    color: #fff;
    text-transform: uppercase;
}

.home-course-section .home-course-card .gridarea__content {
    display: flex;
    min-height: 195px;
    padding: 11px 10px 10px;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

.home-course-section .home-course-card .gridarea__heading h3 {
    min-height: 42px;
    height: auto;
    margin: 0 0 5px;
    line-height: 1.25;
}

.home-course-section .home-course-card .gridarea__heading h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #22263c;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 21px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-course-section .home-course-card .gridarea__content>span,
.home-course-section .home-course-card .gridarea__content>span a {
    color: #8a8fa0;
    font-size: 11px;
    font-weight: 600;
}

.home-course-section .home-course-card .gridarea__list {
    margin-top: 5px !important;
}

.home-course-section .home-course-card .gridarea__list ul {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul li {
    width: auto !important;
    min-width: 0;
    color: #7e8395;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul li:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul li:first-child a {
    min-width: 0;
    overflow: hidden;
    color: #7e8395;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul li:first-child>i {
    margin-right: 4px;
    flex-shrink: 0;
    font-size: 12px;
    color: #ff912c;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul #prive-sale,
.home-course-section .home-course-card .gridarea__content .gridarea__list ul #price-number {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: 50%;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul #prive-sale {
    color: #a0a4b3;
    font-size: 11.5px;
    text-decoration: line-through;
    font-weight: 500;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list ul #price-number {
    color: #e21d45;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.home-course-section--free .home-course-card .gridarea__content .gridarea__list ul #price-number {
    color: #138b63;
}

.home-course-section .home-course-card .gridarea__star {
    display: inline-flex !important;
    align-items: center;
    gap: 1.5px;
    color: #ff8a25 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap;
    max-width: 100%;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list .gridarea__star {
    display: inline-flex !important;
    align-items: center;
    gap: 1.5px;
    white-space: nowrap;
    overflow: visible;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list .gridarea__star i {
    font-size: 11px !important;
    line-height: 1;
    margin: 0 !important;
    flex-shrink: 0;
    color: #ff8a25;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list .gridarea__star span {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    margin-left: 2px;
    color: #7e8395;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-course-section .home-course-card .gridarea__content .gridarea__list .gridarea__star span i {
    color: #7e8395 !important;
    font-size: 9.5px !important;
    margin: 0 !important;
}

/* Generic course cards across other pages */
.gridarea__wraper .gridarea__content .gridarea__list ul {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.gridarea__wraper .gridarea__content .gridarea__list ul li {
    width: auto !important;
}

.gridarea__wraper .gridarea__content .gridarea__list ul li:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.gridarea__wraper .gridarea__content .gridarea__list ul #prive-sale,
.gridarea__wraper .gridarea__content .gridarea__list ul #price-number {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto;
}

.gridarea__wraper .gridarea__content .gridarea__list .gridarea__star {
    display: inline-flex !important;
    align-items: center;
    gap: 1.5px;
    white-space: nowrap;
}

.gridarea__wraper .gridarea__content .gridarea__list .gridarea__star span {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    margin-left: 2px;
    white-space: nowrap;
}

.home-course-section .home-course-card .gridarea__bottom {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eff0f5;
}

.home-course-section .home-course-card .gridarea__bottom .gridarea__star {
    display: flex;
    justify-content: flex-end;
    margin-top: 0 !important;
}

.home-course-section .home-course-card .gridarea__bottom .btn {
    padding: 5px 12px;
    border: 0;
    border-radius: 8px;
    background: #272d6a;
    color: #fff;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

/* Homepage blog cards. */
.home-blog-section {
    padding: 30px 0 34px;
    border-top: 1px solid #eceef5;
    background: linear-gradient(180deg, #f8f9fd 0%, #fff 100%);
}

.home-blog-section__container,
.home-reasons__container {
    max-width: 1320px;
}

.home-blog-section .home-blog-section__container {
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    padding-right: 0;
    padding-left: 0;
}

.home-reasons .home-reasons__container {
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    padding-right: 0;
    padding-left: 0;
}

.home-blog-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-blog-section__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.home-blog-section__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #efeaff;
    color: #6252ba;
    font-size: 19px;
}

.home-blog-section__eyebrow,
.home-reasons__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #6252ba;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-blog-section__heading h2,
.home-reasons__header h2 {
    margin: 0;
    color: #232842;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

.home-blog-section__heading p,
.home-reasons__header p {
    margin: 4px 0 0;
    color: #858a9c;
    font-size: 13.5px;
    line-height: 1.5;
}

.home-blog-section__all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    color: #343d8f;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

.home-blog-section__all:hover {
    color: #5f2ded;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7e9f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(38, 45, 96, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-blog-card:hover {
    border-color: #d1d5e8;
    box-shadow: 0 14px 32px rgba(38, 45, 96, 0.12);
    transform: translateY(-3px);
}

.home-blog-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef0f6;
}

.home-blog-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-blog-card:hover .home-blog-card__image img {
    transform: scale(1.035);
}

.home-blog-card__content {
    display: flex;
    min-height: 140px;
    padding: 14px;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-blog-card__meta {
    margin-bottom: 8px;
    color: #8b90a2;
    font-size: 12px;
    font-weight: 700;
}

.home-blog-card__meta i {
    margin-right: 3px;
    color: #6252ba;
}

.home-blog-card h3 {
    margin: 0;
    line-height: 1;
}

.home-blog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #24283f;
    font-size: 15px;
    font-weight: 800;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-card h3 a:hover {
    color: #5f2ded;
}

.home-blog-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    color: #343d8f;
    font-size: 13px;
    font-weight: 800;
}

/* Homepage reasons. */
.home-reasons {
    padding: 32px 0 38px;
    background: #fff;
}

.home-reasons__header {
    max-width: 650px;
    margin: 0 auto 20px;
    text-align: center;
}

.home-reasons__eyebrow {
    color: #e13b7b;
}

.home-reasons__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.home-reason-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 126px;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    padding: 18px 16px;
    border: 1px solid #e7e9f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(38, 45, 96, 0.055);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-reason-card:hover {
    border-color: #d2d6e8;
    box-shadow: 0 13px 28px rgba(38, 45, 96, 0.1);
    transform: translateY(-3px);
}

.home-reason-card__number {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #eceef7;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.home-reason-card__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    border-radius: 16px;
    background: #eef0ff;
}

.home-reason-card:nth-child(2) .home-reason-card__icon {
    background: #fff2e8;
}

.home-reason-card:nth-child(3) .home-reason-card__icon {
    background: #fff8dc;
}

.home-reason-card:nth-child(4) .home-reason-card__icon {
    background: #eaf8f0;
}

.home-reason-card:nth-child(5) .home-reason-card__icon {
    background: #f1edff;
}

.home-reason-card__icon img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.home-reason-card__content {
    position: relative;
    min-width: 0;
    z-index: 1;
}

.home-reason-card__content h3 {
    margin: 0 0 5px;
    color: #252a44;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.home-reason-card__content p {
    margin: 0;
    color: #858a9c;
    font-size: 12.5px;
    line-height: 1.5;
}

.is_dark .topbar-category-dropdown,
.is_dark .topbar-category-dropdown::before,
.is_dark .topbar-category-dropdown__heading,
.is_dark .topbar-category-dropdown__list {
    border-color: #3d4160;
    background: #20233b;
}

.is_dark .desktop__menu__wrapper .header-desktop-search input {
    border-color: #41465f;
    background: #262a40;
    color: #f3f4fa;
}

.is_dark .desktop__menu__wrapper .header-desktop-search input:focus {
    border-color: #7e87cd;
    background: #2d314b;
}

.is_dark .desktop__menu__wrapper .header-desktop-search .recent-search-list {
    border-color: #41465f;
    background: #20233b;
}

.is_dark .desktop__menu__wrapper .header-desktop-search .recent-search-list li:hover {
    background: #303552;
}

.is_dark .header-desktop-actions .header-action-button--secondary a {
    border-color: #444963;
    background: #292d45;
    color: #eceef8;
}

.is_dark .header-desktop-actions .header-action-button--secondary a:hover,
.is_dark .header-desktop-actions .header-action-button--secondary a:focus-visible {
    border-color: #626a96;
    background: #343952;
    color: #fff;
}

.is_dark .topbar-category-dropdown__heading span,
.is_dark .main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a {
    color: #f1f2fa;
}

.is_dark .main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a:hover,
.is_dark .main-link-bar .topbar__right #topbar__list .topbar-category-dropdown__list>a:focus-visible {
    background: #303552;
    color: #f1f2fa;
}

.is_dark .topbar-category-dropdown__count,
.is_dark .topbar-category-dropdown__heading small {
    background: #353a5a;
    color: #d7daf0;
}

.is_dark .topbar-category-dropdown__search input {
    border-color: #444967;
    background: #292d46;
    color: #f1f2fa;
}

.is_dark .topbar-category-dropdown__search input:focus {
    border-color: #747ec9;
    background: #303552;
}

.is_dark .home-category-strip {
    border-color: #353851;
    background: #202234;
}

.is_dark .home-category-strip__inner {
    border-color: #393d58;
    background: #272a40;
}

.is_dark .home-category-strip__intro {
    border-color: #3b3f5a;
}

.is_dark .home-category-strip__intro h2 {
    color: #f2f3f8;
}

.is_dark .home-category-card {
    color: #f2f3f8;
}

.is_dark .home-category-card:hover,
.is_dark .home-category-card:focus-visible {
    border-color: #414560;
    background: #292d46;
}

.is_dark .home-category-nav {
    background: #272a40;
    color: #f2f3f8;
    border-color: #3b3f5a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.is_dark .home-category-nav:hover {
    background: #3b3f5a;
    color: #fff;
    border-color: #585d82;
}

.is_dark .home-benefits {
    background: #202234;
}

.is_dark .home-benefits .home-benefit-card {
    border-color: #393d58;
    background: #272a40;
}

.is_dark .home-benefits .home-benefit-card .trainingarea__content h6 {
    color: #f2f3f8;
}

.is_dark .home-benefit-card__icon {
    background: #323651;
}

.is_dark .home-course-section {
    border-color: #343850;
    background: #202234;
}

.is_dark .home-course-section__header {
    border-color: #393d58;
}

.is_dark .home-course-section__title h2 {
    color: #f2f3f8;
}

.is_dark .home-course-section__actions>a {
    color: #dfe3ff;
}

.is_dark .home-course-slider__prev,
.is_dark .home-course-slider__next {
    border-color: #414660;
    background: #2b2f48;
    color: #eef0ff;
    box-shadow: none;
}

.is_dark .home-course-slider__prev:hover,
.is_dark .home-course-slider__next:hover,
.is_dark .home-course-slider__prev:focus-visible,
.is_dark .home-course-slider__next:focus-visible {
    border-color: #747ec9;
    background: #747ec9;
    color: #fff;
}

.is_dark .home-course-slider__prev.swiper-button-disabled,
.is_dark .home-course-slider__next.swiper-button-disabled {
    border-color: #343850;
    background: #25283d;
    color: #666c88;
}

.is_dark .home-course-section .home-course-card {
    border-color: #393d58;
    background: #272a40;
}

.is_dark .home-course-section .home-course-card .gridarea__heading h3 a {
    color: #f2f3f8;
}

.is_dark .home-course-section .home-course-card .gridarea__bottom {
    border-color: #393d58;
}

.is_dark .home-blog-section,
.is_dark .home-reasons {
    border-color: #343850;
    background: #202234;
}

.is_dark .home-blog-section__heading h2,
.is_dark .home-reasons__header h2,
.is_dark .home-blog-card h3 a,
.is_dark .home-reason-card__content h3 {
    color: #f2f3f8;
}

.is_dark .home-blog-card,
.is_dark .home-reason-card {
    border-color: #393d58;
    background: #272a40;
}

.is_dark .home-reason-card__number {
    color: #343850;
}

.is_dark .home-blog-section__all,
.is_dark .home-blog-card__link {
    color: #dfe3ff;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .main-link-bar #topbar__list>ul {
        gap: 5px;
    }

    .main-link-bar #topbar__list>ul>li>a,
    .main-link-bar .topbar-category-toggle {
        font-size: 10px;
    }

    .main-link-bar .font-a-style>i:first-child,
    .main-link-bar .topbar-category-toggle>i:first-child {
        font-size: 14px;
    }

    .home-combo-grid,
    .home-blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-reasons__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-reason-card {
        grid-column: span 2;
    }

    .home-reason-card:nth-last-child(2) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .home-combo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-blog-grid,
    .home-reasons__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-reasons__grid .home-reason-card:last-child {
        width: calc((100% - 14px) / 2);
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 767px) {
    .home-hero .slider__controls__wrap .swiper-pagination {
        bottom: 8px;
    }

    .home-category-strip {
        padding: 10px 12px 6px;
    }

    .home-category-strip__inner {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
        border-radius: 15px;
    }

    .home-category-strip__intro {
        padding: 0 0 9px;
        border-right: 0;
        border-bottom: 1px solid #e9ebf4;
    }

    .home-category-strip__intro-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
    }

    .home-category-strip__intro h2 {
        font-size: 15px;
    }

    .home-category-strip__intro p {
        font-size: 11.5px;
    }

    .home-category-nav {
        display: none !important;
    }

    .home-category-list {
        grid-auto-columns: 92px;
        gap: 3px;
        padding: 10px 0 1px;
    }

    .home-category-card {
        padding: 7px 4px 6px;
    }

    .home-category-card__icon {
        width: 38px;
        height: 38px;
        margin-bottom: 5px;
    }

    .home-category-card__name {
        font-size: 12px;
    }

    .home-course-section {
        padding: 12px 0 14px;
    }

    .home-course-slider {
        height: 590px;
        padding: 4px 4px 18px;
    }

    .home-course-slider.home-course-slider--single-row,
    .home-course-section--free .home-course-slider {
        height: 310px;
    }

    .home-course-section__header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .home-course-section__title {
        gap: 7px;
    }

    .home-course-section__title-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
        font-size: 16px;
    }

    .home-course-section__title h2 {
        font-size: 16px;
    }

    .home-course-section__title p {
        display: none;
    }

    .home-course-section__actions {
        gap: 4px;
    }

    .home-course-section__actions>a {
        margin-left: 0;
        font-size: 12px;
    }

    .home-course-slider__prev,
    .home-course-slider__next {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 14px;
    }

    .home-combo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-blog-section {
        padding: 22px 0 26px;
    }

    .home-blog-section__header {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .home-blog-section__heading {
        gap: 8px;
    }

    .home-blog-section__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .home-blog-section__heading h2,
    .home-reasons__header h2 {
        font-size: 18px;
    }

    .home-blog-section__heading p {
        display: none;
    }

    .home-blog-section__all {
        font-size: 11.5px;
    }

    .home-blog-grid,
    .home-reasons__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .home-blog-card {
        border-radius: 13px;
    }

    .home-reasons {
        padding: 26px 0 30px;
    }

    .home-reasons__header {
        margin-bottom: 15px;
    }

    .home-reason-card {
        min-height: 108px;
        padding: 14px;
        border-radius: 13px;
    }

    .home-course-section .home-course-card {
        min-height: 275px;
        max-height: 320px;
        height: 100%;
        border-radius: 11px;
    }

    .home-course-section .home-course-card .gridarea__content {
        min-height: 165px;
        padding: 9px 8px 8px;
    }

    .home-course-section .home-course-card .gridarea__heading h3 a {
        font-size: 12.5px;
        line-height: 18px;
    }

    .home-course-section .home-course-card .gridarea__star i:nth-of-type(n + 4) {
        display: none;
    }

    .is_dark .home-category-strip__intro {
        border-color: #3b3f5a;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-list {
        scroll-behavior: auto;
    }

    .home-category-card,
    .topbar-category-dropdown__list>a,
    .topbar-category-toggle__arrow {
        transition: none;
    }
}

/* Site footer. */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 36px 0 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(95, 45, 237, 0.18), transparent 30%),
        linear-gradient(135deg, #10182b 0%, #0c1323 100%);
    color: #d8dceb;
}

.site-footer::after {
    position: absolute;
    right: -100px;
    bottom: -180px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(242, 39, 126, 0.07);
    content: '';
    pointer-events: none;
}

.site-footer .site-footer__container {
    position: relative;
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    padding-right: 0;
    padding-left: 0;
    z-index: 1;
}

.site-footer__newsletter {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.site-footer__newsletter-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #6d5be7, #f2277e);
    color: #fff;
    font-size: 21px;
    box-shadow: 0 9px 20px rgba(95, 45, 237, 0.24);
}

.site-footer__newsletter-content>span {
    color: #b7adff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__newsletter-content h2 {
    margin: 2px 0 3px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.site-footer__newsletter-content p {
    margin: 0;
    color: #9da6bd;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer__newsletter-form {
    display: flex;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.5);
}

.site-footer__newsletter-form input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.site-footer__newsletter-form input::placeholder {
    color: #7f899f;
}

.site-footer__newsletter-form:focus-within {
    border-color: rgba(183, 173, 255, 0.65);
}

.site-footer__newsletter-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    background: #f2277e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__newsletter-form button:hover {
    background: #d91f6e;
    transform: translateY(-1px);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 1fr 1.25fr;
    gap: 44px;
    padding-bottom: 32px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #fff;
    font-size: 19px;
    font-weight: 850;
}

.site-footer__logo:hover {
    color: #fff;
}

.site-footer__logo-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(183, 173, 255, 0.14);
    color: #b7adff;
    font-size: 18px;
}

.site-footer__brand>p {
    max-width: 315px;
    margin: 0 0 16px;
    color: #9da6bd;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer__socials {
    display: flex;
    gap: 8px;
}

.site-footer__socials a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    color: #cdd2e2;
    font-size: 13px;
    font-weight: 900;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__socials a:hover {
    border-color: #6d5be7;
    background: #6d5be7;
    color: #fff;
    transform: translateY(-2px);
}

.site-footer__column h3 {
    position: relative;
    margin: 7px 0 16px;
    padding-bottom: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-footer__column h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6d5be7, #f2277e);
    content: '';
}

.site-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__column li {
    margin-bottom: 9px;
}

.site-footer__column li a {
    position: relative;
    color: #aab2c6;
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__column li a:hover {
    padding-left: 4px;
    color: #fff;
}

.site-footer__contact {
    min-width: 0;
}

.site-footer__contact-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #d8dceb;
    font-size: 12.5px;
    line-height: 1.35;
}

a.site-footer__contact-item:hover {
    color: #fff;
}

.site-footer__contact-item>span:first-child {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border-radius: 9px;
    background: rgba(183, 173, 255, 0.1);
    color: #b7adff;
    font-size: 13px;
}

.site-footer__contact-item>span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__contact-item small {
    display: block;
    margin-bottom: 1px;
    color: #778198;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.site-footer__payments span {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: #fff;
    color: #27304d;
    font-size: 9px;
    font-weight: 900;
}

.site-footer__payments span:nth-child(2) {
    color: #b0005b;
}

.site-footer__payments span:nth-child(3) {
    color: #0876d1;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom p {
    margin: 0;
    color: #778198;
    font-size: 12px;
}

.site-footer__bottom>div {
    display: flex;
    gap: 16px;
}

.site-footer__bottom a {
    color: #8f98ad;
    font-size: 12px;
}

.site-footer__bottom a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .site-mobile-sticky-header {
        min-height: var(--mobile-header-height, 136px);
    }

    .header__area.sticky {
        z-index: 10050;
    }

    .alert-bar {
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    body>.body-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000000;
        visibility: hidden;
        opacity: 0;
        background: rgba(15, 23, 42, 0.58);
        backdrop-filter: blur(2px);
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.overlay-active>.body-overlay {
        visibility: visible;
        opacity: 1;
    }

    .mobile-off-canvas-active {
        top: 0;
        right: auto !important;
        bottom: 0;
        left: 0 !important;
        width: min(88vw, 360px) !important;
        height: 100dvh;
        min-height: 100vh;
        z-index: 10000001 !important;
        visibility: hidden;
        overflow: hidden;
        opacity: 0;
        transform: translateX(-102%);
        border-radius: 0 20px 20px 0;
        background: #fff;
        box-shadow: 18px 0 55px rgba(15, 23, 42, 0.2);
        transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.28s ease;
    }

    .mobile-off-canvas-active.inside {
        left: 0 !important;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-drawer-header {
        display: flex;
        height: 70px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px 10px 18px;
        border-bottom: 1px solid #e8eaf2;
        background: #fff;
    }

    .mobile-drawer-brand {
        display: block;
        width: 172px;
    }

    .mobile-drawer-brand img {
        display: block;
        width: 100%;
        height: 42px;
        object-fit: contain;
        object-position: left center;
    }

    .mobile-off-canvas-active .mobile-aside-close {
        position: static;
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #f1f3f9;
        color: #272d6a;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap {
        height: calc(100dvh - 70px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 16px 28px;
        box-shadow: none;
        overscroll-behavior: contain;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap {
        margin: 0 0 18px;
        padding: 0 0 16px;
    }

    .mobile-drawer-tip {
        margin: 0 0 12px;
        padding: 10px 12px;
        border: 1px solid #e3e6f2;
        border-radius: 10px;
        background: #f7f8fc;
        color: #606783;
        font-size: 11px;
        line-height: 1.45;
        text-align: left;
    }

    .mobile-off-canvas-active .mobile-menu {
        margin: 0;
        padding: 0;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu>li {
        border-bottom: 1px solid #edf0f6;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu>li>a {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        padding: 13px 44px 13px 10px;
        color: #252a48;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu li.menu-item-has-children .menu-expand {
        top: 7px;
        right: 4px;
        left: auto;
        display: flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #f1f3f9;
        line-height: 1;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu li.menu-item-has-children .menu-expand i {
        margin: 0;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu li ul {
        max-height: 52vh;
        overflow-y: auto;
        margin: 0 0 8px;
        padding: 5px;
        border-radius: 12px;
        background: #f7f8fc;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap .mobile-navigation nav .mobile-menu li ul li a {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 8px;
        color: #3f4665;
        font-size: 12px;
        line-height: 1.35;
    }

    .mobile-off-canvas-active .header-mobile-aside-wrap .mobile-curr-lang-wrap {
        margin: 0;
        padding: 0;
        border: 0;
    }

    body.mobile-menu-open #scrollUp,
    body.mobile-menu-open .mode_switcher.my_switcher {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .site-footer__newsletter {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .site-footer__newsletter-form {
        grid-column: 1 / -1;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 34px;
    }
}

@media (max-width: 575px) {

    body .fcta-zalo-vi-tri-nut,
    body .fcta-zalo-vi-tri-nut-telegram,
    body .fcta-zalo-vi-tri-nut-facebook {
        left: 10px;
    }

    body .fcta-zalo-vi-tri-nut {
        bottom: 14px;
    }

    body .fcta-zalo-vi-tri-nut-telegram {
        bottom: 68px;
    }

    body .fcta-zalo-vi-tri-nut-facebook {
        bottom: 122px;
    }

    body .fcta-zalo-nen-nut,
    body .fcta-zalo-nen-nut-telegram,
    body .fcta-zalo-nen-nut-facebook {
        width: 44px;
        height: 44px;
    }

    body .fcta-zalo-nen-nut::before,
    body .fcta-zalo-nen-nut::after,
    body .fcta-zalo-nen-nut-telegram::before,
    body .fcta-zalo-nen-nut-telegram::after,
    body .fcta-zalo-nen-nut-facebook::before,
    body .fcta-zalo-nen-nut-facebook::after {
        inset: -7px;
    }

    body .fcta-zalo-ben-trong-nut {
        display: flex;
        inset: 8px;
        width: auto;
        height: auto;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    body .fcta-zalo-ben-trong-nut img {
        display: block;
        width: 100% !important;
        height: 100%;
        object-fit: contain;
    }

    .site-footer {
        padding-top: 24px;
    }

    .site-footer__newsletter {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 27px;
        padding: 15px;
        border-radius: 14px;
    }

    .site-footer__newsletter-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .site-footer__newsletter-content h2 {
        font-size: 15px;
    }

    .site-footer__newsletter-form {
        grid-column: auto;
    }

    .site-footer__newsletter-form button {
        padding-inline: 10px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-bottom: 25px;
    }

    .site-footer__column h3 {
        margin-bottom: 13px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}