/* ===== HEADER ===== */
header {
  text-align: center;
  background-color: #001F3F;
  color: #fff;
  padding: 5rem 2rem 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.125rem;
}

/* ===== TEAM SECTION ===== */
.team-section {
  text-align: center;
  margin-top: 3rem;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003061;
}

/* ===== CARD STYLING ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
}

.card {
  flex: 0 1 20rem;
  height: 30rem;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(5rem);
  transition: all 1s ease-out;
}

.card.animate {
  opacity: 1;
  transform: scale(1);
}

.card:hover {
  box-shadow: 0 1.2rem 2rem rgba(0, 0, 0, 0.3), 0 0 0.75rem #ffd9003f;
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-bottom: 0.125rem solid #003366;
}

.card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: #003366;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin: 0 1rem 1rem;
}

.card h5 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: #003366;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card {
    flex: 0 1 90%;
    height: auto;
  }

  .card img {
    height: auto;
  }
}
