@charset "UTF-8";
/* =========================================================
   Faculty of Sports Science, Burapha University
   Design system + components
   ========================================================= */

:root {
  --navy-950: #061324;
  --navy-900: #08182b;
  --navy-800: #0b1c30;
  --navy-700: #122c47;
  --navy-600: #1c3d5c;
  --green-800: #064e26;
  --green-700: #0a5c2f;
  --green-600: #0f6b37;
  --green-500: #16803f;
  --green-400: #2a9a54;
  --green-100: #e5f4e9;
  --green-50: #f1f9f3;
  --gold-700: #6f5400; /* ปรับให้คอนทราสต์ ≥ 4.5 บนพื้นสีอ่อน */
  --gold-600: #b58b0a;
  --gold-500: #eeb31c;
  --gold-400: #f7c948;
  --gold-200: #ffe9ac;
  --gold-100: #fff5d6;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --line: #e1e8f0;
  --line-strong: #cbd7e3;
  --text: #0b1c30;
  --text-2: #33465c;
  --muted: #5d6f82;
  --muted-2: #7b8b9c;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(8, 24, 43, 0.05);
  --shadow-sm: 0 2px 6px rgba(8, 24, 43, 0.04), 0 12px 30px -18px rgba(8, 24, 43, 0.2);
  --shadow-md: 0 18px 50px -24px rgba(8, 24, 43, 0.35);
  --shadow-lg: 0 40px 80px -32px rgba(8, 24, 43, 0.45);
  --font-body: "Noto Sans Thai", "Sarabun", "Thonburi", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
  --header-h: 156px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--gold-300); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid rgba(238, 179, 28, 0.75);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 300;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ซ่อนจากสายตาแต่ยังให้ screen reader อ่าน (ใช้กับหัวข้อที่ต้องการลำดับ heading ที่ถูกต้อง) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 660px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.eyebrow--gold { color: var(--gold-500); }
.eyebrow--light { color: var(--gold-200); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.text-muted { color: var(--muted); }
.text-green { color: var(--green-600); }
.text-gold { color: var(--gold-500); }
.lead { font-size: 1.06rem; line-height: 1.8; color: var(--text-2); }
.small { font-size: 0.83rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--tint { background: linear-gradient(180deg, #f2f6fa 0%, #f7f9fc 100%); }
.section--white { background: var(--surface); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}
.section-head > div { max-width: 760px; }
.section-head .section-title { margin-top: 10px; }
.section-head .section-sub { margin-top: 10px; }
.section-head--center {
  display: block;
  text-align: center;
  margin-inline: auto;
}
.section-head--center .section-sub { margin-inline: auto; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: 0.2s var(--ease);
}
.section-link:hover { gap: 11px; color: var(--green-800); border-color: var(--green-600); }
.section-link .ms { font-size: 18px; }

/* ---------- Icons ---------- */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  /* กล่องขนาดคงที่ 1em — กัน layout shift ตอนฟอนต์ไอคอนยังโหลดไม่เสร็จ
     (ก่อนฟอนต์มาถึง ตัวอักษร ligature เช่น "campaign" จะกว้างกว่าปกติ) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex-shrink: 0;
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-600);
  --btn-color: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.35;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px -4px rgba(8, 24, 43, 0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(8, 24, 43, 0.55); }
.btn:active { transform: translateY(0); }
.btn .ms { font-size: 20px; }
.btn--primary { --btn-bg: var(--green-600); }
.btn--primary:hover { --btn-bg: var(--green-700); }
.btn--navy { --btn-bg: var(--navy-800); }
.btn--navy:hover { --btn-bg: var(--navy-700); }
.btn--gold { --btn-bg: var(--gold-500); --btn-color: var(--navy-900); }
.btn--gold:hover { --btn-bg: var(--gold-400); }
.btn--light { --btn-bg: #fff; --btn-color: var(--green-700); }
.btn--light:hover { --btn-bg: var(--green-50); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); }
.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--navy-800);
  --btn-border: var(--line-strong);
  box-shadow: none;
}
.btn--outline:hover { --btn-bg: var(--surface); --btn-border: var(--green-500); --btn-color: var(--green-700); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.84rem; border-radius: 8px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }
.link-arrow .ms { font-size: 17px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  transition: 0.2s;
}
.icon-btn:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip--gold { background: var(--gold-100); color: var(--gold-700); }
.chip--navy { background: #e8eef7; color: var(--navy-700); }
.chip--light { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(6px); }
.chip .ms { font-size: 14px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(8, 24, 43, 0.08);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -16px rgba(8, 24, 43, 0.35); }

/* จองความสูงส่วนหัวไว้ล่วงหน้า — header ถูกฉีดด้วย JS ถ้าไม่จองไว้
   เนื้อหาทั้งหน้าจะถูกดันลงหลังโหลดสคริปต์เสร็จ (สาเหตุหลักของ CLS)
   ค่าเหล่านี้ตรงกับความสูงจริงของ header ในแต่ละช่วงความกว้าง */
#siteHeader { min-height: 106px; }
html.header-ready #siteHeader { min-height: 0; }
@media (min-width: 761px) { #siteHeader { min-height: 112px; } }
@media (min-width: 1020px) { #siteHeader { min-height: 160px; } }
.topbar {
  background: var(--navy-900);
  color: #dbe6f2;
  font-size: 0.78rem;
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.35s var(--ease), opacity 0.25s;
}
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; }
.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-msg { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-msg .ms { color: var(--gold-400); font-size: 16px; }
.topbar-msg strong {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.topbar-msg span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b9c8d8;
}
.topbar-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.topbar-links a, .topbar-links button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: #c8d5e4;
  border-radius: 5px;
  font-size: 0.75rem;
  transition: 0.2s;
}
.topbar-links a:hover, .topbar-links button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.topbar-links .is-active { color: var(--gold-300); font-weight: 700; }
.topbar-links .sep { width: 1px; height: 13px; background: rgba(255, 255, 255, 0.18); }
.topbar-cta {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  font-weight: 700 !important;
  padding: 5px 11px !important;
}
.masthead { background: #fff; }
.masthead-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-copy span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.84rem;
  transition: 0.2s;
}
.header-search:hover { border-color: var(--line-strong); color: var(--text); background: #fff; }
.header-search .ms { font-size: 19px; color: var(--green-600); }
.header-search kbd {
  font-family: var(--font-display);
  font-size: 10px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--muted-2);
  background: #fff;
}
.header-apply { min-height: 42px; padding: 9px 18px; }
.menu-toggle { display: none; }
.navbar { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: 0.18s;
  border: 0;
  background: transparent;
}
.nav-link:hover { background: var(--green-50); color: var(--green-700); }
.nav-link.is-active { color: var(--green-700); background: var(--green-100); }
.nav-link .ms { font-size: 17px; }
.nav-link--cta { color: var(--green-700); }
.nav-link--cta .ms { color: var(--gold-600); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s var(--ease);
  z-index: 120;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: 0.16s;
}
.nav-dropdown a:hover { background: var(--bg); }
.nav-dropdown .dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown .dd-icon .ms { font-size: 17px; }
.nav-dropdown strong { display: block; font-size: 0.82rem; line-height: 1.4; font-weight: 600; }
.nav-dropdown small { display: block; font-size: 0.7rem; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.nav-dropdown .dd-all {
  margin-top: 6px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 700;
}
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  white-space: nowrap;
}
.nav-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(22, 128, 63, 0.14);
  animation: pulse 2.4s infinite;
}

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 19, 36, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 190;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: #fff;
  z-index: 200;
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.18);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand-copy strong { font-size: 1rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; }
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.95rem;
}
.drawer-link .ms { color: var(--muted-2); font-size: 19px; }
.drawer-link:hover, .drawer-link.is-active { background: var(--green-50); color: var(--green-700); }
.drawer-sub { padding: 0 12px 8px 30px; display: none; }
.drawer-sub.open { display: block; }
.drawer-sub a {
  display: block;
  padding: 8px 0;
  font-size: 0.83rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.drawer-sub a:hover { color: var(--green-700); }
.drawer-cta { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-meta { display: flex; gap: 14px; justify-content: center; padding-top: 4px; font-size: 12px; color: var(--muted); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 19, 36, 0.97) 0%, rgba(6, 19, 36, 0.9) 38%, rgba(6, 19, 36, 0.55) 70%, rgba(6, 19, 36, 0.4) 100%),
    linear-gradient(0deg, rgba(6, 19, 36, 0.92) 0%, rgba(6, 19, 36, 0) 55%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  padding-top: 78px;
  padding-bottom: 42px;
}
.hero-copy { max-width: 810px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #dce8f3;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(247, 201, 72, 0.16);
  animation: pulse 2.2s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 span {
  display: block;
  color: var(--gold-300);
  text-shadow: 0 4px 40px rgba(238, 179, 28, 0.18);
}
.hero-en {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9db1c5;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  color: #c3d1df;
  max-width: 660px;
  margin-bottom: 30px;
}
.hero .btn-row { margin-bottom: 46px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.6);
}
.hero-stat {
  position: relative;
  padding: 20px 22px;
  background: rgba(8, 24, 43, 0.46);
}
.hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.hero-stat:nth-child(odd)::before { background: #7fe39a; }
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-300);
  font-weight: 700;
}
.hero-stat:nth-child(odd) b { color: #9ef0b0; }
.hero-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8eff6;
  margin-top: 8px;
}
.hero-stat small { display: block; color: #93a6b8; font-size: 0.69rem; line-height: 1.4; margin-top: 2px; }
.hero-scroll {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ea2b6;
  writing-mode: vertical-rl;
}
.hero-scroll .ms { font-size: 16px; animation: floatY 2s infinite; }

/* =========================================================
   URGENT ANNOUNCEMENT (ประกาศด่วน)
   ========================================================= */
.urgent-wrap { position: relative; z-index: 11; margin-top: -34px; }
.urgent-wrap[hidden] { display: none; }
.urgent-wrap:not([hidden]) + .quick-wrap { margin-top: 18px; }
.urgent-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  /* จองความสูงขั้นต่ำให้เท่ากับตอนแสดงประกาศจริง — กัน CLS ตอน JS ใสประกาศเข้ามา */
  min-height: 174px;
  border-radius: 16px;
  background: linear-gradient(120deg, #7f1d1d 0%, #b42318 55%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 26px 50px -30px rgba(127, 29, 29, 0.75);
}
.urgent-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.urgent-label .ms { font-size: 16px; }
.urgent-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.urgent-copy strong { font-size: 0.9rem; line-height: 1.45; }
.urgent-copy span {
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.urgent-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 9px;
  background: #fff;
  color: #7f1d1d;
  font-size: 0.78rem;
  font-weight: 700;
  transition: 0.18s var(--ease);
}
.urgent-cta:hover { background: var(--gold-200); color: #5f1616; }
.urgent-cta .ms { font-size: 16px; }

@media (max-width: 860px) {
  .urgent-panel { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .urgent-copy { flex: 1 1 100%; order: 3; }
  .urgent-copy span { -webkit-line-clamp: 3; }
  .urgent-cta { margin-left: auto; }
}
@media (min-width: 861px) {
  .urgent-panel { min-height: 100px; }
}

/* =========================================================
   QUICK ACCESS
   ========================================================= */
.quick-wrap { position: relative; z-index: 10; margin-top: -34px; }
.quick-panel {
  background: #fff;
  border: 1px solid rgba(225, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 30px 60px -34px rgba(8, 24, 43, 0.4);
  padding: 22px;
}
.quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.quick-head .eyebrow { font-size: 0.66rem; }
.quick-head h2 { font-size: 1.06rem; margin-top: 3px; letter-spacing: -0.01em; }
.quick-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 6px; }
.quick-hint .ms { font-size: 15px; color: var(--green-600); }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px 12px;
  border-radius: 11px;
  transition: 0.2s var(--ease);
  border: 1px solid transparent;
}
.quick-item:hover { background: var(--bg); border-color: var(--line); transform: translateY(-2px); }
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: 0.22s;
}
.quick-icon .ms { font-size: 23px; }
.quick-item:nth-child(2) .quick-icon { background: var(--gold-100); color: var(--gold-700); }
.quick-item:nth-child(3) .quick-icon { background: #e8eef7; color: var(--navy-700); }
.quick-item:nth-child(4) .quick-icon { background: #eef0fd; color: #3f4f9c; }
.quick-item:nth-child(5) .quick-icon { background: var(--gold-100); color: var(--gold-700); }
.quick-item:nth-child(6) .quick-icon { background: var(--green-100); color: var(--green-700); }
.quick-item:hover .quick-icon { background: var(--green-600); color: #fff; transform: scale(1.05); }
.quick-item strong { font-size: 0.81rem; line-height: 1.4; font-weight: 700; color: var(--text); }
.quick-item small { font-size: 0.65rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* =========================================================
   NEWS
   ========================================================= */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.18s;
}
.filter-btn:hover { background: #e6edf5; color: var(--navy-900); }
.filter-btn.is-active { background: var(--green-600); color: #fff; border-color: var(--green-600); box-shadow: 0 4px 12px -6px rgba(15, 107, 55, 0.6); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  animation: cardIn 0.45s var(--ease) both;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5e1eb; }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.055); }
.news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 19, 36, 0.32), transparent 50%);
}
.news-cat {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.news-cat[data-cat="กีฬา"] { background: var(--gold-500); color: var(--navy-900); }
.news-cat[data-cat="วิจัย"] { background: var(--navy-700); color: #fff; }
.news-cat[data-cat="กิจกรรม"] { background: #fff; color: var(--navy-800); }
.news-date {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(6, 19, 36, 0.72);
  backdrop-filter: blur(6px);
  color: #e9eff5;
  font-size: 0.63rem;
  font-family: var(--font-display);
}
.news-body { padding: 16px 17px 15px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 {
  font-family: var(--font-body);
  font-size: 0.91rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover h3 { color: var(--green-700); }
.news-body p {
  margin-top: 7px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-700);
}
.news-foot .ms { font-size: 17px; transition: transform 0.2s; }
.news-card:hover .news-foot .ms { transform: translateX(4px); }
.news-hidden { display: none !important; }
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}
.news-empty .ms { font-size: 36px; color: var(--muted-2); display: block; margin-bottom: 8px; }
.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* =========================================================
   PROGRAMS
   ========================================================= */
.level-tabs {
  display: inline-flex;
  padding: 4px;
  background: #e9eff6;
  border-radius: 11px;
  gap: 2px;
}
.level-tab {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #52616f;
  transition: 0.2s;
  white-space: nowrap;
}
.level-tab .en { font-family: var(--font-display); font-size: 0.66rem; font-weight: 500; margin-left: 5px; letter-spacing: 0.02em; }
.level-tab:hover { color: var(--navy-900); }
.level-tab.is-active { background: #fff; color: var(--green-700); box-shadow: 0 2px 8px rgba(8, 24, 43, 0.1); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card {
  --accent: var(--green-600);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: cardIn 0.45s var(--ease) both;
}
.program-card::before {
  content: "";
  height: 5px;
  background: var(--accent);
  width: 100%;
  flex-shrink: 0;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-body { padding: 22px 22px 0; display: flex; flex-direction: column; flex: 1; }
.program-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.degree-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--gold-700);
  font-size: 0.7rem;
  font-weight: 700;
}
.duration { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.duration .ms { font-size: 14px; color: var(--accent); }
.program-card h3 { font-size: 1.16rem; line-height: 1.45; color: var(--navy-900); }
.program-en {
  font-family: var(--font-display);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.program-desc {
  margin-top: 13px;
  font-size: 0.79rem;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.program-careers { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.program-careers > span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.66rem;
  color: var(--text-2);
  line-height: 1.5;
}
.program-actions { display: flex; gap: 7px; padding: 17px 22px 20px; }
.program-actions .btn { flex: 1; font-size: 0.8rem; min-height: 40px; padding: 8px 12px; }
.program-actions .icon-btn { width: 40px; height: 40px; flex-shrink: 0; }
.program-note {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}
.program-note .ms { color: var(--gold-600); font-size: 20px; margin-top: 1px; }
.program-note strong { color: var(--text); }

/* =========================================================
   HALL OF FAME
   ========================================================= */
.hall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hall-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
  isolation: isolate;
}
.hall-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.hall-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 19, 36, 0.95) 4%, rgba(6, 19, 36, 0.55) 48%, rgba(6, 19, 36, 0.1) 100%);
}
.hall-card:hover img { transform: scale(1.06); }
.hall-card--green::after {
  background: linear-gradient(0deg, rgba(6, 78, 38, 0.97) 4%, rgba(6, 78, 38, 0.72) 48%, rgba(6, 78, 38, 0.22) 100%);
}
.hall-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hall-top .chip { backdrop-filter: blur(8px); }
.hall-rank {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-300);
  border: 1px solid rgba(255, 223, 154, 0.4);
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(6, 19, 36, 0.25);
  backdrop-filter: blur(6px);
}
.hall-bottom { display: flex; flex-direction: column; gap: 8px; }
.hall-bottom .kicker {
  font-family: var(--font-display);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hall-bottom h3 { font-size: 1.24rem; line-height: 1.42; color: #fff; }
.hall-bottom p { font-size: 0.78rem; line-height: 1.65; color: #c7d4e1; }
.hall-card--white {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green-600);
  isolation: auto;
}
.hall-card--white::after { display: none; }
.hall-card--white img { display: none; }
.hall-card--white .hall-top .chip { background: var(--green-100); color: var(--green-700); }
.hall-card--white .hall-rank { color: var(--muted); border-color: var(--line); background: var(--bg); }
.hall-card--white .hall-bottom .kicker { color: var(--green-700); }
.hall-card--white .hall-bottom h3 { color: var(--navy-900); font-size: 1.16rem; }
.hall-card--white .hall-bottom p { color: var(--muted); }
.hall-seal {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--green-600);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 auto;
}
.hall-seal .ms { font-size: 30px; }
.hall-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--muted);
}
.hall-foot strong { color: var(--green-700); font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.04em; }

/* =========================================================
   CAMPUS GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 245px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--surface-2);
  text-align: left;
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 19, 36, 0.92) 0%, rgba(6, 19, 36, 0.25) 52%, transparent 100%);
  z-index: 1;
  transition: opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.055); }
.gallery-item:hover::after { opacity: 0.92; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--xwide { grid-column: span 3; }
.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}
.gallery-caption .chip { font-size: 0.6rem; padding: 3px 7px; margin-bottom: 7px; }
.gallery-caption h3 { font-size: 1rem; line-height: 1.4; color: #fff; }
.gallery-caption p { font-size: 0.68rem; line-height: 1.55; color: #c0cedc; margin-top: 3px; }
.gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.25s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }
.gallery-zoom .ms { font-size: 16px; }

/* =========================================================
   FACILITIES
   ========================================================= */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facility-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.facility-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--green-50);
  transition: transform 0.4s var(--ease);
}
.facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ec; }
.facility-card:hover::after { transform: scale(1.4); }
.facility-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.facility-icon .ms { font-size: 24px; }
.facility-card:nth-child(2n) .facility-icon { background: var(--gold-100); color: var(--gold-700); }
.facility-card:nth-child(3n) .facility-icon { background: #e8eef7; color: var(--navy-700); }
.facility-card h3 { font-size: 0.98rem; line-height: 1.45; position: relative; z-index: 1; }
.facility-en {
  font-family: var(--font-display);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.facility-card p {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.facility-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-700);
}
.facility-foot .ms { font-size: 15px; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-band { padding-bottom: 90px; }
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 90% -10%, rgba(247, 201, 72, 0.22), transparent 60%),
    linear-gradient(115deg, var(--green-800) 0%, var(--green-600) 58%, #1a7a45 100%);
  color: #fff;
  padding: 50px 54px;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 30px 70px -40px rgba(6, 78, 38, 0.7);
  isolation: isolate;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px);
  z-index: -1;
}
.cta-inner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, 0.06);
  z-index: -1;
}
.cta-copy .chip { margin-bottom: 16px; }
.cta-copy h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.3; letter-spacing: -0.025em; color: #fff; }
.cta-copy h2 em { font-style: normal; color: var(--gold-300); }
.cta-copy p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; line-height: 1.8; margin-top: 12px; max-width: 600px; }
.cta-copy .btn-row { margin-top: 24px; }
.cta-side {
  background: rgba(6, 19, 36, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.cta-side .label {
  font-family: var(--font-display);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.cta-side .big-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 5px 0 10px;
}
.cta-side .big-date b { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: #fff; }
.cta-side .big-date span { font-size: 0.8rem; color: #dfe9e2; }
.cta-side ul { display: grid; gap: 7px; }
.cta-side li { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; color: #dce9e1; }
.cta-side li .ms { font-size: 15px; color: var(--gold-300); }
.cta-side .btn { margin-top: 15px; width: 100%; }

/* =========================================================
   CONTACT / FORM
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 26px; align-items: start; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}
.info-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; }
.info-card h3 .ms { color: var(--green-600); font-size: 24px; }
.info-card > p { margin-top: 8px; font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
.info-list { margin-top: 20px; display: grid; gap: 15px; }
.info-list li { display: flex; align-items: flex-start; gap: 11px; }
.info-list .ms { font-size: 19px; color: var(--green-600); margin-top: 2px; }
.info-list strong { display: block; font-size: 0.75rem; color: var(--navy-900); margin-bottom: 1px; }
.info-list span, .info-list a { font-size: 0.76rem; color: var(--muted); line-height: 1.65; }
.info-list a:hover { color: var(--green-700); text-decoration: underline; }
.map-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.map-head span { font-size: 0.76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.map-head .ms { font-size: 17px; color: var(--green-600); }
.map-head a { font-size: 0.7rem; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 3px; }
.map-frame { height: 220px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.88) contrast(1.02); }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px -40px rgba(8, 24, 43, 0.55);
}
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-head h3 { font-size: 1.14rem; }
.form-head p { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.form-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 700; color: var(--navy-900); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfe;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  transition: 0.18s;
  min-height: 42px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6f82' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c6d6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 128, 63, 0.12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: var(--danger-bg); }
.field-error { font-size: 0.66rem; color: var(--danger); display: none; }
.field.has-error .field-error { display: block; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.69rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 2px;
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green-600);
  flex-shrink: 0;
}
.checkbox a { color: var(--green-700); text-decoration: underline; }
.form-foot { margin-top: 16px; }
.form-foot .btn { width: 100%; }
.form-note { margin-top: 9px; text-align: center; font-size: 0.64rem; color: var(--muted); line-height: 1.6; }
.form-success {
  display: none;
  text-align: center;
  padding: 34px 18px;
}
.form-success.show { display: block; animation: cardIn 0.4s var(--ease); }
.form-success .success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.form-success .success-icon .ms { font-size: 34px; }
.form-success h3 { font-size: 1.2rem; }
.form-success p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.form-success .ref {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--green-700);
  letter-spacing: 0.05em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500), var(--green-500));
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 46px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .logo-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand h3 { font-size: 1.02rem; line-height: 1.35; color: #fff; }
.footer-brand span { font-family: var(--font-display); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: #8ea2b6; }
.footer-desc { margin-top: 14px; font-size: 0.77rem; line-height: 1.8; color: #9fb1c3; max-width: 330px; }
.footer-social { display: flex; gap: 8px; margin-top: 17px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0cede;
  transition: 0.2s;
}
.footer-social a:hover { background: var(--green-600); color: #fff; border-color: var(--green-500); transform: translateY(-2px); }
.footer-social .ms { font-size: 18px; }
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--gold-300);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: 0.75rem; color: #a3b4c6; line-height: 1.6; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; transition: 0.18s; }
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-col .ms { font-size: 14px; color: #6f8499; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact .ms { color: var(--green-400); margin-top: 2px; }
.footer-newsletter { margin-top: 15px; }
.footer-newsletter form {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}
.footer-newsletter input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 9px 11px;
  color: #fff;
  font-size: 0.72rem;
}
.footer-newsletter input::placeholder { color: #7f94a8; }
.footer-newsletter input:focus { outline: none; }
.footer-newsletter button {
  border: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.footer-newsletter button:hover { background: var(--gold-400); }
.footer-newsletter button .ms { font-size: 18px; }
.footer-note { margin-top: 9px; font-size: 0.62rem; color: #7b90a5; line-height: 1.6; }
.footer-badges { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.footer-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  color: #a9bacb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 4px 7px;
}
.footer-badges .ms { font-size: 12px; color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.67rem;
  color: #7f93a7;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom .footer-admin-link { display: inline-flex; align-items: center; gap: 5px; }
.footer-bottom .footer-admin-link .ms { font-size: 16px; opacity: 0.85; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .thai-flag { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .thai-flag i {
  width: 14px;
  height: 9px;
  border-radius: 1px;
  background: linear-gradient(180deg, #b42318 16%, #fff 16% 38%, #1e3a8a 38% 62%, #fff 62% 84%, #b42318 84%);
  display: inline-block;
}

/* =========================================================
   PAGE HERO (subpages)
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 85% 10%, rgba(247, 201, 72, 0.14), transparent 65%),
    linear-gradient(115deg, var(--navy-950), var(--navy-800) 55%, #11324b);
  color: #fff;
  padding: 54px 0 60px;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 64px solid rgba(255, 255, 255, 0.04);
  z-index: -1;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: #8ea3b8;
  margin-bottom: 20px;
}
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs .ms { font-size: 13px; opacity: 0.6; }
.breadcrumbs span[aria-current] { color: #dbe6f1; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.05rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 880px;
}
.page-hero .page-hero-en {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 10px;
}
.page-hero p {
  margin-top: 12px;
  max-width: 720px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: #b8c7d6;
}
.page-hero .chip { margin-bottom: 14px; }
.page-hero .btn-row { margin-top: 22px; }
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 780px;
}
.page-hero-meta li { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: #b8c7d6; }
.page-hero-meta .ms { font-size: 16px; color: var(--gold-400); }

/* =========================================================
   SUBPAGE CONTENT
   ========================================================= */
.prose { max-width: 790px; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.14rem; margin: 24px 0 8px; }
.prose p { margin: 12px 0; color: var(--text-2); line-height: 1.9; font-size: 0.93rem; }
.prose ul { margin: 14px 0; padding-left: 2px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-2); line-height: 1.75; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold-500);
}
.prose blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--green-600);
  background: var(--green-50);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
}
.prose img { border-radius: 12px; margin: 20px 0; }
.prose a { color: var(--green-700); text-decoration: underline; }

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 26px;
}
.toolbar-search { position: relative; flex: 1; min-width: 220px; max-width: 330px; }
.toolbar-search .ms { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted-2); }
.toolbar-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px 0 36px;
  font-size: 0.8rem;
  background: var(--bg);
}
.toolbar-search input:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 3px rgba(22, 128, 63, 0.1); }
.toolbar-count { font-size: 0.72rem; color: var(--muted); }
.toolbar-count strong { color: var(--green-700); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.article-header { margin-bottom: 24px; }
.article-header .news-cat { position: static; display: inline-flex; margin-right: 8px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0 18px; color: var(--muted); font-size: 0.74rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta .ms { font-size: 15px; color: var(--green-600); }
.article-title { font-size: clamp(1.55rem, 3.5vw, 2.4rem); line-height: 1.35; letter-spacing: -0.025em; }
.article-cover { border-radius: 14px; overflow: hidden; margin: 20px 0 26px; aspect-ratio: 16 / 8; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { margin: 15px 0; font-size: 0.95rem; line-height: 1.95; color: var(--text-2); }
.article-body h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.article-body ul { margin: 14px 0; display: grid; gap: 8px; }
.article-body ul li { position: relative; padding-left: 20px; font-size: 0.93rem; color: var(--text-2); line-height: 1.75; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--gold-500); border-radius: 2px; }
.article-share { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article-share span { font-size: 0.75rem; font-weight: 700; margin-right: 4px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 0.7rem;
  color: var(--text-2);
  transition: 0.18s;
}
.share-btn:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
.share-btn .ms { font-size: 15px; }
.article-side { display: grid; gap: 18px; position: sticky; top: 120px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.side-card h3 { font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.side-card h3 .ms { color: var(--green-600); font-size: 19px; }
.side-news { display: grid; gap: 12px; }
.side-news a { display: flex; gap: 10px; align-items: flex-start; }
.side-news img { width: 62px; height: 48px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.side-news strong { font-size: 0.75rem; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news small { font-size: 0.62rem; color: var(--muted); }
.side-news a:hover strong { color: var(--green-700); }
.side-cta { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta h3 .ms { color: var(--gold-300); }
.side-cta p { font-size: 0.76rem; line-height: 1.7; color: #d5e8dc; margin-bottom: 12px; }
.side-cta .btn { width: 100%; }

/* Admissions rounds */
.round-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.round-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 15px;
  text-align: left;
  min-width: 150px;
  flex: 1;
  transition: 0.2s;
}
.round-btn b { display: block; font-family: var(--font-display); font-size: 0.82rem; }
.round-btn span { display: block; font-size: 0.65rem; color: var(--muted); margin-top: 1px; }
.round-btn:hover { border-color: var(--green-400); }
.round-btn.is-active { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 2px rgba(15, 107, 55, 0.08); }
.round-btn.is-active b { color: var(--green-700); }
.round-panel { display: none; }
.round-panel.is-active { display: block; animation: cardIn 0.35s var(--ease); }
.round-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.round-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.round-card-head h3 { font-size: 1.15rem; }
.round-card-head p { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.round-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.round-detail {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}
.round-detail span { display: flex; align-items: center; gap: 5px; font-size: 0.65rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.round-detail .ms { font-size: 14px; color: var(--green-600); }
.round-detail strong { display: block; font-size: 0.8rem; margin-top: 3px; line-height: 1.5; }
.round-note { margin-top: 14px; font-size: 0.74rem; color: var(--muted); line-height: 1.65; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; margin-top: 8px; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 26px 1fr;
  gap: 12px;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; color: var(--green-700); text-align: right; padding-top: 2px; }
.timeline-line { position: relative; display: flex; justify-content: center; }
.timeline-line::before { content: ""; position: absolute; top: 7px; bottom: -17px; width: 2px; background: var(--line); }
.timeline-item:last-child .timeline-line::before { display: none; }
.timeline-dot { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--green-500); position: relative; z-index: 1; margin-top: 3px; }
.timeline-item.is-now .timeline-dot { background: var(--gold-500); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(238, 179, 28, 0.2); }
.timeline-content h4 { font-size: 0.85rem; line-height: 1.45; }
.timeline-content p { font-size: 0.74rem; color: var(--muted); line-height: 1.65; margin-top: 2px; }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: 0.18s;
}
.acc-btn:hover { background: var(--bg); }
.acc-btn .ms { font-size: 20px; color: var(--green-600); transition: transform 0.3s; }
.acc-item.open .acc-btn .ms { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.acc-body-inner { padding: 0 18px 16px; font-size: 0.8rem; line-height: 1.8; color: var(--muted); }
.acc-item.open .acc-body { max-height: 420px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; font-size: 0.8rem; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg); color: var(--navy-900); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--muted); }
.data-table td strong { color: var(--text); }
.data-table tbody tr:hover { background: #fbfcfe; }

/* Faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.faculty-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: 0.25s var(--ease);
}
.faculty-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--green-600));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.faculty-card .avatar--photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--green-100);
  background: var(--surface-2);
}
.faculty-card h3 { font-size: 0.88rem; line-height: 1.5; }.faculty-card .role { font-size: 0.67rem; color: var(--green-700); font-weight: 700; margin-top: 2px; }
.faculty-card .expertise { font-size: 0.7rem; color: var(--muted); line-height: 1.6; margin-top: 7px; }
.faculty-card .email { display: inline-flex; align-items: center; gap: 4px; font-size: 0.65rem; color: var(--muted); margin-top: 9px; }
.faculty-card .email:hover { color: var(--green-700); }
.faculty-card .email .ms { font-size: 13px; }
.faculty-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--bg);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  transition: 0.18s var(--ease);
}
.faculty-more:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
.faculty-more .ms { font-size: 16px; transition: transform 0.2s var(--ease); }
.faculty-more.is-open .ms { transform: rotate(180deg); }
.faculty-bio { margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--green-50); border: 1px solid var(--green-100); }
.faculty-bio[hidden] { display: none; }
.faculty-bio dl { margin: 0; display: grid; gap: 2px; }
.faculty-bio dt { font-size: 0.62rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.faculty-bio dt:first-child { margin-top: 0; }
.faculty-bio dd { margin: 0; font-size: 0.68rem; line-height: 1.65; color: var(--text-2); }

/* Generic feature / value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.value-card .icon-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.value-card .icon-badge .ms { font-size: 23px; }
.value-card h3 { font-size: 1rem; }
.value-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.75; margin-top: 7px; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat-band > div { background: #fff; padding: 22px; }
.stat-band b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--green-700); }
.stat-band span { display: block; font-size: 0.75rem; font-weight: 700; margin-top: 7px; }
.stat-band small { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.service-card .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-700); font-weight: 700; line-height: 1; }
.service-card .price small { font-size: 0.68rem; font-family: var(--font-body); color: var(--muted); font-weight: 400; }
.service-card h3 { font-size: 0.95rem; margin-top: 10px; }
.service-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.service-card ul { margin-top: 12px; display: grid; gap: 5px; flex: 1; }
.service-card li { font-size: 0.72rem; color: var(--text-2); display: flex; gap: 5px; align-items: flex-start; }
.service-card li .ms { font-size: 14px; color: var(--green-600); margin-top: 2px; }
.service-card .btn { margin-top: 14px; }
.notice {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--gold-100);
  border: 1px solid #f5e0a4;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-2);
}
.notice .ms { color: var(--gold-700); font-size: 20px; margin-top: 1px; }

/* CTA inline */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 30px;
  background: linear-gradient(110deg, var(--navy-800), var(--navy-700));
  border-radius: 16px;
  color: #fff;
}
.inline-cta h3 { font-size: 1.16rem; }
.inline-cta p { font-size: 0.78rem; color: #9fb3c7; margin-top: 3px; }
.inline-cta .btn-row { flex-shrink: 0; }

/* =========================================================
   MODAL / SEARCH / LIGHTBOX / TOAST
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 26, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: min(88vh, 820px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.32s var(--ease);
}
.modal-panel--sm { max-width: 520px; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-radius: 18px 18px 0 0;
}
.modal-head h3 { font-size: 1.18rem; line-height: 1.4; }
.modal-head p { font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}
.modal-close:hover { background: #fee4e2; color: var(--danger); border-color: #f4c7c3; }
.modal-body { padding: 22px; }
.modal-body .prose { max-width: none; }
.modal-body .program-meta { margin-bottom: 12px; }
.modal-body h2 { font-size: 1.06rem; margin: 20px 0 8px; }
.modal-body h2:first-child { margin-top: 0; }
.modal-body .tag-row { margin-top: 6px; }
.modal-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.modal-section h4 { font-size: 0.82rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.modal-section h4 .ms { color: var(--green-600); font-size: 17px; }
.modal-section ul { display: grid; gap: 6px; }
.modal-section li { position: relative; padding-left: 17px; font-size: 0.78rem; color: var(--muted); line-height: 1.65; }
.modal-section li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--gold-500); }
.credit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.credit { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.credit span { display: block; font-size: 0.63rem; color: var(--muted); }
.credit strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--green-700); }
.modal-body .btn-row { margin-top: 18px; }

/* Search */
.search-panel { max-width: 680px; }
.search-input-wrap { position: relative; }
.search-input-wrap .ms { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--green-600); font-size: 23px; }
.search-input {
  width: 100%;
  height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 50px 0 50px;
  font-size: 1rem;
  background: #fff;
  border-radius: 18px 18px 0 0;
}
.search-input:focus { outline: none; }
.search-esc { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 10px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 5px; color: var(--muted-2); background: var(--bg); }
.search-body { padding: 12px 10px 16px; max-height: 60vh; overflow-y: auto; }
.search-label { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted-2); padding: 9px 12px 6px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  transition: 0.15s;
}
.search-result:hover { background: var(--bg); }
.search-result .sr-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-result .sr-icon .ms { font-size: 18px; }
.search-result strong { display: block; font-size: 0.82rem; line-height: 1.45; font-weight: 600; }
.search-result small { display: block; font-size: 0.68rem; color: var(--muted); }
.search-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 0.82rem; }
.search-empty .ms { display: block; font-size: 34px; color: var(--muted-2); margin-bottom: 8px; }
.search-hints { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.search-hints button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; color: var(--muted); }
.search-hints button:hover { border-color: var(--green-400); color: var(--green-700); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 19, 0.93);
  padding: 30px;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.8rem; text-align: center; width: 90%; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 17px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s var(--ease);
  max-width: min(92vw, 480px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ms { color: var(--gold-400); font-size: 20px; }
.toast strong { color: var(--gold-300); }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--green-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(8, 24, 43, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.28s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-700); transform: translateY(-2px); }
.to-top .ms { font-size: 21px; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-badge, .hero h1, .hero-en, .hero-lead, .hero .btn-row, .hero-stats {
  animation: heroIn 0.8s var(--ease) both;
}
.hero h1 { animation-delay: 0.06s; }
.hero-en { animation-delay: 0.12s; }
.hero-lead { animation-delay: 0.18s; }
.hero .btn-row { animation-delay: 0.24s; }
.hero-stats { animation-delay: 0.3s; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1120px) {
  .nav-link { padding-inline: 10px; font-size: 0.82rem; }
  .header-search kbd { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1020px) {
  .navbar { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-inner { display: none; }
  .header-apply { display: none; }
  .header-search span:not(.ms) { display: none; }
  .header-search { width: 42px; padding: 0; justify-content: center; }
  .masthead-inner { min-height: 72px; }
  .hero-inner { padding-top: 64px; }
  .section { padding: 72px 0; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-card { min-height: 320px; }
  .hall-card--white { min-height: 300px; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; padding: 40px; }
  .cta-side { max-width: 420px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
  .gallery-item--xwide { grid-column: span 2; }
  .value-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .topbar-msg span:last-child { display: none; }
  .topbar-links > *:not(.topbar-cta):not(.topbar-keep) { display: none; }
  .masthead-inner { min-height: 66px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy span { font-size: 0.52rem; letter-spacing: 0.08em; }
  .header-actions { gap: 6px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-en { font-size: 0.62rem; letter-spacing: 0.13em; }
  .hero-lead { font-size: 0.91rem; }
  .hero-inner { padding-top: 48px; padding-bottom: 34px; }
  .hero .btn-row { margin-bottom: 34px; }
  .hero .btn { flex: 1 1 auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 16px; }
  .hero-stat small { display: none; }
  .hero-scroll { display: none; }
  .quick-wrap { margin-top: -24px; }
  .quick-panel { padding: 16px; }
  .quick-head { align-items: flex-start; }
  .quick-hint { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 58px 0; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head .section-link { margin-top: 12px; }
  .filter-tabs { margin-top: 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-btn { flex-shrink: 0; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-media { aspect-ratio: 16 / 9; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card h3 { font-size: 1.1rem; }
  .level-tabs { width: 100%; }
  .level-tab { flex: 1; padding-inline: 10px; }
  .level-tab .en { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item--wide, .gallery-item--xwide { grid-column: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
  .gallery-caption p { display: none; }
  .facility-grid { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 34px; }
  .footer-col--newsletter { order: -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { gap: 12px; }
  .cta-inner { padding: 30px 24px; }
  .cta-copy h2 { font-size: 1.55rem; }
  .cta-copy .btn { width: 100%; }
  .map-frame { height: 200px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .value-grid, .service-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .article-side { grid-template-columns: 1fr; }
  .round-detail-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 68px 22px 1fr; gap: 8px; }
  .credit-grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .toast { bottom: 64px; }
  .page-hero { padding: 38px 0 44px; }
  .page-hero p { font-size: 0.87rem; }
  .inline-cta { padding: 22px; }
  .inline-cta .btn-row { width: 100%; flex-shrink: 1; flex-direction: column; align-items: stretch; }
  .inline-cta .btn { width: 100%; }
  .article-cover { aspect-ratio: 16 / 10; }
}

@media (max-width: 480px) {
  .topbar-msg strong { font-size: 0.72rem; }
  .brand-copy span { display: none; }
  .brand-copy strong { font-size: 0.94rem; }
  .header-search { display: none; }
  .masthead-inner { gap: 10px; }
  .hero-badge { font-size: 0.65rem; padding: 6px 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .quick-item { padding: 10px 4px; }
  .quick-item strong { font-size: 0.75rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-item--wide, .gallery-item--xwide, .gallery-item:nth-child(5) { grid-column: span 1; }
  .faculty-grid { grid-template-columns: 1fr; }
  .article-share { gap: 6px; }
  .search-panel { margin-top: 10px; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero-meta { gap: 6px 14px; }
  .round-btn { min-width: 100%; }
  .news-toolbar { padding: 10px; }
  .toolbar-search { max-width: none; }
}

/* =========================================================
   EXTRA SUBPAGE COMPONENTS
   ========================================================= */
.featured-news {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.featured-media { position: relative; min-height: 330px; overflow: hidden; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured-news:hover .featured-media img { transform: scale(1.04); }
.featured-copy { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy .eyebrow { font-size: 0.66rem; }
.featured-copy h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.42; margin-top: 10px; letter-spacing: -0.02em; }
.featured-copy h2 a:hover { color: var(--green-700); }
.featured-copy p { font-size: 0.84rem; line-height: 1.8; color: var(--muted); margin-top: 10px; }
.featured-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 0.7rem; color: var(--muted); flex-wrap: wrap; }
.featured-meta span { display: inline-flex; align-items: center; gap: 4px; }
.featured-meta .ms { font-size: 15px; color: var(--green-600); }
.featured-copy .link-arrow { margin-top: 20px; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.split-2--media { grid-template-columns: 0.92fr 1.08fr; }
.media-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-md); }
.media-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border-radius: 9px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-sm);
}
.media-badge .ms { color: var(--green-600); font-size: 23px; }
.media-badge strong { display: block; font-family: var(--font-display); font-size: 0.78rem; line-height: 1.2; }
.media-badge small { display: block; font-size: 0.62rem; color: var(--muted); }

.check-list { display: grid; gap: 9px; margin-top: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.83rem; line-height: 1.65; color: var(--text-2); }
.check-list .ms { font-size: 19px; color: var(--green-600); margin-top: 1px; }

.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.leader-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.leader-card .avatar { margin-bottom: 13px; }
.leader-card h3 { font-size: 0.87rem; line-height: 1.5; }
.leader-card .role { font-size: 0.68rem; font-weight: 700; color: var(--green-700); margin-top: 2px; }
.leader-card p { font-size: 0.7rem; color: var(--muted); line-height: 1.65; margin-top: 7px; }

.calendar-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.calendar-row { display: grid; grid-template-columns: 94px 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.calendar-row:last-child { border-bottom: 0; }
.calendar-row:hover { background: #fbfcfe; }
.cal-date { font-family: var(--font-display); font-size: 0.7rem; color: var(--green-700); font-weight: 600; }
.cal-date b { display: block; font-size: 1.25rem; line-height: 1.1; color: var(--navy-900); }
.cal-body strong { display: block; font-size: 0.82rem; line-height: 1.45; font-weight: 600; }
.cal-body span { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 1px; }
.cal-tag { font-size: 0.62rem; font-weight: 700; padding: 4px 8px; border-radius: 5px; background: var(--green-100); color: var(--green-700); white-space: nowrap; }
.cal-tag--gold { background: var(--gold-100); color: var(--gold-700); }
.cal-tag--navy { background: #e8eef7; color: var(--navy-700); }
.cal-panel { display: none; }
.cal-panel.is-active { display: block; animation: cardIn 0.35s var(--ease); }

.quote-block {
  padding: 28px;
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-2);
}
.quote-block strong { color: var(--navy-900); }
.quote-block cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.72rem; color: var(--gold-700); font-weight: 700; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.contact-card .icon-badge { width: 42px; height: 42px; border-radius: 10px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.contact-card .icon-badge .ms { font-size: 22px; }
.contact-card h3 { font-size: 0.9rem; }
.contact-card p { font-size: 0.74rem; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.contact-card a { color: var(--green-700); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.soft-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.soft-panel h3 { font-size: 1rem; display: flex; align-items: center; gap: 7px; }
.soft-panel h3 .ms { color: var(--green-600); font-size: 20px; }
.soft-panel p { font-size: 0.78rem; color: var(--muted); line-height: 1.75; margin-top: 6px; }

.section-anchor { scroll-margin-top: 120px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps-grid--4 { grid-template-columns: repeat(4, 1fr); }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}
.step-card:hover .step-num { background: var(--green-600); color: #fff; }
.step-card h3 { font-size: 0.92rem; }
.step-card p { font-size: 0.75rem; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.scholar-card { position: relative; overflow: hidden; }
.scholar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) {
  .scholar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .scholar-grid { grid-template-columns: 1fr; }
}
.scholar-card .amount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-700);
}
.scholar-card .amount .ms { font-size: 17px; }
.scholar-card .scholar-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--gold-100);
  color: var(--gold-700);
}

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

@media (max-width: 1020px) {
  .featured-news { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; aspect-ratio: 16 / 8; }
  .split-2, .split-2--media { grid-template-columns: 1fr; gap: 26px; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .featured-copy { padding: 22px; }
  .featured-media { min-height: 210px; }
  .featured-copy p { font-size: 0.78rem; }
  .calendar-row { grid-template-columns: 70px 1fr; gap: 12px; }
  .cal-tag { grid-column: 2; justify-self: start; }
  .leader-grid { grid-template-columns: 1fr; }
  .soft-panel { padding: 20px; }
}


/* =========================================================
   2026 REDESIGN — horizontal logo, 9-item nav, new modules
   ========================================================= */

/* Brand / logo */
.brand-logo {
  width: auto;
  height: 40px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.drawer .brand-logo { height: 34px; max-width: 118px; }
.footer-brand .logo-box {
  width: auto;
  height: 38px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff;
}
.footer-brand img { width: auto; height: 30px; max-width: 100px; object-fit: contain; }

/* Language switch */
.lang-btn {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #b9c8d8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 3px 6px;
  line-height: 1.2;
  transition: 0.18s;
}
.lang-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.lang-btn.is-active { color: var(--navy-900); background: var(--gold-400); border-color: var(--gold-400); }

/* 9-item navigation */
.nav-list { gap: 0; }
.nav-link { padding: 12px 9px; font-size: 0.8rem; gap: 4px; }
.nav-link .ms { font-size: 16px; }
.nav-list .nav-item:not(.has-dropdown) .nav-link .ms { display: none; }
.nav-status { display: none; }
@media (min-width: 1200px) {
  .nav-link { padding-inline: 10px; }
}

/* Buttons */
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 0.75rem; }

/* Sports summary */
.sports-summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 65%, #17405f);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sports-summary::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
  z-index: -1;
}
.sports-summary-copy .chip { margin-bottom: 12px; }
.sports-summary-copy h2,
.sports-summary-copy h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sports-summary-copy p { color: #c4d4e3; font-size: 0.84rem; line-height: 1.8; max-width: 62ch; }
.medal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.medal-stat {
  text-align: center;
  border-radius: 12px;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.medal-stat b { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.medal-stat span { display: block; font-size: 0.66rem; margin-top: 5px; color: #cfdcea; }
.medal-stat--gold b { color: var(--gold-400); }
.medal-stat--silver b { color: #d7e0e9; }
.medal-stat--bronze b { color: #e2a578; }

/* Athletes */
.athlete-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.athlete-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s var(--ease);
}
.athlete-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.athlete-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.athlete-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.athlete-card:hover .athlete-media img { transform: scale(1.05); }
.athlete-medals { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 5px; }
.medal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}
.medal .ms { font-size: 14px; }
.medal--gold .ms { color: var(--gold-600); }
.medal--silver .ms { color: #8d9aa8; }
.medal--bronze .ms { color: #b56b3c; }
.athlete-body { padding: 16px 18px 18px; }
.athlete-sport {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 5px;
  padding: 3px 7px;
}
.athlete-body h3 { font-size: 0.96rem; margin-top: 8px; color: var(--navy-900); }
.athlete-body p { font-size: 0.74rem; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.athlete-body small { display: block; font-size: 0.62rem; color: var(--muted-2); margin-top: 8px; }

/* Achievements */
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.achievement-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s var(--ease);
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5e1eb; }
.achievement-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.achievement-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.achievement-card:hover .achievement-media img { transform: scale(1.05); }
.achievement-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 24, 43, 0.82);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
}
.achievement-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
  font-size: 0.58rem;
  padding: 3px 7px;
  border-radius: 4px;
}
.achievement-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.achievement-sport { font-size: 0.62rem; font-weight: 700; color: var(--green-700); letter-spacing: 0.04em; text-transform: uppercase; }
.achievement-body h3 { font-size: 1rem; line-height: 1.45; margin-top: 5px; color: var(--navy-900); }
.achievement-person { font-size: 0.76rem; font-weight: 700; color: var(--text-2); margin-top: 8px; }
.achievement-role { font-size: 0.68rem; color: var(--muted); margin-top: 1px; }
.achievement-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  border-radius: 5px;
  padding: 4px 8px;
  margin-top: 10px;
}
.achievement-result .ms { font-size: 15px; }
.achievement-desc { font-size: 0.73rem; color: var(--muted); line-height: 1.7; margin-top: 10px; flex: 1; }
.achievement-body .link-arrow { margin-top: 14px; }

/* Alumni */
.alumni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.alumni-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.alumni-card .avatar { margin-bottom: 12px; }
.alumni-card h3 { font-size: 0.9rem; line-height: 1.45; }
.alumni-card .role { font-size: 0.68rem; font-weight: 700; color: var(--green-700); margin-top: 3px; }
.alumni-card p:last-child { font-size: 0.7rem; color: var(--muted); line-height: 1.65; margin-top: 8px; }

/* Scholarships */
.scholar-for { font-size: 0.7rem; font-weight: 700; color: var(--green-700); margin-top: 3px; }
.scholar-deadline {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--gold-700);
}
.scholar-deadline .ms { font-size: 16px; margin-top: 1px; }
.scholar-deadline b { font-weight: 700; }
.scholar-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.scholar-links .link-arrow { margin-top: 0; font-size: 0.72rem; }
.scholar-attach {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy-700);
  padding: 6px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--bg);
  transition: 0.18s var(--ease);
}
.scholar-attach:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
.scholar-attach .ms { font-size: 15px; }
.scholar-card .link-arrow { margin-top: 12px; font-size: 0.72rem; }
.scholar-grid { grid-template-columns: repeat(3, 1fr); }

/* Calendar layout */
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calendar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.calendar-nav { display: flex; align-items: center; gap: 10px; }
.calendar-nav h2 { font-size: 1.05rem; color: var(--navy-900); min-width: 150px; text-align: center; }
.calendar-nav .icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.calendar-nav .icon-btn:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-weekday { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); padding: 6px 0 8px; }
.cal-day {
  position: relative;
  min-height: 66px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px 5px;
  gap: 4px;
  background: var(--bg);
  color: var(--text-2);
  font-family: inherit;
  transition: 0.16s;
}
.cal-day--empty { background: transparent; }
.cal-day .cal-num { font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; line-height: 1; }
.cal-day.has-event { background: var(--green-50); border-color: var(--green-100); cursor: pointer; }
.cal-day.has-event:hover { background: var(--green-100); border-color: var(--green-400); transform: translateY(-1px); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--gold-400); }
.cal-day.is-today .cal-num { color: var(--gold-700); }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); display: inline-block; }
.cal-dot--sport { background: var(--gold-600); }
.cal-dot--admission { background: var(--navy-600); }
.calendar-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.66rem; color: var(--muted); }
.calendar-legend-title { font-weight: 700; color: var(--text-2); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-side { display: flex; flex-direction: column; gap: 16px; }
.calendar-side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.calendar-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-side-head h2 { font-size: 0.92rem; color: var(--navy-900); }
.calendar-side-head .ms { color: var(--green-600); font-size: 20px; }
.calendar-list--plain { border: 0; border-radius: 0; }
.calendar-list--plain .calendar-row { grid-template-columns: 62px 1fr; padding: 12px 0; gap: 12px; }
.calendar-list--plain .cal-tag { grid-column: 2; justify-self: start; }
.calendar-subscribe h3 { font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.calendar-subscribe h3 .ms { color: var(--gold-600); font-size: 20px; }
.calendar-subscribe p { font-size: 0.74rem; color: var(--muted); line-height: 1.7; margin: 8px 0 14px; }
.calendar-side-card > h3 { font-size: 0.9rem; display: flex; align-items: center; gap: 6px; color: var(--navy-900); }
.calendar-side-card > h3 .ms { color: var(--green-600); font-size: 20px; }
.calendar-side-card > p { font-size: 0.74rem; color: var(--muted); line-height: 1.7; margin: 8px 0 12px; }
.calendar-links { display: grid; gap: 8px; }
.calendar-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  transition: 0.18s var(--ease);
}
.calendar-links a:hover { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); }
.calendar-links a > span:nth-child(2) { flex: 1; line-height: 1.5; }
.calendar-links small { display: block; font-size: 0.66rem; font-weight: 400; color: var(--muted); }
.calendar-links .ms { font-size: 17px; color: var(--green-600); flex-shrink: 0; }

/* Event modal */
.event-panel { max-width: 620px; }
.event-detail + .event-detail { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.event-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.event-detail-date { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.event-detail h4 { font-size: 1rem; line-height: 1.5; margin-top: 10px; color: var(--navy-900); }
.event-detail-list { display: grid; gap: 6px; margin: 10px 0; }
.event-detail-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 0.78rem; color: var(--text-2); }
.event-detail-list .ms { font-size: 17px; color: var(--green-600); margin-top: 1px; }
.event-detail > p { font-size: 0.8rem; line-height: 1.75; color: var(--muted); }
.event-detail .btn-row { margin-top: 16px; }

/* ฟอร์มสมัครกิจกรรมใน modal */
.event-register { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.event-register-form { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.event-register-form[hidden] { display: none; }
.event-register-head { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.event-register-head .ms { font-size: 18px; color: var(--green-600); }
.event-register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.event-register-grid .full { grid-column: 1 / -1; }
.event-register-grid label { display: grid; gap: 4px; font-size: 0.74rem; font-weight: 600; color: var(--text-2); }
.event-register-grid .req { color: var(--danger); }
.event-register-grid input,
.event-register-grid select,
.event-register-grid textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.82rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.event-register-grid input:focus,
.event-register-grid select:focus,
.event-register-grid textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(22, 128, 63, 0.15); }
.event-register-grid .has-error { border-color: var(--danger); }
.event-register-grid label.has-error input,
.event-register-grid label.has-error select,
.event-register-grid label.has-error textarea { border-color: var(--danger); }
.event-register-grid .field-error { display: none; font-size: 0.66rem; color: var(--danger); }
.event-register-grid label.has-error .field-error { display: block; }
.event-register-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 0.72rem; line-height: 1.55; color: var(--muted); }
.event-register-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green-600); flex-shrink: 0; }
.event-register-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.event-register-note { font-size: 0.7rem; color: var(--muted-2); }
.event-register-success { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--green-50); border: 1px solid var(--green-100); }
.event-register-success.show { display: flex; }
.event-register-success .ms { color: var(--green-600); font-size: 22px; }
.event-register-success strong { display: block; font-size: 0.82rem; color: var(--green-800); }
.event-register-success p { margin: 3px 0 0; font-size: 0.74rem; color: var(--text-2); }
@media (max-width: 560px) {
  .event-register-grid { grid-template-columns: 1fr; }
}

/* Chatbot */
.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 26px -10px rgba(15, 107, 55, 0.85);
  transition: 0.2s var(--ease);
}
.chat-toggle:hover { background: var(--green-700); transform: translateY(-2px); }
.chat-toggle .ms { font-size: 21px; }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 131;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(8, 24, 43, 0.4);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: 0.24s var(--ease);
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(115deg, var(--navy-900), var(--navy-700)); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-avatar .ms { font-size: 21px; color: var(--gold-400); }
.chat-head-copy { flex: 1; min-width: 0; }
.chat-head-copy h3 { font-size: 0.86rem; color: #fff; }
.chat-head-copy p { font-size: 0.64rem; color: #b9c8d8; margin-top: 1px; }
.chat-close { width: 30px; height: 30px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chat-close:hover { background: rgba(255, 255, 255, 0.2); }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--bg); min-height: 150px; }
.chat-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 0.76rem; line-height: 1.65; }
.chat-msg p { margin: 0; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.chat-msg--user { align-self: flex-end; background: var(--green-600); color: #fff; border-bottom-right-radius: 4px; }
.chat-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 0.7rem; font-weight: 700; color: var(--green-700); }
.chat-link .ms { font-size: 14px; }
.chat-suggestions { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid var(--line); background: #fff; }
.chat-suggestions button { flex-shrink: 0; font-size: 0.66rem; font-weight: 600; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.chat-suggestions button:hover { background: var(--green-100); }
.chat-form { display: flex; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font-size: 0.78rem; font-family: inherit; background: var(--bg); }
.chat-form input:focus { outline: 2px solid var(--green-400); outline-offset: 1px; background: #fff; }
.chat-form button { width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--green-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chat-form button:hover { background: var(--green-700); }
.chat-form button .ms { font-size: 19px; }
.chat-disclaimer { font-size: 0.58rem; color: var(--muted-2); text-align: center; padding: 0 12px 10px; background: #fff; }

/* Video gallery */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--navy-900); overflow: hidden; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: 0.3s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.04); }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play .ms { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: var(--shadow-sm); transition: 0.2s; }
.video-thumb:hover .video-play .ms { transform: scale(1.08); background: var(--gold-400); color: var(--navy-900); }
.video-tag { position: absolute; left: 9px; top: 9px; font-size: 0.6rem; font-weight: 700; background: rgba(8, 24, 43, 0.82); color: #fff; border-radius: 4px; padding: 3px 7px; }
.video-body { padding: 13px 15px 16px; }
.video-body h3 { font-size: 0.82rem; line-height: 1.45; color: var(--navy-900); }
.video-body p { font-size: 0.68rem; color: var(--muted); line-height: 1.65; margin-top: 4px; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* Article notes */
.article-cover-note { font-size: 0.66rem; color: var(--muted-2); padding: 7px 2px 0; }
.article-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.72rem; color: var(--muted); }
.article-source .ms { color: var(--green-600); font-size: 17px; }
.article-source a { display: inline-flex; align-items: center; gap: 3px; color: var(--green-700); font-weight: 700; }
.article-source a .ms { font-size: 14px; }

/* News grid variants */
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-grid--2 .news-media { aspect-ratio: 16 / 9; }

/* Responsive additions */
@media (max-width: 1120px) {
  .nav-link { padding-inline: 7px; font-size: 0.76rem; }
}
@media (max-width: 1020px) {
  .sports-summary { grid-template-columns: 1fr; }
  .athlete-grid, .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .scholar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sports-summary { padding: 24px 20px; }
  .medal-row { grid-template-columns: repeat(3, 1fr); }
  .athlete-grid, .achievement-grid, .alumni-grid, .video-grid { grid-template-columns: 1fr; }
  .calendar-card { padding: 14px; }
  .cal-day { min-height: 52px; border-radius: 6px; }
  .cal-day .cal-num { font-size: 0.7rem; }
  .cal-dots { display: none; }
  .calendar-nav h2 { min-width: 120px; font-size: 0.94rem; }
  .chat-toggle { right: 14px; bottom: 14px; height: 46px; padding: 0 15px; }
  .chat-toggle-label { display: none; }
  .chat-panel { right: 12px; bottom: 72px; width: calc(100vw - 24px); max-height: calc(100vh - 100px); }
  .news-grid--2 { grid-template-columns: 1fr; }
}

/* News image source note */
.news-note {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-2);
  font-size: 0.56rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery / athlete image fit refinements */
.gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; }
#homeGalleryGrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.gallery-item--wide, .gallery-item--xwide { grid-column: auto; }
.gallery-item img { object-position: center; }
.athlete-media { aspect-ratio: 1 / 1; }
@media (max-width: 1020px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  #homeGalleryGrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 760px) {
  .gallery-grid, #homeGalleryGrid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery-item--wide, .gallery-item--xwide, .gallery-item:nth-child(5) { grid-column: auto; }
}

/* Achievement media: square so official announcement posters are not cropped */
.achievement-media { aspect-ratio: 1 / 1; }

/* Featured news: prevent aspect-ratio + min-height from forcing width beyond the card */
@media (max-width: 1020px) {
  .featured-media { min-height: 0; aspect-ratio: 16 / 9; }
}
