/* ========== Carousel Styles (IKEY tone) ========== */
:root {
    --ikey-blue: #0A4AA6;
    --ikey-gold: #D4AF37;
    --carousel-height: min(52vw, 520px);
    /* responsive height */
    --carousel-duration: 4000ms;
    /* autoplay speed */
    --caption-bg: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
}

.carousel {
    position: relative;
    background: #000;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10, 30, 60, .08);
}

.carousel__viewport {
    position: relative;
    height: var(--carousel-height);
}

@media (max-width: 900px) {
    .carousel__viewport {
        height: min(60vw, 420px);
    }
}

@media (max-width: 600px) {
    .carousel__viewport {
        height: min(70vw, 300px);
    }
}

.carousel__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 600ms ease;
}

.carousel__slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    isolation: isolate;
}

.carousel__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--caption-bg);
    z-index: 0;
}

/* caption */
.carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8%;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 0 16px;
}

.carousel__caption h2 {
    margin: .2rem 0;
    font-weight: 900;
    font-size: clamp(20px, 4vw, 40px);
    letter-spacing: .3px;
}

.carousel__caption p {
    margin: 0;
    opacity: .95
}

/* buttons */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #e5e7eb;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.carousel__btn:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18)
}

.carousel__btn.prev {
    left: 14px
}

.carousel__btn.next {
    right: 14px
}

/* dots */
.carousel__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel__dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .65);
    padding: 0;
}

.carousel__dots button[aria-current="true"] {
    background: var(--ikey-gold);
}

/* pause on hover helper */
.carousel:hover .carousel__btn {
    opacity: 1
}

/* =====================  CSS  ===================== */
:root {
    --blue-ikey: #0A4AA6;
    --blue-ikey-600: #0b4398;
    --gold-ikey: #D4AF37;
    --ink: #1A1A1A;
    --muted: #6B7280;
    --bg: #F7FAFC;
    --white: #fff;
    --radius: 18px;
    --shadow: 0 6px 24px rgba(10, 30, 60, .08);
}

* {
    box-sizing: border-box
}

html,
body {
    position: relative;
    margin: 0;
    padding: 0
}

body {
    font: 16px/1.6 "Noto Sans", "Noto Serif Khmer", system-ui, -apple-system, Segoe UI, Roboto;
    color: var(--ink);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto
}

/* ======= Top blue band ======= */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-top {
    background: #fff;
    color: var(--blue-ikey);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    transition: .2s;
}

.btn-top:hover {
    background: var(--gold-ikey);
    color: #fff
}

.btn-login {
    background: var(--blue-ikey);
    color: #fff
}

.btn-login:hover {
    background: #08367a
}

.topbar {
    background: var(--blue-ikey);
    color: var(--white);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 0;
}

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

.brand__logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fff;
    padding: 6px
}

.brand__title {
    display: flex;
    flex-direction: column
}

.brand__name {
    font-weight: 800;
    letter-spacing: .2px
}

.brand__kh {
    font-size: .92rem;
    opacity: .9
}

.lang {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.lang select {
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
    font-weight: 600;
    appearance: none;
    padding-right: 20px;
    cursor: pointer;
}

/* ======= Navbar (white) ======= */
.nav {
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav__inner {
    display: flex;
	    align-items: end;
/*     align-items: center; */
    justify-content: space-between;
    gap: 10px;
    padding: 0px 0;
}

.menu {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px;
    margin: auto;
}

.menu > li {
    position: relative;
    list-style: none
}

.menu > li > a {
    display: inline-block;
    /*            padding: 10px 4px;*/
    font-weight: 700;
    /*            border-bottom: 2px solid transparent;*/
}

.menu > li > a:hover {
    border-color: var(--blue-ikey)
}

/* Dropdown */
.dropdown {
    position: absolute;
    left: 0;
    z-index: 2;
    top: 100%;
    min-width: 240px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
}

.menu > li:focus-within .dropdown,
.menu > li:hover .dropdown {
    display: block
}

.dropdown a {
    display: block;
    padding: 10px;
    border-radius: 10px;
    color: var(--ink)
}

.dropdown a:hover {
    background: #0b4398;
    color: #fff;
}

.carousel {
    position: relative;
    overflow: hidden;
    height: min(52vw, 520px);
    background: #000;
}

.carousel__track {
    display: flex;
    transition: transform .7s ease-in-out;
    height: 100%;
}

.carousel__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}

.caption h2 {
    font-size: clamp(20px, 4vw, 42px);
    margin: 0;
}

.caption p {
    font-size: clamp(14px, 2vw, 20px);
}

/* dots */
.carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel__dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
}

.carousel__dots button.active {
    background: #D4AF37;
}

/* arrows */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .8);
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.carousel__btn.prev {
    left: 14px;
}

.carousel__btn.next {
    right: 14px;
}


/* ======= Sections ======= */
section {
    margin: 0px 0
}

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px
}

.section__title {
    font-size: clamp(20px, 3.4vw, 28px);
    font-weight: 900;
    letter-spacing: .3px
}

.section__subtitle {
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--blue-ikey);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 2px solid transparent
}

.btn:hover {
    background: var(--blue-ikey-600)
}

.btn--ghost {
    background: #fff;
    color: var(--blue-ikey);
    border-color: var(--blue-ikey)
}

/* Faculties cards */
.grid02 {
    display: grid;
    gap: 16px
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr)
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column
}

.card__img {
    aspect-ratio: 16/9;
    object-fit: cover
}

.card__body {
    padding: 16px
}

.chip {
    display: inline-block;
    font-size: .8rem;
    background: rgba(212, 175, 55, .12);
    color: #8a6a00;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    border: 1px solid rgba(212, 175, 55, .35);
}

.card h3 {
    margin: .2rem 0 .2rem;
    font-size: 1.05rem
}

.card p {
    color: var(--muted);
    margin: .2rem 0 .6rem
}

.card a {
    font-weight: 800;
    color: var(--blue-ikey)
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px
}

.gallery img {
    border-radius: 14px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: var(--shadow)
}

.gallery img:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2
}

.gallery img:nth-child(7) {
    grid-column: span 2
}

.gallery img:nth-child(8) {
    grid-column: span 2
}

/* Footer */
.footer {
    background: var(--blue-ikey);
    color: #fff;
/*    margin-top: -35px;*/
    padding: 36px 0;
}

.footer a {
    opacity: .95
}

.footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px
}

.footer h4 {
    margin: 0 0 10px
}

.foot-note {
    margin-top: 18px;
    opacity: .8;
    font-size: .9rem
}

.img-logoimg02 {
	    width: 20%;
    margin-top: 10px;
/*     width: 25%; */
    /*
            position: absolute;
            left: 150px;
*/
}

/* ===== Typewriter: one-by-one characters ===== */
/* ប្រើ CSS ដូច cursor ខាងលើ */
#ikey-typer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /*
            padding: 6px 10px;
            background: var(--gold-ikey);
*/
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow)
}

#ikey-typer .typejs {
    font-weight: 800;
    white-space: nowrap
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.25rem;
    background: #fff;
    animation: blink .7s steps(1) infinite
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    50.01%,
    100% {
        opacity: 0
    }
}

/* ===== About section ===== */
.about {
    position: relative;
    background: linear-gradient(180deg, #eaf2ff 0%, #f6f9ff 100%);
    padding: 64px 0 72px;
    overflow: hidden;
}

.about__inner {
    width: min(1200px, 92%);
    margin: 0 auto
}

.overline {
    display: inline-block;
    background: rgba(10, 74, 166, .1);
    color: #0A4AA6;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .3px
}

.about .title {
    font-size: clamp(28px, 5vw, 44px);
    margin: .4rem 0 10px;
    font-weight: 900;
    letter-spacing: .4px
}

.about .lead {
    color: #495869;
    max-width: 72ch;
    margin: 0 auto 24px
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    margin-top: 18px
}

/* media (左) */
.about__media {
    width: 100%;
    margin: auto;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(10, 30, 60, .12);
}

.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02)
}

/* 画像に柔らかいマスク */
.about__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 70% at 10% 10%, rgba(255, 255, 255, .25), transparent 60%);
    pointer-events: none
}

.about__media figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(255, 255, 255, .85);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #1a1a1a
}

/* 金色アクセントバー */
.accent-bar {
    position: absolute;
    right: -14px;
    top: 16%;
    width: 14px;
    height: 68%;
    background: #D4AF37;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, .4)
}

/* content (右) */
.about__content {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 30px rgba(10, 30, 60, .08)
}

.pill {
    display: inline-block;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 8px
}

.about__content p {
    color: #334155
}

.icon-list {
    margin: 12px 0 14px;
    padding: 0;
    list-style: none
}

.icon-list li {
    padding-left: 28px;
    position: relative;
    margin: 8px 0;
    color: #1f2937
}

.icon-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #D4AF37, #ffd876)
}

.quote {
    margin: 12px 0 16px;
    padding: 14px 16px;
    border-left: 4px solid #0A4AA6;
    background: #f0f6ff;
    border-radius: 12px;
    font-weight: 800;
    color: #0A2d66
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    border: 2px solid transparent;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18)
}

.btn:hover {
    background: #08367a
}

.btn--ghost {
    background: #fff;
    color: #0A4AA6;
    border-color: #0A4AA6;
    box-shadow: none
}

.btn--ghost:hover {
    background: #0A4AA6;
    color: #fff
}

/* wave shapes (optional) */
.shape-top,
.shape-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 64px;
    pointer-events: none
}

.shape-top {
    top: -1px;
    background: radial-gradient(120% 64px at 50% 100%, transparent 60%, #eaf2ff 61%)
}

.shape-bottom {
    bottom: -1px;
    background: radial-gradient(120% 64px at 50% 0%, transparent 60%, #f6f9ff 61%)
}

/* ===== News ===== */
.news {
    background: #fff;
    padding: 44px 0
}

.news__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

.news__head h2 {
    background: linear-gradient(90deg, #4d86ff, #0A4AA6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(24px, 4.2vw, 36px);
    font-weight: 900;
    letter-spacing: .4px
}

.news__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Human Resource and Goals ===== */
.hrgoals {
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    padding: 64px 0 72px;
    position: relative;
}

.hrgoals__head {
    text-align: center;
    margin-bottom: 40px;
}

.hrgoals .overline {
    display: inline-block;
    background: rgba(10, 74, 166, .1);
    color: #0A4AA6;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.hrgoals .title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #0A2d66;
    margin: 12px 0;
}

.hrgoals .lead {
    max-width: 70ch;
    margin: 0 auto;
    color: #475569;
}

/* Grid of goals */
.hrgoals__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 960px) {
    .hrgoals__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hrgoals__grid {
        grid-template-columns: 1fr;
    }
}

.goal-card {
    background: #fff;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .08);
    transition: transform .25s, box-shadow .25s;
}

.goal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10, 30, 60, .15);
}

.goal-card .icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.goal-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 8px 0;
    color: #0A4AA6;
}

.goal-card p {
    color: #475569;
    font-size: .95rem;
}

/* CTA */
.cta-center {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(10, 30, 60, .18);
    text-decoration: none;
}

.btn:hover {
    background: #08367a;
}
@media (max-width:1300px){
	.menu {
    font-size: 14px;
    margin: 0px;
    /* margin-top: -19px; */
    padding: 0px;
    display: flex
;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
	.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0px 0;
}
}
@media (max-width:1100px) {
    .news__grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:820px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:560px) {
    .news__grid {
        grid-template-columns: 1fr
    }
}

.news-card {
    background: #f3f6fa;
    border: 1px solid #e7ecf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(10, 30, 60, .06);
    transition: .25s transform, .25s box-shadow
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 30, 60, .12)
}

.news-card__link {
    display: block;
    color: inherit
}

.news-card__media {
    position: relative;
    aspect-ratio: auto;
    overflow: hidden;
    width: 100%;
    margin: auto;
}

.news-card__media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transform: scale(1.02)
}

/* gradient overlay on hover (軽く) */
.news-card:hover .news-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .25), transparent 40%)
}

/* date badge */
.date-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0A4AA6;
    color: #fff;
    border-radius: 12px;
    padding: 6px 8px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(10, 30, 60, .25)
}

.date-badge .d {
    font-size: 1.1rem;
    font-weight: 900
}

.date-badge .m {
    font-size: .75rem;
    opacity: .95
}

.date-badge .y {
    font-size: .7rem;
    opacity: .85
}

/* category chip */
.chip {
    /*            position: absolute;*/
    right: 12px;
    top: 12px;
    background: rgba(255, 255, 255, .9);
    color: #0A4AA6;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    border: 1px solid #e7ecf3
}

.chip--gold {
    background: rgba(212, 175, 55, .95);
    color: #fff;
    border: none
}

/* body */
.news-card__body {
    padding: 14px 14px 16px
}

.news-card__title {
    margin: 4px 0 6px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0b1b33
}

.news-card__excerpt {
    margin: 0 0 10px;
    color: #435266
}

.readmore {
    font-weight: 800;
    color: #0A4AA6
}

/* buttons (reuse) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 16px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    border: 2px solid transparent;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18)
}

.btn:hover {
    background: #08367a
}

.btn--ghost {
    background: #fff;
    color: #0A4AA6;
    border-color: #0A4AA6;
    box-shadow: none
}

.news__more {
    display: flex;
    justify-content: center;
    margin-top: 16px
}

/* ===== Programs ===== */
.programs {
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    padding: 64px 0 72px
}

.programs .title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #0A2d66;
    margin: 10px 0
}

.programs .lead {
    max-width: 72ch;
    margin: 0 auto 20px;
    color: #475569;
    text-align: center
}

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

.overline {
    display: inline-block;
    background: rgba(10, 74, 166, .1);
    color: #0A4AA6;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800
}

/* Tabs */
.tabs {
    margin-top: 8px
}

.tabs input {
    display: none
}

.tabs__labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px
}

.tabs__labels label {
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d8e2f2;
    background: #fff;
    font-weight: 800;
    color: #0A4AA6;
    user-select: none
}

#tab-m:checked ~ .tabs__labels label[for="tab-m"],
#tab-b:checked ~ .tabs__labels label[for="tab-b"],
#tab-d:checked ~ .tabs__labels label[for="tab-d"],
#tab-s:checked ~ .tabs__labels label[for="tab-s"] {
    background: #0A4AA6;
    color: #fff;
    border-color: #0A4AA6
}

.tab {
    display: none
}

#tab-m:checked ~ .tab[data-panel="m"],
#tab-b:checked ~ .tab[data-panel="b"],
#tab-d:checked ~ .tab[data-panel="d"],
#tab-s:checked ~ .tab[data-panel="s"] {
    display: block
}

/* Grid */
.grid02 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr)
}

/* ===== ABOUT CEO – Mech Seyha ===== */
.about-ceo {
    background: #fff;
    padding: 64px 0 72px
}

.ceo__head {
    text-align: center;
    margin-bottom: 40px
}

.about-ceo .title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #0A2d66;
    margin: 12px 0
}

.about-ceo .lead {
    max-width: 70ch;
    margin: 0 auto;
    color: #475569
}

.ceo__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center
}

@media (max-width:900px) {
    .ceo__grid {
        grid-template-columns: 1fr;
        text-align: center
    }
}

.ceo__photo {
    text-align: center
}

.ceo__photo img {
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(10, 30, 60, .18);
    margin-bottom: 12px
}

.ceo__photo h3 {
    font-weight: 900;
    margin: 0;
    color: #0A4AA6
}

.ceo__photo p {
    color: #6b7280;
    font-size: .95rem
}

.ceo__bio blockquote {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A4AA6;
    background: #f8faff;
    border-left: 4px solid #D4AF37;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px
}

.ceo__bio p {
    color: #374151;
    margin-bottom: 14px
}

.ceo__highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 14px
}

.ceo__highlights li {
    margin: 6px 0;
    font-weight: 600
}

/* key-value ライン */
.ceo__facts {
    display: grid;
    gap: 8px;
    margin: 8px 0 18px
}

.ceo__facts div {
    display: flex;
    gap: 6px;
    background: #f6f8ff;
    border: 1px solid #e3e9fb;
    padding: 8px 10px;
    border-radius: 10px;
    justify-content: space-between
}

.ceo__facts strong {
    color: #0A4AA6
}

.ceo__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* ===== OUR MOU ===== */
.mou {
    background: linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
    padding: 64px 0 72px;
    text-align: center;
}

.mou__head {
    margin-bottom: 40px;
}

.mou .title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #0A2d66;
    margin: 12px 0;
}

.mou .lead {
    max-width: 70ch;
    margin: 0 auto;
    color: #475569;
}

/* grid of partners */
.mou__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto 30px;
}

@media (max-width: 1000px) {
    .mou__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mou__grid {
        grid-template-columns: 1fr;
    }
}

.mou-card {
    background: #fff;
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(10, 30, 60, .08);
    transition: transform .25s, box-shadow .25s;
}

.mou-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10, 30, 60, .15);
}

.mou-card img {
    max-width: 120px;
    max-height: 60px;
    margin: 0 auto 12px;
    object-fit: contain;
    display: block;
}

.mou-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0A4AA6;
    margin: 8px 0;
}

.mou-card p {
    color: #475569;
    font-size: .9rem;
    margin: 0;
}

/* CTA */
.mou__cta {
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18);
}

.btn:hover {
    background: #08367a;
}

/* ===== GALLERY ===== */
.gallery-section {
    background: #fff;
    padding: 64px 0 72px;
}

.gallery__head {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-section .title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #0A2d66;
    margin: 12px 0;
}

.gallery-section .lead {
    max-width: 70ch;
    margin: 0 auto;
    color: #475569;
}

/* grid */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width:1024px) {
    .img-logoimg02 {
        width: 22%;
    }
}

@media (max-width: 1000px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.g-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* border-radius: 14px; */
    box-shadow: 0 6px 20px rgba(10, 30, 60, .08);

}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.g-item:hover img {
    transform: scale(1.1);
}

.g-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 70%);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 10px 12px;
    opacity: 0;
    transition: opacity .35s ease;
}

.g-item:hover figcaption {
    opacity: 1;
}

/* CTA */
.gallery__cta {
    margin-top: 24px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18);
}

.btn:hover {
    background: #08367a;
}

@media (max-width:900px) {
    .ceo__cta {
        justify-content: center
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18)
}

.btn:hover {
    background: #08367a
}

.btn--ghost {
    background: #fff;
    color: #0A4AA6;
    border: 2px solid #0A4AA6;
    box-shadow: none
}

.btn--ghost:hover {
    background: #0A4AA6;
    color: #fff
}

@media (max-width:900px) {
    .grid02 {
        grid-template-columns: 1fr
    }
}

/* Program card */
.p-card {
    background: #fff;
    border: 1px solid #e6ecf6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(10, 30, 60, .08);
    display: grid;
    grid-template-columns: 1.1fr 1.3fr
}

.p-card--compact {
    grid-template-columns: 1fr
}

@media (max-width:900px) {

    .p-card {
        grid-template-columns: 1fr
    }
}

.p-media {
    margin: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    overflow: hidden
}

.p-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02)
}

.p-body {
    padding: 16px
}

.p-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px
}

.chip {
    display: inline-block;
    background: #eef2ff;
    color: #0A4AA6;
    border: 1px solid #d6def5;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem
}

.chip--gold {
    background: rgba(212, 175, 55, .14);
    border-color: rgba(212, 175, 55, .45);
    color: #8a6a00
}

.p-body h3 {
    margin: .3rem 0 .3rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0b1b33
}

.p-body p {
    color: #435266;
    margin: 0 0 10px
}

.curr {
    background: #f6f8ff;
    border: 1px solid #e3e9fb;
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0
}

.curr summary {
    cursor: pointer;
    font-weight: 800;
    color: #0A4AA6
}

.curr ul {
    margin: 8px 0 0 16px;
    padding: 0
}

.curr li {
    margin: 4px 0
}

.p-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 16px;
    background: #0A4AA6;
    color: #fff;
    font-weight: 800;
    border: 2px solid transparent;
    box-shadow: 0 8px 24px rgba(10, 30, 60, .18);
    text-decoration: none
}

.btn:hover {
    background: #08367a
}

.btn--ghost {
    background: #fff;
    color: #0A4AA6;
    border-color: #0A4AA6;
    box-shadow: none
}

.programs__cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap
}

.nav02 {
    display: flex;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 2px;
}

/* Overlay Menu */
/* 矢印 */
.overlay-menu .arrow {
    font-size: 1rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* 開いた時に回転 */
.overlay-menu li.open > a .arrow {
    transform: rotate(90deg);
    /* ▶ が ▼ に変化 */
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
/*     height: 100vh; */
    background: #0A4AA6;
    /* IKEY Blue */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left .4s ease;
    z-index: 1000;
}

.overlay-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.overlay-menu li {
	text-align: justify;
    margin: 18px 0;
    position: relative;
}

.overlay-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.overlay-menu a:hover {
    color: var(--gold-ikey);
}

/* Dropdown (hidden by default) */
.overlay-menu .dropdown {
    display: none;
    flex-direction: column;
    margin-top: 10px;
}

.overlay-menu .dropdown a {
        font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    color: #0a4aa6;
    padding: 4px 0;
}

.overlay-menu li.open > .dropdown {
    display: flex;
}

/* Show overlay when checked */
#nav-toggle:checked ~ .nav .overlay-menu {
    left: 0;
}

.top-img_pc {
    display: none;
}
/* Section base */
.ikey-events {
  background:#B30000;
  color:#fff;
  padding:60px 0;
}
.ikey-container {
  width:min(1200px,90%);
  margin:auto;
}
.ikey-events__title {
  text-align:center;
  font-size:clamp(28px,5vw,38px);
  font-weight:900;
  margin-bottom:40px;
}

/* Grid */
.ikey-events__grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:30px;
}

/* Card */
.ikey-event-card {
  background:#fff;
  color:#222;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  transition:transform .25s, box-shadow .25s;
}
.ikey-event-card:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.ikey-event-card__media img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-bottom:5px solid var(--ikey-red);
}

/* Body */
.ikey-event-card__body {
  padding:20px 18px 24px;
  text-align:center;
}
.ikey-event-card__name {
  text-align: justify;
  font-weight:800;
  color:var(--ikey-blue);
  margin-bottom:14px;
  font-size:1.1rem;
  line-height:1.4;
}
.ikey-event-card__meta {
	    text-align: justify;
  font-size:.95rem;
  color:#444;
  margin-bottom:20px;
  border-top:1px solid #ddd;
  border-bottom:1px solid #ddd;
  padding:10px 0;
}
.ikey-event-card__meta p {
	    text-align: justify;
  margin:6px 0;
}
.ikey-event-card__btn {
  display:inline-block;
  background:var(--ikey-blue);
  color:#fff;
  padding:10px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
}
.ikey-event-card__btn:hover {
  background:#072d69;
}
@media(max-width:600px){
  .ikey-event-card__media img{height:280px;}
}
/* Responsive */
@media (max-width: 768px) {
    .top-img_pc {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .menu {
        display: none !important;
    }
}


/* responsive */
@media (max-width: 960px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .accent-bar {
        display: none
    }
}

@media (max-width: 900px) {
    .p-media img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
    }

    .p-media {
        margin: auto;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        overflow: hidden;
    }
}

@media (max-width:820px) {
    .menu {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* បើដាក់លើអេក្រង់តូច */
@media (max-width:640px) {
    .typewrap {
        display: block;
        border-radius: 10px;
    }
}

/* ======= Responsive ======= */
@media (max-width:991px) {
    .topbar__right {
        display: flex;
        align-items: center;
        margin: 0;
        /* margin-left: 250px; */
        /* margin-right: 150px; */
        gap: 14px;
        text-align: center;
        margin: auto;
        flex-wrap: nowrap;
        /* flex-direction: row-reverse; */
        justify-content: space-evenly;
    }

    .brand {
        text-align: center;
        display: block;
        align-items: center;
        gap: 14px;
    }

    .topbar__inner {
        display: block;
    }
}

@media (max-width: 960px) {
    .grid--3 {
        grid-template-columns: 1fr 1fr
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr)
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 768px) {
	.nav {
    background:none;
    border-bottom:none;
}
    .img-logoimg02 {
        width: 15%;
		margin-top:0px;
    }

    .nav02 {
        display: none;
    }

    .g-item {
        position: relative;
        text-align: center;
        margin: auto;
        width: 100%;
        overflow: hidden;
        /* border-radius: 14px; */
        box-shadow: 0 6px 20px rgba(10, 30, 60, .08);
    }

    .menu {
        display: none
    }

    .nav__inner {
        display: flex;
        align-items: center;
        justify-content: right;
        gap: 10px;
        padding: 5px 0px;
    }

    /* Mobile menu (checkbox hack) */
    #nav-toggle {
        display: none
    }



    .menu {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 50;
    }

    #nav-toggle:checked ~ .nav .menu {
        display: flex;
    }

    #nav-toggle:checked ~ .nav .menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 0
    }

    .grid--3 {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer__cols {
        grid-template-columns: 1fr
    }

    .slide {
        max-height: 420px
    }
}

@media (min-width:524px) {

    .lang_pc {
        display: none;
    }
}

@media (max-width:524px) {
    .img-logoimg02 {
        width: 20%;
    }

    .lang_sp {
        display: none;
    }

    .brand {
        margin-bottom: 15px;
    }

    .lang {
        align-items: center;
        gap: 8px;
        background: #08367a;
        color: #fff;
        padding: 6px 10px;
        border-radius: 12px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
    }
}
