/* =========================================================
   About Us page  –  Edulateral Foundation
   ========================================================= */

/* ---- Page hero ---- */
.about-hero {
  background: var(--navy-dark);
  padding: 100px 0 140px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 110% 40%, rgba(201,162,75,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at -10% 80%, rgba(27,58,107,.6) 0%, transparent 70%);
  pointer-events: none;
}
/* subtle animated grid lines */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px;
  color: var(--gold-fill); background: rgba(255,196,20,.12); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,196,20,.4);
}
.about-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  max-width: 760px;
}
.about-hero h1 span { color: var(--gold); }
.about-hero p {
  color: #c8d6ee;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 580px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Stats bar: three cards floating over the hero's bottom edge ---- */
.stats-bar { position: relative; z-index: 2; margin-top: -72px; padding: 0 0 8px; background: transparent; }
.stats-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-item {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 32px 30px; overflow: hidden;
  background: var(--white); border: 1px solid rgba(18,40,75,.08); border-top: 4px solid var(--gold-fill); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(14,32,56,.16);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .3s ease, box-shadow .3s ease;
}
.stat-item:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(14,32,56,.24); }
.stat-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 18px;
  color: var(--gold-fill); background: linear-gradient(160deg, var(--navy), var(--navy-dark)); box-shadow: 0 8px 18px rgba(14,32,56,.3);
  transition: transform .3s ease;
}
.stat-item:hover .stat-icon { transform: rotate(-6deg) scale(1.05); }
.stat-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat-number { font-family: var(--font-head); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 700; color: var(--navy-dark); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---- Mission section ---- */
.about-mission {
  padding: 90px 0;
  background: var(--white);
}
.about-mission .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,75,.12);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,162,75,.3);
}
.mission-text h2 {
  font-size: var(--h2-size);
  color: var(--navy-dark);
  margin-bottom: 20px;
  line-height: var(--h2-line);
}
.mission-text h2 span { color: var(--gold-dark); }
.mission-text p {
  color: var(--muted);
  line-height: var(--p-line);
  margin-bottom: 20px;
  font-size: var(--p-size);
}
.mission-text p:last-child { margin-bottom: 0; }

/* visual card column */
.mission-visual {
  position: relative;
}
.mission-card-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18,40,75,.18);
  aspect-ratio: 4/3;
  background: var(--navy-dark);
}
.mission-card-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.mission-card-wrap:hover img { transform: scale(1.04); }
/* gold accent box */
.mission-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 16px;
  z-index: -1;
  opacity: .7;
}
/* floating stats chip */
.mission-chip {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(18,40,75,.18);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  z-index: 2;
}
.mission-chip-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.mission-chip-text strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--navy-dark);
  line-height: 1;
}
.mission-chip-text span {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Story paragraphs ---- */
.about-story {
  padding: 90px 0;
  background: var(--cream);
}
.about-story .story-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.about-story .story-intro h2 {
  font-size: var(--h2-size); line-height: var(--h2-line);
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.about-story .story-intro h2 span { color: var(--gold-dark); }
.about-story .story-intro p {
  color: var(--muted);
  font-size: var(--p-size);
  line-height: var(--p-line);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.story-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.story-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  opacity: 0;
  transition: opacity .3s;
}
.story-card:hover {
  box-shadow: 0 16px 40px rgba(18,40,75,.12);
  transform: translateY(-4px);
}
.story-card:hover::before { opacity: 1; }
.story-card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(201,162,75,.12);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.story-card h3 {
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 12px;
}
.story-card p {
  color: var(--muted);
  font-size: var(--p-size);
  line-height: var(--p-line);
  margin: 0;
}

/* ---- Domains section ---- */
.about-domains {
  padding: 90px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.about-domains::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.about-domains .container { position: relative; z-index: 1; }
.about-domains .section-head {
  text-align: center;
  margin-bottom: 56px;
}
.about-domains .section-head h2 {
  font-size: var(--h2-size); line-height: var(--h2-line);
  color: var(--white);
  margin-bottom: 14px;
}
.about-domains .section-head h2 span { color: var(--gold); }
.about-domains .section-head p {
  color: #94a8cc;
  max-width: 540px;
  margin: 0 auto;
  font-size: var(--p-size);
  line-height: var(--p-line);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.domain-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}
.domain-card:hover {
  background: rgba(201,162,75,.12);
  border-color: rgba(201,162,75,.4);
  transform: translateY(-6px);
}
.domain-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.domain-card h4 {
  font-size: .88rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.3;
}

/* ---- CTA strip ---- */
.about-cta {
  padding: 80px 0;
  background: var(--cream);
  text-align: center;
}
.about-cta h2 {
  font-size: var(--h2-size); line-height: var(--h2-line);
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.about-cta h2 span { color: var(--gold-dark); }
.about-cta p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: var(--p-size);
  line-height: var(--p-line);
}
.about-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .about-mission .container { grid-template-columns: 1fr; gap: 48px; }
  .mission-chip { right: 16px; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-bar { margin-top: -56px; }
  .stats-bar .container { grid-template-columns: 1fr; gap: 14px; }
  .stat-item { padding: 22px 22px; gap: 18px; }
  .stat-icon { width: 58px; height: 58px; }
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding: 72px 0 100px; }
}

@media (max-width: 900px) { .stat-item { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 22px; } }
@media (max-width: 640px) { .stat-item { flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .stat-item, .stat-icon { transition: none; } .stat-item:hover { transform: none; } }

/* keep the pill badge style (beats the generic hero paragraph rule) */
.about-hero p.about-hero-eyebrow { color: var(--gold-fill); font-size: .75rem; line-height: 1.5; max-width: none; background: rgba(255,196,20,.12); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,196,20,.4); margin: 0 0 20px; }
