body, html {
  margin: 0;
  padding: 0;
  color: #333;
}

.team-section {
  margin-top: 10%;
}

/* Page Title */
.page-title {
  text-align: center;
  vertical-align: middle;
  font-size: 2rem;
}

.loading {
  display: flex;
  justify-content: center;
  margin-bottom: 2%;
}

/* Team Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next row */
  justify-content: center; /* Center-align the items */
  gap: 20px; /* Add spacing between items */
  margin-bottom: 40px; /* Add some space at the bottom of each grid */
}

.team-card {
  text-align: center;
  border: 2px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s;
  margin-left: 10px;
  margin-right: 10px;
  width: 300px; /* Consistent width */
  height: 320px; /* Consistent height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out content evenly */
  overflow: hidden; /* Hide overflow for content that exceeds the card height */
}

.team-card:hover {
  transform: scale(1.05);
}

.team-card .image-container {
  border: 5px solid #ffc107;
  border-radius: 50%;
  overflow: hidden;
  width: 200px; /* Fixed width */
  height: 200px; /* Fixed height */
  margin: 0 auto 5px; /* Reduce the bottom margin */
  flex-shrink: 0; /* Prevent image container from shrinking */
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin: 5px 0; /* Reduce top and bottom margins */
  font-size: 1.2rem;
  line-height: 1.2;
  text-overflow: ellipsis; /* Truncate long text */
  overflow: hidden;
  white-space: nowrap; /* Prevent wrapping */
  flex-shrink: 0; /* Prevent shrinking of the heading */
}

.team-card p {
  margin-top: 5px; /* Reduce spacing between elements */
  font-size: 0.9rem;
  color: #777;
  line-height: 1.4;
  text-overflow: ellipsis; /* Truncate long text */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  flex-shrink: 0; /* Prevent shrinking of text */
}

.team-card .footer-section {
  margin-top: auto; /* Push footer content to the bottom of the card */
}

/* Footer */
.footer {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #ddd;
}

.footer .contact-section {
  margin-bottom: 15px;
}

.footer .footer-bottom {
  font-size: 0.9rem;
  color: #666;
}

/* Media Queries */
@media (max-width: 768px) {
  .team-card {
    width: 290px;
    height: 300px;
  }
  .team-card .image-container {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 820px) {
  .team-section {
    margin-top: 30%;
  }
}

@media (max-width: 425px) {
  .team-section {
    margin-top: 30%;
  }
}
