/* HSBU Default Theme — Layout & Components */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-dark);
  overflow-x: hidden;
}

a { color: var(--indigo); }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; display: block; }
ol, ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

.site-layout { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ------------------------------------------------------------------ Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ------------------------------------------------------------------ Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 10px;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-seal {
  width: var(--logo-seal-size);
  height: var(--logo-seal-size);
  border-radius: 50%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-abbr {
  font-family: var(--font-khmer-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

.logo-name {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.3;
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  font-size: var(--fs-body);
  font-family: var(--font-khmer-body);
  white-space: nowrap;
  color: var(--text-dark);
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-list a:hover { color: var(--gold-deep); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-btn {
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-label);
  font-weight: 500;
  background: transparent;
  color: var(--text-dark);
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.lang-btn.active {
  background: var(--indigo);
  color: var(--white);
}

/* Mobile menu button */
.mobile-menu-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
}

/* Mobile nav dropdown */
.mobile-nav {
  border-top: 1px solid var(--border-default);
  background: var(--white);
  padding: var(--space-4) var(--container-pad);
  animation: menuIn var(--duration-fast) var(--ease-standard);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.mobile-nav-list a {
  text-decoration: none;
  font-size: var(--fs-body);
  font-family: var(--font-khmer-body);
  color: var(--text-dark);
}

/* Responsive: hide desktop nav, show mobile button */
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .logo-name { display: none; }
  .logo-seal { width: var(--logo-seal-size-sm); height: var(--logo-seal-size-sm); }
  .logo-img { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------------ Hero */
.hero-section {
  position: relative;
  background: var(--lacquer);
  color: var(--parchment);
  padding: var(--space-8) var(--container-pad) 80px;
  overflow: hidden;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity var(--hero-fade-duration) var(--ease-standard);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.hero-watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(206, 47, 37, 0.16);
  color: #F0A69F;
  border: 1px solid rgba(206, 47, 37, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-label);
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.35;
  color: var(--parchment);
  max-width: 820px;
}

.hero-subtitle {
  font-family: var(--font-latin);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--text-muted-inverse);
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* Slide dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.hero-dot {
  height: 9px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}

.hero-dot.active {
  width: 22px;
  background: var(--gold-primary);
}

.hero-dot:not(.active) {
  width: 9px;
  background: rgba(255, 255, 255, .5);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(0.97); }
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--lacquer);
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--lacquer);
  box-shadow: var(--shadow-md);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--parchment);
  border: 1.5px solid var(--parchment-2);
}
.btn-outline-inverse:hover {
  background: rgba(243, 231, 208, 0.12);
  color: var(--parchment);
}

/* ------------------------------------------------------------------ Stats Bar */
.stats-section { background: var(--lacquer-2); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-khmer-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-primary);
}

.stat-label {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--parchment);
}

/* ------------------------------------------------------------------ Mission Cards */
.cards-section {
  padding-block: var(--space-9);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(237, 176, 29, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-khmer-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.card-body {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text-muted);
}

.card-list {
  list-style: decimal;
  padding-left: 20px;
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  line-height: 1.9;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------------ Programs */
.programs-section {
  background: var(--surface-sunken);
  padding-block: var(--space-9);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-7);
}

.programs-col-heading {
  font-family: var(--font-khmer-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: var(--space-5);
}

.faculty-group { margin-bottom: var(--space-5); }

.faculty-name {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
  color: var(--gold-deep);
  margin-bottom: var(--space-2);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.course-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.course-check {
  flex-shrink: 0;
  color: var(--gold-primary);
}

.course-name {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  color: var(--text-dark);
  line-height: 1.9;
}

/* ------------------------------------------------------------------ News */
.news-section {
  padding-block: var(--space-9);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-heading {
  font-family: var(--font-khmer-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-dark);
}

.see-all-link {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  text-decoration: none;
  color: var(--indigo);
}

.see-all-link:hover { color: var(--gold-deep); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.news-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--lacquer-2);
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-body {
  padding: var(--space-5);
}

.news-card-date {
  font-family: var(--font-latin);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.news-card-title {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.news-card-link {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  text-decoration: none;
  color: var(--indigo);
}

.news-card-link:hover { color: var(--gold-deep); }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: var(--lacquer);
  color: var(--parchment);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  padding-block: var(--space-8);
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--parchment);
}

.footer-logo-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.footer-brand-abbr {
  font-family: var(--font-khmer-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1.2;
}

.footer-brand-name {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  color: var(--text-muted-inverse);
  line-height: 1.4;
  margin-top: 2px;
  max-width: 260px;
}

.footer-motto {
  font-family: var(--font-khmer-display);
  font-size: var(--fs-caption);
  color: var(--gold-primary);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

.footer-groups {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-group-heading {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--parchment);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer-group-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-group-links a {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--text-muted-inverse);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-group-links a:hover { color: var(--gold-primary); }

.footer-copyright {
  border-top: 1px solid var(--border-dark);
  padding-block: var(--space-5);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  color: var(--text-muted-inverse);
  text-align: center;
}

/* ------------------------------------------------------------------ Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration-slow) var(--ease-standard),
                transform var(--duration-slow) var(--ease-standard);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--shadow-gold-glow);
}

/* ------------------------------------------------------------------ Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No-JS banner */
.noscript-banner {
  background: var(--lacquer-2);
  color: var(--parchment);
  text-align: center;
  padding: var(--space-3) var(--container-pad);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  border-bottom: 1px solid var(--border-dark);
}

/* ------------------------------------------------------------------ Active nav link (contact page) */
.nav-list a.nav-link-active,
.mobile-nav-list a.nav-link-active {
  color: var(--gold-deep);
}

/* ------------------------------------------------------------------ Contact Page Hero */
.contact-page-hero {
  background: linear-gradient(180deg, var(--surface-sunken) 0%, var(--surface-page) 65%);
  padding-block: var(--space-8);
}

.contact-page-hero-inner {
  max-width: var(--contact-subtitle-max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.contact-page-hero-title {
  font-family: var(--font-khmer-display);
  font-size: var(--fs-display-2);
  font-weight: 400;
  line-height: var(--lh-display);
  color: var(--text-dark);
  margin: 0;
}

.contact-hero-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gold-primary);
}

.contact-hero-divider-line {
  width: 56px;
  height: 1px;
  background: var(--gold-primary);
}

.contact-page-hero-subtitle {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-body);
  max-width: var(--contact-subtitle-max-width);
  margin: 0;
}

/* ------------------------------------------------------------------ Contact Body */
.contact-body-section {
  padding-block: var(--space-9);
}

.contact-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Quick-contact cards (dark lacquer, gold icon badge) — phone & email */
.contact-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-quick-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--lacquer);
  border: 1px solid var(--lacquer);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.contact-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.contact-quick-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gold-tint-strong);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-quick-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-quick-label {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--parchment);
  line-height: var(--lh-label);
}

.contact-quick-value {
  font-family: var(--font-latin);
  font-size: var(--fs-caption);
  color: var(--gold-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-divider {
  height: 1px;
  background: var(--border-default);
  margin-block: var(--space-1);
}

/* Channel rows (parchment/white card, "View →" action) — facebook, telegram, address */
.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-channel-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.contact-channel-row:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.contact-channel-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gold-tint-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel-label {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-dark);
  line-height: var(--lh-label);
}

.contact-channel-value {
  font-family: var(--font-latin);
  font-size: var(--fs-body-sm);
  color: var(--indigo);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-channel-action {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-channel-row:hover .contact-channel-action { color: var(--gold-deep); }

/* Right column: campus photo + live map + message button */
.contact-media-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-photo-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
  min-height: var(--contact-photo-min-height);
}

.contact-photo-box.is-placeholder {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface-sunken);
}

.contact-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.contact-photo-placeholder-icon {
  display: flex;
  color: var(--gold-deep);
  opacity: 0.7;
}

.contact-photo-placeholder-label {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
}

.contact-map-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
  aspect-ratio: 3 / 2;
}

.contact-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contact-message-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gold-primary);
  color: var(--lacquer);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.contact-message-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 520px) {
  .contact-quick-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ News Page Hero */
.news-page-hero {
  background: linear-gradient(180deg, var(--surface-sunken) 0%, var(--surface-page) 65%);
  padding: var(--space-9) var(--container-pad) var(--space-8);
  text-align: center;
}

.news-page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.news-page-hero-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

.news-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-divider-line {
  width: 56px;
  height: 1px;
  background: var(--gold-primary);
}

.news-page-hero-sub {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.9;
}

/* ------------------------------------------------------------------ Category Pills */
.news-filter-section {
  padding: var(--space-6) var(--container-pad) 0;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.news-cat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-cat-pill {
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.news-cat-pill.active,
.news-cat-pill:hover {
  background: var(--gold-primary);
  color: var(--lacquer);
  border-color: var(--gold-primary);
}

/* ------------------------------------------------------------------ News Badge */
.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ Featured Article */
.news-featured-section {
  padding: var(--space-7) var(--container-pad) var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.news-featured-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.news-featured-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-featured-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--lacquer-2);
  overflow: hidden;
}

.news-featured-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-featured-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.news-featured-excerpt {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.news-read-link {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--indigo);
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.news-read-link:hover { color: var(--gold-deep); }

@media (max-width: 768px) {
  .news-featured-card { grid-template-columns: 1fr; }
  .news-featured-img  { aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------------ News Grid Section */
.news-grid-section {
  padding: 0 var(--container-pad) var(--space-9);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.news-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ Load More */
.news-load-more-wrap {
  justify-content: center;
  margin-top: var(--space-7);
}

.news-load-more-btn {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  padding: 14px 40px;
  border-radius: var(--radius-md);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.news-load-more-btn:hover {
  background: var(--indigo);
  color: var(--white);
}

/* ------------------------------------------------------------------ Pagination */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
}

.news-page-btn {
  min-width: 42px;
  padding: 10px 14px;
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  border-radius: var(--radius-md);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}

.news-page-btn:hover:not(:disabled):not(.active) {
  background: var(--indigo);
  color: var(--white);
}

.news-page-btn.active {
  background: var(--indigo);
  color: var(--white);
  cursor: default;
}

.news-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================================================================== ABOUT PAGE */

/* ------------------------------------------------------------------ Section headers */
.about-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-9) var(--container-pad) var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.about-section-header--dark { padding-top: var(--space-9); }
.about-section-num {
  font-family: var(--font-khmer-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--gold-primary);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}
.about-section-num--light { color: var(--gold-primary); opacity: 0.8; }
.about-section-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}
.about-section-title--light { color: var(--white); }

/* ------------------------------------------------------------------ History */
.about-history-section { background: var(--surface-page); }
.about-history-para {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.9;
  margin: 0 auto var(--space-5);
  max-width: var(--container-max);
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ Establishment */
.about-estab-section { background: var(--surface-sunken); padding-bottom: var(--space-9); }
.about-decree-line {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  margin: 0 auto var(--space-6);
  font-style: italic;
}
.about-card-col-heading {
  font-family: var(--font-khmer-display);
  font-size: var(--fs-body-lg);
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gold-primary);
}
.about-numbered-list { display: flex; flex-direction: column; gap: var(--space-2); }
.about-numbered-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.about-num-label {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--gold-deep);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 1.4em;
}
.about-num-text { font-family: var(--font-khmer-body); font-size: var(--fs-body); color: var(--text-body); line-height: 1.8; }
.about-verify-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: monospace;
  vertical-align: middle;
  margin-left: 6px;
}
.about-structure-note { font-family: var(--font-khmer-body); font-size: var(--fs-body-sm); color: var(--text-muted); margin-top: var(--space-5); line-height: 1.8; }

/* ------------------------------------------------------------------ VMG */
.about-vmg-section { background: var(--surface-page); padding-bottom: var(--space-9); }
.about-vmg-section .cards-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}
.about-checklist { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.about-check-row { display: flex; align-items: flex-start; gap: 10px; }
.about-check-text { font-family: var(--font-khmer-body); font-size: var(--fs-body-sm); color: var(--text-body); line-height: 1.8; }

/* ------------------------------------------------------------------ Leadership */
.about-lead-section { background: var(--surface-sunken); padding-bottom: var(--space-9); }
.about-lead-section .news-cat-pills {
  max-width: var(--container-max);
  margin: 0 auto var(--space-6);
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}
.lead-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-spring);
}
.lead-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.lead-card-photo { width: 100%; aspect-ratio: 3/4; background: var(--surface-sunken); overflow: hidden; }
.lead-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.lead-card-body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 4px; }
.lead-card-name { font-family: var(--font-khmer-body); font-size: var(--fs-body); font-weight: 700; color: var(--text-dark); line-height: 1.5; }
.lead-card-title { font-family: var(--font-khmer-body); font-size: var(--fs-body-sm); color: var(--gold-deep); font-weight: 600; }
.lead-card-unit { font-family: var(--font-khmer-body); font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* ------------------------------------------------------------------ Org chart */
.orgchart-toggle {
  display: block;
  margin: var(--space-7) auto 0;
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.orgchart-toggle:hover { background: var(--indigo); color: var(--white); }
.orgchart-wrap { margin: var(--space-6) auto 0; max-width: var(--container-max); padding: 0 var(--container-pad); box-sizing: border-box; text-align: center; }
.orgchart-wrap img { max-width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }

/* ------------------------------------------------------------------ Gallery */
.about-gallery-section { background: var(--lacquer); padding-bottom: var(--space-9); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.gallery-item { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.gallery-btn { display: block; width: 100%; background: none; border: none; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius-md); }
.gallery-btn img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform var(--duration-base) var(--ease-standard); }
.gallery-btn:hover img { transform: scale(1.04); }
.gallery-caption { font-family: var(--font-khmer-body); font-size: var(--fs-body-sm); color: rgba(255,255,255,0.75); text-align: center; padding: var(--space-2) var(--space-2) 0; line-height: 1.6; }

/* ------------------------------------------------------------------ Lightbox */
.about-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.about-lightbox img { max-width: min(90vw, 1200px); max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 0 60px rgba(0,0,0,0.7); }

/* ------------------------------------------------------------------ About responsive */
@media (max-width: 600px) {
  .lead-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .lead-card-photo { aspect-ratio: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
/* ================================================================== PROGRAMS PAGE */

/* ------------------------------------------------------------------ Filter section */
.prog-filter-section {
  padding: var(--space-6) var(--container-pad) 0;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ Content area */
.prog-content-section {
  padding: var(--space-7) var(--container-pad) var(--space-9);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.prog-groups-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ------------------------------------------------------------------ Faculty group */
.prog-faculty-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.prog-faculty-heading {
  font-family: var(--font-khmer-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--gold-deep);
}

/* ------------------------------------------------------------------ Program cards grid */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

/* ------------------------------------------------------------------ Program card */
.prog-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.prog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------------ Level badge */
.prog-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.5;
  width: max-content;
}

.prog-badge--gold   { background: rgba(237,176,29,0.15); color: var(--gold-deep); }
.prog-badge--indigo { background: rgba(47,43,112,0.10);  color: var(--indigo); }

/* ------------------------------------------------------------------ Program name */
.prog-name {
  font-family: var(--font-khmer-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

/* ------------------------------------------------------------------ Duration / credits chips */
.prog-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.prog-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-khmer-body);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.prog-chip--gold  { background: rgba(237,176,29,0.14); color: var(--gold-deep); }
.prog-chip--muted { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border-default); }

/* ------------------------------------------------------------------ Detail toggle button */
.prog-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  color: var(--indigo);
  text-align: left;
  margin-top: auto;
  transition: color var(--duration-fast) var(--ease-standard);
}

.prog-toggle-btn:hover { color: var(--gold-deep); }

/* ------------------------------------------------------------------ Expanded detail panel */
.prog-detail {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.prog-detail-heading {
  font-family: var(--font-khmer-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.prog-checklist { display: flex; flex-direction: column; gap: 6px; }

.prog-check-row { display: flex; align-items: flex-start; gap: 8px; }

.prog-check-text {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body-sm);
  line-height: 1.9;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ TODO badge */
.prog-todo-badge {
  display: inline-block;
  font-size: var(--fs-caption);
  color: var(--crimson);
  border: 1px dashed var(--crimson);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: monospace;
  width: max-content;
}

/* ------------------------------------------------------------------ Programs responsive */
@media (max-width: 600px) {
  .prog-grid { grid-template-columns: 1fr; }
}

/* ================================================================== NEWS ARTICLE VIEW */

.news-article-content {
  padding: var(--space-6) var(--container-pad) var(--space-9);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.news-back-link {
  display: inline-block;
  margin-bottom: var(--space-5);
}

.news-article-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-6);
}

.news-article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-article-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0 0 var(--space-5);
}

.news-article-divider {
  width: 72px;
  height: 2px;
  background: var(--gold-primary);
  margin-bottom: var(--space-5);
}

.news-article-body {
  font-family: var(--font-khmer-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

.news-article-text .news-article-body:last-child { margin-bottom: 0; }

.news-article-related {
  margin-top: var(--space-9);
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-7);
}

.news-article-related-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-6);
}

.news-article-related-line {
  width: 36px;
  height: 2px;
  background: var(--gold-primary);
  flex-shrink: 0;
}

.news-article-related-title {
  font-family: var(--font-khmer-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}