/* ============================================================
   ABOUT PAGE (about.css)
   - Standalone stylesheet for About page only
   - Does NOT depend on content_container.css
   ============================================================ */


/* ============================================================
   1) HERO (Full-width image header)
   ============================================================ */

.about-hero {
  background: #f3f6f8;
}

.about-hero-frame {
  width: 100%;
  overflow: hidden;
}

.about-hero-img {
  display: block;
  width: 100%;
  height: 630px;        /* Adjust hero height here */
  object-fit: cover;    /* Crop to fill container */
}


/* ============================================================
   2) RIGHT SIDEBAR PANELS (Dark panels + muted text)
   ============================================================ */

.about-panel-dark {
  background: var(--brand-strong);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.about-muted {
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   3) QUICK LINKS (Invert on hover/focus)
   ============================================================ */

.about-quicklink {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-align: center;
}

.about-quicklink:hover,
.about-quicklink:focus {
  background: #fff;
  color: var(--brand-strong);
  border-color: #fff;
}


/* ============================================================
   4) CORE PRINCIPLES (Stacked items in sidebar)
   ============================================================ */

.about-principle-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.about-principle-icon {
  width: 5em;
  height: 100%;
  object-fit: contain;
  flex: 0 0 auto;
  margin-right:1%;
}


/* ============================================================
   5) TEAM SECTION (Row-based team layout)
   - Uses data-cols="1..5" on .about-team-grid
   - Each row is independent and spaced
   - Cards stretch to fill available grid cell width
   ============================================================ */

/* ---------- Section background + spacing ---------- */

.about-team-full {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- Section header ---------- */

.about-team-head {
  text-align: center;
  margin-bottom: 2rem;
}

.about-team-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.about-team-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: var(--brand-strong);
}

/* ---------- Row stack (each row gets vertical spacing) ---------- */

.about-team-stack {
  display: grid;
  gap: 2rem;            /* Space between rows */
}

.about-team-row {
  width: 100%;
}

/* ---------- Grid layout ---------- */

.about-team-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(var(--team-cols, 4), minmax(0, 1fr));
}

/* Stretch cards to fill their grid cell (no “tiny centered cards”) */
.about-team-grid--center {
  justify-items: stretch;
}

/* ---------- Column count mapping (data-cols -> --team-cols) ---------- */

.about-team-grid[data-cols="1"] { --team-cols: 1; }
.about-team-grid[data-cols="2"] { --team-cols: 2; }
.about-team-grid[data-cols="3"] { --team-cols: 3; }
.about-team-grid[data-cols="4"] { --team-cols: 4; }
.about-team-grid[data-cols="5"] { --team-cols: 5; }

/* Optional: keep single-person rows readable on large screens */
.about-team-grid[data-cols="1"] {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Responsive behavior ---------- */
/* Tablet: cap to 2 columns, but keep 1-column rows as 1 */
@media (max-width: 991.98px) {
  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-team-grid[data-cols="1"] {
    grid-template-columns: 1fr;
  }
}

/* Phone: always stack */
@media (max-width: 575.98px) {
  .about-team-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   6) TEAM CARD (Tile)
   ============================================================ */

.about-team-card2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;

  width: 100%;
  max-width: none;      /* IMPORTANT: allow full cell width */

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;

  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.about-team-card2:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.16);
}


/* ============================================================
   7) TEAM AVATAR
   ============================================================ */

.about-team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;

  background: #f3f6f8;
  border: 6px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}

.about-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   8) TEAM TEXT (Name + Role)
   ============================================================ */

.about-team-name2 {
  text-align: center;
  font-weight: 800;
  color: var(--brand-strong);
  text-transform: none;
  margin-bottom: 0.25rem;
}

.about-team-role2 {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.2;
  min-height: 1.2em;
}

.about-team-role2--empty {
  opacity: 0;
}
