
/* ==========================================
   GLOBAL TEAM PAGE
========================================== */

.team-page {
  width: 100%;
  overflow: hidden;
  background: #fffdf8;
  color: #17462f;
}

.team-page * {
  box-sizing: border-box;
}

.team-page h1,
.team-page h2,
.team-page h3 {
  font-family: "Playfair Display", Georgia, serif;
}

.team-label {
  display: inline-block;
  color: #4f97ac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
}

/* ==========================================
   HERO
========================================== */

.team-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: 100px 10%;
  background:
    linear-gradient(
      90deg,
      rgba(8, 39, 25, 0.96),
      rgba(8, 39, 25, 0.76),
      rgba(8, 39, 25, 0.25)
    ),
    url("/programs/1.jpeg") center/cover no-repeat;
}

.team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 39, 25, 0.2),
    transparent
  );
}

.team-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.team-eyebrow {
  color: #b7dfe7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
}

.team-hero h1 {
  color: white;
  font-size: clamp(45px, 6vw, 75px);
  line-height: 1.15;
  margin: 28px 0;
}

.team-hero h1 em {
  color: #b7dfe7;
  font-weight: 500;
}

.team-hero-content p {
  max-width: 620px;
  color: #e0e9e2;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 35px;
}

.team-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 16px 27px;
  background: #4f97ac;
  color: #102f36;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s ease;
}

.team-hero-btn:hover {
  background: white;
  transform: translateY(-4px);
}

.team-hero-btn span {
  font-size: 20px;
}

/* ==========================================
   INTRODUCTION
========================================== */

.team-introduction {
  max-width: 900px;
  margin: auto;
  padding: 100px 25px;
  text-align: center;
}

.team-introduction h2 {
  color: #17462f;
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.3;
  margin-bottom: 25px;
}

.team-introduction h2 em {
  color: #4f97ac;
}

.team-introduction p {
  color: #718077;
  font-size: 14px;
  line-height: 2;
}

/* ==========================================
   TEAM MEMBERS SECTION
========================================== */

.team-members-section {
  padding: 100px 8%;
  background: #f4f6f0;
}

.team-section-heading {
  max-width: 750px;
  margin: 0 auto 65px;
  text-align: center;
}

.team-section-heading h2 {
  color: #17462f;
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.3;
  margin-bottom: 20px;
}

.team-section-heading h2 em {
  color: #4f97ac;
}

.team-section-heading p {
  color: #718077;
  font-size: 14px;
  line-height: 1.9;
}

/* ==========================================
   TEAM GRID
========================================== */

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  max-width: 1250px;
  margin: auto;
}

.team-member-card {
  min-width: 0;
  background: white;
  border: 1px solid #e8eee6;
  box-shadow: 0 10px 35px rgba(23, 70, 47, 0.05);
  transition: 0.35s ease;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23, 70, 47, 0.12);
}

/* ==========================================
   MEMBER IMAGE
========================================== */

.team-member-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f3f6, #dcecf0);
}

.team-member-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 0.6s ease;
}

.team-member-card:hover .team-member-image img {
  transform: scale(1.04);
}

/* Initials visible when no photograph is added */
.team-image-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #4f97ac;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 85px;
  font-weight: 700;
  background: linear-gradient(145deg, #e8f3f6, #dcecf0);
  pointer-events: none;
}

/* Hide initials when image loads successfully */
.team-member-image:has(img:not([style*="display: none"])) .team-image-initials {
  display: none;
}

.team-member-number {
  position: absolute;
  right: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #4f97ac;
  color: #102f36;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================
   MEMBER DETAILS
========================================== */

.team-member-content {
  padding: 32px;
}

.team-member-position {
  display: inline-block;
  color: #3d8296;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.7;
  text-transform: uppercase;
}

.team-member-content h3 {
  color: #17462f;
  font-size: 29px;
  line-height: 1.3;
  margin: 15px 0;
}

.team-member-divider {
  width: 55px;
  height: 3px;
  background: #4f97ac;
  margin-bottom: 22px;
}

.team-member-biography p {
  color: #718077;
  font-size: 12px;
  line-height: 1.95;
  margin-bottom: 16px;
}

.team-member-biography p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   LEADERSHIP PHILOSOPHY
========================================== */

.team-philosophy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
  padding: 100px 10%;
  background: #17462f;
}

.team-philosophy-content h2 {
  color: white;
  font-size: clamp(35px, 4vw, 48px);
  line-height: 1.3;
  margin-bottom: 25px;
}

.team-philosophy-content h2 em {
  color: #b7dfe7;
}

.team-philosophy-content p {
  color: #d2dfd5;
  font-size: 14px;
  line-height: 2;
}

.team-philosophy-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-philosophy-values div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: 0.3s ease;
}

.team-philosophy-values div:hover {
  background: rgba(255, 255, 255, 0.08);
}

.team-philosophy-values span {
  color: #b7dfe7;
  font-size: 12px;
  font-weight: 800;
}

.team-philosophy-values strong {
  color: white;
  font-size: 13px;
}

/* ==========================================
   FINAL CTA
========================================== */

.team-final-cta {
  padding: 100px 8%;
  text-align: center;
  background: #fffdf8;
}

.team-final-cta > span {
  color: #3d8296;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
}

.team-final-cta h2 {
  max-width: 850px;
  margin: 25px auto;
  color: #17462f;
  font-size: clamp(35px, 4vw, 50px);
  line-height: 1.3;
}

.team-final-cta h2 em {
  color: #4f97ac;
}

.team-final-cta p {
  max-width: 680px;
  margin: 0 auto 35px;
  color: #718077;
  font-size: 14px;
  line-height: 1.9;
}

.team-final-cta a {
  display: inline-block;
  padding: 16px 28px;
  background: #17462f;
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  transition: 0.3s ease;
}

.team-final-cta a:hover {
  background: #4f97ac;
  color: #17462f;
  transform: translateY(-4px);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
  .team-members-section {
    padding: 80px 6%;
  }

  .team-members-grid {
    gap: 22px;
  }

  .team-member-image {
    height: 340px;
  }

  .team-member-content {
    padding: 25px;
  }

  .team-philosophy {
    gap: 35px;
    padding: 80px 7%;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {
  .team-hero {
    min-height: 540px;
    padding: 85px 7%;
    background-position: center;
  }

  .team-hero h1 {
    font-size: 42px;
  }

  .team-hero-content p {
    font-size: 13px;
  }

  .team-introduction {
    padding: 75px 7%;
  }

  .team-members-section {
    padding: 75px 6%;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .team-member-image {
    height: 340px;
  }

  .team-member-content {
    padding: 25px 22px;
  }

  .team-member-content h3 {
    font-size: 25px;
  }

  .team-philosophy {
    grid-template-columns: 1fr;
    padding: 75px 7%;
  }

  .team-final-cta {
    padding: 75px 7%;
  }
}

@media (max-width: 380px) {
  .team-hero h1 {
    font-size: 36px;
  }

  .team-member-image {
    height: 300px;
  }
}
