/* ==========================================================================
   AYED Ghana theme styles
   Brand palette derived from the official logo: navy blue + orange on white.
   ========================================================================== */

:root {
  --navy:        #143a64;
  --navy-deep:   #0d2944;
  --navy-light:  #1f4f80;
  --orange:      #e1731b;
  --orange-lt:   #f0913f;
  --orange-pale: #fbe7d3;
  --teal:        #1c6b6b;
  --ivory:       #f7f5f1;
  --cream:       #eef1f5;
  --white:       #ffffff;
  --charcoal:    #1e2a36;
  --muted:       #5f6b78;
  --line:        rgba(20, 58, 100, 0.14);
  --line-dark:   rgba(225, 115, 27, 0.28);

  /* Section surfaces: alternating bands. --surface-alt is intentionally a clear
     step darker than white so adjacent light sections never bleed together. */
  --surface:     #ffffff;
  --surface-alt: #e9edf4;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px rgba(13, 41, 68, 0.12);
  --shadow-sm: 0 8px 24px rgba(13, 41, 68, 0.08);
  --container: 1180px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 0.5em; font-weight: 700; }

.ayed-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 0 0 8px 8px; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container--narrow { max-width: 800px; }

.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--dark { background: var(--navy); color: rgba(247, 245, 241, 0.86); }

/* Alternating light bands. White and tint are clearly distinct so neighbouring
   sections never bleed; a hairline reinforces the seam on tinted sections. */
.section--light { background: var(--surface); }
.section--tint  { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section--about   { background: var(--surface); }
.section--pillars { background: var(--surface); }
.section--programs { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--approach { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--contact  { background: var(--surface-alt); border-top: 1px solid var(--line); }

.section__more { text-align: center; margin-top: 48px; }

/* ---------- Section headings ---------- */
.section-head { max-width: 760px; margin-bottom: 8px; }
.section-eyebrow {
  font-family: var(--font-head); display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.section-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--orange); }
.section-eyebrow--light { color: var(--orange-lt); }
.section-head--light .section-eyebrow { color: var(--orange-lt); }

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head--light .section-title { color: var(--ivory); }
em.accent, .section-title em { font-style: italic; color: var(--orange); }
.section-head--light em.accent { color: var(--orange-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 15px 32px; border-radius: 50px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--sm { padding: 10px 22px; font-size: 0.76rem; }
.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-lt); border-color: var(--orange-lt); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(247, 245, 241, 0.45); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-lt); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--orange); text-transform: uppercase;
}
.arrow-link .ayed-icon { transition: transform 0.25s var(--ease); }
.arrow-link:hover { color: var(--navy); }
.arrow-link:hover .ayed-icon { transform: translateX(4px); }
.arrow-link--back .arrow-link__back-icon { transform: rotate(180deg); }
.arrow-link--back:hover .arrow-link__back-icon { transform: rotate(180deg) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 245, 241, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 18px clamp(20px, 4vw, 48px); transition: padding 0.3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 41, 68, 0.08); }
.site-header.is-scrolled .site-header__inner { padding-top: 11px; padding-bottom: 11px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--navy); }
.brand__text { display: inline-flex; align-items: baseline; gap: 6px; }
.brand__mark { color: var(--navy); }
.brand__sep { color: var(--orange); font-weight: 600; }
.brand--inverse { color: var(--ivory); }
.brand--inverse .brand__mark { color: var(--ivory); }
.brand--with-logo .brand__logo { height: 48px; width: auto; display: block; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand--with-logo .brand__logo { height: 42px; }
.site-footer .brand--with-logo .brand__logo { height: 52px; }

.site-nav__menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--navy); position: relative; padding: 6px 0;
}
.site-nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s var(--ease); }
.site-nav__menu a:hover::after,
.site-nav__menu .current-menu-item > a::after { width: 100%; }

.site-header__cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 4px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--ivory); }
.mobile-nav__menu { list-style: none; margin: 0; padding: 12px clamp(20px, 4vw, 48px) 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__menu a { display: block; padding: 12px 4px; font-family: var(--font-head); font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 90px; position: relative; overflow: hidden;
  background: var(--navy); color: var(--ivory);
}
.hero__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(225,115,27,0.08) 0, rgba(225,115,27,0.08) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(-45deg, rgba(225,115,27,0.08) 0, rgba(225,115,27,0.08) 1px, transparent 1px, transparent 44px);
}
.hero::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 760px; height: 760px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(225,115,27,0.16) 0%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__badge {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-lt);
  border: 1px solid rgba(240,145,63,0.4); border-radius: 50px; padding: 8px 22px; margin-bottom: 30px;
  animation: ayed-fade-down 0.9s var(--ease) both;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; line-height: 1.05; color: var(--ivory);
  margin: 0; letter-spacing: -0.02em; animation: ayed-fade-up 0.9s 0.1s var(--ease) both;
}
.hero__title em.accent { color: var(--orange-lt); }
.hero__rule { display: block; width: 84px; height: 3px; margin: 30px auto; border-radius: 4px;
  background: linear-gradient(to right, transparent, var(--orange), transparent); animation: ayed-fade-up 0.9s 0.25s var(--ease) both; }
.hero__sub { max-width: 560px; margin: 0 auto; font-size: 1.18rem; color: rgba(247,245,241,0.82); animation: ayed-fade-up 0.9s 0.35s var(--ease) both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; animation: ayed-fade-up 0.9s 0.5s var(--ease) both; }

.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; color: rgba(247,245,241,0.5); font-family: var(--font-head); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 42px; background: rgba(247,245,241,0.25); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--orange); animation: ayed-slide-down 1.8s ease infinite; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; margin-top: 50px; }
.about-grid__text p { font-size: 1.12rem; color: var(--charcoal); margin: 0 0 20px; }
.about-grid__text strong { color: var(--navy); font-weight: 600; }
.about-grid__visual { display: flex; justify-content: center; }
.emblem { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 20px 40px rgba(13,41,68,0.22)); }
.about-image { border-radius: var(--radius); box-shadow: var(--shadow); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mission ---------- */
.section--mission, .section--involved { overflow: hidden; }
.section__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    repeating-linear-gradient(0deg, rgba(225,115,27,0.06) 0, rgba(225,115,27,0.06) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(225,115,27,0.06) 0, rgba(225,115,27,0.06) 1px, transparent 1px, transparent 60px);
}
.section__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(225,115,27,0.14), transparent 55%), radial-gradient(ellipse at bottom right, rgba(225,115,27,0.1), transparent 55%); }
.section--dark .container { position: relative; z-index: 1; }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.mv-card { padding: 40px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,0.02); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.mv-card:hover { border-color: rgba(225,115,27,0.55); transform: translateY(-4px); }
.mv-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(225,115,27,0.12); color: var(--orange-lt); margin-bottom: 20px; }
.mv-card__title { color: var(--ivory); font-size: 1.3rem; margin-bottom: 12px; }
.mv-card__text { color: rgba(247,245,241,0.74); font-size: 1rem; margin: 0; }

.mv-quote { grid-column: 1 / -1; text-align: center; padding: 48px; border: 1px solid var(--line-dark); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; }
.mv-quote__mark { color: var(--orange); margin-bottom: 12px; }
.mv-quote blockquote { margin: 0; max-width: 720px; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--orange-lt); }
.mv-quote cite { display: block; margin-top: 18px; font-family: var(--font-head); font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,245,241,0.5); }

/* ---------- Pillars ---------- */
.pillars-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.pillars-intro__text { color: var(--muted); font-size: 1.08rem; margin: 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.pillar { padding: 38px 26px; text-align: center; border-right: 1px solid var(--line); position: relative; transition: background 0.3s var(--ease); }
.pillar:last-child { border-right: none; }
.pillar::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--orange); transform: translateX(-50%); transition: width 0.4s var(--ease); }
.pillar:hover { background: var(--orange-pale); }
.pillar:hover::before { width: 64%; }
.pillar__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: rgba(20,58,100,0.07); color: var(--navy); margin-bottom: 18px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.pillar:hover .pillar__icon { background: var(--orange); color: var(--white); }
.pillar__title { font-size: 1.02rem; margin-bottom: 8px; }
.pillar__text { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); margin-top: 50px; }
.approach-item { padding: 46px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s var(--ease); }
.approach-item:nth-child(even) { border-right: none; }
.approach-item:nth-last-child(-n+2) { border-bottom: none; }
.approach-item:hover { background: var(--orange-pale); }
.approach-item__num { display: block; font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; color: rgba(225,115,27,0.22); line-height: 1; margin-bottom: 10px; }
.approach-item__title { font-size: 1.25rem; margin-bottom: 10px; }
.approach-item__text { color: var(--muted); margin: 0; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.program-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.program-card__media { display: flex; align-items: center; justify-content: center; height: 200px; position: relative; overflow: hidden; color: var(--white); }
.program-card__media--navy { background: linear-gradient(135deg, #0d2944, #1f4f80); }
.program-card__media--orange { background: linear-gradient(135deg, #b5560f, #f0913f); }
.program-card__media--teal { background: linear-gradient(135deg, #0e3a3a, #1c6b6b); }
.program-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 22px);
}
.program-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-card__glyph { position: relative; z-index: 1; opacity: 0.92; }
.program-card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; background: var(--orange); color: var(--white); font-family: var(--font-head); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; }
.program-card__body { padding: 30px 28px; display: flex; flex-direction: column; flex: 1; }
.program-card__label { font-family: var(--font-head); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.program-card__title { font-size: 1.22rem; margin-bottom: 10px; }
.program-card__title a { color: var(--navy); }
.program-card__title a:hover { color: var(--orange); }
.program-card__text { color: var(--muted); font-size: 0.97rem; margin: 0; }
.program-card__body .arrow-link { margin-top: auto; }

/* ---------- Involved ---------- */
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.involved-card { display: flex; flex-direction: column; padding: 44px 36px; border: 1px solid var(--line-dark); border-radius: var(--radius); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.involved-card:hover { background: rgba(225,115,27,0.07); transform: translateY(-4px); }
.involved-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(225,115,27,0.45); color: var(--orange-lt); margin-bottom: 22px; }
.involved-card__title { color: var(--ivory); font-size: 1.28rem; margin-bottom: 12px; }
.involved-card__text { color: rgba(247,245,241,0.7); font-size: 0.98rem; margin: 0; flex: 1; }
.involved-card .arrow-link { color: var(--orange-lt); }
.involved-card .arrow-link:hover { color: var(--ivory); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); margin-top: 50px; align-items: start; }
.contact-info__intro { color: var(--muted); font-size: 1.08rem; margin: 0 0 30px; }
.contact-info__list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info__list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-info__icon { color: var(--orange); margin-top: 2px; }
.contact-info__list a { color: var(--charcoal); }
.contact-info__list a:hover { color: var(--orange); }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.form-field label { font-family: var(--font-head); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-field label span { color: var(--orange); }
.form-field input, .form-field textarea, .form-select select {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal); background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; width: 100%; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus, .form-select select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(225,115,27,0.14); }
.form-select { position: relative; display: block; }
.form-select select { appearance: none; padding-right: 42px; cursor: pointer; }
.form-select__icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--muted); pointer-events: none; }
.form-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-submit { align-self: flex-start; margin-top: 4px; }
.form-submit[disabled] { opacity: 0.7; cursor: default; }
.form-status { margin: 6px 0 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--teal); font-weight: 600; }

/* ---------- Apply page ---------- */
.apply-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.apply-intro__title { font-size: 1.5rem; margin-bottom: 20px; }
.apply-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.apply-steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--muted); font-size: 1.05rem; }
.apply-steps__num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.application-form .form-select select { background: var(--ivory); }

/* ---------- Contextual program CTA (Apply Now / Applications Closed) ---------- */
.program-cta { margin-top: 44px; padding: clamp(28px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-sm); }
.program-cta--closed { background: var(--surface-alt); box-shadow: none; }
.program-cta__title { font-size: 1.35rem; margin: 0 0 6px; }
.program-cta__note { margin: 0; color: var(--muted); }
.program-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.program-cta__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: rgba(20,58,100,0.06); border: 1px solid var(--line); border-radius: 50px; padding: 12px 20px; }
.program-cta__badge .ayed-icon { color: var(--muted); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: var(--ivory); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero__pattern { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, rgba(225,115,27,0.08) 0, rgba(225,115,27,0.08) 1px, transparent 1px, transparent 44px); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: var(--ivory); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0; }
.page-hero__subtitle { color: rgba(247,245,241,0.78); font-size: 1.15rem; margin: 16px 0 0; max-width: 680px; }

.about-grid__cta { margin-top: 28px; margin-bottom: 0; }

/* ---------- About lead (interior About page intro) ---------- */
.about-lead { background: var(--surface); }
.about-lead__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.about-lead__aside { position: sticky; top: 120px; }
.about-lead__statement { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.25; color: var(--navy); margin: 14px 0 0; }
.about-lead__statement em { font-style: italic; color: var(--orange); }
.about-lead__rule { width: 64px; height: 3px; background: var(--orange); border-radius: 3px; margin-top: 26px; }
.about-lead__body { font-size: 1.12rem; }
.about-lead__body > :first-child { font-size: 1.28rem; line-height: 1.6; color: var(--charcoal); }
.about-lead__body p { margin: 0 0 1.1em; color: var(--muted); }
.about-lead__body strong { color: var(--navy); font-weight: 600; }

/* ---------- Prose / single ---------- */
.single-content__media { margin: 0 0 36px; }
.single-content__media img { border-radius: var(--radius); width: 100%; }
.prose { font-size: 1.1rem; }
.prose > * { margin-bottom: 1.3em; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 24px; font-style: italic; color: var(--navy); }
.prose img { border-radius: var(--radius); }
.single-content__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.contact-callout { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 0; padding: 16px 18px; background: var(--orange-pale); border-radius: var(--radius-sm); color: var(--charcoal); font-size: 0.98rem; }
.contact-callout .ayed-icon { color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.contact-callout a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.single-content__footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Post / blog grid ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media img { width: 100%; height: 200px; object-fit: cover; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.post-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.post-card__excerpt { color: var(--muted); margin: 0; }
.post-card__body .arrow-link { margin-top: auto; }

.no-results { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.related-events .events-grid { margin-top: 40px; }
.event-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card__media { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; background: linear-gradient(135deg, #0d2944, #1f4f80); color: var(--white); overflow: hidden; }
.event-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__glyph { opacity: 0.9; }
.event-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 8px; }
.event-card__count span { display: inline-flex; align-items: center; gap: 4px; background: rgba(13,41,68,0.78); color: var(--white); font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 50px; }
.event-card__body { padding: 26px 28px; display: flex; flex-direction: column; flex: 1; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.event-card__meta .ayed-icon { color: var(--orange); }
.event-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.event-card__title a { color: var(--navy); }
.event-card__title a:hover { color: var(--orange); }
.event-card__text { color: var(--muted); font-size: 0.96rem; margin: 0; }
.event-card__body .arrow-link { margin-top: auto; }

.event-section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.gallery-grid__item { margin: 0; }
.gallery-grid__item a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-grid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-grid__item a:hover img { transform: scale(1.05); }
.gallery-grid__item figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.video-item__frame { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-item__frame iframe, .video-item__frame video, .video-item__frame embed, .video-item__frame object { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.video-item__link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.video-item__title { font-family: var(--font-head); font-weight: 500; margin: 10px 0 0; color: var(--navy); }

.related-programs { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-programs__list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-programs__list a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.related-programs__list a:hover { color: var(--orange); }
.related-programs__list .ayed-icon { color: var(--orange); }

/* ---------- Pagination ---------- */
.pagination, .comments-pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links, .comments-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers, .comments-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-head); font-weight: 500; color: var(--navy); background: var(--white);
}
.pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Search form ---------- */
.search-form { display: flex; max-width: 460px; margin: 20px auto 0; border: 1px solid var(--line); border-radius: 50px; overflow: hidden; background: var(--white); }
.search-form__field { flex: 1; border: 0; padding: 14px 20px; font-family: var(--font-body); font-size: 1rem; background: transparent; }
.search-form__field:focus { outline: none; }
.search-form__submit { border: 0; background: var(--orange); color: var(--white); padding: 0 22px; cursor: pointer; display: inline-flex; align-items: center; }
.search-form__submit:hover { background: var(--orange-lt); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; min-height: 70vh; display: flex; align-items: center; }
.error-404__inner { margin: 0 auto; }
.error-404__code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; color: var(--orange); line-height: 1; }
.error-404__title { color: var(--ivory); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.error-404__text { color: rgba(247,245,241,0.78); max-width: 520px; margin: 12px auto 30px; }
.error-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(247,245,241,0.7); }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer__brand .brand { margin-bottom: 18px; }
.site-footer__blurb { font-size: 0.98rem; max-width: 360px; margin: 0 0 22px; }
.site-footer__heading { color: var(--ivory); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__menu, .site-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__menu a { color: rgba(247,245,241,0.7); font-size: 0.96rem; }
.site-footer__menu a:hover { color: var(--orange-lt); }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.96rem; }
.site-footer__contact .ayed-icon { color: var(--orange); margin-top: 2px; }
.site-footer__contact a { color: rgba(247,245,241,0.7); }
.site-footer__contact a:hover { color: var(--orange-lt); }

.social-links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,245,241,0.2); color: var(--ivory); transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.social-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.social-links--contact a { border-color: var(--line); color: var(--navy); }
.social-links--contact a:hover { color: var(--white); }

.site-footer__bar { border-top: 1px solid rgba(247,245,241,0.12); }
.site-footer__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; max-width: 1320px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 48px); }
.site-footer__copy, .site-footer__credit { margin: 0; font-size: 0.8rem; color: rgba(247,245,241,0.5); }

.footer-widget { margin-bottom: 20px; }
.footer-widget__title { color: var(--ivory); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }
.back-to-top__icon { transform: rotate(-90deg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Never hide content if JavaScript is unavailable or fails. */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@keyframes ayed-fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ayed-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ayed-slide-down { 0% { top: -100%; } 100% { top: 100%; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .programs-grid, .posts-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(3n) { border-right: none; }
  .involved-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .about-grid, .pillars-intro, .mv-grid, .about-lead__grid, .apply-grid { grid-template-columns: 1fr; }
  .about-lead__aside { position: static; }
  .mv-quote { grid-column: auto; }
  .program-cta { flex-direction: column; align-items: flex-start; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-item { border-right: none; }
  .approach-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .approach-item:last-child { border-bottom: none; }
  .programs-grid, .posts-grid, .events-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 28px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
