/* ===========================================================
   ASPIRE LEARNING ACADEMY — Design tokens
   Navy   #0F2A4A  (primary / authority)
   Gold   #C9954C  (accent / achievement)
   Paper  #FAFAF8  (background)
   Ink    #2A2A28  (body text)
=========================================================== */

:root {
  --navy: #0F2A4A;
  --navy-deep: #0A1E36;
  --gold: #C9954C;
  --gold-light: #E3C48C;
  --paper: #FAFAF8;
  --cream: #F3F0E9;
  --ink: #2A2A28;
  --ink-soft: #5B5B58;
  --line: rgba(15, 42, 74, 0.12);

  --display: 'Playfair Display', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #c9954cd2; }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: inherit; }
.hero .btn-ghost { color: var(--paper); border-color: rgba(250,250,248,0.4); }
.hero .btn-ghost:hover { background: rgba(250,250,248,0.08); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; color: var(--navy); }
.brand-svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.brand-text.light { color: var(--paper); }
.brand-text em { font-style: normal; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.brand-text.light em { color: rgba(250,250,248,0.65); }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; flex-shrink: 0; }
.main-nav a { color: var(--ink); position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.2s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--gold); color: var(--navy-deep) !important; padding: 10px 22px; border-radius: 3px; font-weight: 600; transition: background 0.2s ease; }
.nav-cta:hover { background: #c9954cd2; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--paper); padding: 100px 0 0; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding-top: 40px; padding-bottom: 90px;
}
.hero-copy { max-width: 620px; }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; font-weight: 600; }
.hero h1 { color: var(--paper); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 24px; }
.hero h1 em { color: var(--gold); }
.hero-lead { font-size: 1.1rem; color: rgba(250,250,248,0.8); max-width: 560px; margin-bottom: 36px; }

.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48%;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-media::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 25%;
  background: linear-gradient(to right, var(--navy), transparent);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-line {
  position: absolute; left: -10%; top: -10%; width: 50%; height: 60%;
  background: radial-gradient(circle at 30% 20%, rgba(201,149,76,0.14), transparent 60%);
  pointer-events: none;
}

/* ---------- Section generic ---------- */
section { padding: 100px 0; }
.section-eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.section-eyebrow.light { color: var(--gold-light); }
.center { text-align: center; }
h2.center, h2.light.center { max-width: 640px; margin-left: auto; margin-right: auto; }
h2.light { color: var(--paper); }

/* ---------- About / Tabs ---------- */
.tabs { max-width: 820px; margin: 48px auto 0; }
.tab-list { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 14px 22px; font-family: var(--body); font-size: 0.95rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; position: relative; top: 1px; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-btn:hover { color: var(--navy); }
.tab-panel { display: none; text-align: center; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
.tab-panel p { font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.accreditation-banner {
  margin-top: 64px; background: var(--cream); border-radius: 8px; padding: 40px 48px;
  border-left: 4px solid var(--gold);
}
.accred-text h3 { font-size: 1.2rem; margin-bottom: 10px; }
.accred-text p { margin-bottom: 14px; }
.link-more { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------- Partners strip ---------- */
.partners { background: var(--navy-deep); color: var(--paper); }
.partners-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.partner-badge {
  border: 1px solid rgba(250,250,248,0.2); border-radius: 30px; padding: 12px 26px;
  font-size: 0.9rem; font-weight: 500; color: rgba(250,250,248,0.85);
}

/* ---------- Programs ---------- */
.programs { background: var(--cream); }
.programs-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.programs-controls { display: flex; align-items: center; gap: 18px; }
.programs-count { font-size: 0.9rem; color: var(--ink-soft); }
.programs-count strong { color: var(--navy); }
#program-filter {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  font-family: var(--body); font-size: 0.9rem; color: var(--ink); cursor: pointer;
}

.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.program-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15,42,74,0.1); }
.program-card.hidden { display: none; }
.program-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--gold); border: 1px solid var(--gold); padding: 4px 10px; border-radius: 20px; margin-bottom: 16px;
}
.program-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.program-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-top: 56px; }
.process-step { text-align: center; position: relative; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--gold); border-radius: 50%; font-family: var(--display); font-weight: 700;
  color: var(--gold); margin-bottom: 18px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; }
.process-cta { text-align: center; margin-top: 56px; }

/* ---------- FAQ Accordion ---------- */
.faq { background: var(--cream); }
.accordion { max-width: 760px; margin: 48px auto 0; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 22px 4px; text-align: left; cursor: pointer;
  font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--navy);
}
.accordion-icon { font-size: 1.2rem; color: var(--gold); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 16px; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-panel p { padding: 0 4px 22px; margin: 0 0 12px; font-size: 0.95rem; }
.accordion-panel p:last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.stat { text-align: center; padding: 12px; border-left: 1px solid rgba(250,250,248,0.1); }
.stat:first-child { border-left: none; }
.stat-num { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.stat-label { display: block; font-size: 0.9rem; color: rgba(250,250,248,0.7); margin-top: 6px; }

/* ---------- Testimonials carousel ---------- */
.carousel { max-width: 760px; margin: 48px auto 0; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.testimonial-card {
  flex: 0 0 100%; margin: 0; background: var(--cream); border-radius: 8px; padding: 44px 48px; text-align: center;
}
.testimonial-card p { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--navy); margin-bottom: 20px; }
.testimonial-card footer { font-size: 0.9rem; color: var(--ink-soft); }
.testimonial-card footer strong { color: var(--gold); }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: var(--gold); }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact h2 { color: var(--paper); }
.contact-copy p { color: rgba(250,250,248,0.75); }
.contact-info { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid rgba(250,250,248,0.15); padding-top: 24px; }
.contact-info li { margin-bottom: 14px; color: rgba(250,250,248,0.85); font-size: 0.95rem; }
.contact-info span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 2px; font-weight: 600; }

.contact-form { background: var(--paper); border-radius: 8px; padding: 40px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--body); font-size: 0.95rem; color: var(--ink); background: #fff; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,149,76,0.15); }
.form-submit { width: 100%; margin-top: 4px; }
.form-note { margin: 14px 0 0; font-size: 0.88rem; color: var(--navy); min-height: 1.2em; text-align: center; }

/* ---------- Feature grid (values, benefits, why-choose — reused across pages) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  margin-top: 56px;
}
.feature-item { text-align: center; }
.feature-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-family: var(--display); font-weight: 700; margin-bottom: 18px;
}
.feature-item h3 { font-size: 1.1rem; }
.feature-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Badge / tag grid (who can apply, article categories) ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.badge {
  border: 1px solid var(--line); background: var(--paper); color: var(--navy);
  padding: 10px 22px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
}
.badge.badge-gold { border-color: var(--gold); }

/* ---------- Format / info blocks ---------- */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 48px; }
.format-block { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px; }
.format-block h3 { font-size: 1rem; margin-bottom: 14px; }
.format-block p { font-size: 0.92rem; margin: 0; }
.format-block ul { list-style: none; padding: 0; margin: 0; }
.format-block li { font-size: 0.9rem; color: var(--ink-soft); padding: 8px 0; border-top: 1px solid var(--line); }
.format-block li:first-child { border-top: none; padding-top: 0; }

/* ---------- Page intro header (non-home pages) ---------- */
.page-intro { background: var(--navy); color: var(--paper); padding: 120px 0 80px; text-align: center; }
.page-intro .section-eyebrow { color: var(--gold-light); }
.page-intro h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 2.8rem); max-width: 760px; margin: 0 auto 20px; }
.page-intro p { color: rgba(250,250,248,0.8); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Final CTA banner ---------- */
.final-cta { background: var(--navy); color: var(--paper); text-align: center; }
.final-cta h2 { color: var(--paper); max-width: 640px; margin-left: auto; margin-right: auto; }
.final-cta p { color: rgba(250,250,248,0.8); max-width: 560px; margin: 0 auto 32px; }
.final-cta .hero-actions { justify-content: center; margin-top: 8px; }
.final-cta .lede { font-family: var(--display); font-style: italic; color: var(--gold-light); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Select input (contact form) ---------- */
.form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--body); font-size: 0.95rem; color: var(--ink); background: #fff; cursor: pointer;
}
.form-row select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,149,76,0.15); }

/* ---------- Masters catalogue (accordion reused, plus intro line) ---------- */
.masters-list { max-width: 860px; margin: 56px auto 0; }
.accordion-trigger .programme-index { color: var(--gold); font-weight: 700; margin-right: 14px; }

/* ---------- Simple content block (used for admissions docs list, support list) ---------- */
.simple-list { max-width: 680px; margin: 40px auto 0; list-style: none; padding: 0; }
.simple-list li {
  padding: 16px 4px; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.simple-list li:first-child { border-top: none; }
.simple-list li::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(250,250,248,0.6); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 32px 40px; }
.footer-brand p { color: var(--gold-light); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; }
.footer-col h4 { color: var(--paper); font-family: var(--body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(250,250,248,0.6); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(250,250,248,0.1); padding: 20px 32px; font-size: 0.85rem; }

/* ===========================================================
   Responsive
=========================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 84px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 32px 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 12px 0; width: 100%; white-space: nowrap; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 80px 0 0; display: block; min-height: 0; }
  .hero-inner { padding-top: 0; padding-bottom: 0; }
  .hero-copy { padding-bottom: 40px; max-width: none; }
  .hero-media {
    position: relative; inset: auto; width: auto;
    height: 260px; margin: 0 -32px;
  }
  .hero-media::after { display: none; }
  .hero-media img { min-height: 260px; }
  section { padding: 72px 0; }
  .program-grid, .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .programs-head { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .testimonial-card { padding: 32px 24px; }
  .page-intro { padding: 96px 0 56px; }
  .feature-grid { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}