/* ==========================================================================
   Satit VRU — site styles
   Royal navy + temple gold, Noto Serif Thai (display) + IBM Plex Sans Thai Looped (text)
   ========================================================================== */
:root {
  --brand-950: #0B1838;
  --brand-900: #0E1D45;
  --brand-800: #14285A;
  --brand-700: #1C3577;
  --link: var(--brand-700);
  --tint: #FBF1F0;
  --on-brand: #FFFFFF;
  --gold: #D6A126;
  --gold-deep: #A9790C;
  --gold-soft: #EBCB7A;
  --gold-wash: #FBF4E2;
  --porcelain: #F4F6FA;
  --paper: #FFFFFF;
  --ink: #1A2238;
  --ink-2: #3A4359;
  --muted: #5F687C;
  --line: #E1E5EE;
  --line-2: #CDD3E0;
  --ok: #1E7A4F;
  --err: #B4472B;

  --f-display: "Noto Serif Thai", "Sarabun", serif;
  --f-text: "IBM Plex Sans Thai Looped", "IBM Plex Sans Thai", "Sarabun", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(14, 29, 69, .06), 0 4px 14px rgba(14, 29, 69, .06);
  --shadow-2: 0 18px 50px -18px rgba(14, 29, 69, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ลายประจำยาม — four-petal tile */
  --prajam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D6A126' stroke-width='1'%3E%3Cpath d='M28 14c4 6 4 8 0 14-4-6-4-8 0-14zM28 42c4-6 4-8 0-14-4 6-4 8 0 14zM14 28c6-4 8-4 14 0-6 4-8 4-14 0zM42 28c-6-4-8-4-14 0 6 4 8 4 14 0z'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3Cpath d='M0 0l6 6M56 0l-6 6M0 56l6-6M56 56l-6-6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--porcelain);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand-800); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.35; margin: 0 0 .5em; color: var(--brand-900); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--brand-950); padding: 8px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--brand-950); }
.btn-gold:hover { background: var(--gold-soft); color: var(--brand-950); }
.btn-navy { background: var(--brand-800); color: #fff; }
.btn-navy:hover { background: var(--brand-700); color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--brand-800); background: var(--paper); }
.btn-outline:hover { border-color: var(--brand-800); color: var(--brand-800); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--brand-800);
}
.icon-btn:hover { background: var(--porcelain); }
.icon-btn .ic { width: 22px; height: 22px; }
.text-link { font-weight: 600; border-bottom: 1.5px solid var(--gold); color: var(--brand-800); }

/* ---------- Announce bar / Topbar ---------- */
.announce-bar { background: var(--gold); color: var(--brand-950); font-size: .92rem; }
.announce-bar .wrap { display: flex; gap: .6em; align-items: center; padding-block: 6px; }
.announce-bar a { color: var(--brand-950); font-weight: 700; text-decoration: underline; margin-left: auto; }
.topbar { background: var(--brand-950); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: rgba(255, 255, 255, .8); }
.topbar-links a:hover { color: var(--gold-soft); }
.topbar-links .social .ic { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(14, 29, 69, .25); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand-900); min-width: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; }
.brand-text small { font-size: .82rem; color: var(--gold-deep); font-weight: 600; }

.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.mainnav > ul > li { position: relative; }
.mainnav .top-link, .mainnav > ul > li > button {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .96rem; white-space: nowrap;
}
.mainnav > ul > li > button .caret { width: 16px; height: 16px; transition: transform .2s; }
.mainnav > ul > li:hover > button, .mainnav > ul > li > button[aria-expanded="true"], .mainnav .top-link:hover { color: var(--brand-800); background: var(--porcelain); }
.mainnav > ul > li > button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mainnav .sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.mainnav .sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.mainnav .sub::after { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.mainnav li.open > .sub, .mainnav li:hover > .sub, .mainnav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mainnav .sub ul { list-style: none; margin: 0; padding: 0; }
.mainnav .sub a, .mainnav .sub span { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .94rem; line-height: 1.45; }
.mainnav .sub a:hover { background: var(--gold-wash); color: var(--brand-900); }
.mainnav .is-mega .sub { min-width: min(820px, 92vw); padding: 18px; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.mega-col .mega-head { font-weight: 700; color: var(--brand-900); font-family: var(--f-display); font-size: .98rem; }
.mega-col ul { border-left: 1px solid var(--line); margin: 2px 0 8px 12px !important; }
.mega-col ul a { font-size: .9rem !important; padding: 5px 12px !important; color: var(--ink-2) !important; }
.soon { color: var(--muted) !important; cursor: default; }
.soon em { font-style: normal; font-size: .72rem; background: var(--porcelain); border-radius: 99px; padding: 1px 8px; margin-left: 4px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.menu-toggle { display: none; }

/* ---------- Drawer (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(11, 24, 56, .5); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 92vw);
  background: var(--paper); overflow-y: auto; padding: 12px 16px 40px;
  animation: slideIn .28s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--brand-900); padding: 4px 4px 10px; }
.drawer-search { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; margin-bottom: 12px; }
.drawer-search input { flex: 1; border: 0; outline: 0; font: inherit; background: none; min-width: 0; }
.drawer-search button { border: 0; background: var(--brand-800); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.mnav, .mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav ul { display: none; padding-left: 14px; border-left: 2px solid var(--gold-wash); margin-left: 8px; }
.mnav li.open > ul { display: block; }
.mnav a, .mnav button, .mnav span { display: flex; width: 100%; justify-content: space-between; align-items: center; text-align: left; padding: 11px 8px; border: 0; background: none; color: var(--ink); font-size: 1rem; border-bottom: 1px solid var(--porcelain); }
.mnav li.open > button .caret { transform: rotate(180deg); }
.mnav .caret { transition: transform .2s; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11, 24, 56, .72); display: grid; align-items: start; padding-top: 14vh; }
.search-box { width: min(760px, 92vw); margin: 0 auto; }
.search-box form { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: var(--r-lg); padding: 10px 10px 10px 22px; box-shadow: var(--shadow-2); }
.search-box form > .ic { width: 24px; height: 24px; color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.2rem; padding: 10px 0; background: none; min-width: 0; }
.search-hint { color: rgba(255, 255, 255, .8); text-align: center; margin-top: 14px; font-size: .95rem; }


/* ==========================================================================
   Home — redesign v2 (hero + enquiry, welcome/stats, programs, band, activities)
   ========================================================================== */
.eyebrow { display: block; font-size: .82rem; font-weight: 700; color: var(--brand-700); letter-spacing: .04em; margin-bottom: 6px; }
.sec-title { text-align: center; margin-bottom: 30px; }
.sec-title h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.sec-title p { color: var(--muted); max-width: 46em; margin: 8px auto 0; }
.sec-title::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--gold); margin: 14px auto 0; }

/* Hero */
.hero2 { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero2-media { position: absolute; inset: 0 0 0 28%; }
.hero2-media .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.hero2-media .slide.is-active { opacity: 1; }
.hero2-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero2-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgba(255,255,255,.92) 14%, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 60%); }
.hero2-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; min-height: 560px; padding-block: 48px; }
.hero2-text { max-width: 560px; }
.hero2-text .eyebrow { color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.hero2-title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.18; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.hero2-title span { display: block; }
.hero2-title span:last-child { color: var(--brand-700); }
.hero2-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 32em; margin-bottom: 24px; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero2-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.hero2-feats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .8rem; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
.hero2-feats .ic { width: 30px; height: 30px; color: var(--brand-700); stroke-width: 1.5; }
.hero2-dots { position: absolute; z-index: 3; left: 50%; bottom: 16px; display: flex; gap: 8px; }
.hero2-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: width .3s var(--ease), background .3s; }
.hero2-dots button[aria-selected="true"] { width: 26px; background: var(--brand-700); }
.btn-brand { background: var(--brand-700); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-800); color: var(--on-brand); }
.btn-line { border-color: var(--brand-700); color: var(--brand-700); background: var(--paper); }
.btn-line:hover { background: var(--tint); color: var(--brand-800); }

/* Enquiry card */
.enquiry-card { background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(20, 10, 10, .45); border: 1px solid var(--line); }
.enquiry-card header { background: var(--brand-800); color: #fff; padding: 18px 22px 16px; }
.enquiry-card header h2 { color: #fff; font-family: var(--f-text); font-size: 1.12rem; margin: 0; font-weight: 700; }
.enquiry-card header p { margin: 2px 0 0; font-size: .86rem; color: rgba(255,255,255,.8); }
.enquiry-card form { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.enquiry-card input, .enquiry-card select, .enquiry-card textarea, .enq-form input, .enq-form select, .enq-form textarea { width: 100%; font: inherit; font-size: .94rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); color: var(--ink); }
.enquiry-card input:focus, .enquiry-card select:focus, .enq-form :is(input,select,textarea):focus { outline: 0; border-color: var(--brand-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-700) 15%, transparent); }
.enquiry-card .btn { width: 100%; border-radius: 8px; margin-top: 4px; }
.enquiry-card small, .enq-form small.note { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.form-msg { border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.form-msg.ok { background: #EAF6EF; color: var(--ok); }
.form-msg.err { background: #FDEEEC; color: var(--err); }

/* Welcome + stats */
.welcome2 { padding: clamp(44px, 6vw, 72px) 0; }
.welcome2-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.25fr; gap: clamp(22px, 3vw, 36px); align-items: center; }
.welcome2-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); box-shadow: var(--shadow-1); }
.welcome2-img img { width: 100%; height: 100%; object-fit: cover; }
.welcome2-text h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.welcome2-text p { color: var(--ink-2); font-size: .98rem; }
.stats-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat2 { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 20px 16px; color: var(--ink); }
.stat2:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.stat2:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.stat2 .ic { grid-row: span 2; width: 34px; height: 34px; color: var(--brand-700); stroke-width: 1.4; }
.stat2 b { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; color: var(--brand-800); }
.stat2 span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
a.stat2:hover b { color: var(--brand-700); }

/* Programs */
.programs { padding: clamp(44px, 6vw, 72px) 0; background: var(--porcelain); }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.program { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s var(--ease), box-shadow .25s; }
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pg-media { aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; display: block; }
.pg-media img { width: 100%; height: 100%; object-fit: cover; }
.pg-art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand-800) var(--prajam) center / 48px; color: var(--gold-soft); }
.pg-art .ic { width: 46px; height: 46px; stroke-width: 1.3; }
.pg-badge { position: absolute; top: 10px; left: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper); }
.pg-badge .ic { width: 20px; height: 20px; }
.pg-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pg-body h3 { font-family: var(--f-text); font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
.pg-sub { font-size: .86rem; font-weight: 600; color: var(--brand-700); margin: 2px 0 8px; }
.pg-body p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.pg-more { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.program:hover .pg-more { color: var(--brand-700); }
.pg-more .ic { width: 14px; height: 14px; }

/* Band */
.band { background: var(--brand-800); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: var(--prajam); background-size: 56px; opacity: .07; }
.band-row { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding-block: 26px; }
.band-item { display: flex; align-items: center; gap: 14px; padding: 6px 20px; }
.band-item + .band-item { border-left: 1px solid rgba(255,255,255,.18); }
.band-item .ic { width: 40px; height: 40px; color: var(--gold-soft); stroke-width: 1.3; flex: none; }
.band-item b { display: block; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; color: #fff; }
.band-item span { font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.4; }

/* Activities */
.acts { padding: clamp(44px, 6vw, 72px) 0; }
.act-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.act { display: block; color: var(--ink); }
.act-media { display: block; aspect-ratio: 4 / 3.2; border-radius: var(--r-md); overflow: hidden; background: var(--tint); position: relative; }
.act-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.act:hover .act-media img { transform: scale(1.05); }
.act-media .pg-art .ic { width: 38px; height: 38px; }
.act-label { display: flex; align-items: center; gap: 8px; margin-top: -18px; padding-left: 8px; position: relative; font-weight: 600; font-size: .92rem; }
.act-label i { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper); flex: none; }
.act-label i .ic { width: 18px; height: 18px; }
.act-label span { padding-top: 18px; line-height: 1.35; }

/* News (activities stories) */
.news2 { padding: clamp(44px, 6vw, 72px) 0; background: var(--porcelain); }
.news2-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-row h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0; }
.more { font-weight: 600; font-size: .92rem; color: var(--brand-700); display: inline-flex; align-items: center; gap: 4px; }
.more .ic { width: 16px; height: 16px; }
.more:hover { color: var(--brand-800); }
.lead2 { background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.lead2 .ls-media { aspect-ratio: 16 / 9; display: block; overflow: hidden; background: var(--line); }
.lead2 .ls-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lead2:hover .ls-media img { transform: scale(1.03); }
.lead2-body { padding: 20px 22px 22px; }
.lead2-body time, .story-sm time { font-size: .82rem; color: var(--brand-700); font-weight: 600; }
.lead2-body h3 { font-size: 1.25rem; margin: 4px 0 8px; }
.lead2-body h3 a, .story-sm h3 a { color: var(--ink); }
.lead2-body h3 a:hover, .story-sm h3 a:hover { color: var(--brand-700); }
.lead2-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.stories { display: flex; flex-direction: column; gap: 14px; }
.story-sm { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; background: var(--paper); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-1); }
.ss-media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--line); display: block; }
.ss-media img { width: 100%; height: 100%; object-fit: cover; }
.story-sm h3 { font-family: var(--f-text); font-size: .95rem; font-weight: 600; line-height: 1.5; margin: 2px 0 0; }

/* Services */
.services { padding: clamp(44px, 6vw, 72px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.service { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; padding: 22px; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.service:nth-child(3n) { border-right: 0; }
.service:nth-last-child(-n+3) { border-bottom: 0; }
.service:hover { background: var(--tint); color: var(--ink); }
.sv-ic { grid-row: span 2; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand-700); }
.sv-ic .ic { width: 24px; height: 24px; }
.sv-t { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sv-t .ext { width: 14px; height: 14px; color: var(--muted); }
.sv-d { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* Director */
.director { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; padding: clamp(52px, 7vw, 88px) 0; }
.director-pattern { position: absolute; inset: 0; background-image: var(--prajam); background-size: 56px; opacity: .08; }
.director-grid { position: relative; display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.director-photo { margin: 0; width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--brand-800); box-shadow: 0 0 0 6px var(--brand-900), 0 0 0 7.5px var(--gold); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.director-text h2 { color: var(--gold-soft); font-family: var(--f-text); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.director blockquote { margin: 0 0 22px; }
.director blockquote p { font-family: var(--f-display); font-size: clamp(1.1rem, 1.9vw, 1.38rem); line-height: 1.85; font-weight: 500; color: #fff; max-width: 38em; margin: 0; }
.director blockquote .q { display: none; }
.d-name { font-weight: 700; font-size: 1.05rem; margin: 0; }
.d-title { color: rgba(255,255,255,.7); margin-bottom: 18px; }

/* Awards */
.awards { padding: clamp(44px, 6vw, 72px) 0; background: var(--paper); }
.scroller-ctrl { display: flex; align-items: center; gap: 6px; }
.scroller-ctrl .icon-btn { border: 1px solid var(--line-2); width: 38px; height: 38px; }
.scroller-ctrl .more { margin-left: 8px; }
.award-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 23%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.award { scroll-snap-align: start; }
.award a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--r-md); overflow: hidden; color: var(--ink); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.award a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.aw-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.aw-media img { width: 100%; height: 100%; object-fit: cover; }
.aw-body { padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; position: relative; }
.aw-ic { position: absolute; top: -21px; right: 14px; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--gold); color: var(--brand-950); }
.aw-t { font-weight: 600; line-height: 1.55; font-size: .94rem; }
.aw-body time { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* Events + journal */
.duo { padding: clamp(44px, 6vw, 72px) 0; background: var(--porcelain); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 52px); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ev-date { flex: none; width: 62px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand-700); border-radius: 10px; padding: 6px 0; line-height: 1.2; font-size: .76rem; color: var(--muted); }
.ev-date b { display: block; font-size: 1.4rem; font-family: var(--f-display); color: var(--brand-800); }
.ev-body { display: flex; flex-direction: column; }
.ev-body strong { color: var(--ink); }
.ev-body span { color: var(--muted); font-size: .9rem; }
.ev-detail { margin-top: 4px; }
.event-list.past .ev-date { border-top-color: var(--line-2); }
.journal-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.journal-shelf.big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px; }
.jcover { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.jc-book { display: block; aspect-ratio: 3 / 4.2; border-radius: 3px 10px 10px 3px; overflow: hidden; position: relative; background: var(--brand-800); box-shadow: inset 6px 0 0 rgba(0,0,0,.2), 0 10px 22px -10px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
a.jcover:hover .jc-book { transform: translateY(-4px) rotate(-1deg); }
.jc-book img { width: 100%; height: 100%; object-fit: cover; }
.jc-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px 14px 18px; color: #fff; background-image: var(--prajam); background-size: 40px; }
.jc-art::before { content: ""; position: absolute; inset: 10px 10px 10px 16px; border: 1px solid rgba(214,161,38,.55); border-radius: 4px; }
.jc-art small { font-size: .7rem; color: var(--gold-soft); position: relative; }
.jc-art b { font-family: var(--f-display); font-size: .92rem; line-height: 1.3; position: relative; }
.jc-art em { font-style: normal; font-size: .78rem; color: rgba(255,255,255,.8); position: relative; }
.jc-meta { display: flex; flex-direction: column; line-height: 1.45; font-size: .88rem; }
.jc-meta span { color: var(--muted); font-size: .82rem; }
.jc-meta i { font-style: normal; font-size: .74rem; color: var(--brand-700); }
.empty-box { text-align: center; padding: 36px 20px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); }
.empty-box > .ic { width: 34px; height: 34px; color: var(--brand-700); margin: 0 auto 8px; display: block; }

/* Trio row: testimonials / announcements / tour */
.trio { padding: clamp(44px, 6vw, 72px) 0; }
.trio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; min-width: 0; }
.tcard h2 { font-family: var(--f-text); font-size: 1rem; font-weight: 700; color: var(--brand-800); margin: 0 0 14px; }
.testi { position: relative; flex: 1; display: flex; flex-direction: column; }
.testi-item { display: none; flex-direction: column; flex: 1; }
.testi-item.on { display: flex; }
.testi-item .qm { font-family: var(--f-display); font-size: 3rem; line-height: .6; color: var(--brand-700); height: 22px; }
.testi-item blockquote { margin: 6px 0 16px; color: var(--ink-2); font-size: .94rem; line-height: 1.7; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-who img, .testi-who .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tint); display: grid; place-items: center; color: var(--brand-700); font-weight: 700; flex: none; }
.testi-who b { display: block; font-size: .92rem; }
.testi-who small { color: var(--muted); font-size: .8rem; }
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 2px; }
.testi-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); }
.testi-dots button[aria-selected="true"] { background: var(--brand-700); }
.ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ann-list a { display: flex; gap: 12px; color: var(--ink); align-items: flex-start; }
.ann-list time { flex: none; width: 50px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); line-height: 1.15; }
.ann-list time small { display: block; background: var(--brand-700); color: #fff; font-size: .7rem; padding: 2px 0; }
.ann-list time b { display: block; font-family: var(--f-display); font-size: 1.15rem; padding: 3px 0; color: var(--ink); }
.ann-list .a-title { font-size: .9rem; font-weight: 600; line-height: 1.5; }
.ann-list a:hover .a-title { color: var(--brand-700); }
.ann-list .a-more { display: block; font-size: .78rem; color: var(--brand-700); font-weight: 600; }
.tour-card { background: var(--brand-800); color: #fff; border: 0; position: relative; overflow: hidden; justify-content: center; }
.tour-card::after { content: ""; position: absolute; right: -20px; bottom: -10px; width: 190px; height: 170px; opacity: .14; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M10 88V40h80v48M4 40 50 12l46 28M50 12V2M44 4h12M24 88V56h12v32M64 88V56h12v32M42 88V60h16v28M18 48h64'/%3E%3Ccircle cx='50' cy='30' r='5'/%3E%3C/svg%3E") no-repeat center / contain; }
.tour-card h2 { color: #fff; font-family: var(--f-display); font-size: 1.35rem; margin-bottom: 8px; }
.tour-card p { color: rgba(255,255,255,.85); font-size: .94rem; position: relative; z-index: 1; }
.tour-card .btn { align-self: flex-start; position: relative; z-index: 1; background: #fff; color: var(--brand-800); }
.tour-card .btn:hover { background: var(--gold-wash); }

/* Partners */
.partners { padding: clamp(44px, 6vw, 72px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.partner-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.partner-row a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 14px; border-radius: var(--r-md); color: var(--ink); border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: .94rem; transition: border-color .2s, background .2s; }
.partner-row a:hover { border-color: var(--brand-700); background: var(--tint); }
.partner-row img { height: 80px; width: auto; object-fit: contain; }

/* Admission / tour pages */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.adm-info { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-1); }
.adm-info h2 { font-size: 1.3rem; }
.steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--muted); font-size: .94rem; }
.enq-form { display: flex; flex-direction: column; gap: 12px; }
.enq-form label > span { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: 4px; }
.enq-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; background: var(--brand-900); color: #fff; padding: 38px 0 44px; overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 6px 0 0; max-width: 32em; }
.ph-sub { color: rgba(255, 255, 255, .75); margin: 8px 0 0; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .88rem; }
.crumb a { color: var(--gold-soft); }
.crumb .ic { width: 14px; height: 14px; color: rgba(255, 255, 255, .5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { padding: 7px 16px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.chips a:hover { border-color: var(--brand-800); color: var(--brand-800); }
.chips a.on { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; color: var(--tag, var(--link)); background: color-mix(in srgb, var(--tag, var(--link)) 12%, white); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card-post { background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.cp-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); display: block; }
.cp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-post:hover .cp-media img { transform: scale(1.04); }
.cp-noimg { display: grid; place-items: center; height: 100%; color: var(--line-2); }
.cp-noimg .ic { width: 48px; height: 48px; }
.cp-body { padding: 16px 20px 20px; }
.cp-meta { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.cp-body h3 { font-family: var(--f-text); font-size: 1.04rem; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.cp-body h3 a { color: var(--brand-900); }
.cp-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.pager .cur { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-1); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-cover { margin: 0 0 24px; border-radius: var(--r-md); overflow: hidden; }
.article-side { position: sticky; top: 100px; }
.side-h { font-size: 1.1rem; }
.side-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.side-item img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); width: 100%; }
.side-item b { font-weight: 600; font-size: .92rem; line-height: 1.5; display: block; }
.side-item time { font-size: .8rem; color: var(--muted); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .92rem; color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--brand-800); font-size: .88rem; }
.share .line { color: #06C755; font-weight: 700; }

/* Prose */
.prose { font-size: 1.04rem; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.08rem; margin: 1.2em 0 .4em; font-family: var(--f-text); }
.prose .center { text-align: center; }
.prose img { border-radius: var(--r-sm); margin: 1em auto; cursor: zoom-in; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--gold-wash); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--porcelain); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); margin: 1em 0; height: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.4em 0; }
.gallery-grid > * { margin: 0 !important; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.notice { background: var(--gold-wash); border: 1px solid var(--gold-soft); padding: 10px 16px; border-radius: var(--r-sm); }
.updated { color: var(--muted); font-size: .85rem; margin-top: 30px; }

.page-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.page-side nav { position: sticky; top: 100px; background: var(--paper); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.page-side a { padding: 9px 14px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.page-side a.child { padding-left: 26px; }
.page-side a:hover { background: var(--porcelain); }
.page-side a.on { background: var(--gold-wash); color: var(--brand-900); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.page-body { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-1); min-width: 0; }

/* Staff */
.staff-sec + .staff-sec { margin-top: 44px; }
.staff-h { font-size: 1.3rem; text-align: center; margin-bottom: 22px; }
.staff-h::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 3px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 18px; justify-content: center; }
.staff-grid.heads { grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); margin-bottom: 30px; }
.person { margin: 0; text-align: center; }
.ps-photo { display: block; aspect-ratio: 5 / 7; border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--porcelain); border: 1px solid var(--line); position: relative; }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.ps-photo > .ic { width: 50%; height: 50%; margin: 25% auto; color: var(--line-2); }
.person.card-only .ps-photo { border-radius: var(--r-md); }
.heads .ps-photo { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--gold); border: 0; }
.person figcaption { padding-top: 12px; line-height: 1.45; }
.person strong { display: block; color: var(--brand-900); font-size: .98rem; }
.person span { display: block; color: var(--muted); font-size: .86rem; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.group-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 18px; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s; }
.group-card:hover { border-color: var(--gold); color: var(--ink); }
.gc-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-deep); }
.group-card strong { color: var(--brand-900); line-height: 1.4; }
.group-card span:last-child { color: var(--muted); font-size: .88rem; }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.dl-side { position: sticky; top: 100px; }
.search-inline { display: flex; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; margin-bottom: 14px; }
.search-inline input { flex: 1; border: 0; outline: 0; font: inherit; background: none; min-width: 0; }
.search-inline button { border: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-800); color: #fff; display: grid; place-items: center; }
.dl-cats { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-1); }
.dl-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .93rem; }
.dl-cats a b { font-weight: 600; color: var(--muted); font-size: .82rem; }
.dl-cats a:hover { background: var(--porcelain); }
.dl-cats a.on { background: var(--gold-wash); color: var(--brand-900); font-weight: 700; }
.dl-h { font-size: 1.15rem; margin: 26px 0 10px; }
.dl-h:first-child { margin-top: 0; }
.dl-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; }
.dl-t { flex: 1; line-height: 1.5; font-size: .96rem; }
.dl-t small { display: block; color: var(--muted); font-size: .78rem; }
.ft { flex: none; width: 46px; height: 52px; border-radius: 6px 14px 6px 6px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--muted); letter-spacing: .02em; }
.ft-doc { background: #2B5797; } .ft-xls { background: #1E7145; } .ft-pdf { background: #C0392B; } .ft-ppt { background: #D2502A; } .ft-cloud { background: var(--link); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info, .contact-form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-1); }
.contact-info h2, .contact-form h2 { font-size: 1.3rem; }
.addr { color: var(--ink-2); }
.map { border-radius: var(--r-md); overflow: hidden; margin-top: 18px; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--link); box-shadow: 0 0 0 3px rgba(37, 71, 168, .15); }
.field em { display: block; font-style: normal; color: var(--err); font-size: .86rem; margin-top: 4px; }
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.success { display: flex; gap: 14px; background: #EAF6EF; border: 1px solid #BFE3CD; color: var(--ok); border-radius: var(--r-md); padding: 18px; }
.success .ic { width: 28px; height: 28px; }
.success p { margin: 2px 0 0; color: var(--ink-2); }

/* Search + results + misc */
.search-big { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 20px; margin-bottom: 18px; }
.search-big > .ic { color: var(--muted); }
.search-big input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; background: none; min-width: 0; }
.sub-h { font-size: 1.15rem; margin: 30px 0 12px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 8px; color: var(--ink); }
.result-list a:hover { border-color: var(--gold); }
.result-list b { color: var(--brand-900); display: block; }
.result-list span { color: var(--muted); font-size: .9rem; }
.callout { display: flex; align-items: center; gap: 14px; background: var(--brand-800); color: #fff; border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px; }
.callout:hover { background: var(--brand-700); color: #fff; }
.callout > .ic { width: 28px; height: 28px; color: var(--gold-soft); }
.callout span { flex: 1; display: flex; flex-direction: column; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.callout b { color: #fff; font-size: 1.02rem; }
.error-page { padding: 90px 0; }
.err-code { font-family: var(--f-display); font-size: 6rem; line-height: 1; color: var(--gold); margin: 0; font-weight: 800; }
.error-page .search-big { margin: 24px auto; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .75); position: relative; margin-top: 0; }
.footer-ornament { height: 14px; background:
  radial-gradient(circle at 7px 0, transparent 6px, var(--gold) 6.5px, var(--gold) 7.5px, transparent 8px) 0 0 / 14px 14px repeat-x,
  var(--brand-950); border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; padding-block: 52px 36px; }
.f-brand img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.f-name { font-family: var(--f-display); color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.55; }
.f-addr { font-size: .92rem; }
.f-h { color: var(--gold-soft); font-family: var(--f-text); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { margin-bottom: 6px; }
.f-list a, .f-contact a { color: rgba(255, 255, 255, .78); font-size: .94rem; }
.f-list a:hover, .f-contact a:hover { color: #fff; }
.f-contact { list-style: none; margin: 0; padding: 0; }
.f-contact li { display: flex; gap: 10px; margin-bottom: 8px; font-size: .94rem; align-items: flex-start; }
.f-contact .ic { color: var(--gold); margin-top: 5px; }
.f-contact.dark li, .f-contact.dark a { color: var(--ink-2); }
.f-social { display: flex; gap: 8px; margin-top: 14px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.f-social a:hover { background: var(--gold); color: var(--brand-950); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .6); margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-800); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 40; }
.to-top .ic { transform: rotate(180deg); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--gold-soft); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8, 14, 32, .94); display: grid; place-items: center; padding: 40px 60px; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox [data-close] { position: absolute; top: 14px; right: 14px; color: #fff; }
.lightbox [data-close]:hover { background: rgba(255, 255, 255, .1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .news-grid, .duo-grid, .features-grid, .article-grid, .page-grid, .dl-grid, .contact-grid { grid-template-columns: 1fr; }
  .article-side, .page-side nav, .dl-side { position: static; }
  .director-grid { grid-template-columns: 1fr; text-align: center; }
  .director-photo { max-width: 280px; margin: 0 auto; }
  .director blockquote p { margin-inline: auto; }
  .levels-row { grid-template-columns: 1fr 1fr; }
  .level:nth-child(3)::before { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .award-track { grid-auto-columns: minmax(230px, 42%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-links a:not(.social) { display: none; }
  .brand-text strong { font-size: .9rem; }
  .brand-text small { font-size: .75rem; }
  .brand img { width: 46px; height: 46px; }
  .header-inner { min-height: 68px; gap: 10px; }
  .hide-sm { display: none; }
  .arch-frame { border-radius: 50% 50% var(--r-sm) var(--r-sm) / 16% 16% var(--r-sm) var(--r-sm); box-shadow: 0 0 0 4px var(--brand-900), 0 0 0 5px var(--gold); }
  .lead-story { grid-template-columns: 1fr; }
  .ls-body { padding: 0 18px 20px; }
  .story-list { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service:last-child { border-bottom: 0 !important; }
  .journal-shelf { grid-template-columns: 1fr 1fr; }
  .mission ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .award-track { grid-auto-columns: 78%; }
  .dl-item { flex-wrap: wrap; }
  .dl-item .btn { width: 100%; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .lightbox { padding: 50px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .to-top, .share, .article-side, .page-side { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head h1 { color: #000; }
}

/* Keep dropdowns inside the viewport */
html, body { overflow-x: clip; }
.mainnav > ul > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; transform: translateY(6px); }
.mainnav > ul > li:nth-last-child(-n+3).open > .sub,
.mainnav > ul > li:nth-last-child(-n+3):hover > .sub,
.mainnav > ul > li:nth-last-child(-n+3):focus-within > .sub { transform: none; }
.mainnav > ul > li:nth-child(-n+3) > .sub { left: 0; transform: translateY(6px); }
.mainnav > ul > li:nth-child(-n+3).open > .sub,
.mainnav > ul > li:nth-child(-n+3):hover > .sub,
.mainnav > ul > li:nth-child(-n+3):focus-within > .sub { transform: none; }
.director blockquote .q { top: -34px; left: -10px; }
@media (min-width: 641px) { .lead-story { grid-template-columns: 1.2fr 1fr; } }
.director-photo { width: 100%; }
/* Mega menus anchor to the nav bar, not the item */
.mainnav > ul { position: relative; }
.mainnav > ul > li.is-mega { position: static; }
.mainnav > ul > li.is-mega > .sub { left: auto !important; right: 0; transform: translateY(6px) !important; }
.mainnav > ul > li.is-mega.open > .sub, .mainnav > ul > li.is-mega:hover > .sub, .mainnav > ul > li.is-mega:focus-within > .sub { transform: none !important; }
.director blockquote .q { left: -66px; top: -6px; opacity: .35; }
@media (max-width: 960px) { .director blockquote .q { display: none; } }

/* ==========================================================================
   Chrome v2 — topbar, header, footer, floating actions
   ========================================================================== */
.topbar { background: var(--brand-800); color: rgba(255,255,255,.9); }
.topbar .wrap { min-height: 40px; }
.tb-contact { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); font-size: .84rem; white-space: nowrap; }
.tb-item .ic { width: 15px; height: 15px; }
a.tb-item:hover { color: #fff; }
.topbar-links a { color: rgba(255,255,255,.9); }
.topbar-links a:hover { color: var(--gold-soft); }
.topbar-links .social { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.topbar-links .social .ic { width: 14px; height: 14px; }
.site-header { background: rgba(255,255,255,.96); }
.header-inner { min-height: 84px; }
.brand-text strong { color: var(--brand-800); font-size: 1.04rem; }
.brand-text small { color: var(--ink-2); font-weight: 500; }
.mainnav .top-link, .mainnav > ul > li > button { font-weight: 600; font-size: .93rem; color: var(--ink); }
.mainnav > ul > li:hover > button, .mainnav > ul > li > button[aria-expanded="true"], .mainnav .top-link:hover { color: var(--brand-700); background: var(--tint); }
body.is-home .mainnav li:first-child .top-link { color: var(--brand-700); box-shadow: inset 0 -2px 0 var(--brand-700); border-radius: 0; }
.mainnav .sub::after { background: var(--brand-700); }
.mainnav .sub a:hover { background: var(--tint); color: var(--brand-800); }
.icon-btn:hover { background: var(--tint); }
.page-head { background: var(--brand-900); }
.page-head-pattern { opacity: .08; }
.crumb a { color: var(--gold-soft); }
.chips a.on { background: var(--brand-700); border-color: var(--brand-700); }
.chips a:hover { border-color: var(--brand-700); color: var(--brand-700); }
.pager .cur { background: var(--brand-700); border-color: var(--brand-700); }
.btn-navy { background: var(--brand-700); }
.btn-navy:hover { background: var(--brand-800); }
.page-side a.on, .dl-cats a.on { background: var(--tint); box-shadow: inset 3px 0 0 var(--brand-700); }
.sec-head h2::after, .staff-h::after { background: var(--brand-700); }
.heads .ps-photo { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--brand-700); }
.callout { background: var(--brand-800); }
.callout:hover { background: var(--brand-700); }
.err-code { color: var(--brand-700); }
.ferr { display: block; font-style: normal; color: var(--err); font-size: .82rem; margin-top: 3px; }

/* Footer v2 */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.8); }
.footer-ornament { display: none; }
.footer-grid { grid-template-columns: 1.5fr .9fr .9fr .9fr 1.2fr 1.3fr; gap: 28px; padding-block: 52px 36px; }
.f-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.f-logo img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; margin: 0; }
.f-name { font-family: var(--f-display); color: #fff; font-weight: 700; font-size: .98rem; line-height: 1.45; margin: 0; }
.f-name small { font-weight: 500; color: var(--gold-soft); }
.f-tag { font-size: .88rem; }
.f-h { color: #fff; font-size: .95rem; position: relative; padding-bottom: 8px; }
.f-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); }
.f-list a, .f-contact a, .f-contact span { color: rgba(255,255,255,.78); font-size: .88rem; }
.f-contact .ic { color: var(--gold-soft); }
.f-news p { font-size: .88rem; }
.subscribe { display: flex; flex-wrap: wrap; background: #fff; border-radius: 8px; padding: 4px; }
.subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .9rem; padding: 8px 10px; background: none; color: var(--ink); }
.subscribe button { width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--brand-700); color: #fff; display: grid; place-items: center; }
.subscribe .form-msg { flex-basis: 100%; margin-top: 4px; font-size: .82rem; }
.f-social a:hover { background: var(--gold); color: var(--brand-950); border-color: var(--gold); }
.footer-bottom { background: rgba(0,0,0,.18); }
.to-top { background: var(--brand-700); }

/* Floating LINE + mobile action bar */
.fab-line { position: fixed; right: 18px; bottom: 76px; z-index: 45; display: flex; align-items: center; gap: 8px; background: #06C755; color: #fff; border-radius: 99px; padding: 10px 16px 10px 12px; font-weight: 700; font-size: .9rem; box-shadow: 0 10px 26px -8px rgba(6,199,85,.6); }
.fab-line:hover { color: #fff; filter: brightness(1.05); }
.fab-line svg { width: 26px; height: 26px; }
.mobile-bar { display: none; }

/* Responsive v2 */
@media (max-width: 1180px) {
  .hero2-inner { grid-template-columns: minmax(0, 1fr) 310px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .act-grid { grid-template-columns: repeat(3, 1fr); }
  .welcome2-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero2-media { position: relative; inset: auto; height: 300px; }
  .hero2-media::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,0) 40%); }
  .hero2-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 0; margin-top: -40px; }
  .hero2-dots { bottom: 50px; left: 50%; transform: translateX(-50%); }
  .band-row { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .band-item:nth-child(odd) { border-left: 0; }
  .news2-grid, .duo-grid, .trio-grid, .adm-grid { grid-template-columns: 1fr; }
  .director-grid { grid-template-columns: 1fr; text-align: center; }
  .director-photo { max-width: 260px; margin: 0 auto; }
  .director blockquote p { margin-inline: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .award-track { grid-auto-columns: minmax(220px, 42%); }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) {
  .hero2-title { font-size: 2.2rem; }
  .hero2-feats { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .welcome2-grid { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat2:nth-child(-n+3) { border-bottom: 0; }
  .stat2 { border-bottom: 1px solid var(--line); border-left: 0 !important; }
  .stat2:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .band-row { grid-template-columns: 1fr; }
  .band-item { border-left: 0 !important; }
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service:last-child { border-bottom: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand, .f-news { grid-column: 1 / -1; }
  .enq-form .row2 { grid-template-columns: 1fr; }
  .story-sm { grid-template-columns: 96px 1fr; }
  .award-track { grid-auto-columns: 78%; }
  .journal-shelf { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .72rem; color: var(--ink-2); }
  .mobile-bar a:first-child { color: var(--brand-700); font-weight: 700; }
  .mobile-bar .ic { width: 20px; height: 20px; }
  body { padding-bottom: 60px; }
  .to-top { bottom: 72px; }
  .fab-line { bottom: 128px; padding: 10px; }
  .fab-line span { display: none; }
  .tb-contact { gap: 12px; }
}

/* Header fit (v2) */
.site-header .wrap { max-width: 1400px; }
.brand { flex: none; }
.brand-text strong { white-space: nowrap; }
.brand-text small { white-space: nowrap; }
.mainnav .top-link, .mainnav > ul > li > button { padding: 9px 9px; font-size: .9rem; }
@media (max-width: 1360px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-text strong { white-space: normal; font-size: .86rem; }
}

/* Stats card (v2): icon on top, compact */
@media (min-width: 1181px) { .welcome2-grid { grid-template-columns: .95fr 1.05fr 1.3fr; } }
.stat2 { grid-template-columns: 1fr; text-align: left; padding: 18px 16px; row-gap: 4px; align-content: start; }
.stat2 .ic { grid-row: auto; width: 30px; height: 30px; margin-bottom: 4px; }
.stat2 b { font-size: 1.55rem; }
.stat2 span { font-size: .82rem; }
@media (max-width: 760px) {
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text strong, .brand-text small { white-space: normal; }
  .brand-text strong { font-size: .86rem; line-height: 1.35; }
}
@media (max-width: 640px) {
  .welcome2-grid { grid-template-columns: 1fr; }
  .pg-media { aspect-ratio: 16 / 7; }
  .program-grid { gap: 14px; }
}
@media (max-width: 640px) {
  .stats-card .stat2 { border-bottom: 1px solid var(--line) !important; }
  .stats-card .stat2:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
