/********** Template CSS **********/
/* Khmer OS Battambang - self-hosted so every device shows the real typeface
   (Google Fonts' "Battambang" is a different, lighter design). */
@font-face {
    font-family: 'Khmer OS Battambang';
    src: url('../fonts/KhmerOSBattambang-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Khmer OS Battambang';
    src: url('../fonts/KhmerOSBattambang-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2189CA;
    --accent: #F9A01F;
    --primary-dark: #1B6FA6;
    --accent-dark: #E08C12;
    --light: #F1F8FF;
    --dark: #0F172B;
    --page-gutter: clamp(1.5rem, 4vw, 3rem);
    --section-y: 4rem;
}

@media (max-width: 767.98px) {
    :root {
        --section-y: 2.75rem;
    }
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Keep in-page anchor targets clear of the sticky navbar */
#courses {
    scroll-margin-top: 100px;
}

.ff-secondary {
    font-family: 'Pacifico', cursive;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}
.footer-brand-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
    padding: 16px 20px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.footer-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.itech-footer-logo {
    max-width: 200px;
    max-height: 75px;
}

.pearson-footer-logo {
    max-width: 180px;
    max-height: 65px;
}

.footer-logo-divider {
    width: 150px;
    height: 1px;
    background: rgba(15, 23, 43, 0.15);
}

.footer-logo:hover {
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .footer-brand-logos {
        align-items: center;
        margin-inline: auto;
    }
}

/*** Navbar ***/

/*** Navbar ***/
.navbar-dark {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
    background: #FFFFFF !important;
    box-shadow: 0 2px 14px rgba(15, 23, 43, .06);
    padding: 5px 20px 5px 0px;

}

/* Brand stripe under the navbar (logo orange -> logo blue) */
.navbar-dark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 55%, var(--accent) 100%);
    pointer-events: none;
}

/* Navigation Links */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 18px 0;
    font-size: 14px;
    color: var(--dark) !important;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
    transition: .3s ease;
    letter-spacing: .5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-dark) !important;
}

.navbar-dark .dropdown-menu {
    border: 1px solid rgba(15, 23, 43, .1);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 43, .16);
}

.navbar-dark .dropdown-menu .dropdown-item:hover,
.navbar-dark .dropdown-menu .dropdown-item:focus {
    background: rgba(33, 137, 202, .08);
    color: var(--primary-dark);
}

/* Animated underline */
.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 0;
    background: var(--accent);
    transition: width .3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Brand Logos */
.navbar-dark .navbar-brand {
    padding: 0;
    margin-right: 25px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: auto;
    height: 80px;
    max-width: 190px;
    object-fit: contain;
    display: block;
    transition: .3s ease;
}

.pearson-logo {
    max-width: 145px;
}

.logo-divider {
    height: 35px;
    width: 1px;
    background: #1B6FA6;
    font-size: 0;
}

/* Navbar Button */
.navbar-dark .btn-primary {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 22px;
    white-space: nowrap;
}

/* Navbar Toggler */
.navbar-dark .navbar-toggler {
    color: var(--dark);
    border: 1px solid rgba(15, 23, 43, .18);
    padding: 8px 12px;
}

.navbar-dark .navbar-toggler:hover {
    background: rgba(33, 137, 202, .08);
}

.navbar-dark .navbar-toggler:focus {
    box-shadow: none;
}

/* Scrolled navbar: shadow only, size stays the same */
.navbar-dark.shadow-sm {
    box-shadow: 0 8px 26px rgba(15, 23, 43, .13) !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {

    .navbar-dark {
        padding: 12px 15px;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(15, 23, 43, .1);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-nav .nav-link::after {
        bottom: 5px;
    }

    .navbar-dark .navbar-nav .nav-link:hover::after,
    .navbar-dark .navbar-nav .nav-link.active::after {
        width: 32px;
    }

    .brand-logo {
        height: 43px;
        max-width: 135px;
    }

    .pearson-logo {
        max-width: 105px;
    }

    .brand-logos {
        gap: 10px;
    }

    .logo-divider {
        height: 28px;
    }

    .navbar-dark .btn-primary {
        margin-top: 12px;
        margin-bottom: 10px;
    }

    .sticky-top.navbar-dark {
        position: relative;
    }
}




/*** Modern Hero Header ***/
.hero-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #1c8aca,
            rgba(10, 79, 121, 0.723)
        ),
        url("../img/bg-header.png") center center / cover no-repeat;

    color: #fff;
}

/* Small Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Main Heading */
.hero-title {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-title span {
    display: block;
    color: var(--accent);
}

/* Typing animation for the hero headline */
.hero-title .hero-type-line {
    display: block;
    min-height: 1.12em;
    color: #fff;
}

html[lang="km"] .hero-title .hero-type-line {
    min-height: 1.9em;
}

.hero-title .hero-type-line.hero-type-accent {
    color: var(--accent);
}

.hero-title .hero-type-text {
    display: inline;
    color: inherit;
}

.hero-title .hero-type-line.is-typing::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: .8em;
    margin-left: 6px;
    border-radius: 2px;
    background: var(--accent);
    vertical-align: -0.02em;
    animation: heroCaretBlink 1.05s steps(1, end) infinite;
}

@keyframes heroCaretBlink {
    0%, 45% {
        opacity: 1;
    }

    46%, 100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .hero-type-line.is-typing::after {
        animation: none;
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 18px;
    color: #fff;
}

/* Description */
.hero-description {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,.78);
    margin-bottom: 15px;
    max-width: 600px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 28px;
}

.hero-btn {
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
}

.hero-btn.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #102b45;
}

.hero-buttons .hero-btn.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: #102b45;
    transform: translateY(-4px);
}

.hero-btn.btn-outline-light:hover {
    background: #fff;
    color: #094062;
    transform: translateY(-4px);
}

/* Highlights */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 35px;
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

.hero-highlight i {
    color: var(--accent);
    font-size: 18px;
}

/*** Hero Main Image ***/
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 550px;
    isolation: isolate;
}

.hero-main-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    animation: heroFloat 5s ease-in-out infinite;
    border: 20px #E08C12 solid;
    border-radius: 100%;
}

/* Background Glow */
.hero-glow {
    position: absolute;
    z-index: 0;
    width: 75%;
    height: 75%;
    top: 12%;
    left: 12%;
    border-radius: 50%;
    background: rgba(33, 137, 202, .28);
    filter: blur(65px);
}

/*** Floating Icons ***/
.floating-icon {
    position: absolute;
    z-index: 3;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(12px);

    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    font-size: 28px;

    animation: floatingIcon 4s ease-in-out infinite;
}

.icon-book {
    top: 5%;
    left: 5%;
    color: var(--accent);
}

.icon-graduate {
    top: 8%;
    right: 5%;
    color: #fff;
    animation-delay: 1s;
}

.icon-earth {
    bottom: 18%;
    left: 0;
    color: #5FC1EF;
    animation-delay: 2s;
}

.icon-light {
    top: 48%;
    right: 0;
    color: var(--accent);
    animation-delay: 1.5s;
}

.icon-certificate {
    bottom: 5%;
    right: 15%;
    color: var(--accent);
    animation-delay: .5s;
}

/*** Floating Labels ***/
.floating-label {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 12px;

    background: rgba(255,255,255,.95);
    color: #123653;

    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);

    animation: floatingIcon 5s ease-in-out infinite;
}

.floating-label i {
    font-size: 18px;
    color: var(--primary);
}

.label-one {
    top: 32%;
    left: -5%;
}

.label-two {
    bottom: 20%;
    right: -5%;
    animation-delay: 1.5s;
}

/*** Animations ***/
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-13px);
    }
}

@keyframes floatingIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/*** Responsive Design ***/
@media (max-width: 991px) {
    .hero-header {
        min-height: auto;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin-top: 30px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-highlights {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-header {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-btn {
        padding: 12px 17px;
        font-size: 12px;
    }

    .hero-highlights {
        gap: 13px;
    }

    .hero-highlight {
        font-size: 11px;
    }

    .floating-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: 20px;
    }

    .floating-label {
        padding: 8px 10px;
        font-size: 10px;
    }

    .label-one {
        left: 0;
    }

    .label-two {
        right: 0;
    }
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-main-image,
    .floating-icon,
    .floating-label {
        animation: none;
    }
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    display: flex;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
    border-radius: 20px;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Why Choose Us ***/
.why-item {
    padding-right: 1.5rem;
}

.why-item h5 {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .75rem;
    color: #14293D;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.why-item h5 i {
    flex-shrink: 0;
    margin-top: .3rem;
    color: var(--primary);
    font-size: .9rem;
}

.why-item p {
    margin-bottom: 0;
    color: #5A6B7B;
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .why-item {
        padding-right: 0;
    }
}


/*** Course List ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}

.course-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #5FB7EA);
    color: #fff;
    font-size: 30px;
}

@media (max-width: 576px) {
    .course-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .course-icon + div h5 {
        flex-wrap: wrap;
        gap: 4px;
    }
}


/*** Course Catalog ***/
.course-intro {
    max-width: 860px;
    margin: 0 auto;
}

.course-intro-text {
    color: #5A6B7B;
    font-size: 1.05rem;
    line-height: 1.7;
}

.course-section {
    padding: var(--section-y) 0;
}

.course-section-local {
    background: #F4F9FD;
}

.course-section-intl {
    color: #FFFFFF;
    background:
        radial-gradient(circle at 12% 18%, rgba(249, 160, 31, .2), transparent 42%),
        linear-gradient(135deg, #0F4C75 0%, var(--primary) 58%, var(--primary-dark) 100%);
}

.course-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.course-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: .5rem 0 .5rem;
}

.course-section-head p {
    color: #5A6B7B;
    max-width: 640px;
    margin: 0;
    line-height: 1.6;
}

.course-section-intl .course-section-head h2 {
    color: #FFFFFF;
}

.course-section-intl .course-section-head p {
    color: rgba(255, 255, 255, .82);
}

.course-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}

.course-eyebrow i {
    color: var(--accent);
}

.course-section-intl .course-eyebrow {
    color: #FFD08A;
}

.course-section-intl .course-eyebrow i {
    color: #FFD08A;
}

.course-count {
    flex-shrink: 0;
    padding: .45rem 1.1rem;
    border: 1px solid rgba(33, 137, 202, .22);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.course-section-intl .course-count {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .14);
    color: #FFFFFF;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(33, 137, 202, .1);
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 12px 32px rgba(16, 42, 67, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(16, 42, 67, .16);
}

.course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #5FB7EA 55%, var(--accent));
}

.course-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.5rem 0;
}

.course-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #5FB7EA);
    box-shadow: 0 10px 20px rgba(33, 137, 202, .28);
    color: #FFFFFF;
    font-size: 1.4rem;
}

.course-code {
    padding: .3rem .7rem;
    border-radius: 999px;
    background: #F1F6FA;
    color: #7C8DA0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
}

.course-tag {
    display: inline-block;
    margin-bottom: .5rem;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.course-title {
    margin-bottom: .35rem;
    color: #14293D;
    font-size: 1.15rem;
    line-height: 1.35;
}

.course-curriculum {
    margin-bottom: 1rem;
    color: #6B7C8E;
    font-size: .9rem;
    font-style: italic;
    line-height: 1.5;
}

.course-points {
    display: grid;
    gap: .5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.course-points li {
    position: relative;
    padding-left: 1.5rem;
    color: #425466;
    font-size: .9rem;
    line-height: 1.45;
}

.course-points li::before {
    content: "\f00c";
    position: absolute;
    top: .15rem;
    left: 0;
    color: var(--accent);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .72rem;
}

.course-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #EAF1F6;
}

.course-meta span {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    color: #7B8B9C;
    font-size: .75rem;
}

.course-meta i {
    margin-bottom: .2rem;
    color: var(--primary);
    font-size: .85rem;
}

.course-meta strong {
    color: #14293D;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
}

.course-meta small {
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.course-note {
    margin: .75rem 0 0;
    color: var(--accent-dark);
    font-size: .8rem;
    font-weight: 600;
}

.course-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.5rem;
    border-top: 1px solid #EAF1F6;
    background: #F4F9FD;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

.course-cta i {
    transition: transform .3s ease;
}

.course-card:hover .course-cta {
    background: var(--primary);
    color: #FFFFFF;
}

.course-card:hover .course-cta i {
    transform: translateX(4px);
}

.course-intl-note {
    margin: 2.5rem auto 0;
    max-width: 780px;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
    line-height: 1.6;
}

.course-intl-note i {
    margin-right: .35rem;
    color: #FFD08A;
}

@media (max-width: 767.98px) {
    .course-section-head {
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .course-card-top {
        padding: 1.4rem 1.25rem 0;
    }

    .course-card-body {
        padding: 1.1rem 1.25rem 1.35rem;
    }

    .course-cta {
        padding: .85rem 1.25rem;
    }
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/photography-highlight-poster.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Team ***/
.team-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 0 20px 26px;
    overflow: hidden;
    border: 1px solid rgba(33, 137, 202, .12);
    border-radius: 22px;
    background: linear-gradient(180deg, #F3FAFF 0%, #FFFFFF 45%);
    box-shadow: 0 12px 32px rgba(15, 23, 43, .07);
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Brand stripe on top of each card (logo blue -> logo orange) */
.team-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .9;
}

.team-item:hover,
.team-item:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(33, 137, 202, .32);
    box-shadow: 0 20px 44px rgba(15, 23, 43, .14);
}

.team-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.team-photo {
    width: calc(100% - 2.5rem);
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: 1.9rem auto 1.15rem;
    padding: 6px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(140deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(33, 137, 202, .22);
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .45s ease;
}

.team-item:hover .team-photo img,
.team-item:focus-visible .team-photo img {
    transform: scale(1.06);
}

.team-name {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--dark);
}

.team-role {
    display: block;
    margin-top: 2px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--primary);
}

.team-subject {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 14px;
    border: 1px solid rgba(33, 137, 202, .22);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 600;
}

.team-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 7px 16px;
    border: 1px solid rgba(33, 137, 202, .3);
    border-radius: 999px;
    background: #FFFFFF;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--primary);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.team-item:hover .team-more,
.team-item:focus-visible .team-more {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

html[lang="km"] .team-role,
html[lang="km"] .team-more {
    letter-spacing: 0;
    text-transform: none;
}

/* Instructor detail modal */
.instructor-modal {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 43, .25);
}

.instructor-modal .modal-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.instructor-modal .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(15, 23, 43, .07);
    opacity: .75;
}

.instructor-modal .btn-close:hover,
.instructor-modal .btn-close:focus-visible {
    opacity: 1;
}

.instructor-modal-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 26px rgba(33, 137, 202, .25);
}

.instructor-modal-name {
    margin-bottom: 2px;
    font-weight: 800;
    color: var(--dark);
}

.instructor-modal-role {
    display: block;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary);
}

.instructor-modal-subject {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border: 1px solid rgba(33, 137, 202, .22);
    border-radius: 999px;
    background: #F3FAFF;
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 600;
}

.instructor-modal-bio {
    margin: 16px 0 20px;
    color: #4B5563;
}

.instructor-modal-social .btn {
    width: 42px;
    height: 42px;
}

html[lang="km"] .instructor-modal-role {
    letter-spacing: 0;
    text-transform: none;
}


/*** Testimonial ***/
.testimonial-item {
    border-radius: 16px !important;
    border-color: rgba(15, 23, 43, .08) !important;
    background: #F8FAFC;
    box-shadow: 0 10px 30px rgba(15, 23, 43, .05);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 43, .1);
}

.testimonial-item .testimonial-profile .testimonial-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 3px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.testimonial-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.testimonial-role {
    display: block;
    margin-top: 2px;
    font-size: .85rem;
    font-weight: 600;
    color: #6B7280;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-avatar {
    background: linear-gradient(135deg, #FFFFFF, rgba(255, 255, 255, .55));
}

.testimonial-carousel .owl-item.center .testimonial-profile {
    border-top-color: rgba(255, 255, 255, .35);
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    position: relative;
    background: linear-gradient(180deg, #0E3A5C 0%, #092239 100%) !important;
}

/* Brand stripe across the top of the footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 60%, var(--primary) 100%);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover,
.footer .btn.btn-social:focus-visible {
    color: var(--dark);
    background: var(--accent);
    border-color: var(--accent);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

@media (max-width: 767.98px) {
    .footer .col-lg-3 {
        text-align: center;
    }

    .footer .section-title {
        display: block;
        text-align: center !important;
    }

    .footer .section-title::before,
    .footer .section-title::after {
        display: none;
    }

    .footer .btn.btn-link {
        text-align: center;
    }

    .footer .btn.btn-link::before {
        display: none;
    }

    .footer .d-flex.pt-2 {
        justify-content: center;
    }
}


/*** Full Width Layout ***/
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* One gutter for every page, aligned with the navbar */
.container {
    max-width: 100%;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}


/*** Page Spacing ***/
/* Every page section uses the same vertical rhythm */
.container-xxl.py-5 {
    padding-top: var(--section-y) !important;
    padding-bottom: var(--section-y) !important;
}

.course-intro-section {
    padding: var(--section-y) 0 1.5rem;
}

/* Inner-page banner: same band height on every page, no extra margins */
.page-hero {
    min-height: 420px;
    margin-bottom: 0;
}

.page-hero .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 767.98px) {
    .page-hero {
        min-height: 320px;
    }
}


/*** Brand Palette ***/
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--dark);
}

.btn.btn-primary:focus {
    box-shadow: 0 0 0 .25rem rgba(249, 160, 31, .3);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(33, 137, 202, .18);
}

.footer .section-title {
    color: var(--accent) !important;
}

.footer .btn.btn-link:hover {
    color: var(--accent);
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--accent);
    text-decoration: underline;
}

/*** Language Switcher ***/
.language-switcher .nav-link {
    display: inline-flex;
    align-items: center;
}

.language-switcher .dropdown-toggle::after {
    vertical-align: middle;
}

.language-switcher .dropdown-item.active-lang {
    background-color: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
}

.language-switcher .dropdown-item.active-lang:hover,
.language-switcher .dropdown-item.active-lang:focus {
    background-color: var(--primary-dark);
    color: #FFFFFF;
}


/*** Khmer Typography ***/
html[lang="km"] body,
html[lang="km"] h1,
html[lang="km"] h2,
html[lang="km"] h3,
html[lang="km"] h4,
html[lang="km"] h5,
html[lang="km"] h6,
html[lang="km"] .btn,
html[lang="km"] .navbar-nav .nav-link,
html[lang="km"] .dropdown-item,
html[lang="km"] .form-control,
html[lang="km"] .form-select,
html[lang="km"] input,
html[lang="km"] textarea,
html[lang="km"] .ff-secondary,
html[lang="km"] .section-title,
html[lang="km"] .hero-title {
    font-family: 'Khmer OS Battambang', 'Heebo', 'Nunito', 'Noto Sans Khmer', sans-serif;
}

html[lang="km"] .hero-title,
html[lang="km"] .display-1,
html[lang="km"] .display-2,
html[lang="km"] .display-3,
html[lang="km"] .display-4,
html[lang="km"] .display-5,
html[lang="km"] .display-6 {
    letter-spacing: 0;
}

html[lang="km"] .hero-title {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.55;
}

html[lang="km"] .section-title::before,
html[lang="km"] .section-title::after {
    display: none;
}

html[lang="km"] h1,
html[lang="km"] h2,
html[lang="km"] h3,
html[lang="km"] h4,
html[lang="km"] h5,
html[lang="km"] h6,
html[lang="km"] .display-1,
html[lang="km"] .display-2,
html[lang="km"] .display-3,
html[lang="km"] .display-4,
html[lang="km"] .display-5,
html[lang="km"] .display-6,
html[lang="km"] .hero-title,
html[lang="km"] .section-title {
    font-family: 'Moul', 'Khmer OS Muol', 'Khmer OS Muol Light', 'Noto Sans Khmer', 'Heebo', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
}

html[lang="km"] .hero-title {
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.9;
}

html[lang="km"] .section-title {
    line-height: 1.9;
}


/*** Chatbot ***/
.back-to-top {
    right: 31px;
    bottom: 96px;
}

.chatbot-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 43, .28);
    transition: transform .25s, box-shadow .25s;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 43, .34);
    outline: none;
}

.chatbot-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #FFFFFF;
}

.chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 1080;
    width: 370px;
    max-width: calc(100vw - 48px);
    height: 540px;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(15, 23, 43, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.98);
    transition: opacity .25s, transform .25s, visibility .25s;
}

.chatbot-panel.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.chatbot-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.chatbot-status {
    font-size: 12px;
    opacity: .88;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7BE495;
    display: inline-block;
}

.chatbot-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.chatbot-close:hover,
.chatbot-close:focus-visible {
    background: rgba(255, 255, 255, .3);
    outline: none;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #F6FAFE;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.chat-msg.user {
    align-items: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.chat-msg.bot .chat-bubble {
    background: #FFFFFF;
    color: #22303F;
    border: 1px solid #E3EEF8;
    border-top-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: var(--primary);
    color: #FFFFFF;
    border-top-right-radius: 4px;
}

.chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.chat-links a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(33, 137, 202, .1);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.chat-links a:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.chat-typing .chat-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9DB6C9;
    animation: chatBlink 1.2s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: .2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes chatBlink {
    0%, 60%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px 0;
    background: #FFFFFF;
}

.chatbot-chip {
    border: 1px solid #CFE3F3;
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.chatbot-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    background: #FFFFFF;
    border-top: 1px solid #EDF3F9;
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #CFE0EE;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.chatbot-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 137, 202, .14);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.chatbot-send:hover {
    background: var(--accent-dark);
}

@media (max-width: 575.98px) {
    .back-to-top {
        right: 22px;
        bottom: 84px;
    }

    .chatbot-toggle {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .chatbot-panel {
        right: 12px;
        left: 12px;
        bottom: 82px;
        width: auto;
        max-width: none;
        height: 72vh;
        max-height: 560px;
    }
}
.chatbot-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.chatbot-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chatbot-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.chatbot-status {
    font-size: 12px;
    color: #28c76f;
}

.chatbot-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #28c76f;
    border-radius: 50%;
    margin-right: 6px;
}

/* News & Events */
.news-card {
    border: 1px solid #E6EEF6;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 43, .12) !important;
}

.news-media {
    position: relative;
    overflow: hidden;
}

.news-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.news-featured .news-media img {
    min-height: 300px;
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    border-radius: 2px;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.news-date {
    margin-bottom: .6rem;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.news-card h3,
.news-card h4 {
    color: var(--dark);
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.news-link:hover {
    color: var(--accent-dark);
}

.news-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.event-item {
    display: flex;
    align-items: stretch;
    border: 1px solid #E6EEF6;
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 20px;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 43, .12) !important;
}

.event-date {
    flex: 0 0 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--primary);
    color: #FFFFFF;
    text-align: center;
    padding: 18px 10px;
}

.event-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.event-month {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-body {
    flex: 1;
    padding: 24px 28px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 8px;
    color: #6B7280;
    font-size: 14px;
}

.event-meta i {
    color: var(--accent-dark);
}

.event-body h3 {
    color: var(--dark);
    font-weight: 700;
}

.event-visit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.event-visit p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .news-featured .news-media img {
        min-height: 220px;
    }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        flex: none;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding: 12px 20px;
    }

    .event-day {
        font-size: 26px;
    }

    .event-month {
        font-size: 13px;
    }

    .event-body {
        padding: 20px;
    }
}

html[lang="km"] .news-date,
html[lang="km"] .event-month {
    letter-spacing: 0;
    text-transform: none;
}

/* Promotions page */
.promotion-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E6EEF6;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.promotion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 43, .12);
}

.promotion-media {
    position: relative;
    min-height: 300px;
    background: #0F172B;
}

.promotion-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promotion-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 30px;
}

.promotion-eyebrow {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(249, 160, 31, .14);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.promotion-title {
    margin-bottom: .6rem;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.promotion-text {
    margin-bottom: 1.25rem;
    color: #6B7280;
}

.promotion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.promotion-help {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.promotion-help p {
    color: rgba(255, 255, 255, .9);
}

html[lang="km"] .promotion-eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 991.98px) {
    .promotion-card {
        grid-template-columns: 1fr;
    }

    .promotion-media {
        min-height: 0;
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .promotion-media {
        height: 400px;
    }

    .promotion-body {
        padding: 24px 22px;
    }
}

/* Partners page */
.partner-card {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E6EEF6;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 43, .12);
}

.partner-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #F4F9FD;
    border-right: 1px solid #E6EEF6;
}

.partner-media img {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.partner-body {
    display: flex;
    flex-direction: column;
    padding: 32px 30px;
}

.partner-badge {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(249, 160, 31, .14);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.partner-title {
    margin-bottom: .6rem;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.partner-text {
    margin-bottom: 1rem;
    color: #6B7280;
}

.partner-points {
    display: grid;
    gap: 10px;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.partner-points li {
    display: flex;
    gap: 10px;
    color: #40505F;
    font-size: .95rem;
}

.partner-points i {
    margin-top: 4px;
    color: var(--primary);
}

.partner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.partner-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

html[lang="km"] .partner-badge {
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 991.98px) {
    .partner-card {
        grid-template-columns: 1fr;
    }

    .partner-media {
        border-right: 0;
        border-bottom: 1px solid #E6EEF6;
        padding: 24px;
    }

    .partner-media img {
        max-width: 160px;
    }
}

@media (max-width: 575.98px) {
    .partner-body {
        padding: 24px 22px;
    }
}

/* Video highlight banner */
.video-highlight {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--dark);
}

.video-highlight-media,
.video-highlight-scrim {
    position: absolute;
    inset: 0;
}

.video-highlight-media img,
.video-highlight-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-highlight-media video {
    display: block;
}

.video-highlight-scrim {
    background: linear-gradient(90deg, rgba(15, 23, 43, .95) 0%, rgba(15, 23, 43, .82) 45%, rgba(15, 23, 43, .45) 100%);
}

.video-sound {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(15, 23, 43, .55);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.video-sound:hover,
.video-sound:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.video-sound:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

.video-sound .fa-volume-up {
    display: none;
}

.video-sound.is-on .fa-volume-mute {
    display: none;
}

.video-sound.is-on .fa-volume-up {
    display: inline-block;
}

.video-highlight-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.video-highlight-copy {
    max-width: 640px;
}

.video-highlight-copy .section-title {
    color: var(--accent);
}

.video-highlight-copy h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.15;
}

.video-highlight-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 3px rgba(15, 23, 43, .55);
}

.video-highlight-play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(15, 23, 43, .55);
}

.video-highlight-play-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    font-size: 26px;
    transition: transform .25s ease, background .25s ease;
}

.video-highlight-play-icon::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(249, 160, 31, .45);
    animation: video-pulse 2s ease-out infinite;
}

@keyframes video-pulse {
    0% {
        transform: scale(.9);
        opacity: .8;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.video-highlight-play:hover .video-highlight-play-icon,
.video-highlight-play:focus .video-highlight-play-icon {
    background: var(--accent-dark);
    transform: scale(1.05);
}

.video-highlight-play:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 6px;
    border-radius: 999px;
}

.video-highlight-modal .modal-content {
    background: var(--dark);
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-highlight-modal [data-video-frame] iframe,
.video-highlight-modal [data-video-frame] video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

html[lang="km"] .video-highlight-copy h2 {
    font-family: 'Moul', 'Khmer OS Muol', 'Noto Sans Khmer', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

html[lang="km"] .video-highlight-play {
    font-family: 'Khmer OS Battambang', 'Heebo', 'Noto Sans Khmer', 'Nunito', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 767.98px) {
    .video-highlight {
        min-height: 0;
    }

    .video-highlight-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .video-highlight-play-icon {
        width: 68px;
        height: 68px;
        font-size: 20px;
    }

    .video-highlight-play {
        font-size: 13px;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-highlight-play-icon::after {
        animation: none;
    }
}

/* Gallery */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.gallery-tab {
    padding: 8px 20px;
    border: 1px solid #CFE3F3;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.gallery-tab:hover {
    border-color: var(--primary);
}

.gallery-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    margin: 0;
    border: 1px solid #E6EEF6;
    border-radius: 4px;
    overflow: hidden;
    background: #FFFFFF;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EEF4F9;
}

.gallery-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 43, .12);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item figcaption {
    padding: 12px 14px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.gallery-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

html[lang="km"] .gallery-item figcaption {
    font-size: 14.5px;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .gallery-tabs {
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .gallery-tab {
        padding: 7px 14px;
        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .gallery-item figcaption {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Search & filter controls */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0 0 2rem;
}

.course-intro-section .filter-bar {
    margin: 2rem 0 0;
}

.filter-search {
    position: relative;
    display: block;
    width: min(420px, 100%);
}

.filter-search i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1px solid #CFE3F3;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--dark);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(33, 137, 202, .12);
}

.filter-search input::placeholder {
    color: #8AA2B8;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-chip {
    padding: 8px 20px;
    border: 1px solid #CFE3F3;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.filter-chip:hover {
    border-color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.filter-empty {
    margin: 0;
    padding: 2rem 0;
    color: #5B7083;
    font-weight: 600;
    text-align: center;
}

.filtered-out {
    display: none !important;
}

html[lang="km"] .filter-chip,
html[lang="km"] .filter-empty {
    font-size: 14.5px;
}

@media (max-width: 575.98px) {
    .filter-bar {
        gap: 12px;
        margin-bottom: 1.5rem;
    }

    .filter-chip {
        padding: 7px 14px;
        font-size: 13px;
    }

    .filter-search input {
        font-size: 14px;
    }
}

/* Enrollment */
.enrollment-info {
    border: 1px solid rgba(255, 255, 255, .06);
}

.enrollment-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.enrollment-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.enrollment-list li:last-child {
    margin-bottom: 0;
}

.enrollment-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 3px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
    color: var(--accent);
}

.enrollment-card {
    border: 1px solid #E6EEF6;
}

.enrollment-frame {
    display: block;
    width: 100%;
    height: 1200px;
    border: 0;
    border-radius: 4px;
    background: #FFFFFF;
}

@media (max-width: 991.98px) {
    .enrollment-frame {
        height: 1300px;
    }
}

@media (max-width: 575.98px) {
    .enrollment-frame {
        height: 1400px;
    }
}

/* Contact */
.contact-email a,
.contact-email-list a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.contact-email a:hover,
.contact-email-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-email-list li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-email-list li:last-child {
    margin-bottom: 0;
}

.contact-form-hint {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    color: #6B7280;
}

html[lang="km"] .contact-form-hint {
    font-size: 13.5px;
    line-height: 1.6;
}

.contact-form-status {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark);
}

.contact-form-status:empty {
    display: none;
}

.contact-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form-status.is-sending {
    color: #6B7280;
}

.contact-form-status.is-success {
    color: #0F7B3E;
    font-weight: 600;
}

.contact-form-status.is-error {
    color: #B42318;
    font-weight: 600;
}

.contact-form-status a {
    font-weight: 600;
    word-break: break-word;
}

html[lang="km"] .contact-form-status {
    line-height: 1.7;
}

.enroll-form-status {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #D1D5DB;
}

.enroll-form-status:empty {
    display: none;
}

.enroll-form-status.is-success {
    color: #6EE7B7;
    font-weight: 600;
}

.enroll-form-status.is-error {
    color: #FCA5A5;
    font-weight: 600;
}

.enroll-form-status a {
    color: inherit;
    font-weight: 600;
    word-break: break-word;
}

html[lang="km"] .enroll-form-status {
    line-height: 1.7;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .contact-email .fa-envelope-open,
    .contact-email-list .fa-envelope-open {
        display: none;
    }

    .contact-email,
    .contact-email-list {
        font-size: 14px;
    }
}

/*** Course announcement popup ***/
body.promo-open {
    overflow: hidden;
}

.promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 43, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.promo-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-dialog {
    position: relative;
    width: min(880px, 100%);
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(5, 15, 35, .45);
    transform: translateY(18px) scale(.98);
    transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

.promo-overlay.show .promo-dialog {
    transform: none;
}

.promo-viewport {
    overflow: hidden;
}

.promo-track {
    display: flex;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.promo-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 42% 58%;
    height: min(calc(100vh - 48px), 560px);
}

.promo-media {
    position: relative;
    min-height: 0;
    background: var(--dark);
    overflow: hidden;
}

.promo-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    min-height: 0;
    padding: 44px 40px 40px;
    overflow-y: auto;
}

.promo-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(249, 160, 31, .14);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.promo-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.3;
    color: var(--dark);
}

.promo-text {
    margin: 0;
    color: #5B6472;
    font-size: 15px;
    line-height: 1.7;
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 8px;
}

.promo-cta {
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
}

.promo-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.promo-link:hover,
.promo-link:focus-visible {
    color: var(--accent-dark);
    text-decoration: underline;
}

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 43, .5);
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.promo-nav:hover,
.promo-nav:focus-visible {
    background: var(--accent);
    outline: none;
}

.promo-nav[hidden],
.promo-dots[hidden] {
    display: none;
}

.promo-prev {
    left: 12px;
}

.promo-next {
    right: 12px;
}

.promo-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 43, .35);
    z-index: 3;
}

.promo-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.promo-dot::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: background .2s, transform .2s;
}

.promo-dot.active::before {
    background: var(--accent);
    transform: scale(1.25);
}

.promo-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.promo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 43, .55);
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}

.promo-close:hover,
.promo-close:focus-visible {
    background: var(--accent);
    outline: none;
}

html[lang="km"] .promo-eyebrow {
    font-family: 'Khmer OS Battambang', 'Heebo', 'Noto Sans Khmer', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
}

html[lang="km"] .promo-title {
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.8;
}

html[lang="km"] .promo-text {
    line-height: 1.9;
}

@media (max-width: 767.98px) {
    .promo-overlay {
        padding: 16px;
    }

    .promo-dialog {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .promo-slide {
        grid-template-columns: 1fr;
        height: auto;
    }

    .promo-media {
        height: 300px;
    }

    .promo-body {
        padding: 22px 22px 26px;
        overflow: visible;
    }

    .promo-nav {
        top: 129px;
        transform: none;
    }

    .promo-prev {
        left: 10px;
    }

    .promo-next {
        right: 10px;
    }

    .promo-dots {
        top: 260px;
        bottom: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-overlay,
    .promo-dialog,
    .promo-track {
        transition: none;
    }
}
