/* GUIDE Institute — shared styles */

:root {
  --yellow: #F5B700;
  --navy: #16213E;
  --navy-2: #1F2C50;
  --white: #FFFFFF;
  --bg: #F6F7FA;
  --text: #4A4F63;
  --border: #E3E5EC;
  --pale: #FFF8E1;
  --on-navy: #E6E8F0;
  --muted-on-navy: #C3C8D8;

  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --max: 1180px;
  --gutter: 24px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(22, 33, 62, 0.08);
  --focus: var(--navy);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.25rem, 4.2vw + 1rem, 3.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem); letter-spacing: -0.3px; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }

/* Focus: navy ring on light areas, yellow ring on navy areas */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark { --focus: var(--yellow); }
/* Headings and panels focused by script don't need a ring */
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--pill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--grey { background: var(--bg); }
.section--white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.15rem; margin: 0; }

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #FFC51F; box-shadow: 0 6px 18px rgba(245, 183, 0, 0.35); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }

.btn--outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-white:hover { background: var(--white); color: var(--navy); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 4px;
}
.brand-sub {
  color: var(--muted-on-navy);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--on-navy);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-list a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--yellow); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--pill);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .header-cta { order: 2; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { width: 100%; min-height: 48px; padding: 0 16px; font-size: 1.1rem; border-radius: var(--radius-sm); }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3rem; letter-spacing: 3px; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 2px; }
  .header-cta { padding: 10px 14px; font-size: 0.9rem; }
}
@media (max-width: 340px) {
  .brand-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 112px);
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.25rem); color: var(--on-navy); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media {
  position: relative;
  margin: 0 22px 22px 0;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--yellow);
  border-radius: 32px;
}
.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 32px;
}

.hero--center { text-align: center; }
.hero--center .hero-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.hero--center h1 { max-width: 800px; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-media { margin: 0 14px 14px 0; }
  .hero-media::before { inset: 14px -14px -14px 14px; border-radius: 24px; }
  .hero-media img { border-radius: 24px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .class-grid { grid-template-columns: 1fr; } }

.class-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.class-card:hover { transform: translateY(-4px); }
.class-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.class-card-body { padding: 22px 24px 26px; }
.class-card-body p { margin: 0; }
.obj-top { object-position: center 25%; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.step p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tuition ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.price-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.price-card h3 { font-size: 1.35rem; }
.price {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 14px;
  color: var(--navy);
}
.price small { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.price-card p { flex-grow: 1; }
.price-card .btn { margin-top: 12px; }

.price-card--navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.price-card--navy h3 { color: var(--yellow); }
.price-card--navy .price { color: var(--white); }

.price-card--pale { background: var(--pale); border: 2px solid var(--yellow); }
.price-card--grey { background: var(--bg); }

.tag {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pill);
  margin-bottom: 14px;
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dot-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.dot-list li {
  position: relative;
  padding-left: 30px;
  color: var(--navy);
  font-weight: 500;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.2);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details[open] { border-color: var(--yellow); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { max-width: 460px; }
.footer-name {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin: 0;
  line-height: 1.1;
}
.footer-full {
  color: var(--muted-on-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 6px 0 14px;
}
.footer-contact h2 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 22px; font-size: 0.92rem; color: var(--muted-on-navy); }
.footer-bottom p { margin: 0; }

/* ---------- Modal ---------- */
.modal {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.modal::backdrop { background: rgba(22, 33, 62, 0.7); }
.modal-inner { padding: 32px clamp(20px, 4vw, 36px) 32px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.modal-header h2 { font-size: 1.7rem; margin: 0; }
.modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); }
.modal-intro { margin-bottom: 20px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label,
.field-label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9CDD9; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field-hint { font-size: 0.9rem; margin: 6px 0 0; }
.form-status { margin: 14px 0 0; font-weight: 600; color: #A12828; }

.thanks { text-align: center; padding: 16px 0 8px; }
.thanks-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Donate ---------- */
.give-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .give-grid { grid-template-columns: 1fr; } }
.give-side { display: grid; gap: 24px; }

.gift-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.gift-card h2 { font-size: 1.9rem; }
.gift-block { margin-top: 26px; border: 0; padding: 0; }
.gift-block legend, .gift-block .field-label { padding: 0; margin-bottom: 10px; }

.toggle {
  display: inline-flex;
  width: 100%;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pill);
}
.toggle button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.toggle button:not([aria-pressed="true"]):hover { background: var(--border); }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amount {
  min-height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.amount:hover { border-color: #C9CDD9; }
.amount[aria-pressed="true"] { background: var(--yellow); border-color: var(--navy); }

.money-input { position: relative; }
.money-input span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  font-weight: 700;
  pointer-events: none;
}
.money-input input { padding-left: 32px; }

.radio-list { display: grid; gap: 10px; }
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--navy);
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.radio input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; flex-shrink: 0; }
.radio:has(input:checked) { border-color: var(--navy); background: var(--pale); }
.radio:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.radio input:focus-visible { outline: none; }

.donate-submit { margin-top: 28px; }
.small-note { font-size: 0.9rem; color: var(--text); margin: 16px 0 0; }

.sponsor-card { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.sponsor-card h2 { color: var(--yellow); font-size: 1.5rem; }
.sponsor-card p { margin-bottom: 20px; }
.goes-card h2 { font-size: 1.5rem; }
.goes-card .dot-list { margin-top: 12px; }
.give-photo img { aspect-ratio: 3 / 2; }

/* ---------- Semester tuition extras ---------- */
.semester-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  max-width: 720px;
  margin: -12px auto 32px;
  padding: 14px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--navy);
  text-align: center;
}
@media (max-width: 560px) { .semester-strip { border-radius: var(--radius-sm); flex-direction: column; } }

.price-card--white { background: var(--white); box-shadow: var(--shadow); }
.tag--yellow { background: var(--yellow); color: var(--navy); }
.tag--light { background: var(--bg); color: var(--navy); border: 1px solid var(--border); }

.price-points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; flex-grow: 1; }
.price-points li { position: relative; padding-left: 28px; }
.price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sponsor-strip h3 { margin-bottom: 4px; }
.sponsor-strip p { margin: 0; }
.sponsor-strip .btn { flex-shrink: 0; }
@media (max-width: 960px) {
  .sponsor-strip { flex-direction: column; align-items: stretch; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- Tutoring + payment chooser ---------- */
.pay-methods-line { text-align: center; margin: 22px 0 0; color: var(--text); }
.pay-methods-line strong { color: var(--navy); }
.pay-methods-line--left { text-align: left; font-size: 0.95rem; margin-top: 12px; }

.tutoring-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  --focus: var(--yellow);
}
.tutoring-strip h3 { color: var(--yellow); font-size: 1.35rem; }
.tutoring-text p { margin: 0; max-width: 560px; }
.tutoring-strip .tag { margin-bottom: 10px; }
.tutoring-buy { min-width: 240px; }
.tutoring-buy .price { color: var(--white); margin: 0 0 10px; }
@media (max-width: 960px) {
  .tutoring-strip { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .tutoring-buy { min-width: 0; }
}

.radio > span { display: flex; flex-direction: column; line-height: 1.35; }
.radio small { color: var(--text); font-size: 0.9rem; font-weight: 400; }
.plan-choice { margin-top: 0; }

.step-pill {
  display: inline-block;
  vertical-align: middle;
  background: var(--pale);
  color: var(--navy);
  border: 1px solid var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--pill);
  margin-right: 6px;
}
[data-step="pay"] > h3 { margin-bottom: 16px; }

.pay-summary {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  background: var(--pale);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.pay-summary-title { font-weight: 600; }
.pay-summary-amount { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.pay-summary-detail { color: var(--text); font-size: 0.95rem; }
.pay-methods { margin-top: 20px; }
.pay-panel { margin-top: 18px; }
.pay-panel > p { margin: 0 0 14px; }
.pay-not-ready { padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); color: var(--navy); }

.et-details { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.et-details > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}
.et-details > div + div { border-top: 1px solid var(--border); }
.et-details dt { font-weight: 600; color: var(--text); }
.et-details dd { margin: 0; color: var(--navy); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow-wrap: anywhere; }
@media (max-width: 420px) { .et-details > div { grid-template-columns: 1fr; gap: 4px; } }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Teach with GUIDE ---------- */
.teach-band { background: var(--navy); color: var(--on-navy); }
.teach-band h2 { color: var(--white); }
.teach-band p { max-width: 520px; margin-bottom: 26px; }
.teach-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.teach-points li {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid var(--yellow);
  border-radius: 18px;
}
.teach-points strong { color: var(--white); font-size: 1.1rem; }
@media (max-width: 480px) { .teach-points { grid-template-columns: 1fr; } }

.hero-actions--center { justify-content: center; margin-top: 30px; }

.apply-card { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.apply-card > div > p { font-size: 1.1rem; }

.form-section { border: 0; padding: 0; margin: 36px 0 0; }
.form-section legend {
  width: 100%;
  padding: 0 0 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
}
.fieldset-hint { margin: -6px 0 12px; }
.form-grid--spaced { margin-top: 20px; }
.optional { font-weight: 400; color: var(--text); font-size: 0.9rem; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .check-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .check-grid, .check-grid--2 { grid-template-columns: 1fr; } }

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.check:has(input:checked) { border-color: var(--navy); background: var(--pale); }
.check:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.check input:focus-visible { outline: none; }
.check--consent { margin-top: 32px; align-items: flex-start; min-height: 0; padding: 16px; }
.check--consent input { margin-top: 3px; }
.apply-submit { margin-top: 20px; }

/* Resume upload */
.resume-drop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  background: var(--pale);
  border: 2px dashed var(--yellow);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.resume-drop.is-dragging { border-color: var(--navy); background: #FFF1C2; }
.resume-drop.has-file { border-style: solid; }
.resume-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.resume-title { margin: 0; color: var(--navy); font-weight: 700; font-size: 1.15rem; }
.resume-copy .field-hint { margin: 2px 0 0; }
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 3px; }
.resume-status { grid-column: 1 / -1; margin: 0; font-weight: 600; color: var(--navy); }
.resume-status:empty { display: none; }
.resume-status.is-busy::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--navy);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.resume-status.is-ok { color: #1E6B3A; }
.resume-status.is-warn { color: var(--navy); }
.resume-status.is-error { color: #A12828; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .resume-drop { grid-template-columns: auto 1fr; }
  .resume-drop label.btn { grid-column: 1 / -1; width: 100%; }
}

.auto-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: var(--pill);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 2px;
}
.field .is-autofilled { border-color: var(--yellow); background: #FFFCF0; }
.check.is-autofilled { box-shadow: inset 0 0 0 1px var(--yellow); }

/* ---------- Classes dropdown ---------- */
.has-dropdown { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: var(--pill);
  color: var(--on-navy);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-drop-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.has-dropdown.is-current > .nav-drop-btn { color: var(--yellow); }
.nav-chevron { transition: transform 0.2s ease; }
.nav-drop-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --focus: var(--navy);
  animation: drop-in 0.18s ease;
}
.nav-dropdown[hidden] { display: none; }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.nav-list .nav-dropdown a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--navy);
  line-height: 1.3;
}
.nav-list .nav-dropdown a:hover { background: var(--pale); color: var(--navy); }
.nav-list .nav-dropdown a[aria-current="page"] { background: var(--pale); color: var(--navy); box-shadow: inset 4px 0 0 var(--yellow); }
.nav-dropdown strong { font-weight: 700; }
.nav-dropdown span { font-size: 0.85rem; color: var(--text); }
.nav-dropdown-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.nav-list .nav-dropdown-all a { min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1140px) {
  .nav-drop-btn { width: 100%; min-height: 48px; padding: 0 16px; font-size: 1.1rem; justify-content: space-between; border-radius: var(--radius-sm); }
  .nav-dropdown {
    position: static;
    transform: none;
    width: auto;
    margin: 2px 0 6px 12px;
    padding: 4px 0 4px 12px;
    background: transparent;
    box-shadow: none;
    border-left: 2px solid rgba(245, 183, 0, 0.5);
    border-radius: 0;
    --focus: var(--yellow);
    animation: none;
  }
  .nav-list .nav-dropdown a { color: var(--on-navy); min-height: 52px; }
  .nav-list .nav-dropdown a:hover,
  .nav-list .nav-dropdown a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: var(--white); box-shadow: none; }
  .nav-dropdown span { color: var(--muted-on-navy); }
  .nav-dropdown-all { border-top-color: rgba(255, 255, 255, 0.12); }
  .site-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
}

/* ---------- Home: class picker + linked cards ---------- */
.class-picker { max-width: 520px; margin: -12px auto 36px; }
.class-picker label { display: block; text-align: center; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.class-picker-row { display: flex; gap: 10px; }
.class-picker select {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 10px 18px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--pill);
}
.class-picker select:focus { border-color: var(--navy); }
@media (max-width: 480px) { .class-picker-row { flex-direction: column; } }

.class-card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.class-card:has(.card-link:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.class-card-body { display: flex; flex-direction: column; flex-grow: 1; }
.class-card-body p { margin-bottom: 14px; }
.class-tags { font-size: 0.85rem; font-weight: 600; color: var(--navy); background: var(--pale); border-radius: 10px; padding: 6px 10px; align-self: flex-start; }
.card-more { margin-top: auto; color: var(--navy); font-weight: 700; }
.class-card:hover .card-more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- How it works animation ---------- */
.how { --progress: 0; }
.how-track {
  position: relative;
  height: 6px;
  margin: 0 calc(100% / 6) 28px;
  background: var(--border);
  border-radius: var(--pill);
}
.how-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 100%);
  background: var(--yellow);
  border-radius: inherit;
  transition: width 0.7s cubic-bezier(.4, 0, .2, 1);
}
.how-dot {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.how-dot:nth-of-type(2) { left: 0; }
.how-dot:nth-of-type(3) { left: 50%; }
.how-dot:nth-of-type(4) { left: 100%; }
.how-dot.is-on { border-color: var(--yellow); background: var(--yellow); transform: scale(1.15); }
@media (max-width: 860px) { .how-track { display: none; } }

.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-top .step-num { margin-bottom: 0; }
.step-icon { width: 52px; height: 52px; color: var(--navy); }
.step-icon svg { width: 100%; height: 100%; }
.step { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.step.is-active { border-color: var(--yellow); transform: translateY(-6px); box-shadow: 0 16px 36px rgba(22, 33, 62, 0.12); }
.step.is-active .step-num { animation: pulse-ring 1.6s ease-out infinite; }
.step.is-active .draw { stroke-dasharray: 40; animation: draw 1s ease forwards; }
.step.is-active .pop { transform-box: fill-box; transform-origin: center; animation: pop 0.6s 0.3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 183, 0, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(245, 183, 0, 0); }
}
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Cards slide in the first time the section is seen (only when JS is running) */
.how.anim-ready .step { opacity: 0; transform: translateY(28px); }
.how.anim-ready.is-visible .step { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.how.anim-ready.is-visible .step:nth-child(2) { transition-delay: 0.15s; }
.how.anim-ready.is-visible .step:nth-child(3) { transition-delay: 0.3s; }
.how.anim-ready.is-visible .step.is-active { transform: translateY(-6px); transition-delay: 0s; }
.how.anim-ready .how-track { opacity: 0; transition: opacity 0.6s ease 0.4s; }
.how.anim-ready.is-visible .how-track { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .step, .how-track-fill, .how-dot { transition: none !important; }
  .step.is-active, .step.is-active .step-num, .step.is-active .draw, .step.is-active .pop { animation: none !important; transform: none !important; }
}

/* ---------- Class pages ---------- */
.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { text-decoration: underline; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .subject-grid { grid-template-columns: 1fr; } }
.subject-grid--single { max-width: 760px; margin: 0 auto; grid-template-columns: 1fr; }
.subject-grid--single .dot-list { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .subject-grid--single .dot-list { grid-template-columns: 1fr; } }

.subject-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow);
}
.subject-ar {
  display: block;
  width: fit-content;
  margin: 0 auto 14px 0;
  padding: 4px 16px;
  background: var(--pale);
  border-radius: var(--pill);
  color: var(--navy);
  font-family: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", "Arabic Typesetting", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}
.subject-card h3 { margin-bottom: 8px; }
.subject-translit { display: inline-block; font-size: 0.95rem; font-weight: 500; color: var(--text); font-style: italic; margin-left: 4px; }
.dot-list--sm { margin-top: 14px; gap: 10px; }
.dot-list--sm li { font-size: 0.98rem; padding-left: 26px; }
.dot-list--sm li::before { width: 11px; height: 11px; top: 0.5em; }

.class-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
@media (max-width: 900px) { .class-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .class-facts { grid-template-columns: 1fr; } }
.fact { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.fact dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.fact dd { margin: 4px 0 0; color: var(--navy); font-weight: 600; }

.other-title { font-size: 1.5rem; text-align: center; }
.other-classes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .other-classes { grid-template-columns: 1fr; } }
.other-class {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.other-class:hover { border-color: var(--yellow); transform: translateY(-2px); }
.other-class strong { color: var(--navy); }
.other-class span { color: var(--text); font-size: 0.92rem; }

/* ---------- How it works: 4 steps ---------- */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.how .how-track { margin-left: calc(100% / 8); margin-right: calc(100% / 8); }
.how-dot:nth-of-type(3) { left: 33.333%; }
.how-dot:nth-of-type(4) { left: 66.667%; }
.how-dot:nth-of-type(5) { left: 100%; }
@media (max-width: 1080px) {
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .how .how-track { display: none; }
}
@media (max-width: 600px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- What happens next (enroll pop-up) ---------- */
.next-steps { margin-top: 22px; padding: 18px 20px; background: var(--bg); border-radius: var(--radius-sm); }
.next-steps-title { margin: 0 0 8px; color: var(--navy); font-weight: 700; }
.next-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.next-steps li { padding-left: 4px; }

/* ---------- Log in ---------- */
.nav-list .nav-login { border: 2px solid rgba(255, 255, 255, 0.35); }
.nav-list .nav-login:hover { border-color: var(--white); }
@media (max-width: 1140px) { .nav-list .nav-login { border: 0; } }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 800px) { .portal-grid { grid-template-columns: 1fr; max-width: 560px; } }
.portal-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.portal-card--student { border-top: 6px solid var(--yellow); }
.portal-card--teacher { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.portal-card--teacher h2 { color: var(--yellow); }
.portal-card h2 { font-size: 1.7rem; }
.portal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.portal-icon svg { width: 32px; height: 32px; }
.portal-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex-grow: 1; }
.portal-list li { position: relative; padding-left: 30px; }
.portal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.25em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.portal-note { margin: 12px 0 0; font-size: 0.92rem; text-align: center; }
.portal-help { max-width: 980px; margin: 28px auto 0; padding: 20px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; display: grid; gap: 6px; }
.portal-help p { margin: 0; }
