.local-vietrobothome-page header#page-header,
.local-vietrobothome-page .page-header-headings,
.local-vietrobothome-page #page-navbar {
    display: none !important;
}

body.local-vietrobothome-page {
    padding-top: var(--modern-lms-navbar-height, 64px) !important;
    overflow-x: hidden;
}

/* Moodle's body bootstrap markup leaves a whitespace text node before the wrapper. */
body.pagelayout-frontpage {
    line-height: 0;
    padding-top: var(--modern-lms-navbar-height, 56px) !important;
}

body.pagelayout-frontpage > * {
    line-height: 1.5;
}

body.pagelayout-frontpage > div > a.sr-only-focusable {
    line-height: 1.5;
}

body.pagelayout-frontpage > div > a.sr-only-focusable:focus,
body.pagelayout-frontpage > div > a.sr-only-focusable:active {
    top: var(--modern-lms-navbar-height, 64px);
    left: 0;
    z-index: 2061;
    margin: 0;
}

.local-vietrobothome-page #region-main-box,
.local-vietrobothome-page #region-main,
.local-vietrobothome-page #page-content,
.local-vietrobothome-page .main-inner,
.local-vietrobothome-page #page.drawers {
    padding: 0;
    margin: 0;
    background: transparent;
}

.local-vietrobothome-page #page {
    margin-left: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: transparent;
}

.local-vietrobothome-page #page.drawers .main-inner,
.local-vietrobothome-page #page .main-inner,
.local-vietrobothome-page #page-content,
.local-vietrobothome-page #region-main-box,
.local-vietrobothome-page #page-wrapper {
    max-width: none;
    width: 100%;
}

.local-vietrobothome-page #block-region-side-pre,
.local-vietrobothome-page [data-region="blocks-column"],
.local-vietrobothome-page #page-footer,
.local-vietrobothome-page .drawer.drawer-right,
.local-vietrobothome-page .activity-header {
    display: none !important;
}

.local-vietrobothome-page #region-main {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
}

.local-vietrobothome-page #region-main>.card,
.local-vietrobothome-page #region-main>.card .card-body,
.local-vietrobothome-page #region-main>div[role="main"] {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.local-vietrobothome-page #page,
.local-vietrobothome-page #page-wrapper,
.local-vietrobothome-page {
    background: #f4f6fb;
    min-height: 100vh;
}

.vr-homepage {
    color: #13326c;
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

body.local-vietrobothome-page .fixed-top-navbar {
    display: block !important;
}

body.local-vietrobothome-page #sidebar {
    display: none !important;
}

body.local-vietrobothome-page #sidebar-toggle {
    display: none !important;
}

.vr-homepage-error {
    margin: 1.5rem auto;
    max-width: 1240px;
}

.vr-main-container {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

.vr-homepage .container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.vr-homepage img {
    max-width: 100%;
}

.vr-header {
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid rgba(19, 50, 108, 0.08);
    display: none;
}

.vr-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
}

.vr-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #13326c;
    font-weight: 700;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}

.vr-brand:hover {
    color: #13326c;
    text-decoration: none;
}

.vr-brand__mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c1f56, #2857c3);
    color: #fff;
    flex-shrink: 0;
}

.vr-brand__mark--logo {
    width: 72px;
    height: 72px;
    padding: .45rem;
    background: #ffffff;
    border: 1px solid #d7def0;
    overflow: hidden;
}

.vr-brand__mark--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vr-brand__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-search {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1;
    max-width: 520px;
    margin-left: auto;
}

.vr-search input {
    min-width: 0;
    border-radius: 999px;
    border: 1px solid #d7def0;
    padding: .85rem 1rem;
}

.vr-search .btn {
    flex: 0 0 52px;
    width: 52px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
}

.vr-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vr-actions .btn {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 600;
}

.vr-mobile-menu-toggle,
.vr-mobile-search-toggle,
.vr-mobile-overlay,
.vr-mobile-search,
.vr-mobile-menu {
    display: none !important;
}

.vr-icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid #d7def0;
    border-radius: 14px;
    background: #ffffff;
    color: #13326c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.vr-icon-btn:hover {
    transform: translateY(-1px);
    border-color: #b8c8ea;
    box-shadow: 0 10px 24px rgba(19, 50, 108, 0.12);
}

.vr-icon-btn--ghost {
    width: 40px;
    height: 40px;
    border: 0;
    box-shadow: none;
}

.vr-mobile-search__dialog,
.vr-mobile-menu {
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.vr-mobile-search__header,
.vr-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem .75rem;
    border-bottom: 1px solid #e6ecf7;
}

.vr-mobile-search__header h2,
.vr-mobile-menu__header span {
    margin: 0;
    color: #13326c;
    font-size: 1.05rem;
    font-weight: 700;
}

.vr-mobile-search__form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}

.vr-mobile-search__form input {
    border-radius: 14px;
    border: 1px solid #d7def0;
    padding: .9rem 1rem;
}

.vr-mobile-menu__nav,
.vr-mobile-menu__actions {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.vr-mobile-menu__nav {
    gap: .2rem;
}

.vr-mobile-menu__nav a {
    color: #24427c;
    text-decoration: none;
    font-weight: 500;
    padding: .9rem 0;
    border-bottom: 1px solid #eef2fb;
}

.vr-mobile-menu__actions {
    gap: .75rem;
}

.vr-mobile-menu__actions .btn {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
}

.vr-hero {
    padding: 0;
    min-height: 460px;
    background:
        linear-gradient(135deg, #061226 0%, #0f172a 55%, #102a43 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vr-hero--full {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    min-height: calc(100vh - var(--modern-lms-navbar-height, 64px));
    height: calc(100vh - var(--modern-lms-navbar-height, 64px));
}

.vr-hero__content {
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 4.5rem 0 5rem;
}

.vr-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 18, 38, 0.92) 0%, rgba(8, 31, 58, 0.76) 38%, rgba(8, 31, 58, 0.22) 68%, rgba(8, 31, 58, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.vr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.vr-hero .container {
    position: relative;
    z-index: 2;
}

.vr-hero__copy {
    color: #f8fafc;
    width: min(100%, 640px);
    padding: 2rem 0;
}

.vr-eyebrow {
    display: inline-flex;
    padding: .4rem .85rem;
    border-radius: 999px;
    background-color: rgba(56, 189, 248, 0.15);
    /* light sky blue */
    color: #38bdf8;
    font-size: .875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.vr-hero h1 {
    margin: 1rem 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.vr-hero__title--expanded {
    max-width: 680px;
    font-size: 3.35rem;
    line-height: 1.08;
}

.vr-hero__description {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.7;
}

.vr-hero__description--expanded {
    max-width: 660px;
    font-size: 1.16rem;
    line-height: 1.8;
}

.vr-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.vr-hero__buttons .btn {
    min-width: 180px;
    border-radius: 999px;
    padding: .8rem 1.3rem;
    font-weight: 700;
}

.vr-shortcut {
    background: #fff;
    border-bottom: 1px solid #e4e9f5;
}

.vr-shortcut__link {
    display: inline-block;
    padding: 1.25rem 0;
    color: #22439a;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.vr-section {
    padding: 4rem 0;
}

.vr-section--soft {
    background: #eef2fb;
}

.vr-section__heading {
    margin-bottom: 2rem;
    text-align: center;
}

.vr-section__heading h2 {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vr-section__cta {
    margin-top: .5rem;
    text-align: center;
}

.vr-section__cta a,
.vr-section__cta a:hover {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}

.vr-course-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d9e3f8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(31, 52, 116, 0.06);
}

.vr-course-filters--sub {
    margin-top: -1rem;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(31, 52, 116, 0.04);
}

.vr-course-filters--desktop {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vr-category-panel__title {
    margin: 0 0 .7rem;
    color: #16357a;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.vr-course-filters__label {
    color: #16357a;
    font-size: .95rem;
    font-weight: 800;
    white-space: nowrap;
}

.vr-course-filters__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .55rem;
}

.vr-course-filters--desktop .vr-course-filters__items {
    width: 100%;
    align-items: flex-start;
}

.vr-course-filter,
.vr-course-filter:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: .42rem .82rem;
    border: 1px solid #dde4f3;
    border-radius: 7px;
    background: #f5f7fc;
    color: #6b7890;
    text-decoration: none;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.vr-course-filter:hover {
    transform: none;
    border-color: #cfd8ee;
    background: #edf2fb;
    color: #173a82;
    box-shadow: none;
}

.vr-course-filter.is-active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: none;
}

.vr-course-filter__text {
    font-size: .74rem;
    line-height: 1.1;
    white-space: nowrap;
}

.vr-course-filters--sub.vr-course-filters--desktop {
    margin-top: .1rem;
    margin-bottom: 1.1rem;
}

.vr-category-panel__title + .vr-course-filters--desktop {
    margin-top: 0;
}

.vr-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
}

.vr-pagination__item,
.vr-pagination__item:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}

.vr-pagination__item.is-active {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #111827;
}

.vr-course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.07), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vr-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.12);
}

.vr-course-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8.5rem;
    padding: 0.35rem;
    overflow: hidden;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.vr-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 6px;
}

.vr-course-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.75rem 0.85rem 0.85rem;
    background-color: #ffffff;
    color: #334155;
}

.vr-course-card__role-row {
    min-height: 20px;
    height: auto;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.vr-course-card__role-spacer {
    display: none !important;
    height: 0;
}

.vr-course-card__role-row .badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    line-height: 1.3 !important;
}

.vr-course-card__body h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.55rem;
    max-height: 2.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-course-card__body h3 a,
.vr-course-card__body h3 a:hover {
    color: #0f172a;
    text-decoration: none;
}

.vr-course-card__body p {
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
    min-height: 2.15rem;
    max-height: 2.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.vr-course-card__footer .btn {
    min-height: 32px;
    height: 32px;
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    line-height: 22px !important;
}

.vr-card-secondary-btn,
.vr-card-secondary-spacer {
    min-height: 24px;
    height: 24px;
    line-height: 18px;
    font-size: 10.5px !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
}

.vr-card-secondary-spacer {
    visibility: hidden;
    pointer-events: none;
}

.vr-price__label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}

.vr-course-card--compact .vr-course-card__image {
    height: 8rem;
    padding: 0.3rem;
}

.vr-course-card--compact .vr-course-card__body {
    min-height: 0;
    padding: 0.7rem 0.8rem 0.8rem;
}

.vr-course-card--compact .vr-course-card__body p {
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.vr-topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    padding: 1.25rem;
    border-radius: 16px;
    background-color: #1e293b;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.2s;
}

.vr-topic-card:hover {
    background-color: #0f172a;
    color: #ffffff;
    text-decoration: none;
}

.vr-topic-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    padding: .4rem .7rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.vr-topic-card__name {
    font-size: 1.1rem;
    font-weight: 700;
}

.vr-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.vr-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    text-align: center;
    color: #5a6c95;
    text-decoration: none;
}

.vr-partner:hover {
    color: #22439a;
    text-decoration: none;
}

.vr-partner img {
    max-width: 100%;
    height: 52px;
    object-fit: contain;
    filter: grayscale(1);
}

.vr-testimonial {
    height: 100%;
    padding: 2rem;
    border: 1px solid #d9e3f8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 52, 116, 0.08);
}

.vr-testimonial h3 {
    margin-bottom: .35rem;
    font-size: 1.8rem;
    color: #16357a;
}

.vr-testimonial__subtitle {
    margin-bottom: 1rem;
    color: #6a7da5;
}

.vr-testimonial blockquote {
    margin: 0;
    color: #41557e;
    line-height: 1.75;
}

.vr-footer {
    padding: 5rem 0 4rem;
    background-color: #0d1526;
    color: #f8fafc;
    border-top: 1px solid #1e293b;
    margin-top: 0 !important;
}

.vr-footer h3 {
    margin-bottom: 1.25rem;
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 700;
}

.vr-footer p,
.vr-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.vr-footer li,
.vr-footer .text-muted,
.vr-footer .small,
.vr-footer small,
.vr-footer .text-secondary {
    color: rgba(255, 255, 255, 0.92) !important;
}

.vr-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.vr-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vr-footer__list li+li {
    margin-top: .5rem;
}

.vr-footer__bottom {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.vr-empty {
    margin: 0;
    padding: 1.5rem;
    border: 1px dashed #c8d4ef;
    border-radius: 18px;
    background: #fff;
    color: #5b6f9f;
    text-align: center;
}

@media (max-width: 991.98px) {
    .vr-header__inner {
        flex-wrap: wrap;
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    .vr-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .vr-hero h1 {
        font-size: 2.4rem;
    }

    .vr-hero__title--expanded {
        font-size: 2.7rem;
    }

    .vr-hero__description--expanded {
        font-size: 1.08rem;
    }
}

@media (max-width: 767.98px) {
    body.local-vietrobothome-page #sidebar {
        display: block !important;
        z-index: 1045;
    }

    body.local-vietrobothome-page #sidebar-toggle {
        display: inline-flex !important;
    }

    .vr-header .vr-search,
    .vr-header .vr-actions {
        display: none !important;
    }

    .vr-header .vr-mobile-menu-toggle,
    .vr-header .vr-mobile-search-toggle {
        display: inline-flex !important;
    }

    .vr-header__inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        min-height: auto;
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    .vr-brand {
        gap: .65rem;
        flex: 0 0 auto;
        order: 2;
        margin-right: auto;
    }

    .vr-brand__mark {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .vr-brand__mark--logo {
        width: 72px;
        height: 72px;
        padding: .4rem;
    }

    .vr-actions {
        display: none;
    }

    .vr-search {
        display: none;
    }

    .vr-mobile-menu-toggle,
    .vr-mobile-search-toggle {
        display: inline-flex;
        align-items: center;
    }

    .vr-mobile-menu-toggle {
        order: 1;
    }

    .vr-mobile-search-toggle {
        order: 3;
        margin-left: .25rem;
    }

    .vr-hero,
    .vr-hero.vr-hero--full {
        min-height: auto !important;
        height: auto !important;
        aspect-ratio: auto !important;
        padding: 16px 0 20px !important;
        background-size: cover !important;
        background-position: center center !important;
        width: 100% !important;
        display: block !important;
    }

    /* Khi có ảnh hero banner thuần ảnh (không chứa chữ/nút) trên di động */
    .vr-hero.vr-hero--banner-only,
    .vr-hero.vr-hero--full.vr-hero--banner-only,
    .vr-hero.vr-hero--full:not(:has(.vr-hero__copy h1, .vr-hero__copy p, .vr-hero__buttons a)) {
        min-height: 160px !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        background-size: cover !important;
        background-position: center center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .vr-hero h1 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin: 4px 0 8px !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .vr-hero__title--expanded {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }

    .vr-eyebrow {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        margin-bottom: 4px !important;
        opacity: 0.9 !important;
    }

    .vr-hero__description,
    .vr-hero__description--expanded {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
        margin-bottom: 12px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .vr-hero__content {
        padding: 8px 0 12px !important;
        min-height: auto !important;
    }

    .vr-hero__copy {
        width: 100% !important;
        padding: 0 !important;
    }

    .vr-hero__buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .vr-hero__buttons .btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 16px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        line-height: 38px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    }

    .vr-hero__overlay {
        background:
            linear-gradient(180deg, rgba(6, 18, 38, 0.92) 0%, rgba(8, 31, 58, 0.78) 60%, rgba(8, 31, 58, 0.88) 100%) !important;
    }

    /* Shortcut / Category Breadcrumb */
    .vr-shortcut {
        background: #fff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .vr-shortcut__link {
        display: inline-block !important;
        padding: 7px 0 !important;
        color: #1e3a8a !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
    }

    /* Section Headings */
    .vr-section {
        padding: 14px 0 20px !important;
    }

    .vr-section__heading {
        margin-bottom: 8px !important;
        text-align: left !important;
    }

    .vr-section__heading h2 {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin: 2px 0 6px !important;
        color: #0f172a !important;
        letter-spacing: -0.01em !important;
    }

    /* Category & Year filter rows */
    .vr-category-panel__title {
        font-size: 11px !important;
        font-weight: 700 !important;
        margin: 0 0 5px !important;
        color: #475569 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
    }

    .vr-course-filters--desktop {
        display: flex !important;
        margin-bottom: 6px !important;
    }

    .vr-course-filters--desktop .vr-course-filters__items {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 5px !important;
        padding-bottom: 3px !important;
    }

    .vr-course-filters--desktop .vr-course-filters__items::-webkit-scrollbar {
        display: none;
    }

    .vr-course-filter,
    .vr-course-filter:hover {
        min-height: 27px !important;
        height: 27px !important;
        padding: 0 9px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
        line-height: 27px !important;
        display: inline-flex !important;
        align-items: center !important;
        border: 1px solid #e2e8f0 !important;
        flex: 0 0 auto !important;
    }

    .vr-course-filter__text {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .vr-course-filter.is-active {
        border-color: #2563eb !important;
        background: #2563eb !important;
        color: #fff !important;
    }

    .vr-course-filter.is-active .vr-course-filter__text {
        color: #fff !important;
        font-weight: 600 !important;
    }

    /* Course card compact on mobile */
    .vr-course-card {
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .vr-course-card__image {
        height: 6.8rem !important;
        padding: 4px !important;
    }

    .vr-course-card__body {
        padding: 8px 10px 10px !important;
    }

    .vr-course-card__role-row {
        min-height: 18px !important;
        margin-bottom: 3px !important;
    }

    .vr-course-card__role-row .badge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    .vr-course-card__body h3 {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        min-height: auto !important;
        margin: 0 0 3px !important;
    }

    .vr-course-card__body p {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
        min-height: auto !important;
        margin-bottom: 5px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .vr-course-card__footer .btn {
        height: 30px !important;
        min-height: 30px !important;
        font-size: 11.5px !important;
        padding: 0 8px !important;
        border-radius: 6px !important;
        line-height: 30px !important;
    }

    .vr-card-secondary-btn {
        height: 24px !important;
        min-height: 24px !important;
        font-size: 10px !important;
        line-height: 22px !important;
        padding: 0 6px !important;
    }
}

@media (max-width: 479.98px) {
    .vr-homepage .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vr-hero__content {
        padding: 8px 0 12px;
    }

    .vr-header__inner {
        gap: .65rem;
    }

    .vr-brand {
        gap: .55rem;
    }

    .vr-brand__mark--logo {
        width: 64px;
        height: 64px;
        padding: .35rem;
    }

    .vr-actions {
        display: none;
    }

    .vr-course-filters--desktop .vr-course-filters__items {
        gap: .4rem;
    }

    .vr-course-filter,
    .vr-course-filter:hover {
        min-height: 30px;
        padding: .34rem .65rem;
        border-radius: 6px;
    }

    .vr-course-filter__text {
        font-size: .7rem;
    }
}

@media (max-width: 767.98px) {
    body.vr-mobile-ui-open {
        overflow: hidden;
    }

    .vr-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 50;
    }

    .vr-mobile-overlay,
    .vr-mobile-search,
    .vr-mobile-menu {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
    }

    .vr-mobile-overlay.is-open,
    .vr-mobile-search.is-open,
    .vr-mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .vr-mobile-search {
        position: fixed;
        inset: 0;
        z-index: 60;
        padding: 1rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        transform: translateY(8px);
    }

    .vr-mobile-search__dialog {
        width: min(100%, 420px);
        border-radius: 20px;
        margin-top: 4.5rem;
    }

    .vr-mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 340px);
        z-index: 60;
        transform: translateX(-100%);
    }

    .vr-mobile-menu.is-open {
        transform: translateX(0);
    }
}

.vr-footer-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    margin-right: 15px;
    margin-bottom: 10px;
}

.vr-footer-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.local-vietrobothome-catalog-page header#page-header,
.local-vietrobothome-catalog-page .page-header-headings,
.local-vietrobothome-catalog-page #page-navbar {
    display: none !important;
}

body.local-vietrobothome-catalog-page {
    padding-top: var(--modern-lms-navbar-height, 64px) !important;
    overflow-x: hidden;
    background: #f4f6fb;
}

.local-vietrobothome-catalog-page #region-main-box,
.local-vietrobothome-catalog-page #region-main,
.local-vietrobothome-catalog-page #page-content,
.local-vietrobothome-catalog-page .main-inner,
.local-vietrobothome-catalog-page #page.drawers {
    padding: 0;
    margin: 0;
    background: transparent;
}

.local-vietrobothome-catalog-page #page,
.local-vietrobothome-catalog-page #page-wrapper {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    background: transparent;
}

.local-vietrobothome-catalog-page #region-main {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
}

.local-vietrobothome-catalog-page #region-main > .card,
.local-vietrobothome-catalog-page #region-main > .card .card-body,
.local-vietrobothome-catalog-page #region-main > div[role="main"] {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

body.local-vietrobothome-catalog-page .fixed-top-navbar {
    display: block !important;
}

.vr-catalog-page {
    color: #13326c;
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: calc(100vh - var(--modern-lms-navbar-height, 64px));
}

.vr-catalog-page__hero {
    padding: 2.75rem 0 2rem;
    background: #1f3f95;
    color: #ffffff;
}

.vr-catalog-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.vr-catalog-page__breadcrumb a,
.vr-catalog-page__breadcrumb a:hover {
    color: #ffffff;
    text-decoration: none;
}

.vr-catalog-page__hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.vr-catalog-page__hero p {
    margin: 0;
    max-width: 720px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
}

.vr-catalog-page__body {
    padding: 2rem 0 3rem;
}

.vr-catalog-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.vr-catalog-page__toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vr-catalog-page__filter-toggle,
.vr-catalog-page__search button,
.vr-catalog-page__sort select,
.vr-catalog-page__search input,
.vr-catalog-page__clear {
    min-height: 44px;
    border-radius: 999px;
}

.vr-catalog-page__filter-toggle,
.vr-catalog-page__search button {
    border: 0;
    padding: 0 1rem;
    background: #13326c;
    color: #ffffff;
    font-weight: 700;
}

.vr-catalog-page__filter-toggle {
    display: none;
}

.vr-catalog-page__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vr-catalog-page__search input,
.vr-catalog-page__sort select {
    border: 1px solid #d7def0;
    padding: 0 1rem;
    background: #ffffff;
    color: #13326c;
}

.vr-catalog-page__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.vr-catalog-page__clear,
.vr-catalog-page__clear:hover {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    background: #eef3ff;
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
}

.vr-catalog-page__layout {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
}

.vr-catalog-page__main {
    min-width: 0;
}

.vr-catalog-page__sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.vr-catalog-page__sidebar-inner {
    padding: 1.25rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.vr-catalog-page__sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vr-catalog-page__sidebar-header h2,
.vr-catalog-page__subheading {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.vr-catalog-page__sidebar-header button {
    display: none;
    border: 0;
    background: transparent;
    color: #13326c;
    font-size: 1.6rem;
    line-height: 1;
}

.vr-catalog-page__subheading {
    margin: 1rem 0 0.75rem;
    color: #4b5f94;
}

.vr-catalog-page__filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vr-catalog-page__filter,
.vr-catalog-page__filter:hover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f8faff;
    color: #13326c;
    text-decoration: none;
    font-weight: 700;
}

.vr-catalog-page__filter strong {
    color: #4b5f94;
}

.vr-catalog-page__filter.is-active {
    background: #13326c;
    color: #ffffff;
}

.vr-catalog-page__filter.is-active strong {
    color: #ffffff;
}

.vr-catalog-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
    gap: 1.5rem;
    justify-content: start;
    align-items: stretch;
}

.vr-catalog-page__card {
    width: 100%;
    max-width: 320px;
    justify-self: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vr-catalog-page__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.vr-catalog-page__card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8.5rem;
    padding: 0.35rem;
    overflow: hidden;
    background: #ffffff;
}

.vr-catalog-page__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.vr-catalog-page__card:hover .vr-catalog-page__card-image img {
    transform: none;
}

.vr-catalog-page__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem 0.85rem;
}

.vr-catalog-page__card-category {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.vr-catalog-page__card-body h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    min-height: 2.55rem;
    max-height: 2.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-catalog-page__card-body h3 a,
.vr-catalog-page__card-body h3 a:hover {
    color: #13326c;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.vr-catalog-page__card-body p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
    min-height: 2.15rem;
    max-height: 2.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vr-catalog-page__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.vr-catalog-page__card-footer .btn {
    min-height: 32px;
    height: 32px;
    font-size: 12px !important;
    padding: 4px 12px;
    border-radius: 6px;
}

.vr-catalog-page__card-footer strong {
    color: #0f172a;
    font-size: 0.85rem;
}

.vr-catalog-page__backdrop {
    display: none;
}

@media (min-width: 768px) {
    body.local-vietrobothome-catalog-page #page {
        margin-left: 0;
        padding: 0;
    }

    body.local-vietrobothome-catalog-page #page-content {
        padding: 0;
    }

    body.local-vietrobothome-catalog-page #sidebar,
    body.local-vietrobothome-catalog-page #sidebar-toggle {
        display: none !important;
    }

    body.local-vietrobothome-catalog-page .vr-catalog-page .container {
        width: 100%;
        max-width: none;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .vr-catalog-page__layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    .vr-catalog-page__layout {
        grid-template-columns: 248px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .vr-catalog-page__filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vr-catalog-page__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vr-catalog-page__toolbar-actions {
        justify-content: stretch;
    }

    .vr-catalog-page__search,
    .vr-catalog-page__sort {
        width: 100%;
    }

    .vr-catalog-page__search input,
    .vr-catalog-page__sort select {
        width: 100%;
    }

    .vr-catalog-page__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vr-catalog-page__sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: min(340px, 88vw);
        z-index: 2200;
        transform: translateX(-104%);
        transition: transform 0.25s ease;
        padding: 1rem 1rem 1.5rem;
    }

    .vr-catalog-page__sidebar-inner {
        height: 100%;
        overflow-y: auto;
    }

    .vr-catalog-page__sidebar-header button {
        display: inline-flex;
    }

    .vr-catalog-page__backdrop {
        position: fixed;
        inset: 64px 0 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 2190;
    }

    body.vr-catalog-filters-open {
        overflow: hidden;
    }

    body.vr-catalog-filters-open .vr-catalog-page__sidebar {
        transform: translateX(0);
    }

    body.vr-catalog-filters-open .vr-catalog-page__backdrop {
        display: block;
    }
}

@media (max-width: 767px) {
    body.local-vietrobothome-catalog-page #sidebar,
    body.local-vietrobothome-catalog-page #sidebar-toggle {
        display: block !important;
    }

    .vr-catalog-page__hero {
        padding: 2rem 0 1.5rem;
    }

    .vr-catalog-page__body {
        padding: 1.25rem 0 2rem;
    }

    .vr-catalog-page__toolbar {
        padding: 1rem;
    }

    .vr-catalog-page__toolbar-actions {
        gap: 0.65rem;
    }

    .vr-catalog-page__search {
        flex-wrap: wrap;
    }

    .vr-catalog-page__search button {
        width: 100%;
        justify-content: center;
    }

    .vr-catalog-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vr-catalog-page__card {
        max-width: none;
    }

    .vr-catalog-page__card-body p {
        min-height: 0;
    }
}


/* Role badges for course cards */
.vr-card-role-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.vr-card-role-badge--teaching {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}
.vr-card-role-badge--learning {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}
.vr-course-card__image, .vr-catalog-page__card-image {
    position: relative;
    display: block;
}
.vr-course-card__actions .btn, .vr-catalog-card__actions .btn {
    white-space: nowrap;
}
.vr-course-card__secondary-link, .vr-catalog-card__secondary-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.vr-course-card__secondary-link:hover, .vr-catalog-card__secondary-link:hover {
    color: #1e293b;
}
