:root {
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
  color: #142b36;
  background: #f1f5f4;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body {
  display: flow-root;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(#f1f5f4b3, #f1f5f4d9),
    url("./school-background.jpg") center 45% / cover no-repeat;
}
.shell { width: min(60rem, calc(100% - 2rem)); margin-inline: auto; }

.portal {
  margin-top: clamp(1rem, 5vw, 4rem);
  padding: clamp(.75rem, 3vw, 1.75rem);
  border: 1px solid #dbe6e3;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 16px 44px #183c3610;
}

.school {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 1.25rem);
  padding: clamp(.85rem, 3vw, 1.5rem);
  border-radius: 1rem;
  background: linear-gradient(115deg, #142d39, #174d47);
  color: #fff;
}

.crest {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(3rem, 8vw, 4.25rem);
  aspect-ratio: 1;
  border-radius: .8rem;
  background: #fff;
}

.crest img { width: 77%; height: auto; aspect-ratio: 1; object-fit: contain; }
.school h1 { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.25; }
.school h1 span {
  display: block;
  margin-top: .3rem;
  color: #dcece8;
  font-size: clamp(.875rem, 2.3vw, 1.1rem);
  font-weight: 500;
  line-height: 1.4;
}

.campus-banner {
  display: block;
  width: 100%;
  height: clamp(9rem, 24vw, 15rem);
  margin-block: clamp(.75rem, 2.5vw, 1.25rem);
  border-radius: .9rem;
  object-fit: cover;
  object-position: center 51%;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2.5vw, 1.25rem);
}

.service {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 6rem;
  padding: clamp(.85rem, 2.5vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.admission { --surface: #fff8e8; --border: #ece0c1; --badge: #f7e8b8; --accent: #6d4612; }
.register { --surface: #edf6f5; --border: #d5e7e3; --badge: #d5ece5; --accent: #15594c; }

.website { --surface: #eef3fd; --border: #dce5f5; --badge: #dbe6fb; --accent: #284a8b; }

.service-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: var(--badge);
  color: var(--accent);
  font: 1.65rem/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.service-label strong { display: block; font-size: 1.2rem; line-height: 1.3; }
.service-label span { display: block; margin-top: .2rem; color: #4c6169; font-size: .9rem; }
.service:hover { border-color: var(--accent); }
.service:hover strong { text-decoration: underline; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #214eaf; outline-offset: 3px; }

.footer { padding-block: 1.25rem 2rem; color: #4c6169; text-align: center; }
.footer a { color: inherit; text-underline-offset: .2em; }

@media (max-width: 50rem) {
  .services { grid-template-columns: 1fr; }
}
