/* General Styling */
#team {
  background-color: black;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column; /* Arrange h2 and flipbox container vertically */
  justify-content: center;
  align-items: center;
}

#team h2 {
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  margin-bottom: 30px;
  color: white;
  text-transform: uppercase;
  border-bottom: 2px solid red; /* Accent underline */
  padding-bottom: 10px;
  width: 100%; /* Ensure it spans full width */
  max-width: 800px; /* Limit max width for better alignment */
  z-index: 1000;
}

/* Container for the Team Section */
.team-container ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
  gap: 20px; /* Spacing between grid items */
  justify-content: center; /* Center the content */
  list-style: none;
  padding: 0;
  margin: auto;
  max-width: 1000px;
}

/* Team Member Card Styling */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

/* Circular Image Styling */
.team-member img {
  width: 200px; /* Size of the circle */
  height: 200px;
  border-radius: 50%; /* Make the image circular */
  object-fit: cover; /* Ensure the image fits the circle */
  border: 3px solid #5193f7; /* Subtle white border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add a shadow for depth */
}

/* Title Styling */
.team-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: white;
}

/* Name Styling */
.team-name {
  margin-top: 5px;
  font-size: 14px;
  color: white;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .team-container ul {
    grid-template-columns: 1fr; /* Stack items vertically */
    gap: 30px; /* Increase spacing for better readability */
  }

  .team-member {
    width: 100%; /* Stretch*/
  }
}


