/* About Page - Two-Column Layout with Sidebar Navigation */

.page--about {
  display: grid;
  padding-bottom: 4rem;
}

/* =============================================================================
   Two-Column Layout
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* =============================================================================
   Left Sidebar: Navigation
   ========================================================================== */

.about-sidebar {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
}

.about-sidebar__inner {
  display: grid;
  gap: 1.5rem;
}

.about-sidebar__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: rgba(226, 227, 234, 0.9);
}

/* Sidebar Navigation */
.about-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.about-nav__link {
  display: block;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(226, 227, 234, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.about-nav__link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 227, 234, 0.95);
  transform: translateX(2px);
}

.about-nav__link.is-active {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  background: rgba(var(--accent-primary-rgb), 0.08);
  color: var(--accent-primary);
}

/* =============================================================================
   Right Content: Main Content
   ========================================================================== */

.about-content {
  display: grid;
  gap: 0;
  min-width: 0; /* Prevent grid blowout */
}

/* Section Spacing */
.about-section {
  scroll-margin-top: 2rem;
}

.about-section:first-child {
  padding-top: 0;
}

/* =============================================================================
   Block Overrides for Compact Spacing
   ========================================================================== */

.about-content .block-heading {
  margin: 0.5rem 0 0.5rem 0;
}

.about-content .block-heading:first-child {
  margin-top: 0;
}

.about-content .block-text {
  margin: 0.5rem 0;
}

/* =============================================================================
   Hero Section
   ========================================================================== */

.about-section--hero {
  display: grid;
  gap: 0.75rem;
  max-width: 90ch;
  margin-bottom: 3rem;
}

.about__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}

.about__intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(226, 227, 234, 0.88);
  max-width: 68ch;
  margin: 0;
}

/* =============================================================================
   Stats Section
   ========================================================================== */

.about-section--stats {
  display: grid;
  gap: 1rem;
}

.about__section-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: inherit;
}

.about__stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.about__stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-medium), border-color var(--transition-medium), transform var(--transition-medium);
}

.about__stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.about__stat-icon {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
}

.about__stat-content {
  display: grid;
  gap: 0.35rem;
}

.about__stat-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about__stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 227, 234, 0.6);
}

/* =============================================================================
   Mission Section
   ========================================================================== */

.about-section--mission {
  display: grid;
  gap: 1rem;
}

.about__mission-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(226, 227, 234, 0.85);
  max-width: 75ch;
}

.about__mission-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.about__mission-content p {
  margin: 0 0 1.5rem;
}

.about__mission-content p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   Focus Areas Section
   ========================================================================== */

.about-section--focus {
  display: grid;
  gap: 1rem;
}

.about__focus-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.about__focus-card {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-medium), border-color var(--transition-medium), transform var(--transition-medium);
}

.about__focus-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.about__focus-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.95;
}

.about__focus-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

.about__focus-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(226, 227, 234, 0.75);
  margin: 0;
}

/* =============================================================================
   Timeline Section
   ========================================================================== */

.about-section--timeline {
  display: grid;
  gap: 1rem;
}

.about__timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.about__milestone {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-base), border-color var(--transition-base);
  align-content: start;
}

.about__milestone:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.about__milestone-year {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 227, 234, 0.6);
  margin: 0;
}

.about__milestone-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  color: rgba(226, 227, 234, 0.95);
}

.about__milestone-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(226, 227, 234, 0.65);
  margin: 0;
}

/* =============================================================================
   Partners Section
   ========================================================================== */

.about-section--partners,
.about-section--past-partners,
.about-section--funders {
  display: grid;
  gap: 1rem;
}

.about__partners-intro,
.about__funders-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(226, 227, 234, 0.75);
  max-width: 70ch;
  margin: 0;
}

.about__partners-grid,
.about__funders-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.about__partner-card,
.about__funder-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-medium), border-color var(--transition-medium), transform var(--transition-medium);
}

.about__partner-card:hover,
.about__funder-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.about__partner-link,
.about__funder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.about__partner-name,
.about__funder-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.about__partner-arrow {
  font-size: 0.9rem;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.about__partner-link:hover .about__partner-arrow {
  opacity: 0.9;
}

.about__partner-period,
.about__funder-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 227, 234, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================================================
   Contact Section
   ========================================================================== */

.about-section--contact {
  display: grid;
  gap: 1rem;
}

.about__contact-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(226, 227, 234, 0.75);
  max-width: 70ch;
  margin: 0;
}

.about__location-card {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.about__location-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about__location-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.8;
}

.about__location-name {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.about__contact-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.about__contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-medium), border-color var(--transition-medium), transform var(--transition-medium);
}

.about__contact-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Clickable cards */
a.about__contact-card {
  cursor: pointer;
}

a.about__contact-card:hover .about__contact-value {
  color: var(--accent-primary);
}

.about__contact-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.8;
  flex-shrink: 0;
}

.about__contact-content {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.about__contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(226, 227, 234, 0.55);
}

.about__contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(226, 227, 234, 0.85);
  transition: color var(--transition-base);
  word-break: break-word;
}

/* =============================================================================
   Light Theme
   ========================================================================== */

html[data-theme="light"] .about__intro,
html[data-theme="light"] .about__mission-content {
  color: rgba(40, 42, 58, 0.85);
}

html[data-theme="light"] .about-nav__link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(40, 42, 58, 0.75);
}

html[data-theme="light"] .about-nav__link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(40, 42, 58, 0.95);
}

html[data-theme="light"] .about-nav__link.is-active {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  color: var(--accent-primary);
}

html[data-theme="light"] .about__stat-card,
html[data-theme="light"] .about__focus-card,
html[data-theme="light"] .about__contact-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .about__stat-card:hover,
html[data-theme="light"] .about__focus-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .about__stat-label {
  color: rgba(40, 42, 58, 0.65);
}

html[data-theme="light"] .about__focus-description {
  color: rgba(47, 50, 68, 0.7);
}

html[data-theme="light"] .about__milestone-year {
  color: rgba(40, 42, 58, 0.55);
}

html[data-theme="light"] .about__milestone-title {
  color: rgba(40, 42, 58, 0.95);
}

html[data-theme="light"] .about__milestone-description {
  color: rgba(47, 50, 68, 0.7);
}

html[data-theme="light"] .about__partners-intro,
html[data-theme="light"] .about__funders-intro {
  color: rgba(40, 42, 58, 0.75);
}

html[data-theme="light"] .about__partner-card,
html[data-theme="light"] .about__funder-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .about__partner-card:hover,
html[data-theme="light"] .about__funder-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .about__partner-period,
html[data-theme="light"] .about__funder-period {
  color: rgba(40, 42, 58, 0.5);
}

html[data-theme="light"] .about__contact-intro {
  color: rgba(40, 42, 58, 0.75);
}

html[data-theme="light"] .about__location-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .about__contact-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .about__contact-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .about__contact-label {
  color: rgba(40, 42, 58, 0.55);
}

html[data-theme="light"] .about__contact-value {
  color: rgba(40, 42, 58, 0.85);
}

html[data-theme="light"] a.about__contact-card:hover .about__contact-value {
  color: var(--accent-primary);
}

/* =============================================================================
   Responsive
   ========================================================================== */

/* Below LG (1024px): Single column layout */
@media (max-width: 63.99rem) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3rem;
  }

  .about-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .about-nav__link {
    padding: 0.75rem 1.25rem;
  }

  .about-nav__link:hover {
    transform: translateY(-1px);
  }

  .about-content {
    gap: 0;
  }
}

/* Below SM (640px): Mobile optimizations */
@media (max-width: 39.99rem) {
  .about-content {
    gap: 0;
  }

  .about__section-title {
    font-size: 1.65rem;
  }

  .about__stats-grid {
    grid-template-columns: 1fr;
  }

  .about__focus-grid {
    grid-template-columns: 1fr;
  }

  .about__partners-grid,
  .about__funders-grid {
    grid-template-columns: 1fr;
  }

  .about__contact-grid {
    grid-template-columns: 1fr;
  }

  .about__timeline {
    grid-template-columns: 1fr;
  }

  .about__contact-card {
    padding: 1.15rem 1rem;
  }

  .about__title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .about-sidebar {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .about__stat-card {
    padding: 1.15rem 0.9rem;
  }

  .about__milestone {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about__milestone-year {
    font-size: 0.8rem;
  }

  .about__contact-icon {
    font-size: 1.5rem;
  }
}
