/* Team Hero Section */
.team-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 65vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: #fff;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(74, 37, 89, 0.85), rgba(74, 37, 89, 0.5));
  z-index: 0;
}

.team-hero .container {
  position: relative;
  z-index: 1;
}

.team-hero .hero-title {
  font-family: 'Anton', sans-serif;
  color: var(--white);
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-hero .hero-subtitle {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary);
  font-size: 1.25rem;
}

/* Team Grid */
.team-grid {
  background-color: var(--light-bg);
  padding: 60px 0;
}

.committee-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Anton', sans-serif;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.member-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 280px; /* Use consistent height */
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  object-position: top center;
}

.member-card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 37, 89, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-card:hover .card-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--accent);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-name {
  font-family: 'Anton', sans-serif;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-role {
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.member-bio p {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Remove empty columns */
.col:empty {
  display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .card-image {
    height: 240px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .team-hero {
    padding: 60px 0;
  }
  
  .team-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .member-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .team-hero .hero-title {
    font-size: 2rem;
  }
  
  .member-name {
    font-size: 1.25rem;
  }
  
  .member-role {
    font-size: 0.9rem;
  }
  
  .card-image {
    height: 220px;
  }
}

/* For smaller screens */
@media (max-width: 600px) {
    .team_hero {
        height: 60vh; /* Adjust the height for small screens (e.g., mobile devices) */
        background-attachment: scroll; /* Ensure the image scrolls instead of being fixed on mobile */
    }
}