:root {
    --primary: #2f3d8f;
    --primary-dark: #203866;
    --primary-soft: #eef3ff;
    --accent: #f3c84b;
    --sky: #1f8bc7;
    --text: #172033;
    --muted: #64748b;
    --white: #ffffff;
    --soft-bg: #f6f8ff;
    --border: #e8edf8;

    --nav-dark: #203866;
    --nav-soft: #b8c0cc;
    --nav-soft-icon: #aeb7c6;
    --nav-line: #203866;
    --nav-border: #e7eaf1;

    --preview-top: 213px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   Responsive Website Sizes
   Desktop / Tablet / Phone
========================= */

/* Base Desktop */
.container,
.page-content,
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 7.5%;
    padding-right: 7.5%;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================
   Desktop Large
   1200px up
========================= */
@media (min-width: 1201px) {

    .container,
    .page-content,
    .section-container {
        max-width: 1200px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 34px;
    }

    p {
        font-size: 16px;
    }
}

.site-header.nav-only {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.25s ease;
}

.site-header.nav-only .topbar,
.site-header.nav-only .brand-area {
    animation: none !important;
    display: none;
}

.site-header.nav-only .navbar {
    min-height: 58px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

body.has-fixed-nav {
    padding-top: 58px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* =========================
   Tablet
   768px - 1200px
========================= */
@media (max-width: 1200px) {

    .container,
    .page-content,
    .section-container {
        max-width: 960px;
        padding-left: 5%;
        padding-right: 5%;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    .navbar {
        gap: 12px;
    }

    .nav-item {
        font-size: 14px;
    }

    .hero,
    .banner,
    .page-hero {
        min-height: 420px;
        padding: 60px 5%;
    }

    .grid,
    .cards,
    .news-grid,
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

/* =========================
   Phone
   0px - 767px
========================= */
@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10003 !important;
    }

    .mobile-menu-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.45) !important;
        opacity: 0;
        visibility: hidden;
        z-index: 10001 !important;
        transition: 0.3s ease;
    }

    .mobile-menu-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-menu-close {
        display: flex !important;
        position: absolute !important;
        top: 24px !important;
        right: 24px !important;
        z-index: 10004 !important;
        cursor: pointer !important;
    }

    .nav-item {
        position: relative !important;
        z-index: 10003 !important;
        pointer-events: auto !important;
        width: 100% !important;
        min-height: 62px !important;
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }
}

/* =========================
   Small Phone
   0px - 480px
========================= */
@media (max-width: 480px) {

    .container,
    .page-content,
    .section-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    p {
        font-size: 13.5px;
    }

    .hero,
    .banner,
    .page-hero {
        min-height: 300px;
        padding: 36px 14px;
    }

    .btn,
    button,
    .read-more {
        width: 100%;
        justify-content: center;
    }
}

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--text);
    background: #ffffff;
}

a {
    color: inherit;
}

/* =========================
   Header
========================= */

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.topbar {
    height: 40px;
    padding: 0 7.5%;
    background: linear-gradient(90deg, #26346f, #344aa0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.youtube-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.youtube-bg {
    fill: #ff0000;
}

.youtube-play {
    fill: #ffffff;
}

.social-youtube:hover .youtube-bg {
    fill: #cc0000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.topbar a,
.translate-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: 0.25s ease;
}

.topbar a:hover,
.translate-btn:hover {
    color: var(--accent);
}


.account-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.account-link:hover {
    color: #f3c84b;
}

.account-link::before,
.account-link::after {
    display: none !important;
}

.top-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.35);
}

.site-header .topbar-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 20px;
}

.site-header .topbar-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .topbar-contact-item i {
    font-size: 17px;
}

.site-header a.topbar-contact-item:hover {
    color: #ffc34d;
}

.site-header .topbar-contact-item .fa-phone-alt {
    display: inline-block;
    transform: scaleX(-1);
}

.site-header .address-item {
    min-width: 0;
}

.site-header .address-window {
    --travel: min(360px, 60vw);
    display: block;
    width: var(--travel);
    overflow: hidden;
    white-space: nowrap;
}

.site-header .address-text {
    display: inline-block;
    width: max-content;
    padding-left: 0;
    white-space: nowrap;

    /* ជុំដំបូង; បន្ទាប់មកជុំរត់បន្ត */
    animation:
        address-first 16s linear 2s 1 forwards,
        address-repeat 16s linear 20s infinite;
}

/* បង្ហាញពេញសិន រួចរត់ទៅស្ដាំ */
@keyframes address-first {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--travel));
    }
}

/* ជុំបន្ទាប់៖ «ភ្នំពេញ» ចូលមកពីខាងឆ្វេងមុន */
@keyframes address-repeat {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(var(--travel));
    }
}

@media (max-width: 600px) {
    .site-header .address-window {
        --travel: min(180px, 45vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .address-text {
        padding-left: 0;
        animation: none;
    }

    .site-header .address-window {
        overflow-x: auto;
    }
}

/* =========================
   Translate
========================= */


.translate-box {
    position: relative;
}

.translate-btn {
    height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.translate-btn:hover,
.translate-box.open .translate-btn {
    color: #f3c84b;
    border-color: #f3c84b;
}

.translate-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.translate-box.open .translate-arrow {
    transform: rotate(180deg);
}

/* .translate-menu {
    position: absolute;
    top: 42px;
    right: 0;
    width: 190px;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 0;
    overflow: hidden;
    display: none;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    z-index: 20000;
} */

.translate-box.open .translate-menu {
    display: block;
    animation: fadeDown 0.22s ease;
}

.translate-menu a {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    color: #172033 !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.translate-menu a:hover {
    background: #f5f7ff;
    color: #203866 !important;
    padding-left: 22px;
}

.translate-menu a.active-lang {
    background: #eef3ff;
    color: #203866 !important;
}

.site-header .translate-box {
    position: relative;
    z-index: 1100;
}

.site-header .translate-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1101;
    display: none;
    width: 350px;
    max-width: calc(100vw - 24px);
    padding: 12px 12px 19px;
    border: 1px solid #edf0f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(24, 42, 70, .16);
}

.site-header .translate-box.open .translate-menu {
    display: block;
}

.site-header .translate-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 73px;
    padding: 10px 14px;
    border: 2px solid transparent;
    border-radius: 14px;
    color: #273344;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
}

.site-header .translate-menu a:hover,
.site-header .translate-menu a:focus-visible {
    background: #fffaf0;
    outline: none;
}

.site-header .translate-menu a.active {
    border-color: #ffe9a4;
    background: #fffbee;
}

.site-header .language-flag {
    flex: 0 0 auto;
    font-size: 31px;
    line-height: 1;
}

.site-header .language-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.site-header .language-info strong {
    font-size: 17px;
    line-height: 1.2;
}

.site-header .language-info small {
    color: #9aa8ba;
    font-size: 12px;
    font-weight: 600;
}

.site-header .translate-menu a.active .language-info small {
    color: #d7974f;
}

.site-header .language-check {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #ffa500;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

/* បន្ទាត់ពណ៌លឿងនៅកណ្ដាល បាតប្រអប់ ដូចក្នុងរូប */
.site-header .translate-menu::after {
    content: "";
    display: block;
    width: 90px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #ffc34d;
}

@media (max-width: 480px) {
    .site-header .translate-menu {
        width: 320px;
    }
}

.site-header .translate-menu {
    width: 245px;
    padding: 8px 8px 12px;
    border-radius: 15px;
}

.site-header .translate-menu a {
    min-height: 55px;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 11px;
    font-family: Arial, "Noto Sans Khmer", sans-serif;
}

.site-header .language-flag {
    display: flex;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
}

.site-header .language-flag img {
    display: block;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    object-fit: cover;
}

.site-header .language-info strong {
    font-size: 14px;
}

.site-header .language-info small {
    font-size: 10px;
}

.site-header .language-check {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    font-size: 14px;
}

.site-header .translate-menu::after {
    width: 75px;
    height: 4px;
    margin-top: 7px;
}

/* អក្សរខ្មែរក្នុងប៊ូតុងជ្រើសភាសា */
.site-header .translate-btn #selectedLanguage {
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.site-header .account-link span {
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================
   Brand
========================= */

.brand-area {
    min-height: 105px;
    padding: 15px 7.5%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 5px 10px rgba(38, 52, 111, 0.16);
}

.brand-text h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    line-height: 1.08;
    color: #3f4b87;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.brand-text p {
    margin: 6px 0 0;
    font-family: 'Poppins', sans-serif;
    color: #3f4b87;
    font-size: 15.5px;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

/* =========================
   Navbar
========================= */

.navbar {
    width: 100%;
    min-height: 68px;
    padding: 0 7%;
    background: #ffffff !important;
    border-top: 1px solid var(--nav-border) !important;
    border-bottom: 1px solid var(--nav-border) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
}

.nav-item {
    position: relative;
    min-height: 50px;
    padding: 0 25px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--nav-soft) !important;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.25px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-item:not(:last-child) {
    border-right: 1px solid #edf0f5;
}

.nav-icon {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--nav-soft-icon) !important;
    font-size: 18px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    width: auto !important;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #f5a623;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-item::before {
    display: none !important;
}

.nav-item:hover {
    color: var(--nav-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.nav-item:hover .nav-icon {
    color: var(--nav-dark) !important;
    background: transparent !important;
    transform: translateY(-1px);
}

.nav-item:hover::after {
    transform: scaleX(1);
}

.nav-item.active,
.nav-item.active:hover {
    color: var(--nav-dark) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.nav-item.active .nav-icon,
.nav-item.active:hover .nav-icon {
    color: var(--nav-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nav-item.active::after,
.nav-item.active:hover::after {
    transform: scaleX(1);
}

.site-header .navbar .nav-item>span:not(.nav-icon) {
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

/* =========================
   Desktop Snap Layouts
   Like NPIC
========================= */

.mobile-menu-btn,
.mobile-menu-close,
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .brand-area {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 7%;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border: none;
        border-radius: 50%;
        background: #2f3d8f;
        color: #ffffff;
        font-size: 28px;
        cursor: pointer;
        z-index: 999;
    }

    .mobile-menu-overlay.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 12px;
        background: #293b82;
        color: #ffffff;
        font-size: 22px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .nav-item {
        width: 100%;
        min-height: 62px;
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0 !important;
        background: transparent !important;

        display: flex;
        align-items: center;
        gap: 14px;

        font-family: 'Poppins', sans-serif;
        font-size: 18px;
        font-weight: 800;
        text-transform: uppercase;
        color: #aeb7c6 !important;
    }

    .nav-icon {
        width: 28px !important;
        min-width: 28px !important;
        color: #aeb7c6 !important;
        font-size: 21px;
    }

    .nav-icon i {
        font-size: 21px;
    }

    .nav-item.active,
    .nav-item:hover {
        color: #0b2f63 !important;
    }

    .nav-item.active .nav-icon,
    .nav-item:hover .nav-icon {
        color: #0b2f63 !important;
    }

    .nav-item::after,
    .nav-item::before {
        display: none !important;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* =========================
   Real Page Preview
========================= */

.page-hover-preview {
    position: fixed;
    top: var(--preview-top);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--preview-top));
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid #e8edf8;
    transition: opacity 0.08s ease, visibility 0.08s ease;
}

.page-hover-preview.show {
    opacity: 1;
    visibility: visible;
}

.preview-page-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.preview-page-body .site-header,
.preview-page-body header,
.preview-page-body .topbar,
.preview-page-body .brand-area,
.preview-page-body .navbar,
.preview-page-body .page-hover-preview,
.preview-page-body script {
    display: none !important;
}

.preview-page-body main {
    display: block;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.preview-page-body .site-footer,
.preview-page-body footer {
    display: block;
}

body.is-navigating .page-hover-preview,
body.is-navigating .page-hover-preview.show {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

/* =========================
   Page Content
========================= */

.page-content {
    min-height: calc(100vh - 260px);
    padding: 0;
    background: #ffffff;
}

.page-content h1 {
    margin: 0 0 18px;
    font-size: 42px;
    color: var(--text);
    font-weight: 900;
}

.page-content p {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--text);
    line-height: 1.7;
}

/* =========================
   Footer
========================= */

.site-footer {
    padding: 0;
    color: var(--text);
    border-top: none;
    background: #ffffff;
}

.site-footer p {
    margin: 0;
    font-size: 16px;
}

/* =========================
   Chatbot Optional
========================= */

.chatbot-box {
    position: fixed;
    right: 28px;
    bottom: 105px;
    width: 360px;
    max-width: calc(100% - 32px);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    z-index: 10000;
    display: none;
}

.chatbot-box.show {
    display: block;
    animation: fadeUp 0.25s ease;
}

.chatbot-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    height: 280px;
    padding: 16px;
    overflow-y: auto;
    background: #f8faff;
}

.user-message,
.bot-message {
    max-width: 82%;
    margin-bottom: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.user-message {
    margin-left: auto;
    background: var(--primary-dark);
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chatbot-form input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 13px;
    outline: none;
}

.chatbot-form button {
    width: 44px;
    border: none;
    border-radius: 14px;
    background: var(--primary-dark);
    color: #ffffff;
    cursor: pointer;
}

/* Floating actions */
.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10000;
}

.floating-actions a,
.floating-actions button {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
    transition: 0.25s ease;
}

.floating-actions a:hover,
.floating-actions button:hover {
    transform: translateY(-4px);
}

.float-chat {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.float-bot {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

/* =========================
   Reusable Page Sidebar
   Auto open first, collapse on scroll
========================= */

.page-side-nav {
    position: fixed;
    top: var(--preview-top, 213px);
    left: 0;
    width: 78px;
    height: 78px;
    background: #ffffff;
    border-right: 1px solid #e8edf8;
    border-bottom: 1px solid #e8edf8;
    border-radius: 0 24px 24px 0;
    box-shadow: 14px 0 38px rgba(15, 23, 42, 0.12);
    z-index: 7000;
    overflow: hidden;
    cursor: pointer;
    transition:
        width 0.32s ease,
        height 0.32s ease,
        border-radius 0.32s ease,
        box-shadow 0.32s ease;
}

/* Open when hover OR JS add open */
.page-side-nav:hover,
.page-side-nav.open {
    width: 355px;
    height: calc(100vh - var(--preview-top, 213px));
    border-radius: 0;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.16);
}

/* Small hint badge when collapsed */
.page-side-nav::after {
    content: "Hover";
    position: absolute;
    left: 66px;
    top: 26px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #203866;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 10px 24px rgba(32, 56, 102, 0.22);
    transition: 0.25s ease;
    pointer-events: none;
}

.page-side-nav:hover::after,
.page-side-nav.open::after {
    opacity: 0;
    transform: translateX(-10px);
}

/* Pulse circle to show clickable */
.page-side-nav::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(32, 56, 102, 0.12);
    animation: sidePulse 1.6s infinite;
    pointer-events: none;
}

.page-side-nav:hover::before,
.page-side-nav.open::before {
    display: none;
}

.side-nav-header {
    height: 78px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: none;
    background: linear-gradient(135deg, #ffffff, #f8faff);
    white-space: nowrap;
}

.page-side-nav:hover .side-nav-header,
.page-side-nav.open .side-nav-header {
    height: 96px;
    padding: 0 22px;
    border-bottom: 1px solid #e8edf8;
}

.side-nav-logo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef3ff, #ffffff);
    color: #203866;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 10px 24px rgba(32, 56, 102, 0.12);
    border: 1px solid #e8edf8;
    position: relative;
    z-index: 2;
}

.side-nav-title {
    font-size: 23px;
    font-weight: 900;
    color: #203866;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.25s ease;
}

.page-side-nav:hover .side-nav-title,
.page-side-nav.open .side-nav-title {
    opacity: 1;
    transform: translateX(0);
}

.side-nav-menu {
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-18px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.page-side-nav:hover .side-nav-menu,
.page-side-nav.open .side-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.side-nav-item {
    position: relative;
    height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    transition: 0.25s ease;
}

.side-nav-item:hover {
    background: #f3f6ff;
    color: #203866;
}

.side-nav-item.active {
    background: linear-gradient(90deg, #eef3ff, #ffffff);
    color: #203866;
    box-shadow: inset 4px 0 0 #203866;
}

.side-nav-item.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 24px;
    bottom: 0;
    height: 3px;
    border-radius: 10px;
    background: #1d3f75;
}

.side-nav-arrow {
    width: 12px;
    min-width: 12px;
    color: #f3c84b;
    font-size: 11px;
}

.side-nav-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f8faff;
    color: #f3c84b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: 0.25s ease;
}

.side-nav-item:hover .side-nav-icon,
.side-nav-item.active .side-nav-icon {
    background: #203866;
    color: #ffffff;
}

.side-nav-text {
    opacity: 1;
}

.side-nav-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 96px;
    padding: 22px 26px;
    border-top: 1px solid #e8edf8;
    background: #f8faff;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.page-side-nav:hover .side-nav-tip,
.page-side-nav.open .side-nav-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.side-nav-tip i {
    color: #f3c84b;
    margin-top: 3px;
}

.has-page-sidebar {
    padding-left: 78px;
    transition: padding-left 0.32s ease;
}

body.sidebar-expanded .has-page-sidebar {
    padding-left: 355px;
}

@keyframes sidePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

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

@media (max-width: 1200px) {
    .page-side-nav {
        display: none !important;
    }

    .has-page-sidebar {
        padding-left: 0;
    }
}

/* =========================
   Animations
========================= */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Responsive
========================= */

@media (max-width: 1300px) {
    .navbar {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .navbar::-webkit-scrollbar {
        height: 4px;
    }

    .navbar::-webkit-scrollbar-thumb {
        background: #d5d8ee;
        border-radius: 99px;
    }
}

@media (max-width: 1200px) {

    .page-hover-preview,
    .page-side-nav {
        display: none !important;
    }

}

@media (max-width: 768px) {
    .topbar {
        height: auto;
        padding: 9px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .brand-area {
        min-height: auto;
        padding: 16px;
    }

    .brand img {
        width: 62px;
        height: 62px;
    }

    .brand-text h1 {
        font-size: 21px;
    }

    .brand-text p {
        font-size: 12px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-item {
        min-height: 52px;
        width: 100%;
        padding: 0 14px !important;
        font-size: 15.5px;
        border-right: none !important;
    }

    .nav-item::after,
    .nav-item::before {
        display: none !important;
    }

    .nav-item.active {
        background: #f1f4ff !important;
        border-radius: 14px !important;
        padding: 0 14px !important;
    }

    .floating-actions {
        right: 18px;
        bottom: 18px;
    }

    .floating-actions a,
    .floating-actions button {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .brand {
        gap: 10px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text p {
        max-width: 190px;
        line-height: 1.3;
    }
}

/* Hide Hover text beside sidebar icon */
.page-side-nav::after {
    display: none !important;
    content: none !important;
}


/* Hero Slider */
.hero-section {
    position: relative;
    width: 100%;
    height: 560px;
    /* កំណត់កម្ពស់ slide */
    overflow: hidden;
    background: #000;
}

/* Slide item */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 1.2s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

/* Image size */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ឲ្យរូបពេញ section */
    object-position: center;
    display: block;
}

/* Arrow buttons */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-arrow:hover {
    background: #f5a623;
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 10px;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-dots span.active {
    width: 30px;
    border-radius: 20px;
    background: #f5a623;
}

/* Right thumbnail style like sample */
.hero-thumbnails {
    top: 85px;
    position: absolute;
    right: 35px;
    z-index: 25;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}


/* progress variable */
@property --progress {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* Thumbnail */
.hero-thumb {
    position: relative;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none !important;
    outline: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    transition: 0.35s ease;
    display: none;
}

.hero-thumb {
    display: none;
}

.hero-thumb.show-thumb {
    display: block;
}


.hero-thumb img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Active image bigger */
.hero-thumb.active {
    width: 118px;
    height: 118px;
}

/* progress circle */
.hero-thumb::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(#f5a623 var(--progress),
            transparent 0deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-thumb.active::before {
    opacity: 1;
}

.hero-section.paused .hero-thumb.active::before {
    animation-play-state: paused;
}

.hero-thumb.active.animate-progress::before {
    opacity: 1;
    animation: progressCircle 5s linear forwards;
}

@property --progress {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes progressCircle {
    from {
        --progress: 0deg;
    }

    to {
        --progress: 360deg;
    }
}

/* smaller inactive thumbnails */
.hero-thumb:not(.active) {
    width: 52px;
    height: 52px;
    opacity: 0.95;
}

/* hover */
.hero-thumb:not(.active):hover {
    transform: scale(1.08);
}

/* optional play icon on active */
.hero-thumb.active .play-icon {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    color: white;
    font-size: 28px;
    opacity: 0.9;
}

/* mobile hide */
@media (max-width: 768px) {
    .hero-thumbnails {
        right: 15px;
        top: 50px;
        gap: 12px;
    }

    .hero-thumb {
        width: 45px;
        height: 45px;
    }

    .hero-thumb.active {
        width: 75px;
        height: 75px;
    }

    .hero-thumb.active {
        margin: 8px 0;
    }

    .hero-thumb::before {
        inset: -4px;
        border-width: 4px;
    }
}

/* Pause / Play button */
.slide-toggle-btn {
    display: none;
}

.hero-thumb.active .slide-toggle-btn {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.hero-thumb.active .slide-toggle-btn:hover {
    background: #f5a623;
    transform: translateY(-50%) scale(1.08);
}

.hero-thumb.restart-animation.active::before {
    animation: progressCircle 5s linear forwards;
}

/* =========================
   Responsive
========================= */


.hero-section {
    height: 640px;
}

/* Laptop */
@media (max-width: 1200px) {
    .hero-section {
        height: 640px;
    }

    .hero-thumbnails {
        right: 28px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-section {
        height: 520px;
    }

    .hero-thumbnails {
        right: 20px;
        gap: 14px;
    }

    .hero-thumb {
        width: 55px;
        height: 55px;
    }

    .hero-thumb.active {
        width: 90px;
        height: 90px;
    }
}

/* Phone */
@media (max-width: 576px) {
    .hero-section {
        height: 380px;
    }

    .hero-img {
        object-position: center center;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .hero-thumbnails {
        display: none;
    }

    .hero-dots {
        bottom: 15px;
    }
}


/* 
 */

.footer {
    background: #1f3e68;
    color: #ffffff;
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: auto;
    padding: 60px 40px;
}

.footer-column {
    width: 100%;
}

.footer-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 5px;
}

.footer-column h3,
.footer-column h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer p {
    color: #b8c5d8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 15px 0;
    width: 100%;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

.footer-menu i {
    margin-right: 6px;
}

.scroll-top {
    width: 50px;
    height: 50px;
    background: #17345c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    margin-right: 60px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-menu {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* 
 */

.section-title {
    width: 100%;
    padding: 60px 20px 55px;
    background: #ffffff;
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 18px;
    color: #1f355c;
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.35;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 250px;
    height: 6px;
    background: #f5a623;
    transform: translateX(-50%);
    border-radius: 50px;
}

@media (max-width: 992px) {
    .section-title {
        padding: 55px 20px;
    }

    .section-title h2 {
        font-size: 34px;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {

    .section-title {
        padding: 35px 18px;
    }

    .section-title h2 {
        font-size: 24px;
        line-height: 1.8;
        text-align: center;
        word-break: break-word;
    }

}


/*  

*/
.rector-section {
    width: 100%;
    background: #f4f6fa;
    padding: 45px 60px;
    overflow: hidden;
}

.rector-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 55px;
    align-items: start;
}

/* Left Image */
.rector-left {
    text-align: center;
}

.rector-photo-box {
    width: 100%;
    max-width: 450px;
    height: 620px;
    background: #f7f8fb;
    border: 5px solid #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.rector-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rector-name {
    margin-top: 18px;
}

.rector-name h3 {
    margin: 0;
    color: #111827;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 900;
}

.rector-name p {
    margin: 5px 0 0;
    color: #19743a;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Right Content */
.rector-content {
    padding-top: 25px;
}

.about-text {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
    transform: translateX(-70px);
}

.about-text h3 {
    margin: 0 0 10px;
    color: #1f355c;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
}

.about-text h4 {
    margin: 0 0 24px;
    color: #f5a623;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.5;
}

.about-text p {
    margin: 0 0 16px;
    color: #8b99aa;
    font-size: 18px;
    line-height: 1.60;
    font-weight: 500;
    text-align: left;
    word-spacing: normal;
    letter-spacing: 0;
}

/* =========================
   Rector Responsive
========================= */

/* Tablet */
@media (max-width: 992px) {
    .rector-section {
        padding: 35px 24px;
    }

    .rector-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rector-left {
        display: flex;
        justify-content: center;
    }

    .rector-photo-box {
        width: 100%;
        max-width: 420px;
        height: 520px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .about-text {
        transform: none;
        padding: 0 10px;
    }

    .about-text h3,
    .about-text h4 {
        text-align: center;
    }

    .about-text p {
        text-align: left;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .rector-section {
        padding: 28px 16px 40px;
    }

    .rector-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rector-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .rector-photo-box {
        width: 100%;
        max-width: 320px;
        height: 400px;
        border: 4px solid #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
    }

    .rector-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .about-text {
        width: 100%;
        padding: 0;
        margin: 0;
        transform: none;
    }

    .about-text h3 {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1.5;
        text-align: center;
    }

    .about-text h4 {
        margin: 0 0 20px;
        font-size: 17px;
        line-height: 1.8;
        text-align: center;
    }

    .about-text p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.9;
        font-weight: 400;
        text-align: left;
        color: #6f7f92;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .rector-section {
        padding: 24px 14px 35px;
    }

    .rector-photo-box {
        max-width: 280px;
        height: 360px;
        border-radius: 18px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .about-text h4 {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.85;
    }
}

/* Stats Section */
.stats-section {
    width: 100%;
    background: #213e68;
    padding: 30px 30px 30px;
}

.stats-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    color: #ffffff;
}

.stat-icon {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 78px;
    line-height: 1;
}

.stat-item h3 {
    margin: 0 0 8px;
    color: #ffb12f;
    font-family: "Poppins", sans-serif;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
}

.stat-item h3 span {
    font-size: 26px;
    margin-left: 3px;
}

.stat-item p {
    margin: 0;
    color: #ffffff;
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
    font-size: 25px;
    line-height: 1.45;
    font-weight: 500;
}

/* Tablet */
@media (max-width: 992px) {
    .stats-section {
        padding: 35px 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }

    .stat-icon {
        font-size: 58px;
        margin-bottom: 14px;
    }

    .stat-item h3 {
        font-size: 46px;
    }

    .stat-item h3 span {
        font-size: 22px;
    }

    .stat-item p {
        font-size: 20px;
        line-height: 1.6;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .stats-section {
        padding: 32px 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 18px;
    }

    .stat-item {
        padding: 18px 10px;
    }

    .stat-icon {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .stat-item h3 {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .stat-item h3 span {
        font-size: 18px;
    }

    .stat-item p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats-section {
        padding: 28px 14px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .stat-item {
        padding: 20px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-icon {
        font-size: 42px;
    }

    .stat-item h3 {
        font-size: 34px;
    }

    .stat-item p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Video Section */

.video-section {
    padding: 60px 20px;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.video-frame {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

@media (max-width: 992px) {
    .video-section {
        padding: 45px 20px;
    }

    .video-frame {
        height: 450px;
    }
}

@media (max-width: 700px) {
    .video-section {
        padding: 30px 14px;
    }

    .video-container {
        border-radius: 14px;
    }

    .video-frame {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 25px 12px;
    }

    .video-container {
        border-radius: 12px;
    }

    .video-frame {
        height: 210px;
    }
}

/* about-page-layout */

.about-page-layout {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 360px 1fr;
    background: #f4f7fb;
}

/* Sidebar */
.about-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5eaf2;
    box-shadow: 8px 0 25px rgba(15, 23, 42, 0.06);
    min-height: 100vh;
}

.sidebar-title {
    height: 105px;
    padding: 0 68px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e5eaf2;
}

.title-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff0d8;
    color: #f7ad2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sidebar-title h3 {
    margin: 0;
    color: #2f5ca8;
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 900;
}

.sidebar-menu {
    padding: 24px 17px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-link {
    position: relative;
    min-height: 66px;
    padding: 0 22px;
    border-radius: 8px;
    color: #333333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: "Poppins", sans-serif;
    transition: 0.25s ease;
}

.sidebar-link span {
    width: 28px;
    min-width: 28px;
    color: #333333;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link strong {
    font-size: 19px;
    font-weight: 700;
}

.sidebar-link em {
    margin-left: auto;
    padding: 6px 13px;
    border-radius: 999px;
    background: #ffb12f;
    color: #ffffff;
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
}

.sidebar-link:hover {
    background: #f1f5fb;
    color: #2f5ca8;
}

.sidebar-link:hover span {
    color: #2f5ca8;
}

.sidebar-link.active {
    background: linear-gradient(90deg, #dfe8f5, #f1f5fb);
    color: #2f5ca8;
    box-shadow: 0 8px 22px rgba(47, 92, 168, 0.12);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 5px;
    border-radius: 0 5px 5px 0;
    background: #2f5ca8;
}

.sidebar-link.active span {
    color: #2f5ca8;
}

/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */

/* Main Content */

.about-main {
    min-height: 100vh;
    padding: 45px 50px 45px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.about-card {
    width: 100%;
    min-height: 360px;
    background: #ffffff;
    border-radius: 18px;
    padding: 42px 48px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.about-card h2 {
    margin: 0 0 18px;
    color: #1f355c;
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    font-weight: 900;
}

.about-card p {
    margin: 0;
    color: #7c8999;
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
    font-size: 20px;
    line-height: 1.8;
}

.about-content {
    display: none;
}

.about-content.active {
    display: block;
}

/* Contact Section */
.page-banner {
    background: #30448F;
    padding: 25px 0;
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-banner h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    font-family: "Poppins", sans-serif;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 20px 0;
    }

    .page-banner .container {
        padding: 0 20px;
    }

    .page-banner h1 {
        font-size: 18px;
        text-align: center;
    }
}

.contact-section {
    padding-top: 40px;
    padding-right: 30px;
    padding-bottom: 90px;
    padding-left: 30px;
    background: #f7f9fc;
    font-family: "Noto Sans Khmer", "Poppins", sans-serif;
}

.contact-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Heading */
.contact-heading {
    margin-bottom: 30px;
}

.contact-heading span,
.map-header span {
    display: inline-block;
    margin-bottom: 8px;
    color: #f5a623;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.contact-content {
    padding-left: 20px;
}

.contact-heading h2 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #173b70;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.contact-heading p {
    max-width: 650px;
    margin: 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.8;
}

/* Address */
.contact-address {
    display: flex;
    gap: 18px;
    padding: 22px;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(23, 59, 112, 0.06);
}

.contact-icon,
.person-avatar,
.website-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #f5a623;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.contact-address h3 {
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #173b70;
    margin-bottom: 12px;
    line-height: 0.3;
}

.contact-address p {
    font-family: "Battambang", "Khmer OS Battambang", sans-serif;
    font-size: 20px;
    line-height: 1.8;
}

/* Contact cards */
.contact-person-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;

}

.contact-card {
    min-height: 375px;
    padding: 38px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(20, 50, 90, 0.05);
    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(23, 59, 112, 0.10);
}

.person-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 35px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e4e9f0;
}

.person-header h3 {
    margin: 0;
    color: #102c57;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.person-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: #f9a51a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.person-header span {
    color: #8a98aa;
    font-size: 13px;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #456184;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

.contact-list i {
    width: 18px;
    min-width: 18px;
    color: #f9a51a;
    font-size: 17px;
    text-align: center;
}

.contact-list a,
.contact-list span {
    color: #456184;
    text-decoration: none;
    word-break: break-word;
}

.contact-list a:hover {
    color: #173b70;
}

/* Website link */
.website-link {
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    margin-top: 25px;
    padding: 14px 20px;
    background: #173b70;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: background 0.25s ease,
        transform 0.25s ease;
}

.website-link:hover {
    background: #244d86;
    transform: translateY(-2px);
}

.website-link small,
.website-link strong {
    display: block;
}

.website-link small {
    margin-bottom: 2px;
    color: #cbd8e9;
    font-size: 12px;
}

.website-link strong {
    font-size: 15px;
}

/* Map */
.contact-map-wrapper {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(23, 59, 112, 0.09);
}

.map-header {
    min-height: 105px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-header h3 {
    margin: 0;
    color: #173b70;
    font-size: 23px;
}

.map-header>i {
    color: #f5a623;
    font-size: 30px;
}

.contact-map {
    height: calc(100% - 105px);
    min-height: 600px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Tablet */
@media (max-width: 1100px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 500px;
        min-height: 500px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .contact-section {
        padding: 36px 14px 50px;
    }

    .contact-container {
        padding: 0;
        gap: 28px;
    }

    .contact-content {
        padding-left: 0;
    }

    .contact-heading {
        margin-bottom: 22px;
        text-align: center;
    }

    .contact-heading h2 {
        margin: 0;
        font-size: 20px;
        text-align: center;
        line-height: 1.35;
        font-weight: 700;
    }

    .contact-address {
        padding: 22px 18px;
        gap: 15px;
        border-radius: 16px;
        align-items: flex-start;
    }

    .contact-icon,
    .person-avatar,
    .website-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 18px;
    }

    .contact-address h3 {
        margin: 0 0 10px;
        font-size: 24px;
        line-height: 1.4;
        font-weight: 700;
    }

    .contact-address p {
        margin: 0;
        font-size: 15px;
        line-height: 1.9;
        font-weight: 400;
    }

    .contact-person-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-card {
        min-height: auto;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .person-header {
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .person-header h3 {
        font-size: 18px;
        line-height: 1.4;
    }

    .contact-list li {
        gap: 10px;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-list a,
    .contact-list span {
        font-size: 14px;
        line-height: 1.6;
    }

    .website-link {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding: 13px 16px;
        border-radius: 10px;
    }

    .contact-map-wrapper {
        border-radius: 14px;
    }

    .map-header {
        min-height: auto;
        padding: 18px;
    }

    .map-header h3 {
        font-size: 17px;
        line-height: 1.4;
    }

    .map-header>i {
        font-size: 24px;
    }

    .contact-map {
        height: 320px;
        min-height: 320px;
    }
}

/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */
/* =====================================
/* =====================================
ABOUT PAGE SIDEBAR OPEN / CLOSE
===================================== */

:root {
    --about-sidebar-open: 380px;
    --about-sidebar-close: 96px;
}

/* Sidebar */
.page-side-nav {
    width: var(--about-sidebar-close);
    transition: width 0.3s ease;
}

.page-side-nav.open {
    width: var(--about-sidebar-open);
}

/* Main position when sidebar is closed */
.has-page-sidebar {
    margin-left: var(--about-sidebar-close);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Main position when sidebar is open */
body.sidebar-expanded .has-page-sidebar {
    margin-left: var(--about-sidebar-open);
}

/* Main About page */
.about-page {
    width: 100%;
    min-height: 100vh;
    padding: 38px 32px 70px 24px;
    box-sizing: border-box;
    background: #ffffff;
    transition: padding 0.3s ease;
}

/* Sidebar open: card stays close to sidebar */
body.sidebar-expanded .about-page {
    padding-left: 18px;

}

/* Sidebar closed */
body:not(.sidebar-expanded) .about-page {
    padding-left: 28px;
}

/* Content container */
.about-container {
    width: 100%;
    max-width: 1350px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================
   ABOUT TAB CONTENT
===================================== */

.about-tab-content {
    display: none !important;
    width: 100%;
    min-height: 270px;
    padding: 42px 46px;
    box-sizing: border-box;

    border: 1px solid #e4e9f1;
    border-radius: 20px;
    background: #ffffff;

    box-shadow: 0 12px 35px rgba(20, 50, 90, 0.07);
}

.about-tab-content.active {
    display: block !important;
    animation: aboutTabFade 0.35s ease;
}

/* Title */
.about-tab-content h1 {
    margin: 0 0 24px;
    color: #132441;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
}

/* Paragraph */
.about-tab-content p {
    max-width: 950px;
    margin: 0 0 18px;

    color: #5d6a7e;
    font-family: "Noto Sans Khmer", "Poppins", sans-serif;
    font-size: 17px;
    line-height: 2;
}

/* Sidebar បើក៖ រំកិល About content ទៅឆ្វេង */
/* Sidebar បើក */
body.sidebar-expanded .about-container {
    position: relative;
    left: -300px;
    width: calc(100% + 300px);
    max-width: none;
    transition:
        left 0.3s ease,
        width 0.3s ease;
}

body.sidebar-expanded .about-tab-content {
    width: 100%;
    min-height: 330px;
    padding: 52px 60px;
}

/* Sidebar បិទ */
body:not(.sidebar-expanded) .about-container {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 1500px;
    transition:
        left 0.3s ease,
        width 0.3s ease;
}

/* Mobile កុំឲ្យហូរចេញអេក្រង់ */
@media (max-width: 992px) {

    body.sidebar-expanded .about-container,
    body:not(.sidebar-expanded) .about-container {
        left: 0;
        width: 100%;
        max-width: 100%;
    }

    body.sidebar-expanded .about-tab-content {
        min-height: auto;
        padding: 30px 26px;
    }
}

/* Animation */
@keyframes aboutTabFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {

    body.sidebar-expanded .about-container,
    body:not(.sidebar-expanded) .about-container {
        left: 0;
        max-width: 100%;
    }
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1200px) {
    :root {
        --about-sidebar-open: 320px;
        --about-sidebar-close: 88px;
    }

    .about-page {
        padding: 32px 26px 60px 18px;
    }

    body.sidebar-expanded .about-page {
        padding-left: 14px;
    }

    .about-container {
        max-width: 1100px;
    }

    .about-tab-content {
        min-height: 250px;
        padding: 36px 38px;
    }

    .about-tab-content h1 {
        font-size: 36px;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 992px) {

    .page-side-nav,
    .page-side-nav.open {
        width: 100%;
    }

    .has-page-sidebar,
    body.sidebar-expanded .has-page-sidebar {
        margin-left: 0;
    }

    .about-page,
    body.sidebar-expanded .about-page,
    body:not(.sidebar-expanded) .about-page {
        min-height: auto;
        padding: 24px 18px 50px;
    }

    .about-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .about-tab-content {
        min-height: auto;
        padding: 30px 26px;
        border-radius: 17px;
    }

    .about-tab-content h1 {
        font-size: 32px;
    }

    .about-tab-content p {
        font-size: 16px;
        line-height: 1.9;
    }
}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 600px) {

    .about-page,
    body.sidebar-expanded .about-page,
    body:not(.sidebar-expanded) .about-page {
        padding: 18px 12px 40px;
    }

    .about-tab-content {
        padding: 24px 20px;
        border-radius: 15px;
    }

    .about-tab-content h1 {
        margin-bottom: 18px;
        font-size: 28px;
    }

    .about-tab-content p {
        font-size: 15px;
        line-height: 1.85;
        text-align: left;
    }
}


/* Khmer font */
body,
button,
input,
select,
textarea,
.site-header .topbar-contact-item,
.site-header .address-text,
.site-header .translate-btn #selectedLanguage,
.site-header .account-link span,
.site-header .translate-menu a,
.site-header .language-info strong,
.site-header .language-info small,
.brand-text h1,
.brand-text p,
.navbar .nav-item,
.navbar .nav-item span:not(.nav-icon),
.sidebar-title h3,
.sidebar-link,
.sidebar-link strong,
.sidebar-link em,
.about-card h2,
.about-card p,
.about-tab-content h1,
.about-tab-content p,
.page-banner h1,
.contact-section,
.contact-heading h2,
.contact-heading p,
.contact-address h3,
.contact-address p,
.person-header h3,
.person-header span,
.contact-list li,
.contact-list a,
.contact-list span,
.website-link,
.map-header h3 {
    font-family: "Battambang", "Khmer OS Battambang", sans-serif !important;
}

/* =========================================
   Training preview — fixed size
========================================= */

body #previewPageBody:has(.training-page) .has-page-sidebar {
    width: calc(100% - 105px) !important;
    max-width: none !important;

    margin: 0 0 0 105px !important;
    padding: 0 !important;

    left: auto !important;
    min-width: 0;
    box-sizing: border-box !important;

    transition: none !important;
    animation: none !important;
    transform: none !important;
}

body #previewPageBody .training-page {
    width: 100% !important;
    padding: 60px 5% !important;
    box-sizing: border-box !important;
    transition: none !important;
    animation: none !important;
}

body #previewPageBody .training-welcome-hero {
    width: 100% !important;
    box-sizing: border-box !important;
    transition: none !important;
    animation: none !important;
}

body #previewPageBody .training-tab-content.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* រក្សា sidebar icon បិទ ទោះ script បន្ថែម .open */
body #previewPageBody:has(.training-page) .page-side-nav {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;

    height: 78px !important;
    min-height: 0 !important;

    left: 0 !important;
    border-radius: 0 24px 24px 0 !important;

    transform: none !important;
    transition: none !important;
    animation: none !important;
    pointer-events: none !important;
}

#previewPageBody:has(.training-page) .side-nav-title,
#previewPageBody:has(.training-page) .side-nav-menu,
#previewPageBody:has(.training-page) .side-nav-tip,
#previewPageBody:has(.training-page) .side-nav-text,
#previewPageBody:has(.training-page) .page-side-nav::after {
    display: none !important;
}


@media (max-width: 767px) {
    .site-header .topbar {
        height: auto;
        min-height: 0;
        padding-top: 4px;
        padding-bottom: 4px;
        row-gap: 4px;
    }

    .site-header .topbar-left {
        row-gap: 4px;
    }

    .site-header .topbar-contact,
    .site-header .topbar-right {
        position: relative;
        top: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .site-header .topbar {
        position: relative;
    }

    .site-header .topbar-right,
    .site-header .translate-box {
        position: static;
    }

    .site-header #translateMenu {
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        width: 220px;
        min-width: 0;
        max-width: calc(100vw - 32px);
        margin: 6px 0 0;
        box-sizing: border-box;
        transform: translateX(-50%) !important;
    }

    .site-header #translateMenu .language-flag {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        overflow: hidden;
    }

    .site-header #translateMenu .language-flag img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}

@media (max-width: 767px) {

    html,
    body {
        overflow-x: clip;
    }

    .site-header,
    .site-header.nav-only {
        position: sticky;
        top: 0;
        left: auto;
        width: 100%;
        z-index: 9999;
        animation: none;
        transform: none;
    }

    /* ពេល scroll លាក់ផ្ទៃពណ៌ខៀវ */
    .site-header.nav-only .topbar {
        display: none;
    }

    /* រក្សា Logo និងប៊ូតុង Navbar */
    .site-header.nav-only .brand-area {
        display: flex;
    }

    body.has-fixed-nav {
        padding-top: 0;
    }
}

@media (max-width: 1100px) {
    body.menu-open .site-header .mobile-menu-btn {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 767px) {

    /* សម្រាប់ទំព័រ និងប្រអប់ដែលអាច scroll */
    * {
        scrollbar-width: thin;
        scrollbar-color: #d1d1d1 transparent;
    }

    *::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    *::-webkit-scrollbar-thumb {
        background: #d1d1d1;
        border-radius: 4px;
        border: none;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-button {
        display: none;
    }
}

.site-header .brand-text h1 {
    position: relative;
    top: 9px;
}

@media (max-width: 767px) {
    .site-header .brand-area {
        padding: 12px;
        gap: 10px;
    }

    .site-header .brand {
        gap: 10px;
        min-width: 0;
    }

    .site-header .brand img {
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }

    .site-header .brand-text h1 {
        position: static;
        margin: 0;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: clamp(17px, 4.5vw, 22px);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
        color: #3f4b87;
        white-space: nowrap;
    }

    .site-header .brand-text p {
        max-width: none;
        margin: 5px 0 0;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: clamp(9px, 2.35vw, 11.5px);
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: 0;
        color: #3f4b87;
        white-space: nowrap;
    }

    .site-header .mobile-menu-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .site-header .brand-text h1 {
        font-size: clamp(18px, 4.8vw, 24px);
    }

    .site-header .brand-text p {
        font-size: clamp(10px, 3.5vw, 12px);
        margin-top: 1px;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .site-header .brand-text h1 {
        font-family: Georgia, "Times New Roman", serif !important;
        font-weight: 700;
        -webkit-text-stroke: 0.3px currentColor;
    }
}

@media (max-width: 767px) {
    .site-header .brand-area {
        min-height: auto;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

.nav-about-row {
    display: flex;
    align-items: center;
}

.nav-about-toggle,
.nav-about-submenu {
    display: none;
}

@media (max-width: 767px) {
    #navbar .nav-about-group {
        width: 100%;
        flex-shrink: 0;
    }

    #navbar .nav-about-row {
        gap: 6px;
    }

    #navbar .nav-about-row>.nav-item {
        flex: 1;
        min-width: 0;
    }

    #navbar .nav-about-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #aeb7c6;
        font-size: 26px;
        cursor: pointer;
    }

    #navbar .nav-about-submenu {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    #navbar .nav-about-submenu-inner {
        min-height: 0;
        overflow: hidden;
    }

    #navbar .nav-about-group.is-open .nav-about-submenu {
        grid-template-rows: 1fr;
    }

    #navbar .nav-about-group.is-open .nav-about-toggle {
        color: #203866;
    }

    #navbar .nav-about-submenu-inner>a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 12px 14px 22px;
        color: #203866;
        font-size: 16px;
        line-height: 1.5;
        text-decoration: none;
        border-bottom: 1px solid #edf0f5;
    }

    #navbar .nav-about-submenu-inner>a i {
        width: 22px;
        flex: 0 0 22px;
        text-align: center;
        color: #9b7600;
    }

    #navbar .nav-about-submenu-inner>a:hover {
        background: #f2f5fc;
    }
}

@media (max-width: 767px) {
    .site-header #mobileMenuClose {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 10px;
        font-size: 20px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-header #mobileMenuClose i {
        font-size: 20px;
        line-height: 1;
    }
}

@media (max-width: 767px) {
    .site-header .brand-text h1 {
        position: relative;
        top: 2.5px;
    }
}

.nav-training-row {
    display: flex;
    align-items: center;
}

.nav-training-toggle,
.nav-training-submenu {
    display: none;
}

@media (max-width: 767px) {
    #navbar .nav-training-group {
        width: 100%;
        flex-shrink: 0;
    }

    #navbar .nav-training-row {
        gap: 6px;
    }

    #navbar .nav-training-row>.nav-item {
        flex: 1;
        min-width: 0;
    }

    #navbar .nav-training-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #aeb7c6;
        font-size: 26px;
        cursor: pointer;
    }

    #navbar .nav-training-submenu {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    #navbar .nav-training-submenu-inner {
        min-height: 0;
        overflow: hidden;
    }

    #navbar .nav-training-group.is-open .nav-training-submenu {
        grid-template-rows: 1fr;
    }

    #navbar .nav-training-group.is-open .nav-training-toggle {
        color: #203866;
    }

    #navbar .nav-training-submenu-inner>a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 12px 14px 22px;
        border-bottom: 1px solid #edf0f5;
        color: #203866;
        font-size: 16px;
        line-height: 1.5;
        text-decoration: none;
    }

    #navbar .nav-training-submenu-inner>a i {
        width: 22px;
        flex: 0 0 22px;
        text-align: center;
        color: #9b7600;
    }

    #navbar .nav-training-submenu-inner>a:hover {
        background: #f2f5fc;
    }
}

body .home-page,
body .home-page *:not(i):not(svg):not(svg *):not(.fa, .fas, .far, .fab,
    .fa-solid, .fa-regular, .fa-brands) {
    font-family:
        Georgia,
        "Times New Roman",
        "Battambang",
        "Khmer OS Battambang",
        serif !important;

    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    font-variant-numeric: lining-nums !important;
}

/* =========================================================
   HEADER PROFILE - FINAL DESIGN
========================================================= */

.header-profile {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


/* =========================================================
   SMALL PROFILE IMAGE ON TOPBAR
========================================================= */

.header-profile-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;

    padding: 0;
    margin: 0;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-profile-avatar {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}


/* No avatar */

.header-profile-letter {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #7048c6;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   DROPDOWN CARD
========================================================= */

.header-profile-menu {
    position: absolute;

    top: calc(100% + 13px);
    right: -5px;

    width: 285px;

    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 13px;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.16),
        0 4px 10px rgba(15, 23, 42, 0.06);

    padding: 0;

    z-index: 99999;

    /* hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}


/* =========================================================
   SHOW DROPDOWN
   Support both possible JS class names
========================================================= */

.header-profile.profile-open .header-profile-menu,
.header-profile.open .header-profile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   TOP ARROW
========================================================= */

.header-profile-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    right: 17px;

    width: 13px;
    height: 13px;

    background: #ffffff;

    border-left: 1px solid #e3e8ef;
    border-top: 1px solid #e3e8ef;

    transform: rotate(45deg);

    z-index: 1;
}


/* =========================================================
   USER INFORMATION
========================================================= */

.header-profile-user {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px 17px;

    background: #ffffff;

    border-radius: 13px 13px 0 0;
}


/* =========================================================
   DROPDOWN AVATAR
========================================================= */

.header-profile-menu-avatar {
    width: 52px;
    height: 52px;

    min-width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #7048c6;
    color: #ffffff;
}

.header-profile-menu-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}

.header-profile-menu-avatar span {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 21px;
    font-weight: 600;
}


/* =========================================================
   NAME + EMAIL
========================================================= */

.header-profile-user-info {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.header-profile-user-info strong {
    display: block;

    color: #222b36;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-profile-user-info span {
    display: block;

    color: #4285f4;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   DIVIDER
========================================================= */

.header-profile-divider {
    width: calc(100% - 30px);
    height: 1px;

    margin: 0 auto;

    background: #e8ebef;
}


/* =========================================================
   LOGOUT FORM
========================================================= */

.header-profile-logout-form {
    width: 100%;

    margin: 0;
    padding: 8px;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.header-profile-menu-link.header-logout-button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 11px;

    margin: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #e32626;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition: background 0.15s ease;
}

.header-profile-menu-link.header-logout-button i {
    width: 19px;

    color: #858e99;

    font-size: 16px;

    text-align: center;
}

.header-profile-menu-link.header-logout-button:hover {
    background: #fff2f2;
}

.header-profile-menu-link.header-logout-button:hover i {
    color: #e32626;
}


/* =========================================================
   TOPBAR POSITION
========================================================= */

.topbar-right .header-profile {
    margin-left: 8px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .header-profile-button {
        width: 34px;
        height: 34px;

        min-width: 34px;
        min-height: 34px;
    }

    .header-profile-menu {
        width: 255px;
        right: -4px;
    }

    .header-profile-user {
        padding: 13px;
        gap: 10px;
    }

    .header-profile-menu-avatar {
        width: 46px;
        height: 46px;

        min-width: 46px;
    }

    .header-profile-user-info strong {
        font-size: 14px;
    }

    .header-profile-user-info span {
        font-size: 12px;
    }

}

.lmtc-back-top {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    background: #18365b !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(16, 43, 82, 0.15) !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lmtc-back-top i,
.lmtc-back-top svg {
    font-size: 19px !important;
    width: 19px !important;
    height: 19px !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.lmtc-back-top:hover {
    background: #244c78 !important;
    transform: translateY(-3px);
}

/* ///// */
:root {
    --lmtc-brand-bg: linear-gradient(to right,
            #26346f 0%,
            #33499f 100%);
}

/* Topbar */
.site-header .topbar {
    background: var(--lmtc-brand-bg) !important;
}

/* Footer */
footer,
.site-footer {
    background: var(--lmtc-brand-bg) !important;
}

/* ឱ្យផ្នែក Copyright ប្រើផ្ទៃ Footer ដូចគ្នា */
footer .footer-bottom,
.site-footer .footer-bottom {
    background: transparent !important;
}

/* ទំហំ និងទីតាំងស្មើគ្នា */
.lmtc-chat-launcher {
    position: fixed !important;
    right: 24px !important;
    left: auto !important;

    width: 68px !important;
    height: 68px !important;
    padding: 0 !important;
    box-sizing: border-box;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff !important;
    border-radius: 22px !important;
    background: #087bc6 !important;
    color: #fff;

    overflow: visible !important;
    isolation: isolate;
    box-shadow: 0 8px 24px rgb(14 74 123 / 22%);
    cursor: pointer;
}

/* តម្រឹមជាជួរឈរត្រង់គ្នា */
.lmtc-community-launcher {
    bottom: 116px !important;
}

.lmtc-bot-launcher {
    bottom: 28px !important;
}

/* រង្វង់លោតជុំវិញ */
.lmtc-chat-launcher::before,
.lmtc-chat-launcher::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 2px solid rgb(8 123 198 / 45%);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    animation: lmtcChatPulse 2.4s ease-out infinite;
}

.lmtc-chat-launcher::after {
    animation-delay: 1.2s;
}

@keyframes lmtcChatPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

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

@media (max-width: 767px) {
    .lmtc-chat-launcher {
        right: 16px !important;
        width: 58px !important;
        height: 58px !important;
        border-radius: 19px !important;
    }

    .lmtc-community-launcher {
        bottom: 100px !important;
    }

    .lmtc-bot-launcher {
        bottom: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lmtc-chat-launcher::before,
    .lmtc-chat-launcher::after {
        animation: none;
        opacity: 0;
    }
}

#communityChatButton,
#chatbotFloatingButton {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

#communityChatButton>i,
#chatbotFloatingButton>i {
    font-size: 25px !important;
}

/* រង្វង់ Pulse */
#communityChatButton::before,
#communityChatButton::after,
#chatbotFloatingButton::before,
#chatbotFloatingButton::after {
    border-radius: 50% !important;
}

/* គម្លាតរវាងប៊ូតុង */
#communityChatButton {
    bottom: 104px !important;
}

#chatbotFloatingButton {
    bottom: 28px !important;
}

@media (max-width: 767px) {

    #communityChatButton,
    #chatbotFloatingButton {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    #communityChatButton>i,
    #chatbotFloatingButton>i {
        font-size: 23px !important;
    }

    #communityChatButton {
        bottom: 92px !important;
    }

    #chatbotFloatingButton {
        bottom: 22px !important;
    }
}

/* Community — ពណ៌ស៊ីនឹង Logo */
#communityChatButton {
    background: #0284c7 !important;
    box-shadow: 0 6px 18px rgb(2 132 199 / 28%) !important;
}

#communityChatButton::before,
#communityChatButton::after {
    border-color: rgb(2 132 199 / 40%) !important;
}

/* Chatbot — ពណ៌ស៊ីនឹង Topbar */
#chatbotFloatingButton {
    background: #33499f !important;
    box-shadow: 0 6px 18px rgb(51 73 159 / 28%) !important;
}

#chatbotFloatingButton::before,
#chatbotFloatingButton::after {
    border-color: rgb(51 73 159 / 40%) !important;
}

/* Icon ស និងគែមស */
#communityChatButton,
#chatbotFloatingButton {
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* សញ្ញា Online */
#communityChatButton .community-chat-online-dot,
#chatbotFloatingButton .launcher-status {
    background: #10b981 !important;
    border: 2px solid #fff !important;
}

#communityChatButton::before,
#communityChatButton::after,
#chatbotFloatingButton::before,
#chatbotFloatingButton::after {
    border-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* Stop About Us zoom only inside hover preview */
#pageHoverPreview .about-hero,
#pageHoverPreview .about-hero::before,
#pageHoverPreview .about-hero-overlay,
#pageHoverPreview .about-hero-content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

@media (max-width: 767px) {
    .address-text {
        animation: none !important;
        transform: none !important;
    }
}


/* SCROLL TOP — TRANSPARENT GLASS */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 25px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12) !important;
    color: #293B78 !important;

    border: 1px solid #5369b1;
    border-radius: 50%;
    box-shadow: none;

    backdrop-filter: blur(0.1px);
    -webkit-backdrop-filter: blur(0.1px);

    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    fill: #ffffff !important;

}

.scroll-top svg path {
    stroke: #6b8af2 !important;
    stroke-width: 1px !important;
}

.scroll-top.on {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}


/* MOBILE — SCROLL TOP ABOVE CHATBOT */
@media (max-width: 767px) {
    .scroll-top {
        position: fixed !important;
        right: 90px !important;
        bottom: 25px !important;
        z-index: 10010 !important;
    }
}

/* =====================================
   MOBILE NAVBAR — SINGLE SOURCE
===================================== */

@media (max-width: 1100px) {
    .site-header .navbar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;

        width: 340px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;

        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        padding: 82px 28px 30px !important;
        background: #fff !important;
        border: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;

        transform: translate3d(100%, 0, 0) !important;
        will-change: transform;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 320ms !important;

        animation: none !important;
        z-index: 10002 !important;
    }

    .site-header .navbar.show {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible;
        pointer-events: auto;

        transition:
            transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s !important;
    }

    .site-header .mobile-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;

        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            visibility 0s linear 0.25s;

        z-index: 10001 !important;
    }

    .site-header .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
            opacity 0.25s ease,
            visibility 0s;
    }
}

/* =====================================
   MOBILE HEADER SCROLL JITTER FIX
   Keep the topbar in layout flow and collapse it smoothly.
   ===================================== */
@media (max-width: 767px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        width: 100% !important;
        transform: none !important;
        animation: none !important;
    }

    .site-header .topbar {
        display: flex !important;
        box-sizing: border-box;
        overflow: hidden !important;
        height: 40px;
        min-height: 40px;
        opacity: 1;
        visibility: visible;
        transition:
            height 180ms ease,
            min-height 180ms ease,
            opacity 140ms ease,
            padding 180ms ease;
    }

    .site-header.nav-only .topbar {
        display: flex !important;
        height: 0 !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .site-header.nav-only,
    .site-header.nav-only .brand-area {
        animation: none !important;
        transform: none !important;
    }
}


/* MOBILE TOPBAR — COMPACT */
@media (max-width: 767px) {

    .site-header:not(.nav-only) .topbar {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 10px !important;
        gap: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    /* Row 1: Facebook + YouTube */
    .site-header .topbar-left {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 18px !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .25) !important;
    }

    .site-header .topbar-left .topbar-contact {
        display: none !important;
    }

    /* Row 2: Language + My Account */
    .site-header:not(.nav-only) .topbar {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 10px !important;
        gap: 0 !important;
    }

    .site-header .topbar-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .site-header .translate-box,
    .site-header .account-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .top-divider {
        display: block !important;
        height: 24px !important;
        border-left: 1px solid rgba(255, 255, 255, .5) !important;
    }
}


/* MOBILE: Reduce text, icons, and avatar circle */
@media (max-width: 767px) {

    /* Language button */
    .site-header .translate-box,
    .site-header #translateBtn {
        font-size: 12px !important;
        padding: 3px 6px !important;
        min-height: 28px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }

    /* Language globe and dropdown arrow */
    .site-header .translate-box i,
    .site-header .translate-box svg,
    .site-header #translateBtn i,
    .site-header #translateBtn svg {
        width: 13px !important;
        height: 13px !important;
        font-size: 13px !important;
    }

    /* My Account text and icon */
    .site-header .account-link {
        font-size: 12px !important;
        padding: 3px 5px !important;
        gap: 4px !important;
    }

    .site-header .account-link i,
    .site-header .account-link svg {
        width: 13px !important;
        height: 13px !important;
        font-size: 13px !important;
    }

    /* Vertical separators */
    .site-header .top-divider,
    .site-header .topbar-right>.divider {
        height: 20px !important;
        margin: 0 3px !important;
    }

    /* User avatar: green circle with C */
    .site-header .header-profile,
    .site-header .user-avatar,
    .site-header .profile-avatar {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        min-height: 27px !important;
        font-size: 12px !important;
        border-width: 1.5px !important;
        padding: 0 !important;
    }

    .site-header .topbar-right {
        gap: 7px !important;
    }
}

/* =========================================================
   CONSOLIDATED MOBILE HEADER FIXES
   - Keep the account dropdown above the mobile navigation drawer
   - Keep the drawer and overlay clickable
   - Keep the scroll-to-top button in its intended mobile position
========================================================= */

@media (max-width: 1100px) {
    .site-header .mobile-menu-btn {
        position: relative !important;
        z-index: 10009 !important;
        pointer-events: auto !important;
    }

    .site-header .navbar {
        z-index: 10002 !important;
        pointer-events: auto !important;
    }

    .site-header .navbar a,
    .site-header .navbar button,
    .site-header .navbar .mobile-menu-close {
        pointer-events: auto !important;
    }

    .site-header .mobile-menu-overlay,
    #mobileMenuOverlay {
        z-index: 10001 !important;
    }
}

@media (max-width: 767px) {
    .site-header {
        position: sticky !important;
        z-index: 9999 !important;
        overflow: visible !important;
        transform: none !important;
        animation: none !important;
    }

    /* Parent layers must be above the navbar for its dropdown to show. */
    .site-header .topbar {
        position: relative !important;
        z-index: 10005 !important;
        overflow: visible !important;
    }

    .site-header .topbar-right {
        position: relative !important;
        z-index: 10006 !important;
        overflow: visible !important;
    }

    .site-header .header-profile {
        position: relative !important;
        z-index: 10007 !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .site-header .header-profile-menu {
        position: absolute !important;
        z-index: 10008 !important;
        pointer-events: auto !important;
    }

    /* Keep the mobile drawer below the account dropdown. */
    .site-header .navbar {
        z-index: 10002 !important;
    }

    .site-header .mobile-menu-overlay,
    #mobileMenuOverlay {
        z-index: 10001 !important;
    }

    /* Mobile scroll-to-top position */
    .scroll-top {
        position: fixed !important;
        right: 20px !important;
        bottom: 160px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 10010 !important;
    }
}


/* FINAL FIX — KEEP MY ACCOUNT DROPDOWN ABOVE THE MOBILE MENU BUTTON
   Place this block at the very end of the active CSS file. */
@media (max-width: 767px) {
    .site-header {
        isolation: isolate !important;
        overflow: visible !important;
    }

    /* Make the entire topbar layer win over the brand/menu-button layer. */
    .site-header .topbar {
        position: relative !important;
        z-index: 10020 !important;
        overflow: visible !important;
    }

    .site-header .topbar-right {
        position: relative !important;
        z-index: 10021 !important;
        overflow: visible !important;
    }

    .site-header .header-profile {
        position: relative !important;
        z-index: 10022 !important;
        overflow: visible !important;
    }

    .site-header .header-profile-menu {
        position: absolute !important;
        z-index: 10023 !important;
        pointer-events: auto !important;
    }

    /* Keep the hamburger and drawer below the account dropdown. */
    .site-header .mobile-menu-btn {
        position: relative !important;
        z-index: 10009 !important;
    }

    .site-header .navbar {
        z-index: 10002 !important;
    }

    .site-header .mobile-menu-overlay,
    #mobileMenuOverlay {
        z-index: 10001 !important;
    }
}

.video-section {
    width: 100%;
    padding: 40px 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #111;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
}

.video-poster,
.video-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-poster {
    padding: 0;
    cursor: pointer;
    background: #111;
}

.video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 84px;
    height: 58px;
    border-radius: 16px;
    background: #ff0033;
    color: white;
    font-size: 35px;
    transition: background .2s ease;
}

.video-poster:hover .video-play-button {
    background: #cc0029;
}

.video-frame {
    background: #111;
}

@media (max-width: 640px) {
    .video-section {
        padding: 24px 12px;
    }

    .video-container {
        border-radius: 12px;
    }
}



.footer-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.footer-map {
    display: block !important;
    width: 100%;
    min-width: 0;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.footer-map iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px;
    border: 0 !important;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 16px;
    }

    .footer-map,
    .footer-map iframe {
        height: 280px !important;
        min-height: 280px;
    }
}

.footer .footer-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.footer .footer-map {
    display: block !important;
    width: 100%;
    height: 300px;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.footer .footer-map iframe {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .footer .footer-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   LMTC - WIDE SCREEN LAYOUT FIX
========================================= */

@media (min-width: 768px) {

    /* Main content */
    .container,
    .page-content,
    .section-container,
    .rector-container,
    .video-container,
    .footer-container {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Header */
    .topbar,
    .brand-area {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }

    /* Navigation */
    .navbar {
        width: 100% !important;
        padding-left: 2% !important;
        padding-right: 2% !important;
    }

    /* Rector section */
    .rector-section {
        width: 100% !important;
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    @media (min-width: 1201px) {
        .rector-container {
            grid-template-columns:
                minmax(300px, 0.8fr) minmax(0, 1.2fr) !important;
            gap: 35px !important;
            width: 100%;        
        }
    }

    /* Video */
    .video-section {
        width: 100% !important;
    }

    .video-container {
        max-width: none !important;
    }

    /* Footer */
    .footer {
        width: 100% !important;
    }

    .footer .footer-container {
        max-width: none !important;
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .footer-bottom {
        width: 100% !important;
    }
}



/* ==========================================
   LMTC - TRUE FULL WIDTH DESKTOP 1900px+
   Keep original design and mobile responsive
========================================== */

@media screen and (min-width: 1201px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }

    /* Full width main layout */
    main,
    .site-header,
    .hero-section,
    .section-title,
    .rector-section,
    .stats-section,
    .video-section,
    .footer,
    .footer-bottom {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Remove 1200px content limitation */
    .container,
    .page-content,
    .section-container,
    .rector-container,
    .stats-container,
    .video-container,
    .footer-container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Header */
    .topbar,
    .brand-area {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .navbar {
        width: 100% !important;
        padding-left: 2% !important;
        padding-right: 2% !important;
        justify-content: center;
    }

    /* Hero Banner */
    .hero-section {
        height: clamp(600px, 42vw, 850px) !important;
    }

    .hero-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Section Title */
    .section-title {
        padding: 65px 4% !important;
    }

    /* Rector Section */
    .rector-section {
        padding: 65px 5% !important;
    }

    .rector-container {
        display: grid !important;
        grid-template-columns:
            minmax(320px, 0.8fr)
            minmax(0, 1.2fr) !important;
        gap: 55px !important;
        align-items: center;
    }

    .about-text {
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
    }

    /* Statistics */
    .stats-section {
        padding: 45px 4% !important;
    }

    .stats-container {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 35px !important;
    }

    /* Video */
    .video-section {
        padding: 55px 2% !important;
    }

    .video-container {
        width: 100% !important;
        max-width: none !important;
    }

    .video-frame {
        width: 100% !important;
        height: clamp(500px, 35vw, 750px) !important;
    }

    /* Footer */
    .footer-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 40px !important;
        padding: 55px 4% !important;
    }

    .footer-bottom {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
}

/* Tablet and Mobile: preserve existing responsive design */
@media screen and (max-width: 1200px) {
    .hero-section {
        height: 520px;
    }
}
