/* TEAM2 SECTION — Tribute-Style Team Layout */
.team2-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* 🔁 Prevent wrapping */
  gap: 20px;
  padding: 40px 20px;
  background-color: #f0f8ff;
  overflow-x: auto; /* ✅ Scroll if needed on smaller screens */
}

/* Team Card */
.team2-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  position: relative;
  width: 23%; /* ✅ Fixed width */
  min-width: 280px; /* Optional: prevent too small on small screens */
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 47, 102, 0.4);
  background-color: #002c5fea;
  overflow: hidden;
  height: 180px;
}

.team2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 0;
}

.team2-card > * {
  position: relative;
  z-index: 1;
}

/* Image */
.team2-card img {
  width: 90px;
  height: 100px;
  object-fit: cover;
  border: 4px solid #ffffff;
  border-radius: 10px;
}

/* Info Text */
.team2-info h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #ffcc00;
}

.team2-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #ffffff;
  line-height: 1.4;
  font-family: sans-serif;
}

/* Responsive: Wrap on tablet and mobile */
@media (max-width: 1024px) {
  .team2-section {
    flex-wrap: wrap; /* ✅ Allow wrap on smaller screens */
    justify-content: center;
  }

  .team2-card {
    width: 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .team2-card {
    width: 100%;
  }
}
