/* ===============================================
   TEAM PAGE - REDESIGNED
   =============================================== */

/* Note: Breadcrumb and hero-banner styles are handled by the main CSS */

/* ===== TEAM SECTION ===== */
.team-section {
  padding: 40px 0 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== TEAM MEMBER CARDS ===== */
.team-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Team member image */
.team-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

/* Team member content */
.team-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-header {
  margin-bottom: 20px;
}

.team-name {
  font-family: "SangBleuMedium", serif;
  font-size: 24px;
  font-weight: 500;
  color: #1f2225;
  margin-bottom: 8px;
}

.team-role {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #6b3305;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6b3305 0%, #d4a574 100%);
  margin: 20px 0;
}

.team-bio {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #6b6661;
  flex-grow: 1;
}

/* Leadership badge for key positions */
.leadership-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6b3305;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Desktop Large (1400px+) */
@media (min-width: 1400px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
  
  .team-name {
    font-size: 22px;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  .team-section {
    padding: 30px 0 60px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  
  .team-image-wrapper {
    height: 280px;
  }
  
  .team-content {
    padding: 24px;
  }
  
  .team-name {
    font-size: 20px;
  }
  
  .team-role {
    font-size: 14px;
  }
  
  .team-bio {
    font-size: 14px;
  }
  
  .leadership-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Image positioning for specific team members */
.img-position-team-1 {
  object-position: center 25%;
}

.img-position-team-2 {
  object-position: center 33%;
}

.img-position-team-3 {
  object-position: center 30%;
}

.img-position-team-4 {
  object-position: center 44%;
}

.img-position-team-5 {
  object-position: center center;
}