/* ===== LEADERSHIP TEAM SECTION ===== */
.team-section {
  background-color: #f9f9f9;
  padding: 96px 0;
}

/* ===== SECTION HEADER ===== */
.team-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-title {
  font-size: 36px;
  line-height: 125%;
  color: #181c20;
  font-weight: 700;
  margin: 0;
}

.team-desc {
  font-size: 16px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 0;
}

/* ===== CARDS GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px; /* 32px gap from sideways */
  row-gap: 64px; /* 64px gap from top and bottom */
}

/* ===== SINGLE CARD ===== */
.team-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 110, 37, 0.1);
  transform: translateY(-4px);
}

/* ===== IMAGE WRAPPER ===== */
.team-img-wrapper {
  width: 100%;
  margin-bottom: 32px; /* 32px gap between image and content */
}

.team-img-placeholder {
  width: 100%;
  height: 220px;
  background-color: #b5c9b7;
  border-radius: 16px;
  overflow: hidden;
}

/* Real image styles */
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Shows face not feet */
  border-radius: 16px;
  display: block;
}

/* ===== CARD CONTENT ===== */
.team-content {
  display: flex;
  flex-direction: column;
  gap: 8px; /* 8px gap between name and role */
}

/* Member Name */
.team-member-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 125%;
  color: #181c20;
  margin: 0;
}

/* Member Role */
.team-member-role {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: #006e25;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */

/* Medium screens */
@media (max-width: 1100px) {
  .team-grid {
    column-gap: 24px;
    row-gap: 48px;
  }

  .team-img-placeholder {
    height: 190px;
  }

  .team-member-name {
    font-size: 18px;
  }
}

/* Tablet — 2 columns */
@media (max-width: 992px) {
  .team-section {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 40px;
  }

  .team-title {
    font-size: 30px;
  }

  .team-img-placeholder {
    height: 200px;
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  .team-header {
    margin-bottom: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 32px;
  }

  .team-card {
    padding: 20px;
  }

  .team-img-wrapper {
    margin-bottom: 20px;
  }

  .team-img-placeholder {
    height: 180px;
  }
}

/* Mobile — 1 column */
@media (max-width: 480px) {
  .team-section {
    padding: 48px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .team-img-placeholder {
    height: 260px;
  }

  .team-title {
    font-size: 26px;
  }

  .team-card {
    padding: 24px;
  }
}
