:root {
  color-scheme: light;
  --ink: #09162c;
  --muted: #536376;
  --line: #d7e2ed;
  --soft: #edf4f8;
  --soft-green: #e6f4f1;
  --brand: #00715f;
  --accent: #1f5ed6;
  --gold: #d69b20;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e7eef5;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(215, 226, 237, 0.86);
  background: rgba(255, 255, 255, 0.94);
  padding: 8px clamp(16px, 4vw, 52px);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand);
  font-weight: 900;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

nav a:hover {
  background: var(--soft-green);
  color: var(--brand);
}

.site-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 360px;
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #991b1b;
  padding: 12px 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, calc(100svh - 58px), 720px);
  align-items: end;
  overflow: hidden;
  background: #07192e;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #07192e;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    rgba(7, 20, 38, 0.58);
  content: "";
}

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

.hero-content {
  position: relative;
  width: min(1050px, 100%);
  padding: 88px clamp(18px, 6vw, 76px) 76px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.02;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8cf1dc;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a,
button,
.result-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 900;
}

.hero-actions .secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero-links {
  gap: 8px;
  margin-top: 14px;
}

.hero-links a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 36px rgba(9, 22, 44, 0.08);
}

.quick-strip a {
  display: grid;
  gap: 2px;
  min-height: 92px;
  align-content: center;
  border-right: 1px solid var(--line);
  padding: 18px clamp(16px, 3vw, 36px);
}

.quick-strip a:last-child {
  border-right: 0;
}

.quick-strip span {
  color: var(--brand);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.quick-strip strong {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.section {
  padding: 64px clamp(16px, 4vw, 52px);
}

.about-section,
.admission-section,
.contact-section,
.principal-section,
.result-publish-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 1.14fr);
  gap: clamp(24px, 4vw, 52px);
}

.about-section {
  align-items: start;
  background: #f8fbfd;
}

.about-section > div:first-child p:last-child,
.mission-block h3,
.principal-section p:last-child,
.result-publish-section p {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}

.mission-block {
  border-left: 4px solid var(--brand);
  background: var(--paper);
  padding: 24px;
}

.mission-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.card-grid,
.faculty-grid,
.gallery-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.faculty-card,
.gallery-card,
.video-card,
.notice-item,
.inquiry-form,
.map-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.card,
.faculty-card,
.notice-item {
  box-shadow: 0 10px 24px rgba(9, 22, 44, 0.05);
}

.card h3,
.faculty-card h3,
.notice-item h3 {
  margin: 0 0 8px;
}

.card small,
.faculty-card small,
.notice-item time {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

#programs,
#photo-gallery,
#notices {
  background: #edf4f8;
}

.principal-section {
  align-items: center;
  background: var(--paper);
}

.principal-mark {
  display: grid;
  width: min(220px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--brand);
  font-size: clamp(64px, 10vw, 112px);
  font-weight: 900;
}

.principal-section small {
  display: block;
  margin: 6px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.faculty-photo {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 12px;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-card,
.video-card {
  display: grid;
  gap: 12px;
  padding: 0;
  overflow: hidden;
}

.gallery-card h3,
.gallery-card p,
.video-card h3,
.video-card p {
  margin: 0;
  padding-inline: 16px;
}

.gallery-card h3,
.video-card h3 {
  padding-top: 4px;
}

.gallery-card p,
.video-card p {
  color: var(--muted);
  padding-bottom: 16px;
}

.gallery-photo,
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe9f2;
}

.gallery-photo img,
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.result-publish-section {
  align-items: start;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  background: #07192e;
  color: #ffffff;
}

.result-publish-section .eyebrow {
  color: #8cf1dc;
}

.result-publish-section h2,
.result-publish-section p {
  color: #ffffff;
}

.result-action {
  background: #ffffff;
  color: var(--brand);
}

.result-search-form {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.result-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-search-form input {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.result-search-form .result-action {
  min-height: 38px;
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.result-message {
  margin: 0;
  color: #fde68a;
  font-weight: 800;
}

.result-output {
  display: grid;
  gap: 10px;
}

.result-student,
.result-summary-card,
.result-empty {
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 14px;
}

.result-student strong,
.result-student span {
  display: block;
}

.result-student span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-summary-card {
  display: grid;
  gap: 12px;
}

.result-summary-card h3,
.result-summary-card p {
  margin: 0;
}

.result-summary-card p,
.result-summary-card small {
  color: var(--muted);
}

.result-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.result-score-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.result-score-grid strong,
.result-score-grid small {
  display: block;
}

.result-score-grid strong {
  color: var(--brand);
  font-size: 18px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.admission-section {
  align-items: start;
  background: #dfe9f2;
}

.inquiry-form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c7d4e3;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

.form-message {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

dl {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.map-box {
  min-height: 300px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 22px clamp(16px, 4vw, 52px);
  color: var(--muted);
  font-weight: 700;
}

.empty {
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  nav {
    width: 100%;
    padding-bottom: 2px;
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-strip a:nth-child(2) {
    border-right: 0;
  }

  .quick-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .about-section,
  .admission-section,
  .contact-section,
  .principal-section,
  .result-publish-section {
    grid-template-columns: 1fr;
  }

  .result-publish-section {
    align-items: start;
  }

  .result-fields,
  .result-score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-block: 70px 52px;
  }

  .hero-actions a,
  .result-action,
  button {
    width: 100%;
  }

  .section {
    padding-block: 46px;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-strip a,
  .quick-strip a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-strip a:last-child {
    border-bottom: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
