/* ============================================================
   TEAM PAGE 2 — "Overlap Cards" Stylesheet
   ============================================================
   Circular photos that float ABOVE the card body.
   
   WHAT'S IN HERE:
   - Page header (gradient banner)
   - Overlap card layout (photo overlaps card)
   - Mission section
   - Process timeline
   - Social links
   - Responsive adjustments
   
   📝 This file works WITH base.css (loaded first).
   ============================================================ */

/* ============================================================
   PAGE HEADER — Gradient Banner (same as team-1)
   ============================================================ */
.hero-cards {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  padding: 120px 0 80px;
  color: var(--white);
  text-align: center;
}

.hero-cards h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-cards .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* ============================================================
   OVERLAP CARDS
   ============================================================
   The "overlap" effect works like this:
   
   1. The card has padding-top: 100px (empty space at top)
   2. The photo wrapper has position: absolute + top: -60px
   3. This pushes the photo UP, into that empty space
   4. margin-top: 80px on the outer container prevents overlap
      with the section above
   
   📝 POSITION ABSOLUTE:
   - Removes the element from normal page flow
   - Positions it relative to the nearest "position: relative" parent
   - top, left, right, bottom control where it sits
   
   The photo uses transform: translateX(-50%) + left: 50%
   to center it horizontally (a classic CSS centering trick).
   ============================================================ */
.team-overlap .team-member-card {
  position: relative; /* Photo positions itself relative to this */
  padding-top: 100px; /* Makes room for the overlapping photo */
  margin-top: 80px; /* Space above so photos don't get cut off */
  text-align: center;
  height: 100%;
}

/* Circular photo wrapper */
.team-overlap .team-photo-wrapper {
  position: absolute;
  top: -60px; /* Moves photo UP above the card */
  left: 50%; /* Starts at the horizontal center */
  transform: translateX(
    -50%
  ); /* Shifts left by half its width = truly centered */
  width: 140px;
  height: 140px;
  border-radius: 50%; /* Makes it a circle */
  overflow: hidden; /* Clips image to the circle shape */
  border: 5px solid var(--white); /* White ring around the photo */
  box-shadow: var(--shadow-md);
}

.team-overlap .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--accent-color);
}

/* Card body (below the photo) */
.team-overlap .team-card-body {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 80px 25px 30px; /* Extra top padding so photo doesn't overlap text */
  box-shadow: var(--shadow-md);
  height: 100%;
}

.team-overlap .team-card-body h3 {
  margin-bottom: 5px;
}

/* Role badge (shared with team-1) */
.team-role {
  color: var(--highlight-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-bio {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.team-social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-color);
  margin: 10px 4px 0;
  transition: var(--transition-fast);
  font-size: 0.9rem;
  text-align: center;
}

.team-social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-section {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}

.mission-section h2 {
  color: var(--white);
}

.mission-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-cards {
    padding: 100px 0 60px;
  }
  .hero-cards h1 {
    font-size: 2.3rem;
  }
  .team-overlap .team-member-card {
    margin-top: 70px;
  }
}
