@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #153b5b;
  --blue: #2476a8;
  --teal: #2b9b91;
  --ink: #193246;
  --muted: #617586;
  --paper: #ffffff;
  --background: #f3f7fa;
  --line: #e2ebf0;
  --shadow: 0 14px 38px rgba(27, 66, 91, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
.school-header {
  padding: 26px 20px 22px;
  text-align: center;
  color: white;
  background: linear-gradient(125deg, #153b5b, #236e91 68%, #268d8d);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1.45;
}
.brand-logo {
  width: 138px;
  height: 112px;
  object-fit: contain;
  padding: 4px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 37, 54, .16);
}
.brand-name { margin-top: 2px; font-size: 1.65rem; font-weight: 800; }
.brand-motto { margin-top: 3px; color: #d8eef3; font-size: .94rem; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  padding: 11px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(21, 59, 91, .045);
}
.main-nav a {
  padding: 7px 15px;
  border-radius: 999px;
  color: #35546b;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: white; background: var(--blue); outline: none; }
main { width: min(1080px, calc(100% - 36px)); margin: 34px auto 48px; }
.hero {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 38px clamp(24px, 6vw, 70px);
  color: white;
  background: linear-gradient(120deg, #e7f5f4 0%, #e9f3fa 51%, #d4eceb 100%);
  border: 1px solid #dcebee;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-content { position: relative; z-index: 1; max-width: 650px; color: var(--ink); }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: .9rem; font-weight: 700; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.4; }
.hero-text { max-width: 610px; margin: 12px 0 22px; color: #516a7b; }
.button {
  display: inline-block;
  padding: 9px 20px;
  color: white;
  background: var(--blue);
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: var(--navy); }
.hero-art {
  display: grid;
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
  place-items: center;
  margin-inline-start: 24px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  font-size: 5.2rem;
  box-shadow: 0 15px 35px rgba(37, 107, 130, .1);
}
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; gap: 17px; margin-top: 22px; }
.card {
  display: flex;
  gap: 14px;
  min-height: 155px;
  padding: 21px 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(27, 66, 91, .045);
  scroll-margin-top: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; line-height: 1.4; }
.card h2 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.card p { margin: 3px 0 9px; color: var(--muted); font-size: .88rem; }
.card a { color: var(--teal); font-size: .87rem; font-weight: 700; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.news-card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-image { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.news-announcement { margin: 0; color: var(--navy); font-size: 1rem; font-weight: 700; }
.news-link { margin-top: 2px; }
.card .news-link { color: #fff; }
.news-detail-page { width: min(960px, calc(100% - 36px)); }
.news-detail {
  padding: clamp(18px, 3vw, 30px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.news-breadcrumb { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0 0 24px; color: #252f39; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; }
.news-breadcrumb a { text-decoration: none; }
.news-breadcrumb a:hover, .news-breadcrumb a:focus-visible { color: var(--blue); text-decoration: underline; }
.news-breadcrumb span { color: var(--muted); font-size: 1.5em; line-height: 1; }
.news-detail h1 { margin: 0; color: var(--navy); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.45; }
.news-detail-copy { margin: 9px auto 22px; color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.news-detail-image { width: min(100%, 520px); max-height: none; margin: 0 auto 22px; }
.news-title-link { color: inherit !important; text-decoration: none; }
.news-title-link:hover, .news-title-link:focus-visible { color: var(--blue) !important; text-decoration: underline; }
.news-back-link { display: inline-block; }
.teacher-card { display: block; min-height: 0; padding: 0; overflow: hidden; }
.teacher-card[open] { grid-column: 1 / -1; }
.teacher-card-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 155px;
  padding: 21px 19px;
  cursor: pointer;
  list-style: none;
}
.teacher-card-summary::-webkit-details-marker { display: none; }
.teacher-card-summary::marker { content: ""; }
.teacher-card-summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -4px; }
.teacher-card[open] .teacher-card-summary { border-bottom: 1px solid var(--line); }
.teacher-card .card-action { display: flex; align-items: center; gap: 7px; color: var(--teal); font-size: .87rem; font-weight: 700; }
.teacher-card .teacher-close-label { display: none; }
.teacher-card[open] .teacher-open-label { display: none; }
.teacher-card[open] .teacher-close-label { display: inline; }
.teacher-card[open] .teacher-toggle-icon { transform: rotate(180deg); }
.teacher-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teacher-card .teacher-list { grid-template-columns: 1fr; padding: 0 19px 18px; }
.teacher-card[open] .teacher-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.teacher-list li {
  padding: 12px 15px;
  color: var(--navy);
  background: linear-gradient(120deg, #f5f9fb, #eaf3f7);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}
.welcome-note { margin-top: 23px; padding: 25px 28px; text-align: center; background: #eaf3f7; border-radius: 16px; }
.welcome-note h2 { margin: 0 0 5px; color: var(--navy); font-size: 1.25rem; }
.welcome-note p { max-width: 720px; margin: auto; color: var(--muted); }
footer { padding: 19px 16px; color: #dceaf0; background: #15364f; text-align: center; font-size: .88rem; }
footer p { margin: 2px; }
footer p:first-child { color: white; font-weight: 700; }

@media (max-width: 700px) {
  .main-nav { gap: 2px; padding-inline: 8px; }
  .main-nav a { padding: 6px 10px; font-size: .86rem; }
  main { width: min(100% - 24px, 560px); margin-top: 20px; }
  .hero { min-height: auto; padding: 28px 22px; }
  .hero-art { width: 95px; height: 95px; flex-basis: 95px; margin-inline-start: 12px; font-size: 3rem; }
  .hero-text { font-size: .92rem; }
  .highlights { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: auto; }
  .news-card { grid-column: auto; }
  .news-detail-page { width: min(100% - 24px, 700px); margin-top: 20px; }
  .news-detail { padding: 20px 15px; }
}
@media (max-width: 420px) {
  .hero-art { display: none; }
  .brand-name { font-size: 1.45rem; }
  .brand-logo { width: 122px; height: 98px; }
  .welcome-note { padding: 21px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
