@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kanit/Kanit-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/kanit/Kanit-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/kanit/Kanit-SemiBold.ttf") format("truetype");
}

:root {
  --navy: #103f70;
  --navy-2: #174f85;
  --teal: #0757a6;
  --teal-dark: #103f70;
  --gold: #e2a62b;
  --ink: #17324d;
  --muted: #5f7184;
  --line: #d8e2ec;
  --surface: #fff;
  --bg: #f5f8fb;
  --danger: #b42318;
  --success: #137a45;
  --warning: #9a6700;
  --radius: 12px;
  --shadow: 0 12px 34px rgba(16, 63, 112, .1);
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Kanit", "Noto Sans Thai", Tahoma, Arial, sans-serif; font-weight: 400; line-height: 1.65; }
a { color: var(--teal-dark); }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 48, 74, .97); color: white; box-shadow: 0 4px 18px #102a3d22; }
.public-header { background: #103f70; }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 600; line-height: 1.25; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand small { display: block; font-size: .75rem; font-weight: 500; opacity: .78; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: white; text-decoration: none; padding: 10px 13px; border-radius: 10px; }
.nav-links form { margin: 0; }
.nav-action { color: white; background: transparent; border: 0; text-decoration: none; padding: 10px 13px; border-radius: 10px; font: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-action:hover, .nav-action:focus-visible { background: #ffffff1c; }
.nav-toggle { display: none; border: 1px solid #ffffff44; background: transparent; color: white; padding: 9px 12px; border-radius: 10px; font: inherit; }
main { min-height: calc(100vh - 170px); }
.hero { padding: 24px 0; }
.hero-banner { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.hero-card { position: relative; overflow: hidden; margin-top: 18px; border-radius: 24px; background: linear-gradient(135deg, #00695c 0%, #00897b 58%, #004d40 100%); color: white; box-shadow: 0 16px 40px rgba(0, 77, 64, .2); }
.hero-card::before, .hero-card::after { position: absolute; content: ""; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-card::before { width: 300px; height: 300px; top: -190px; right: -70px; }
.hero-card::after { width: 210px; height: 210px; bottom: -145px; left: -50px; }
.hero-copy { position: relative; z-index: 1; max-width: 920px; margin-inline: auto; padding: clamp(28px, 5vw, 58px); text-align: center; }
.hero-copy .actions { justify-content: center; }
.hero-copy .btn { background: white; color: var(--teal-dark); }
.hero-copy .btn:hover { background: #e7f6f5; }
.hero-copy .btn.outline { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); color: white; }
.hero-emblem { width: 72px; height: 72px; margin-bottom: 10px; object-fit: contain; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .03em; }
h1, h2, h3 { line-height: 1.25; margin-top: 0; color: var(--navy); font-weight: 600; }
.hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.5rem); margin: 10px 0 16px; }
.hero-image { display: block; width: 100%; height: auto; object-fit: contain; }
.home-shell { padding-top: 24px; padding-bottom: 18px; }
.admission-banner { overflow: hidden; border: 1px solid #cbd9e6; border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(16, 63, 112, .08); }
.admission-banner a, .admission-banner img { display: block; width: 100%; }
.admission-banner img { height: auto; }
.home-panel, .schedule-panel { margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(16, 63, 112, .06); }
.home-block { padding: 24px 26px; scroll-margin-top: 90px; }
.home-block + .home-block { border-top: 1px solid var(--line); }
.announcement-block { background: #eef6fd; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title h1, .section-title h2 { margin: 0; color: var(--navy); }
.section-title h1 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.section-title h2 { font-size: clamp(1.2rem, 2.2vw, 1.48rem); }
.section-title p { margin: 5px 0 0; color: var(--muted); }
.compact-title { align-items: flex-start; justify-content: flex-start; margin: 0; }
.section-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--navy); color: white; font-weight: 600; place-items: center; }
.resource-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.resource-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; padding: 12px 14px; transition: background-color .18s ease, box-shadow .18s ease; }
.resource-row + .resource-row { border-top: 1px solid var(--line); }
.resource-row:hover, .resource-row:focus-within { background: #f7fbff; box-shadow: inset 3px 0 0 var(--teal); }
.resource-icon { display: grid; width: 42px; height: 48px; grid-template-rows: 1fr auto; place-items: center; border: 1px solid #cfe0f1; border-radius: 9px; background: #eaf4fd; color: var(--navy); line-height: 1; }
.resource-icon svg { width: 21px; height: 21px; margin-top: 5px; fill: currentColor; }
.resource-icon span { width: 100%; border-top: 1px solid #cfe0f1; padding: 4px 0; text-align: center; font-size: .58rem; font-weight: 600; letter-spacing: .04em; }
.resource-copy { min-width: 0; }
.resource-copy strong, .resource-copy small { display: block; }
.resource-copy strong { color: var(--navy); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.resource-copy small { margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.resource-download { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #b9d1e8; border-radius: 9px; padding: 7px 12px; background: #fff; color: var(--navy); font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.resource-download:hover { border-color: var(--teal); background: var(--teal); color: #fff; transform: translateY(-1px); }
.resource-download:focus-visible { outline: 3px solid #0757a633; outline-offset: 2px; }
.download-mark { font-size: 1.08rem; line-height: 1; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.application-list { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.application-row { display: grid; grid-template-columns: minmax(170px, .7fr) 2fr; align-items: center; gap: 20px; padding: 17px; }
.application-row + .application-row { border-top: 1px solid var(--line); }
.application-level { color: var(--navy); }
.application-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.application-option { min-width: 0; }
.application-option small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.program-btn { width: 100%; min-height: 42px; border-radius: 8px; }
.welfare-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.welfare-group { min-width: 0; }
.welfare-group-title { margin-bottom: 5px; color: var(--navy); font-size: 1rem; }
.welfare-links { border-top: 2px solid #d8e7f4; }
.welfare-links a, .welfare-link-disabled { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 2px; color: var(--navy); font-weight: 500; text-decoration: none; }
.welfare-links a:hover, .welfare-links a:focus-visible { color: var(--teal); background: #f7fbff; }
.welfare-links a:focus-visible { outline: 3px solid #0757a633; outline-offset: 2px; }
.welfare-links a span, .welfare-link-disabled span { font-size: 1.5rem; line-height: 1; }
.welfare-link-disabled { color: #8794a3; cursor: not-allowed; }
.welfare-link-disabled span { opacity: .45; }
.welfare-window-status { margin: -2px 0 18px; border: 1px solid #cbdceb; border-radius: 8px; padding: 9px 12px; background: #f5f9fd; color: var(--navy); font-size: .9rem; }
.welfare-window-status[data-state="open"] { border-color: #a8d8c6; background: #eefaf5; color: #176347; }
.welfare-window-status[data-state="closed"] { border-color: #d8dee5; background: #f5f6f8; color: var(--muted); }
.inline-note { margin-top: 16px; border-left: 4px solid #e2a62b; padding: 10px 13px; background: #fff9e9; color: #71551a; }
.schedule-panel { padding: 24px 26px 26px; scroll-margin-top: 90px; }
.schedule-title { align-items: flex-start; }
.filter-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8fb; }
.filter-tabs button { appearance: none; border: 0; border-radius: 6px; padding: 7px 11px; background: transparent; color: var(--navy); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; }
.filter-tabs button:hover, .filter-tabs button:focus-visible { background: #e5f0fb; }
.filter-tabs button:focus-visible { outline: 3px solid #0757a633; }
.filter-tabs button.active { background: var(--navy); color: white; }
.annual-schedule-wrap { border-radius: 8px; }
.annual-schedule { white-space: normal; }
.annual-schedule th:first-child { width: 28%; }
.annual-schedule th:nth-child(2) { width: 16%; }
.annual-schedule thead th { background: #dceeff; color: #103f70; }
.annual-schedule tbody tr:nth-child(even) { background: #f8fbfe; }
.annual-schedule tr[hidden] { display: none !important; }
.annual-schedule tbody th { color: var(--ink); font-weight: 600; }
.annual-schedule td, .annual-schedule th { padding: 14px; }
.annual-schedule ul { margin: 8px 0 0; padding-left: 20px; }
.schedule-time { display: block; margin-top: 4px; color: #0757a6; font-weight: 600; }
.course-label { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #e5f0fb; color: var(--navy); font-size: .82rem; font-weight: 600; }
.schedule-warning { margin-top: 6px; color: var(--danger); font-weight: 600; }
.schedule-link { display: inline-block; margin-top: 7px; font-weight: 600; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.section { padding: 30px 0; }
.home-section { scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading > div { min-width: 0; }
.section-heading h1, .section-heading h2 { margin: 0 0 6px; }
.section-heading p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(18, 48, 74, .06); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.notice-card { border-left: 5px solid var(--gold); }
.application-card { display: flex; flex-direction: column; }
.application-card .actions { margin-top: auto; }
.document-card { position: relative; display: flex; min-height: 220px; flex-direction: column; }
.document-card .actions { margin-top: auto; }
.document-icon { display: grid; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 12px; background: #e7f6f5; color: var(--teal-dark); font-size: 1.35rem; font-weight: 600; place-items: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .92rem; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 600; background: #e7f6f5; color: var(--teal-dark); }
.pill.closed { background: #f2f3f5; color: #59636e; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 11px 17px; background: var(--teal); color: white; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--teal-dark); color: white; }
.btn:disabled, .btn.disabled { cursor: not-allowed; background: #aab5bd; opacity: .8; }
.btn.secondary { background: var(--navy); }
.btn.outline { background: transparent; border: 1px solid var(--teal); color: var(--teal-dark); }
.btn.danger { background: var(--danger); }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-section > form > .actions { margin-top: 20px; }
.form-section > form + .actions { margin-top: 16px; }
.search-grid + .actions { margin-top: 18px; }
.form-shell { max-width: 940px; margin: 34px auto; }
.form-section { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); margin-bottom: 18px; box-shadow: 0 8px 24px rgba(18, 48, 74, .05); }
.form-section > h2 { font-size: 1.25rem; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 17px; }
.field { grid-column: span 6; }
.field.full { grid-column: 1 / -1; }
.field.third { grid-column: span 4; }
label { display: block; font-weight: 500; margin-bottom: 6px; }
.required::after { content: " *"; color: var(--danger); }
input, select, textarea { width: 100%; border: 1px solid #b9c6cf; border-radius: 11px; min-height: 46px; padding: 10px 12px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 95px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #19a6a52b; border-color: var(--teal); }
.help { display: block; color: var(--muted); font-size: .87rem; margin-top: 5px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: 20px; min-height: 20px; margin-top: 3px; flex: 0 0 20px; }
.checkbox label { font-weight: 500; margin: 0; }
.choice-group { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.choice-group legend { padding: 0 6px; font-weight: 500; }
.choice-group .checkbox + .checkbox { margin-top: 8px; }
.alert { border-radius: 13px; padding: 13px 16px; margin: 16px 0; border: 1px solid; }
.alert.success { color: var(--success); background: #eaf8f0; border-color: #a9dfbf; }
.alert.warning { color: var(--warning); background: #fff7df; border-color: #eed28a; }
.alert.danger { color: var(--danger); background: #fff0ee; border-color: #f1b2ab; }
.alert.info { color: #075985; background: #eaf6fc; border-color: #abd7eb; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy); background: #f5f8fa; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.schedule-filter { display: grid; grid-template-columns: minmax(240px, 520px) auto; gap: 12px; align-items: end; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(18,48,74,.05); }
.schedule-filter .field { grid-column: auto; }
.schedule-table { white-space: normal; }
.schedule-table th:first-child { width: 31%; }
.schedule-table th:nth-child(2) { width: 25%; }
.schedule-table p { margin: 6px 0; color: var(--muted); }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-tags span { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #e7f6f5; color: var(--teal-dark); font-size: .82rem; font-weight: 600; }
.schedule-cards { display: none; gap: 14px; }
.schedule-card { border-left: 5px solid var(--teal); }
.schedule-card h3 { margin: 12px 0 8px; }
.schedule-date { color: var(--teal-dark); font-weight: 600; }
.detail-list { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; gap: 9px 20px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; }
.application-number { font-size: clamp(2rem, 7vw, 4rem); letter-spacing: .08em; color: var(--teal-dark); font-weight: 600; }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: .86rem; font-weight: 500; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--danger); background: #fff9f8; }
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus { outline-color: #b4231826; }
.swal2-popup { font-family: "Kanit", "Noto Sans Thai", Tahoma, Arial, sans-serif; border-radius: 18px; }
.swal2-title { color: var(--navy); }

/* Centered administrator login */
.login-page { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #eaf3fb 0, #f5f8fb 42%, #eef3f7 100%); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(100%, 510px); overflow: hidden; border: 1px solid #d3dee8; border-radius: 22px; padding: clamp(24px, 5vw, 42px); background: white; box-shadow: 0 24px 70px rgba(16, 63, 112, .16); }
.login-brand { display: flex; align-items: center; gap: 13px; margin: -42px -42px 34px; padding: 24px 42px; background: linear-gradient(135deg, #103f70, #0757a6); color: white; text-decoration: none; }
.login-brand:hover { color: white; }
.login-brand span:last-child { min-width: 0; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 1.05rem; }
.login-brand small { margin-top: 2px; opacity: .8; font-size: .8rem; }
.login-emblem { width: 52px; height: 52px; display: grid; flex: 0 0 52px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff12; place-items: center; }
.login-emblem img { width: 43px; height: 43px; object-fit: contain; }
.login-heading { margin-bottom: 26px; text-align: center; }
.login-heading h1 { margin: 6px 0 7px; font-size: clamp(1.8rem, 5vw, 2.35rem); }
.login-heading p { margin: 0; color: var(--muted); }
.login-eyebrow { color: var(--teal); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.login-field { margin-bottom: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; top: 6px; right: 6px; min-height: 34px; border: 0; border-radius: 8px; padding: 4px 10px; background: #e7f0f8; color: var(--navy); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.login-submit { width: 100%; margin-top: 5px; }
.login-back { display: block; margin-top: 22px; color: var(--muted); text-align: center; text-decoration: none; }
.login-back:hover { color: var(--navy); }

/* Applicant wizard */
.application-stepper { margin: 20px 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(18, 48, 74, .05); scroll-margin-top: 90px; }
.application-stepper ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 22px 20px; list-style: none; }
.application-stepper li { position: relative; display: grid; justify-items: center; padding: 0 8px; color: #758493; text-align: center; }
.application-stepper li::after { position: absolute; z-index: 0; top: 19px; left: calc(50% + 24px); width: calc(100% - 48px); height: 3px; content: ""; background: #dbe4eb; }
.application-stepper li:last-child::after { display: none; }
.application-stepper li > span { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; border: 2px solid #c6d2dc; border-radius: 50%; background: white; color: #627587; font-weight: 600; place-items: center; }
.application-stepper li strong, .application-stepper li small { display: block; }
.application-stepper li strong { margin-top: 9px; color: #536779; }
.application-stepper li small { margin-top: 1px; }
.application-stepper li.active > span { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 0 0 7px #0757a619; }
.application-stepper li.active strong { color: var(--navy); }
.application-stepper li.complete > span { border-color: #2d8a65; background: #2d8a65; color: transparent; }
.application-stepper li.complete > span::after { position: absolute; content: "✓"; color: white; }
.application-stepper li.complete::after { background: #6bb296; }
.wizard-panel[hidden] { display: none !important; }
.wizard-panel.active { animation: panel-in .22s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Document upload with examples and previews */
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.upload-card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: #fbfdff; }
.upload-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.upload-card-heading label { margin: 0; }
.upload-card-heading small { display: block; margin-top: 3px; color: var(--muted); }
.file-type-badge { flex: 0 0 auto; border-radius: 999px; padding: 4px 9px; background: #e5f0fb; color: var(--navy); font-size: .76rem; font-weight: 600; }
.upload-example { min-height: 102px; display: flex; align-items: center; gap: 15px; margin: 16px 0; border: 1px solid #dbe5ed; border-radius: 12px; padding: 13px; background: white; }
.upload-example strong, .upload-example small { display: block; }
.upload-example small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.photo-example { width: 68px; height: 76px; display: grid; flex: 0 0 68px; overflow: hidden; border: 1px solid #b9cddd; border-radius: 8px; background: linear-gradient(#eaf3fb 65%, #d4e5f3 65%); place-items: center; }
.photo-example span { position: relative; width: 28px; height: 28px; margin-top: -16px; border-radius: 50%; background: #8da9bf; }
.photo-example span::after { position: absolute; top: 32px; left: -10px; width: 48px; height: 33px; border-radius: 24px 24px 8px 8px; content: ""; background: #8da9bf; }
.document-example { width: 64px; height: 76px; flex: 0 0 64px; border: 1px solid #b9cddd; border-radius: 7px; padding: 17px 10px; background: white; box-shadow: inset 0 8px #dcecff; }
.document-example i { display: block; height: 4px; margin: 6px 0; border-radius: 4px; background: #b9cbd8; }
.document-example i:nth-child(2) { width: 72%; }
.upload-dropzone { position: relative; min-height: 165px; display: grid; align-content: center; justify-items: center; margin: 0; border: 2px dashed #9fb8cc; border-radius: 13px; padding: 22px; background: #f1f7fc; color: var(--navy); text-align: center; cursor: pointer; transition: .18s ease; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: var(--teal); background: #e8f3fc; }
.upload-dropzone.is-invalid { border-color: var(--danger); background: #fff6f5; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; }
.upload-dropzone strong, .upload-dropzone small { display: block; }
.upload-dropzone small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.upload-icon { width: 44px; height: 44px; display: grid; margin-bottom: 8px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.6rem; font-weight: 400; line-height: 1; place-items: center; }
.upload-preview { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; border: 1px solid #cddbe6; border-radius: 11px; padding: 10px; background: white; }
.upload-preview[hidden] { display: none !important; }
.upload-preview-media { width: 64px; height: 54px; display: grid; overflow: hidden; border-radius: 8px; background: #eef4f8; place-items: center; }
.upload-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.pdf-preview-badge { color: #b42318; font-size: .9rem; font-weight: 600; }
.upload-preview-copy { min-width: 0; }
.upload-preview-copy strong, .upload-preview-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-copy small { color: var(--muted); }
.upload-preview button { border: 0; border-radius: 8px; padding: 7px 9px; background: #edf2f6; color: var(--navy); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.site-footer { background: var(--navy); color: #dce8ef; padding: 24px 0; margin-top: 40px; }
.site-footer a { color: white; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 38px; color: var(--muted); }
.admin-bar { background: #0a2438; }
.admin-page {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}
.admin-page > *, .admin-page .grid > * { min-width: 0; }
.admin-page > .section { padding: 0; }
.admin-page > .section-heading { margin-bottom: 0; }
.admin-page > .form-section, .admin-page .grid > .form-section { margin-bottom: 0; }
.admin-page > .form-shell { width: 100%; margin: 0 auto; }
.admin-page > .test-banner { margin: 0; }
.admin-page .grid-2 .card .table-wrap table,
.admin-page .grid-2 .form-section .table-wrap table { min-width: 480px; white-space: normal; }
.admin-page-body .site-footer { margin-top: 0; }
.stat { font-size: 2rem; font-weight: 600; color: var(--teal-dark); }
.search-grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr) auto; gap: 12px; align-items: end; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pagination a, .pagination span { padding: 7px 12px; background: white; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.pagination .current { background: var(--navy); color: white; }
.only-print { display: none; }
@media (max-width: 800px) {
  .container { width: min(1160px, calc(100% - 32px)); }
  .admin-page { gap: 20px; padding-block: 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 68px; padding: 10px; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .public-header .nav-links { background: var(--teal-dark); }
  .nav-links.open { display: flex; }
  .nav-action { width: 100%; text-align: left; }
  .hero-card, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field, .field.third { grid-column: 1 / -1; }
  .search-grid { grid-template-columns: 1fr; }
  .schedule-filter { grid-template-columns: 1fr; }
  .schedule-table-wrap { display: none; }
  .schedule-cards { display: grid; }
  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 10px; }
  .section-title, .schedule-title, .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .compact-title { flex-direction: row; }
  .application-row { grid-template-columns: 1fr; gap: 10px; }
  .welfare-groups { grid-template-columns: 1fr; gap: 18px; }
  .filter-tabs { width: 100%; }
  .filter-tabs button { flex: 1 1 auto; text-align: center; }
  .upload-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, 1160px); }
  .admin-page { gap: 18px; padding-block: 20px; }
  .hero-banner, .hero-card { border-radius: 14px; }
  .hero-copy { padding: 26px 18px; }
  .hero-emblem { width: 60px; height: 60px; }
  .brand span { font-size: .9rem; }
  .brand img { width: 40px; height: 40px; }
  .card, .form-section { padding: 18px; border-radius: 14px; }
  .actions .btn { width: 100%; }
  .home-shell { padding-top: 12px; }
  .admission-banner, .home-panel, .schedule-panel { border-radius: 8px; }
  .home-block, .schedule-panel { padding: 18px 16px; }
  .resource-row { grid-template-columns: 42px minmax(0, 1fr); gap: 10px 12px; min-height: 0; padding: 13px 12px; }
  .resource-icon { width: 40px; height: 46px; grid-row: 1 / span 2; }
  .resource-download { width: fit-content; min-height: 34px; grid-column: 2; padding: 6px 10px; font-size: .82rem; }
  .application-options { grid-template-columns: 1fr; }
  .annual-schedule-wrap { overflow: visible; border: 0; }
  .annual-schedule, .annual-schedule tbody, .annual-schedule tr, .annual-schedule th, .annual-schedule td { display: block; width: 100%; }
  .annual-schedule th:first-child, .annual-schedule th:nth-child(2) { width: 100%; }
  .annual-schedule thead { display: none; }
  .annual-schedule tr { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: white !important; }
  .annual-schedule th, .annual-schedule td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 108px; position: relative; }
  .annual-schedule tr > :last-child { border-bottom: 0; }
  .annual-schedule th::before, .annual-schedule td::before { position: absolute; left: 12px; top: 11px; width: 84px; color: var(--muted); content: attr(data-label); font-size: .78rem; font-weight: 600; }
  .login-card { padding: 22px 18px; border-radius: 17px; }
  .login-brand { margin: -22px -18px 28px; padding: 20px 18px; }
  .application-stepper ol { padding: 18px 7px; }
  .application-stepper li { padding: 0 3px; }
  .application-stepper li > span { width: 34px; height: 34px; }
  .application-stepper li::after { top: 16px; left: calc(50% + 19px); width: calc(100% - 38px); }
  .application-stepper li strong { font-size: .72rem; line-height: 1.3; }
  .application-stepper li small { display: none; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions > .btn, .wizard-actions > .actions, .wizard-actions > .actions .btn { width: 100%; }
  .upload-card { padding: 14px; }
  .upload-example { align-items: flex-start; }
  .upload-preview { grid-template-columns: 54px minmax(0, 1fr); }
  .upload-preview-media { width: 54px; }
  .upload-preview button { grid-column: 1 / -1; width: 100%; }
}
.test-banner { margin: 0 0 20px; padding: 16px 20px; border: 1px solid #f0b429; border-left: 6px solid #dc7b00; border-radius: 12px; background: #fff8df; color: #6b4300; }
.test-banner strong { margin-right: 7px; }
.test-banner a { color: #075985; font-weight: 600; }
.test-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #e7ad2f; border-radius: 999px; background: #fff0c2; color: #7a4300; font-size: .75em; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.exam-type-picker { grid-template-columns: minmax(0, 1fr) auto; }
.exam-card-shell { padding-block: 34px; }
.exam-card { position: relative; overflow: hidden; max-width: 900px; margin-inline: auto; border: 1px solid #b8cbe0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.exam-card-header { display: flex; align-items: center; gap: 20px; padding: 24px 30px; background: var(--navy); color: #fff; }
.exam-card-header img { width: 72px; height: 72px; object-fit: contain; }
.exam-card-header h1, .exam-card-header p { margin: 0; color: #fff; }
.exam-card-header h1 { margin-block: 3px; font-size: clamp(1.25rem, 3vw, 1.9rem); }
.exam-card-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 30px; }
.exam-card-photo { display: grid; overflow: hidden; width: 180px; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 12px; background: #eef3f8; color: var(--muted); place-items: center; }
.exam-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.exam-card-details { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); align-content: start; gap: 12px 18px; margin: 0; }
.exam-card-details dt { color: var(--muted); font-weight: 500; }
.exam-card-details dd { margin: 0; color: var(--ink); font-weight: 500; }
.exam-card-number { color: var(--navy) !important; font-size: 1.7rem; font-weight: 600 !important; letter-spacing: .08em; }
.exam-card-note { border-top: 1px solid var(--line); padding: 18px 30px; background: #f8fbfe; }
.exam-card-watermark { position: absolute; z-index: 2; top: 44%; left: 50%; color: rgba(180,35,24,.12); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; letter-spacing: .08em; transform: translate(-50%,-50%) rotate(-22deg); pointer-events: none; }
.exam-card-shell > .actions { justify-content: center; margin-top: 22px; }

@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .actions { display: none !important; }
  .only-print { display: block; }
  .card, .form-section { box-shadow: none; border-color: #bbb; }
  main { min-height: 0; }
  .exam-card-shell { width: 100%; padding: 0; }
  .exam-card { max-width: none; border-color: #777; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .exam-card-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (max-width: 640px) {
  .exam-card-body { grid-template-columns: 1fr; padding: 22px; }
  .exam-card-photo { width: min(180px, 60vw); margin-inline: auto; }
  .exam-card-details { grid-template-columns: 1fr; gap: 3px; }
  .exam-card-details dd { margin-bottom: 10px; }
  .exam-card-header { align-items: flex-start; padding: 20px; }
  .exam-card-header img { width: 56px; height: 56px; }
}

