/* ================= TEAM PAGE COMMAND STRUCTURE ================= */

.team-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px 100px;
  text-align: center;
}

/* GROUP SPACING */
.team-group {
  margin-bottom: 60px;
}

/* TITLES */
.team-group h3 {
  font-size: 26px;
  margin-bottom: 35px;
  letter-spacing: 1px;
}

/* CEO CARD */
.team-single {
  max-width: 310px;
  margin: auto;
  background: rgba(0,0,0,0.45);
  padding: 30px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  
}

.team-single img {
  width: 220px;
  height: 240px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #c40000;
   justify-content: center;
   
}

.team-single h4 {
  margin-bottom: 5px;
}

/* COMMAND ROW (commander, captain, admin) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 260px);
  justify-content: center;
  gap: 30px;
}
.team-two {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  justify-content: center;
  gap: 30px;
}
/* SUPERVISORS ROW */
.team-grid.five {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 30px;
}

/* CARD STYLE */
.team-card {
  background: rgba(0,0,0,0.45);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: #c40000;
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 12px;
}

.team-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: #c40000;
  font-weight: bold;
}

/* OFFICER STRIP */
.officer-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.officer-strip span {
  background: rgba(0,0,0,0.45);
  padding: 10px 18px;
  border-left: 3px solid #c40000;
  font-size: 13px;
}

/* ================= MOBILE FIX FOR TEAM TWO ================= */
@media (max-width: 900px) {

  /* MAKE team-two VERTICAL */
  .team-two {
    grid-template-columns: 1fr;   /* stack cards */
    gap: 25px;
  }

  /* MAKE ALL TEAM GRIDS VERTICAL */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* SUPERVISORS → 2 PER ROW */
  .team-grid.five {
    grid-template-columns: 1fr 1fr;
  }

  /* FIX IMAGE CUTTING */
  .team-card img {
    width: 100%;
    height: auto;         /* 🔥 no more cropping */
    max-height: none;
    object-fit: cover;
  }

  /* CEO IMAGE */
  .team-single img {
    width: 160px;
    height: auto;
  }

  /* BETTER CARD SPACING */
  .team-card {
    padding: 18px;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 500px) {

  .team-grid.five {
    grid-template-columns: 1fr;   /* supervisors 1 per row */
  }

}
