/* team.css - styles for Meet Our Team page */

/* Page basics (keeps consistent with your existing styles) */
.main-content {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto 60px;
  font-family: Arial, sans-serif;
}

/* Intro */
.team-intro {
  text-align: center;
  margin-bottom: 30px;
}
.team-intro h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.team-intro p {
  color: #555;
  font-size: 16px;
}

/* Carousel wrapper */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* viewport */
.carousel-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}

/* track */
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(.22,.9,.3,1);
  will-change: transform;
}

/* team card */
.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  min-width: calc((100% - 36px) / 3); /* fallback for desktop 3 per view */
  flex: 0 0 32%;
  text-align: center;
  padding: 18px;
  cursor: pointer;
}

.carousel-viewport .team-card img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}


.team-card h4 {
  margin: 8px 0 4px;
  font-size: 18px;
}
.team-card .role {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* carousel controls */
.carousel-control {
  background: #fff;
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-control i { font-size: 18px; color: #333; }

/* MEMBER INFO CARD (below) */
.member-info {
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}
.info-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-inner img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}
.info-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.info-text .info-role {
  margin: 0 0 10px;
  color: #666;
}
.info-text .info-bio {
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
}
.info-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  color: #1d4ed8;
  text-decoration: none;
}

/* Responsive behavior */
/* Desktop - 3 per view */
@media (min-width: 992px) {
  .team-card { flex: 0 0 32%; min-width: 280px; }
}

/* Tablet - 2 per view */
@media (min-width: 640px) and (max-width: 991px) {
  .team-card { flex: 0 0 48%; min-width: 46%; }
}

/* ✅ Mobile layout fix: 1 card per slide, full width */
@media (max-width: 639px) {
  .carousel-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .carousel-viewport {
    width: 100%;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.45s ease;
  }

  .team-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 20px;
  }

  .team-card img {
    width: 160px;
    height: 160px;
  }

  .carousel-control {
    display: flex;
    width: 42px;
    height: 42px;
    margin: 0 6px;
  }

  #prevBtn, #nextBtn {
    position: static;
    transform: none;
  }

  .member-info {
    width: 100%;
    margin-top: 18px;
  }
}

/* ✅ Slightly larger images for all screens */
.team-card img {
  width: 140px;
  height: 140px;
}



/* small tweaks for focus */
.team-card:focus { outline: 2px solid rgba(59,130,246,0.25); }
.carousel-control:active { transform: translateY(1px); }

/* optional: make controls visually group on sides */
#prevBtn { margin-right: 6px; }
#nextBtn { margin-left: 6px; }

/* ensure page background matches site */
body { background: #f7f7fb; }


