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

:root {
  --navy: #08294f;
  --navy-2: #12395f;
  --teal: #22b9c2;
  --teal-light: #dff5f5;
  --cream: #f8f7f2;
  --white: #ffffff;
  --text: #193653;
  --muted: #71859a;
  --border: #dce7ea;
  --shadow: 0 14px 35px rgba(8, 41, 79, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Cairo", system-ui, sans-serif;
}
button { font: inherit; }

.topbar {
  max-width: 980px;
  margin: auto;
  padding: 22px 20px 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--navy);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-name { font-weight: 800; letter-spacing: 1px; }
.brand-sub { font-size: 9px; color: var(--teal); letter-spacing: 1.2px; }

main {
  max-width: 980px;
  margin: auto;
  padding: 0 20px 35px;
}

.hero {
  padding: 52px 5px 28px;
}
.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.08;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}
h1 span { color: var(--teal); }
.hero-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-line {
  width: 70px;
  height: 4px;
  border-radius: 99px;
  background: var(--teal);
  margin-top: 20px;
}

.welcome-card {
  background: var(--navy);
  color: white;
  border-radius: 30px;
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.welcome-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(34,185,194,.35);
  border-radius: 50%;
  left: -50px;
  bottom: -90px;
}
.small-label { color: var(--teal); margin: 0 0 5px; font-size: 12px; font-weight: 700; }
.welcome-card h2 { margin: 0 0 6px; font-size: 25px; }
.welcome-card p:last-child { margin: 0; color: #c7d5e3; font-size: 14px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.menu-card {
  position: relative;
  text-align: right;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 22px 20px;
  min-height: 155px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 5px 18px rgba(8,41,79,.035);
}
.menu-card:hover, .menu-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b8dfe1;
  outline: none;
}
.menu-card.featured { background: #edf9f8; }
.icon { display: block; font-size: 27px; margin-bottom: 14px; }
.card-title { display: block; font-weight: 800; font-size: 19px; }
.card-desc { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.arrow {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--teal);
  font-size: 20px;
}

.content-section {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.content-section h2 { margin-top: 0; color: var(--navy); }
.back-btn {
  border: 0;
  background: var(--teal-light);
  color: var(--navy);
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 15px;
}
.day-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.day-btn {
  border: 1px solid var(--border);
  background: #fbffff;
  color: var(--navy);
  border-radius: 16px;
  padding: 15px 8px;
  cursor: pointer;
  font-weight: 800;
}
.day-btn:hover { border-color: var(--teal); }
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.schedule-table th { text-align: right; color: var(--muted); font-size: 12px; padding: 7px; }
.schedule-table td { background: #f6fbfb; padding: 13px 9px; font-size: 13px; }
.schedule-table td:first-child { background: var(--navy); color: white; border-radius: 0 12px 12px 0; font-weight: 800; }
.schedule-table td:last-child { border-radius: 12px 0 0 12px; }

.info-list { padding-right: 20px; line-height: 2; }
.placeholder {
  padding: 18px;
  background: #f5fafa;
  border-radius: 17px;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 34px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
footer p { color: var(--navy); font-weight: 800; margin-bottom: 5px; }
footer span { font-size: 9px; letter-spacing: 1.2px; }

@media (max-width: 620px) {
  main { padding: 0 15px 28px; }
  .topbar { padding: 18px 15px 5px; }
  .hero { padding-top: 40px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 130px; }
  .day-grid { grid-template-columns: repeat(2,1fr); }
  .content-section { padding: 20px 16px; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 9px 6px; }
}

.day-detail { display: grid; gap: 11px; margin-top: 18px; }
.class-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #f6fbfb;
}
.class-period {
  background: var(--navy);
  color: white;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.class-period span { font-size: 12px; }
.class-name {
  padding: 15px 12px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
}
.schedule-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--teal-light);
  border-right: 4px solid var(--teal);
}
.schedule-note strong { color: var(--navy); }
.schedule-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

@media (max-width: 520px) {
  .class-row { grid-template-columns: 1fr; }
  .class-period { justify-content: flex-start; }
}

.class-clickable {
  width: 100%;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: right;
  transition: transform .18s ease, box-shadow .18s ease;
}
.class-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(12, 44, 78, .08);
}
.class-clickable .class-name {
  justify-content: space-between;
  gap: 10px;
}
.class-arrow { color: var(--teal); font-size: 18px; }
.no-class { opacity: .88; }

.class-hero {
  margin-top: 16px;
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), #123d67);
  color: white;
  text-align: center;
}
.class-icon { font-size: 42px; margin-bottom: 8px; }
.class-hero .small-label { color: #5ed6d6; }
.class-hero h2 { color: white; margin: 6px 0 8px; }
.class-hero p:last-child { color: rgba(255,255,255,.82); line-height: 1.9; margin: 0; }

.class-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.info-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 17px 12px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.info-box span { font-size: 23px; }
.info-box strong { color: var(--navy); font-size: 13px; }
.info-box small { color: var(--muted); line-height: 1.65; }

@media (max-width: 620px) {
  .class-info-grid { grid-template-columns: 1fr; }
}

.section-title {
  color: var(--navy);
  font-size: 18px;
  margin: 24px 0 10px;
}
.benefit-box {
  min-height: 92px;
  justify-content: center;
}
.benefit-box span {
  color: var(--teal);
  font-weight: 800;
}
