/* Generated by tools/build-css-bundles.mjs. Edit the source CSS files, not this bundle. */
/* Source: SharedComponents/BackToTop/base.css */
/* Reorganized from wwwroot/css/site.css. */


.site-back-to-top {
    --site-scroll-angle: 0turn;
    --site-back-to-top-fill: var(--fr-purple);
    position: fixed;
    right: clamp(1rem, 2vw, 1.75rem);
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1035;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 2px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(var(--site-back-to-top-fill), var(--site-back-to-top-fill)) padding-box,
        conic-gradient(
            from 0turn,
            var(--fr-yellow) var(--site-scroll-angle),
            rgba(255, 255, 255, .36) var(--site-scroll-angle)
        ) border-box;
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--fr-dark-rgb), .24);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 18px, 0) rotate(8deg) scale(.82);
    transition:
        opacity .32s ease,
        transform .48s cubic-bezier(.2, .9, .25, 1.28),
        visibility .32s ease,
        box-shadow .25s ease;
    pointer-events: none;
}


.site-back-to-top.is-visible {
    opacity: .45;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}


.site-back-to-top.is-visible:hover,
.site-back-to-top.is-visible:focus-visible {
    opacity: 1;
}


.site-back-to-top:hover {
    --site-back-to-top-fill: #541773;
    color: #fff;
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 12px 26px rgba(var(--fr-dark-rgb), .3);
}


.site-back-to-top:focus-visible {
    outline: 3px solid rgba(var(--fr-yellow-rgb), .9);
    outline-offset: 3px;
}


.site-back-to-top .bi {
    font-size: 1.35rem;
    line-height: 1;
}


.site-back-to-top.is-visible .bi {
    animation: site-back-to-top-arrow 1.65s ease-in-out .38s infinite;
}


@keyframes site-back-to-top-arrow {
    0%,
    52%,
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    68% {
        opacity: .35;
        transform: translate3d(0, -5px, 0);
    }

    69% {
        opacity: 0;
        transform: translate3d(0, 4px, 0);
    }

    84% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


@media (max-width: 575.98px) {
    .site-back-to-top {
        right: .75rem;
        bottom: max(.75rem, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .site-back-to-top {
        transform: none;
        transition: opacity .18s ease, visibility .18s ease;
    }

    .site-back-to-top.is-visible .bi {
        animation: site-back-to-top-arrow-once .32s ease-out both;
    }
}


@keyframes site-back-to-top-arrow-once {
    from { transform: translate3d(0, 3px, 0); }
    to { transform: translate3d(0, 0, 0); }
}

/* Source: SharedComponents/Tabs/base.css */
/* Reorganized from wwwroot/css/site.css. */


/* ===============================
   TABS
   =============================== */

.fr-tabs__list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}


.fr-tabs__tab {
    min-width: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    word-break: break-word;
    cursor: pointer;
}

/* Source: SharedComponents/Tabs/responsive.css */
/* Reorganized from wwwroot/css/responsive/site.css. */


@media (max-width: 768px) {
    .fr-tabs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .fr-tabs__tab {
        min-width: 100px;
        flex: 0 0 auto;
    }
}

/* Source: SharedComponents/Header/legacy.css */
/* Reorganized from wwwroot/css/site.css. */


/* ===============================
   TRANSITIONS & COMPONENTS
   =============================== */

.fr-collapse {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}


    .fr-collapse[aria-hidden="false"] {
        opacity: 1;
        height: auto;
    }


    .fr-collapse[aria-hidden="true"] {
        opacity: 0;
        height: 0 !important;
    }


.fr-header__logo img {
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}


.fr-nav__btn[aria-expanded="true"] .fr-fi-arrow-down-s-line {
    transform: rotate(180deg);
}


.fr-nav__btn:after,
.fr-header__brand:after {
    display: none !important;
}


.fr-translate .fr-link {
    cursor: pointer !important;
}


.fr-translate__menu {
    scroll-behavior: smooth;
}


    .navbar-brand img {
        height: auto;
        width: auto;
    }

/* Source: SharedComponents/Header/styles-1920.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1920.css. */
/* 1920px (full HD / wide screens) */
@media (min-width: 1920px) {

    .navbar-brand img {
        max-height: 100px;
        margin: 15px 0 15px -5px;
    }
}

/* Source: SharedComponents/Header/styles-1512.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1512.css. */
@media (min-width: 1512px) and (max-width: 1919px) {
    .navbar-brand img {
        max-height: 100px;
        margin: 10px 0 10px -5px;
    }
}

/* Source: SharedComponents/Header/styles-1440.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1440.css. */
/* Large Desktop (1440px – 1919px) */
@media (min-width: 1440px) and (max-width: 1511px) {
    .navbar-brand img {
        max-height: 95px;
        margin: 8px 0 8px -10px;
    }
}

/* Source: SharedComponents/Header/styles-1280.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1280.css. */
/* Desktop (1280px – 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .navbar-brand img {
        max-height: 95px;
        margin: 10px 0 10px -8px;
    }
}

/* Source: SharedComponents/Header/styles-1200.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1200.css. */
/* ≥1024px (tablet landscape / small desktop)*/
@media (min-width: 1200px) and (max-width: 1279px) {
    .navbar-brand img {
        max-height: 90px;
        margin: 8px 0 8px -10px;
    }
}

/* Source: SharedComponents/Header/styles-992.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-992.css. */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand img {
        max-height: 90px;
        margin: 10px 0 10px -10px;
    }
}

/* Source: SharedComponents/Header/styles-768.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-768.css. */
/* Tablet Portrait (768px – 1023px) */

@media (min-width: 768px) and (max-width: 991px) {

    .navbar-brand img {
        max-height: 90px;
        margin: 5px 0 5px 0px;
    }
}

/* Source: SharedComponents/Header/styles-480.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-480.css. */
/*480px (large mobile)*/
@media (min-width: 480px) and (max-width: 767px) {
    .site-header .header-linker > li {
        border:0;
    }
        .navbar-brand img {
            max-height: 80px;
            height: auto;
            width: auto;
            margin: 0;
        }

        .navbar-toggler-size {
            font-size: 10px;
            padding: 5px;
        }

        .search-item {
            position: absolute;
            top: 11vw;
            right: 9vw;
            border: 1px solid #ccc;
            background: #fff;
            padding: 9px 6px 5px 6px;
            border-radius: 6px;
            font-size: 10px;
            line-height: 1;
            z-index: 1000;
        }

        .position-menu-icon {
            position: absolute;
            top: 11vw;
            right: 4vw;
        }
}

/* Source: SharedComponents/Header/styles-320.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-320.css. */
/*≥320px (small mobile)*/
@media (max-width: 479px) {

    .navbar-brand img {
        max-height: 18vw;
        margin: 0;
    }

        .navbar-toggler-size {
            font-size: 10px;
            padding: 5px;
        }
}

/* Source: SharedComponents/Header/base.css */
/* Reorganized from wwwroot/css/header.css. */
/* Header link style */
.header-linker {
    color: var(--fr-purple);
    font-weight: 500;
}

.site-header {
    position: relative;
    z-index: 1030;
}

.site-header .site-header-top {
    position: relative;
    z-index: 1060;
}

.site-header .gap-between-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header .header-linker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.site-header .header-linker > li {
    display: flex;
    align-items: center;
    list-style: none;
}

.site-header .text-small {
    padding: 0 2px;
    border-bottom: 2px solid transparent !important;
    font-size: .85em;
    font-weight: 600 !important;
}

.site-header .text-small:not(.accreditations-spotlight):hover {
    border-bottom-color: var(--fr-purple) !important;
}

.site-header .accreditations-spotlight {
    border-bottom: 0 !important;
}

.site-header .mobile-translate {
    display: none;
}

.site-header .mobile-accreditations-row {
    display: none;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header .navbar-brand img {
    display: block;
}

.site-header-mobile-placeholder {
    height: 0;
}

/* Highlight active dropdown item */
.dropdown-menu .active {
    font-weight: bold;
}

/* Logo spacing */
.gap-between-logo {
    padding: 15px 0;
}

.text-tr {
    font-size: .87em;
    padding: 2px;
}

.text-tr > span {
    text-decoration: none !important;
}

.dropdown-menu-end {
    padding: 0;
    border-radius: 0;
    max-width: 60px;
    min-width: 60px;
    z-index: 1070;
}

.dropdown-menu-end li {
    border-bottom: 1px solid #fafafa;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(var(--fr-purple-rgb), 0.08) !important;
    color: var(--fr-purple);
    border-left: 3px solid var(--fr-purple);
}

.header-lang-link {
    font-weight: 400;
}

.header-lang-link-mobile {
    font-size: 13px;
}
.accreditations-spotlight {
    --accreditations-x: -6rem;
    --accreditations-y: 50%;
    position: relative;
    overflow: hidden;
    background-color: var(--fr-purple);
    background-image: radial-gradient(
        circle 5rem at var(--accreditations-x) var(--accreditations-y),
        rgba(var(--fr-red-rgb), .92) 0%,
        rgba(var(--fr-red-rgb), .82) 18%,
        rgba(225, 32, 78, .62) 36%,
        rgba(194, 31, 108, .36) 56%,
        rgba(149, 34, 132, .14) 72%,
        rgba(var(--fr-purple-rgb), 0) 88%
    );
    color: #fff !important;
    text-decoration: none !important;
}

.accreditations-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.35rem 1.6rem !important;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(var(--fr-purple-rgb), 0.22);
    transition: box-shadow .25s ease;
}

.accreditations-spotlight:hover {
    background-color: var(--fr-purple);
    color: #fff !important;
}

.accreditations-button:hover {
    box-shadow:
        0 4px 12px rgba(var(--fr-purple-rgb), .28),
        0 0 12px rgba(var(--fr-red-rgb), .18);
}

.accreditations-spotlight:focus-visible {
    --accreditations-x: 50%;
    --accreditations-y: 50%;
    outline: 3px solid rgba(var(--fr-yellow-rgb), .9);
    outline-offset: 3px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 1px solid rgba(var(--fr-purple-rgb), 0.32) !important;
    border-radius: 5px;
    background: #fff;
    color: var(--fr-purple) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: none;
}

.header-icon-btn i {
    font-size: 15px;
    line-height: 1;
}

.hamburger-icon {
    display: inline-flex;
    width: 19px;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon > span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon > span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon > span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon > span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .accreditations-button,
    .accreditations-spotlight,
    .hamburger-icon > span {
        transition: none;
    }
}

.navbar-toggler.header-icon-btn {
    float: none;
}

.position-menu-icon .header-icon-btn,
.search-item .header-icon-btn {
    border-color: transparent !important;
    background: transparent;
}

.position-menu-icon .header-icon-btn:hover,
.position-menu-icon .header-icon-btn:focus-visible,
    .search-item .header-icon-btn:hover,
    .search-item .header-icon-btn:focus-visible {
        border-color: transparent !important;
    background: transparent;
}


.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    background: transparent;
    border-color: var(--fr-purple) !important;
    color: var(--fr-purple) !important;
    outline: none;
}

.header-icon-btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--fr-purple-rgb), 0.16);
}

.search-box {
    display: none;
    position: absolute;
    top: calc(100% - 60px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0rem 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1070;
}

.search-box input {
    border: none;
    outline: none;
    width: 250px;
    padding: 0.4rem;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #999;
}

.search-box.show {
    display: block;
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-translate svg {
    width: 13px;
    height: 13px;
    fill: var(--fr-purple);
    margin-top: -1px;
}

/* Responsive styles */


/* Hide translation element on desktop */

/* Source: SharedComponents/Header/responsive.css */
/* Reorganized from wwwroot/css/responsive/header.css. */
/* Responsive rules moved from ../header.css. Keep this file loaded immediately after header.css. */

@media (max-width: 991.98px) {
    .site-header #mainNavbar.collapse:not(.show) {
        display: none;
    }

    .site-header #mainNavbar.collapse.show {
        display: block;
    }

    .site-header.is-mobile-stuck {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1045;
        box-shadow: 0 10px 28px rgba(22, 28, 45, 0.14);
        animation: mobile-sticky-header-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .site-header.is-mobile-stuck .site-header-top {
        max-width: 100% !important;
        background: #fff;
    }

    .site-header .site-header-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 0.75rem;
        row-gap: 4px;
        align-items: center;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .site-header .gap-between-logo {
        display: contents !important;
    }

    .site-header.is-mobile-stuck .navbar-expand-lg {
        background: #fff;
    }

    .site-header .header-linker > .desktop-accreditations,
    .site-header .header-linker > .desktop-translate {
        display: none;
    }

    .site-header .mobile-accreditations-row {
        display: flex;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-items: center;
        width: auto;
        padding: 0;
    }

    .site-header .mobile-accreditations-row .mobile-accreditations-link {
        margin: 0 !important;
    }

    .site-header .navbar-brand {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
        justify-self: start;
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-header .header-linker {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .site-header .mobile-translate {
        display: flex;
        padding-top: 0.75rem !important;
        padding-bottom: 0.65rem !important;
        align-items: center !important;
    }

    .mobile-accreditations-link {
        font-size: 15px !important;
        font-weight: 600;
        line-height: 1.5;
    }

    .mobile-accreditations-link.accreditations-button {
        min-height: 32px;
        padding: 0.32rem 1.1rem !important;
        font-size: 14px !important;
        line-height: 1.1;
    }

    header .custome-container {
        max-width: 94% !important;
        margin: auto;
    }

    .gap-between-logo {
        padding: 10px 0;
        gap: 0.75rem;
    }

    .header-linker {
        align-items: center !important;
        gap: 0.65rem;
    }

    .header-linker .nav-item,
    .header-linker .navbar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left !important;
        word-break: normal !important;
    }

    .navbar-brand img {
        width: clamp(155px, 52vw, 245px);
        max-width: 100%;
        max-height: 68px;
        margin: 0;
        object-fit: contain;
    }

    .navbar-toggler-size {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 36px;
    }

    .search-item .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .search-box {
        top: 100%;
        right: 0;
    }

}

@media (max-width: 767.98px) {
    .gap-between-logo {
        padding: 7px 0;
    }




    .site-header .header-linker > .desktop-accreditations,
    .site-header .header-linker > .desktop-translate {
        display: none;
    }

    .search-item {
        position: static !important;
        top: auto;
        right: auto;
    }

    header .custome-container:has(.search-box.show) {
        padding-bottom: 54px;
    }

    .mobile-accreditations-link {
        font-size: 14px !important;
    }

    .mobile-accreditations-link.accreditations-button {
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
    }

    .header-icon-btn {
        width: 42px;
        height: 42px;
        border-color: transparent !important;
        background: transparent;
    }

    .header-icon-btn i {
        font-size: 16px;
    }

    .navbar-toggler-size,
    .search-item .nav-link {
        min-width: 42px;
        min-height: 42px;
        width: 42px;
        height: 42px;
    }

    .site-header .header-linker {
        gap: 0.15rem;
    }

    .header-icon-btn:hover,
    .header-icon-btn:focus-visible {
        border-color: transparent !important;
        background: transparent;
    }

    .position-menu-icon {
        position: static !important;
        top: auto;
        right: auto;
    }

    .search-box {
        top: auto;
        right: 0;
        bottom: 8px;
        left: 0;
        width: 100%;
        padding: 0.45rem 0.65rem;
        border: 1px solid rgba(var(--fr-purple-rgb), 0.22);
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 8px 18px rgba(var(--fr-dark-rgb), 0.12);
        display: none;
    }

    .search-box.show {
        display: block;
        animation: none;
    }

    .search-box input {
        border: none;
        outline: none;
        width: 100%;
        padding: 0.35rem 0.1rem;
        font-size: 0.9rem;
    }

        .desktop-translate {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header .text-small {
        min-width: 1vw;
        margin: auto;
        font-size: 10px;
        text-align: center;
    }
}

@keyframes mobile-sticky-header-in {
    from {
        opacity: 0.96;
        transform: translate3d(0, -8px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .site-header.is-mobile-stuck {
        animation: none;
    }
}

@media (min-width: 992px) {
    .mobile-translate{
        display:none;
    }
}

/* Source: SharedComponents/Navigation/legacy.css */
/* Reorganized from wwwroot/css/HomeScreen/base.css. */


    .font-khmer .nav-link,
.font-khmer .dropdown-item {
        font-family: 'Hanuman', sans-serif;
    }

/* Source: SharedComponents/Navigation/styles-1920.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1920.css. */
/* 1920px (full HD / wide screens) */
@media (min-width: 1920px) {

    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 15px;
        margin: 8px 45px 8px 0;
        font-weight: 500;
        letter-spacing: 0.05px;
    }
    
    .navbar-nav menu-small {
        padding: 15px 0;
    }
    .font-khmer .nav-link {
        font-size: 17.5px;
    }
}

/* Source: SharedComponents/Navigation/styles-1512.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1512.css. */
@media (min-width: 1512px) and (max-width: 1919px) {
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 15px;
        margin: 8px 35px 8px 0;
        font-weight: 500!important;
    }
    .navbar-nav menu-small {
        padding: 15px 0;
    }
    .font-khmer .nav-link {
        font-size: 17px;
    }
}

/* Source: SharedComponents/Navigation/styles-1440.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1440.css. */
/* Large Desktop (1440px – 1919px) */
@media (min-width: 1440px) and (max-width: 1511px) {
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 14px;
        margin: 8px 30px 8px 0;
        font-weight: 500 !important;
    }
    .navbar-nav menu-small {
        padding: 0;
    }
    .font-khmer .nav-link {
        font-size: 16.5px;
    }
}

/* Source: SharedComponents/Navigation/styles-1280.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1280.css. */
/* Desktop (1280px – 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 13px;
        margin: 8px 25px 8px 0;
        font-weight: 500 !important;
    }

      .font-khmer .nav-link,
.font-khmer .dropdown-item {
        font-size: 14px;
        
    }
    .navbar-nav menu-small {
        padding: 0;
    }
}

/* Source: SharedComponents/Navigation/styles-1200.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-1200.css. */
/* ≥1024px (tablet landscape / small desktop)*/
@media (min-width: 1200px) and (max-width: 1279px) {
    .menu-grandchild {
        width: 177px !important;
    }
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 13px;
        margin: 8px 25px 8px 0;
        font-weight: 500 !important;
    }
    .font-khmer .nav-link,
.font-khmer .dropdown-item {
        font-size: 14px;
    }
    .navbar-nav menu-small {
        padding: 0;
    }
}

/* Source: SharedComponents/Navigation/styles-992.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-992.css. */
@media (min-width: 992px) and (max-width: 1199px) {
    .menu-ul-custom > li > a.dropdown-item {
        /* ✅ Allow wrapping */
        white-space: normal;
        word-break: break-word;
    }
    .menu-grandchild {
        width: 177px !important;
    }
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 12px;
        margin: 8px 10px 8px 0;
        font-weight: 500 !important;
        
    }
    .font-khmer .nav-link,
.font-khmer .dropdown-item {
        font-size: 14px;
    }
    .navbar-nav menu-small {
        padding: 0;
    }
}

/* Source: SharedComponents/Navigation/styles-768.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-768.css. */
/* Tablet Portrait (768px – 1023px) */

@media (min-width: 768px) and (max-width: 991px) {

    .menu-ul-custom > li > a.dropdown-item {
        /* ✅ Allow wrapping */
        white-space: normal;
        word-break: break-word;
    }

    .sub-menu {
        box-shadow: none !important;
    }

    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 13px;
        font-weight: 500;
        margin: 2.5px 0;
    }

    .navbar-nav menu-small {
        padding: 0;
    }

    .font-khmer .nav-link {
        font-size: 14px;
    }
}

/* Source: SharedComponents/Navigation/styles-480.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-480.css. */
/*480px (large mobile)*/
@media (min-width: 480px) and (max-width: 767px) {
    .menu-ul-custom > li > a.dropdown-item {
        /* ✅ Allow wrapping */
        white-space: normal;
        word-break: break-word;
    }
    .menu-grandchild {
        padding:8px;
    }
    .sub-menu {
        box-shadow: none !important;
    }
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 13.5px;
        font-weight:500!important;
        margin:2.5px 0
    }

    .navbar-nav menu-small {
        padding: 0;
    }

        .font-khmer .nav-link {
            font-size: 14px;
        }
}

/* Source: SharedComponents/Navigation/styles-320.css */
/* Reorganized from wwwroot/css/HomeScreen/styles-320.css. */
/*≥320px (small mobile)*/
@media (max-width: 479px) {
    .menu-ul-custom > li > a.dropdown-item {
        /* ✅ Allow wrapping */
        white-space: normal;
        word-break: break-word;
    }
    .menu-grandchild {
        padding: 5px;
    }
    .sub-menu {
        box-shadow:none!important;
    }
    .menu-small .nav-link,
.menu-small .dropdown-item {
        font-size: 12px;
        font-weight:500;
    }

    .navbar-nav menu-small {
        padding: 0;
    }
}

/* Source: SharedComponents/Navigation/legacy-home-responsive.css */
/* Reorganized from wwwroot/css/responsive/home.css. */
/* Responsive rules moved from ../home.css. Keep this file loaded immediately after home.css. */

@media (max-width: 480px) {
    .menu-items .nav-link {
        padding:0!important;
    }
    .menu-items {
        min-height: 40px;
        padding-top: 5px;
    }
}

/* Source: SharedComponents/Navigation/base.css */
/* Reorganized from wwwroot/css/menu.css. */
/* Base small menu style */
.menu-ul-custom {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 3px 3px 10px 0 #dee2e6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    visibility: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, transform 0.4s ease, padding 0.25s ease;
    padding-top: 0;
    padding-bottom: 0;
    display: block !important;
}

    .menu-ul-custom.show {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        padding-top: 6px;
        padding-bottom: 6px;
        overflow: visible;
        
    }

    .menu-ul-custom > li {
        margin: 0px;
        border-bottom: 1px solid #dee2e6;
    }

        .menu-ul-custom > li:last-child {
            border-bottom: none;
        }

.menu-items {
    min-width: 55px;
}

    .menu-items > * {
        color: #161616 !important;
    }

/* Khmer typography */
.font-khmer .nav-link,
.font-khmer .dropdown-item {
    line-height: 1.5;
}

.menu-container {
    --menu-ornament-height: 22.1px;
    position: relative;
    box-shadow: 0 3px 6px -1px #dee2e6;
    padding-bottom: var(--menu-ornament-height);
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-container::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--menu-ornament-height);
    background-image: url("/images/menu-ornament.png");
    background-position: center center;
    background-repeat: repeat-x;
    background-size: auto 100%;
    pointer-events: none;
}

    .menu-container.is-stuck {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        border-top-color: transparent !important;
        box-shadow: 0 10px 28px rgba(22, 28, 45, 0.12);
        backdrop-filter: blur(10px);
        --menu-ornament-height: 22.1px;
    }

    .menu-container.is-stuck::after {
        transform-origin: top center;
        animation: menu-sticky-ornament-in .34s cubic-bezier(.2, .8, .2, 1) both;
    }

@keyframes menu-sticky-ornament-in {
    from {
        opacity: 0;
        transform: translate3d(0, -7px, 0) scaleY(.68);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-container.is-stuck::after {
        animation: menu-sticky-ornament-fade-in .18s ease-out both;
    }
}

@keyframes menu-sticky-ornament-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-sticky-placeholder {
    height: 0;
}

.menu-inner {
    display: flex;
    align-items: center;
    
}

.menu-inner > nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.my-menu-root .navbar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.my-menu-root .nav-item {
    list-style: none;
}

.my-menu-root .nav-link,
.my-menu-root .dropdown-item {
    display: block;
    text-decoration: none;
}

.my-menu-root .dropdown {
    position: relative;
}

.my-menu-root .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 12rem;
    margin: 0;
    padding-left: 0;
    background: #fff;
    list-style: none;
}

.menu-sticky-logo {
    flex: 0 0 auto;
    width: 0;
    opacity: 0;
    transform: translateX(-8px);
    overflow: hidden;
    pointer-events: none;
    transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

    .menu-sticky-logo img {
        display: block;

        height: 45px;
        object-fit: contain;
    }

.menu-container.is-stuck .menu-sticky-logo {
    width: 10%;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    margin: 0 8px 0 0;
    text-align: left;
    justify-content: left;
    display: flex;
}

.menu-container.is-stuck .menu-inner {
    min-height: 55px;
}

/* Dropdown links */
.menu-ul-custom > li > a.dropdown-item {
    border-left: 2px solid transparent;
    padding-left: calc(.7rem - 2px);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    color: #161616;
    text-decoration: none;

}

    .menu-ul-custom > li > a.dropdown-item:hover,
    .menu-ul-custom > li > a.dropdown-item:focus {
        background-color: rgba(var(--fr-purple-rgb), 0.08);
        border-left-color: var(--fr-purple);
        color: var(--fr-purple);
    }

/* Top-level links */
.top-level-link {
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    position: relative;
    border-radius: 0.2rem;
}

    .top-level-link:hover,
    .top-level-link:focus-visible {
        background-color: rgba(var(--fr-purple-rgb), 0.08);
        color: var(--fr-purple) !important;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
    }

    .top-level-link:focus-visible {
        outline: 2px solid rgba(var(--fr-purple-rgb), 0.32);
        outline-offset: 2px;
    }

/* Active states */
.nav-item.active > .top-level-link,
.dropdown-item.active {
    color: var(--fr-purple) !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.dropdown-menu .active {
    background-color: rgba(var(--fr-purple-rgb), 0.08) !important;
}

/* Dropdown arrow animation */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.25em;
    vertical-align: middle;
    content: "";
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    border-top: 0.3em solid currentColor;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* --- Support for Grandchild Menu --- */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: 0;
        border-radius: 0.5rem;
        box-shadow: 3px 3px 10px #dee2e6;
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateY(-5px);
        visibility: hidden;
        max-height: 0;
    }

        /* When grandchild is shown */
        .dropdown-submenu > .dropdown-menu.show {
            max-height: 500px !important;
            opacity: 1;
            transform: translateY(0);
            visibility: visible !important;
            overflow: visible !important;
        }
/* ✅ Ensure all menus fully collapse when not shown */
.dropdown-menu:not(.show) {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    transform: translateY(-5px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Hover open on desktop */


/* Submenu link styling */
.sub-menu .dropdown-item {
    padding-left: 2rem;
}

/* Responsive adjustments */

.dropdown-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0.5rem;
}

.dropdown-item-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.dropdown-toggle-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

    .dropdown-toggle-arrow[aria-expanded="true"] .arrow-icon {
        transform: rotate(90deg);
    }
/* --------------------------------------
   🔽 Default dropdown arrow (all toggles)
--------------------------------------- */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
    content: "";
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    border-top: 0.3em solid currentColor;
    transition: transform 0.3s ease;
}


/* --------------------------------------
   ▶️ Forward arrow for child → grandchild
   (only applies on desktop)
--------------------------------------- */


/* --------------------------------------
   ▼ On mobile, use down arrow instead
--------------------------------------- */

/* Source: SharedComponents/Navigation/responsive.css */
/* Reorganized from wwwroot/css/responsive/menu.css. */
/* Responsive rules moved from ../menu.css. Keep this file loaded immediately after menu.css. */

@media (min-width: 992px) {
    .my-menu-root .navbar-nav {
        justify-content: space-between;
    }

    .my-menu-root .top-level-link {
        padding: 0.625rem 1rem !important;
    }

    .my-menu-root .navbar-nav > .nav-item:last-child > .dropdown-menu {
        right: 0;
        left: auto;
    }

    .my-menu-root .navbar-nav > .nav-item:last-child .dropdown-submenu > .dropdown-menu {
        right: 100%;
        left: auto;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .my-menu-root .top-level-link {
        padding-right: .6rem !important;
        padding-left: .6rem !important;
        margin-right: 0 !important;
        white-space: nowrap;
    }

    .menu-container.is-stuck .menu-sticky-logo {
        width: 7%;
        margin-right: 4px;
    }
}

@media (max-width: 768px) {
    /* ensure closed grandchild menus take zero space */
    .dropdown-submenu > .dropdown-menu {
        max-height: 0;
        margin: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.25s ease;
    }

        /* when opened, make them visible and animated */
        .dropdown-submenu > .dropdown-menu.show {
            max-height: 500px;
            padding-top: 6px;
            padding-bottom: 6px;
            opacity: 1;
            visibility: visible;
            overflow: visible;
            pointer-events: auto;
        }

        /* remove box shadow and border while closed */
        .dropdown-submenu > .dropdown-menu:not(.show) {
            box-shadow: none !important;
            border-left: 0 !important;
        }

}

@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-toggle::after {
        content: "";
        border-top: 0.3em solid transparent;
        border-bottom: 0.3em solid transparent;
        border-left: 0.3em solid currentColor;
        border-right: none;
        margin-left: 0.4em;
        transform: none;
    }

    /* Slight movement when expanded */
    .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after {
        transform: translateX(2px);
    }

    /* The last desktop menu opens its nested menu to the left. Keep the
       closed-state arrow on the right, then move it before the label when open. */
    .my-menu-root .navbar-nav > .nav-item:last-child .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after {
        display: none;
    }

    .my-menu-root .navbar-nav > .nav-item:last-child .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::before {
        content: "";
        display: inline-block;
        border-top: 0.3em solid transparent;
        border-bottom: 0.3em solid transparent;
        border-right: 0.3em solid currentColor;
        border-left: none;
        margin-right: 0.4em;
    }
}

@media (max-width: 991.98px) {
    .my-menu-root.is-stuck {
        position: static;
        box-shadow: 0 3px 6px -1px #dee2e6;
        backdrop-filter: none;
    }

    .menu-sticky-logo {
        display: none;
    }

    .menu-inner {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .menu-container.is-stuck .menu-sticky-logo {
        width: 46px;
        padding-top: 0.35rem;
    }

    .menu-sticky-logo img {
        width: 40px;
        height: 34px;
    }

    .my-menu-root .navbar-nav {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        padding-top: 0.35rem;
        padding-bottom: 0.45rem;
    }

    .my-menu-root .menu-items {
        width: 100%;
    }

    .my-menu-root .top-level-link,
    .my-menu-root .dropdown-item {
        display: flex;
        align-items: center;

        padding-bottom: 0.65rem !important;
    }

    .my-menu-root .nav-item.dropdown > .menu-ul-custom.show {
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .my-menu-root .menu-ul-custom {
        width: 100%;
    }

    .my-menu-root .dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        transform: none;
    }

    .my-menu-root .menu-ul-custom > li > a.dropdown-item {
        padding-left: 1rem;
    }

    .my-menu-root .dropdown-submenu > .dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .my-menu-root .dropdown-submenu > .dropdown-menu.show {
        max-height: 500px !important;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 1;
        visibility: visible !important;
        overflow: visible !important;
        pointer-events: auto;
        transform: none;
    }

    .my-menu-root .dropdown-submenu .menu-grandchild > .dropdown-item {
        padding-left: 1.75rem;
        background: rgba(var(--fr-purple-rgb), 0.03);
    }

    .dropdown-submenu > .dropdown-toggle::after {
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
        border-top: 0.3em solid currentColor;
        border-bottom: none;
        margin-left: 0.35em;
        transform: none;
    }

    .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}
