:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d7dee8;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b42318;
  --gold: #c58b1a;
  --warm: #fff7e8;
  --soft: #f3f7f8;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fbfcfd;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.top-strip {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 8px 5vw;
  color: #fff;
  background: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 280px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.2; }
.brand small { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-weight: 700; font-size: 14px; }
nav a { padding: 9px 11px; border-radius: 6px; color: #344054; }
nav a:hover { color: var(--brand-dark); background: #e6f4f1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 46px;
  align-items: center;
  padding: 70px 5vw 46px;
  background:
    linear-gradient(120deg, rgba(255,247,232,.96), rgba(255,255,255,.92) 62%),
    radial-gradient(circle at 18% 18%, rgba(197,139,26,.18), transparent 28%);
}
.hero-copy { max-width: 720px; }
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero p, .page-hero p { color: var(--muted); font-size: 18px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 118, 110, .16); }
.button.primary { color: #fff; background: var(--brand); }

.hero-media { min-height: 380px; }
.hero-media img {
  width: 100%;
  height: 430px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.generated-banner {
  display: grid;
  align-content: end;
  min-height: 380px;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #263238 55%, #b42318);
  font-size: 32px;
  font-weight: 800;
}
.generated-banner span { display: block; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 5vw;
  transform: translateY(-22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.quick-facts article { padding: 24px; border-right: 1px solid var(--line); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { font-size: 25px; line-height: 1.2; }
.quick-facts span { color: var(--muted); font-weight: 700; }

.section, .page-hero { padding: 62px 5vw; }
.section-head { max-width: 780px; margin-bottom: 26px; }
.section h2, .page-hero h1 { margin-top: 0; }
.section h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.soft-section { background: var(--soft); }
.intro-section { padding-top: 40px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 40px; align-items: start; }

.value-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.value-list span {
  padding: 9px 12px;
  border: 1px solid #b7e1da;
  border-radius: 6px;
  color: var(--brand-dark);
  background: #ecfdf8;
  font-weight: 800;
  font-size: 13px;
}
.value-list.vertical { display: grid; }

.notice-panel, .info-panel, .principal-note, .office-note, .form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}
.notice-panel { padding: 22px; }
.notice-panel h3 { margin-top: 0; }
.notice-panel article {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.notice-panel time { color: var(--accent); font-size: 13px; font-weight: 800; }
.notice-panel h4 { margin: 6px 0; }
.notice-panel p { margin-bottom: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { width: 100%; height: 188px; display: block; object-fit: cover; }
.card .icon, .card h3, .card p { margin-left: 20px; margin-right: 20px; }
.card .icon { margin-top: 20px; }
.card p { margin-bottom: 24px; color: var(--muted); }
.icon, .contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: 36px;
  align-items: center;
  background: linear-gradient(120deg, #ffffff, var(--warm));
}
.page-banner {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.info-panel, .principal-note, .office-note { padding: 28px; }
.info-panel h2, .principal-note h2, .office-note h2 { margin-top: 0; }
.info-panel p, .principal-note p, .office-note p { color: var(--muted); }

.admission-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 760px);
  gap: 28px;
  align-items: start;
  background: var(--soft);
}
.form-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 28px; max-width: 860px; }
.form-card label:nth-of-type(5), .form-card label:nth-of-type(6), .form-card button { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 800; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
input:focus, textarea:focus { outline: 3px solid rgba(15, 118, 110, .16); border-color: var(--brand); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}
.contact-grid h2 { margin: 16px 0 8px; font-size: 24px; }
.contact-grid p { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}
.gallery-grid img { display: block; width: 100%; height: 230px; object-fit: cover; transition: transform .24s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { padding: 14px 16px; font-weight: 800; }

.rich-text-wrap { background: var(--soft); }
.rich-text {
  max-width: 960px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rich-text p { color: var(--muted); font-size: 18px; }

.messages { padding: 12px 5vw; background: #ecfdf5; color: #065f46; font-weight: 800; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 5vw;
  background: #101828;
  color: #fff;
}
.footer p { margin: 4px 0; color: #d0d5dd; }

@media (max-width: 980px) {
  .site-header, .footer { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero, .two-column, .page-hero, .admission-layout, .contact-grid { grid-template-columns: 1fr; }
  .quick-facts, .grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media img, .page-banner { height: 330px; }
}

@media (max-width: 620px) {
  .top-strip { display: none; }
  .brand { min-width: 0; }
  .brand strong { font-size: 14px; }
  .quick-facts, .grid, .gallery-grid, .form-card { grid-template-columns: 1fr; }
  .quick-facts { margin: 0 20px; }
  .hero, .section, .page-hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 42px; }
  .hero h1, .page-hero h1 { font-size: 36px; }
}
