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

.team-section {
  padding: 80px 20px;
  background: #fff;
}

.team-container {
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

.team-pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-size: 12px;
  margin-bottom: 18px;
}

.team-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 80px;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* ================= CARD WRAPPER (ANIMATION SAFE) ================= */

.team-card-wrap {
  opacity: 1;
  transform: none;
}

.team-card-wrap.gsap-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.team-card-wrap.gsap-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* ================= CARD ================= */

.team-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #eee;

  /* 🔒 HARD LOCK — card NEVER hides */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-card:hover img {
  transform: scale(1.08);
}

/* ================= CLOSE ICON ================= */

.team-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
  cursor: pointer;
}

/* ================= INFO ================= */

.team-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  color: #fff;
}

.team-info small {
  font-size: 11px;
  opacity: 0.8;
}

.team-info h4 {
  font-size: 16px;
  margin-top: 4px;
}

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

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

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