/**
 * About page — Silicon Valley academic style
 */

.about-page {
  background: var(--surface);
}

/* ---- Hero ---- */
.about-hero {
  position: relative;
  padding: calc(var(--nav-height, 76px) + 3rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #0c1524 0%, #1a2332 45%, #0c1524 100%);
  color: #fff;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 20%, rgba(220, 113, 31, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 50% at 85% 80%, rgba(211, 174, 66, 0.12), transparent 50%);
  pointer-events: none;
}

.about-hero__inner {
  position: relative;
  z-index: 2;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.about-hero .section-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(211, 174, 66, 0.25);
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff !important;
  margin-bottom: 1rem;
}

.about-hero__title em {
  font-style: normal;
  color: var(--accent-light);
}

.about-hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.about-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.about-hero__stat {
  min-width: 100px;
}

.about-hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
}

.about-hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-hero__visual img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.about-hero__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-hero__badge strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

/* ---- Cards & sections (override legacy) ---- */
.about-page .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--dark);
}

.about-page .section-title::after {
  background: var(--gradient-primary);
  width: 64px;
  height: 4px;
  border-radius: 999px;
}

.about-page .vision-card,
.about-page .philosophy-card,
.about-page .mission-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-page .vision-card:hover,
.about-page .philosophy-card:hover,
.about-page .mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.about-page .vision-title,
.about-page .philosophy-title,
.about-page .mission-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.about-page .vision-text,
.about-page .philosophy-text,
.about-page .mission-text {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.975rem;
}

.about-page .mission-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

/* Team */
.about-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.about-page .team-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-page .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.about-page .team-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-page .team-content {
  padding: 1.25rem;
}

.about-page .team-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.about-page .team-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Values pyramid */
.about-page .values-section {
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

.about-page .values-pyramid {
  max-width: 720px;
  margin: 0 auto;
}

/* Subjects / departments */
.about-page .subjects-section {
  background: var(--surface) !important;
}

.about-page .department-card,
.about-page .subject-card {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-page .department-card:hover,
.about-page .subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* CTA */
.about-page .about-cta {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 50%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.about-page .about-cta h2 {
  color: #fff !important;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.about-page .about-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.about-page .btn-about-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(220, 113, 31, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-page .btn-about-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(220, 113, 31, 0.5);
  color: #fff !important;
}

/* Hide legacy orange hero if present */
.about-page .abouth {
  display: none !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero__stats {
    justify-content: center;
  }

  .about-hero__visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-hero__badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    white-space: nowrap;
  }

  .about-hero__visual img {
    max-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .about-hero {
    padding-top: calc(var(--nav-height, 76px) + 2rem);
  }

  .about-hero__stats {
    gap: 1rem;
  }

  .about-hero__stat {
    min-width: 80px;
  }

  .about-page .team-image img {
    height: 200px;
  }
}
