/* 🌟 Overall Section Layout */
.leadership-section {
  font-family: 'Segoe UI', sans-serif;
}

/* 🔵 Top Background (Heading + Description) */
.leadership-top {
  background: #102542;
  color: white;
  padding: 100px 20px 60px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.team-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #ccc;
}

/* 🔵 Bottom Background (Cards) */
.leadership-cards {
  background: linear-gradient(to top, #f2f4f8 10%, #ffffff);
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* 🟠 Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* 🟠 Team Card */
.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0); /* ultra-light shadow */
  transition: transform 0.4s ease;
  position: relative;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img {
  height: 260px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  margin: 10px 0 5px;
  font-size: 1.25rem;
  color: #102542;
}

.position {
  font-size: 0.95rem;
  color: #ff3e3e;
  font-weight: 600;
}

/* 🟠 Overlay on Hover */
.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);      /* Transparent dark overlay */
  backdrop-filter: blur(10px);         /* Mirror glass effect */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 20px;
  text-align: center;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Hover trigger */
.team-card:hover .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

.member-id {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.email,
.whatsapp {
  font-size: 0.9rem;
  margin: 4px 0;
  word-break: break-word;
}

/* 🟠 Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}

.social-icons a {
  color: #ff3e3e;
  font-size: 1.3rem;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .team-img {
    height: 220px;
  }

  .team-info h3 {
    font-size: 1.1rem;
  }

  .position {
    font-size: 0.9rem;
  }

  .email,
  .whatsapp {
    font-size: 0.85rem;
  }

  .social-icons a {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .team-intro {
    font-size: 1rem;
  }
}
