/* Import Inter if you want (optional) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  color: #222;
}

/* --- Team Section --- */
#team {
  text-align: center;
  padding: 5px 0;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 30px;
}

#team h2 {
  font-size: 50px;
  margin-bottom: 24px;
}
.highlight { color: #008e38; }

/* Carousel wrapper that scrolls */
.team-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 40px; /* helps snap behavior on some browsers */
  padding-bottom: 10px; /* optional visual */
}

/* The flex track */
.carousel-track {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: center;
}

/* ---------- THE SPACER ---------- */
.carousel-track::before {
  content: "";
  flex: 0 0 40px;
  pointer-events: none;
}
.carousel-track::after {
  content: "";
  flex: 0 0 40px;
  pointer-events: none;
}

/* Team card */
.team-card {
  flex: 0 0 250px;
  
  border-radius: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(8,10,15,0.03);
}

.team-card img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;

}

/* ✅ Hover overlay effect */
.team-card p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  height: 50px;
  display: flex;
  align-items: center; 
  justify-content: center;

  background: linear-gradient(135deg, #008e38, #04ba4d); /* dark green → light green */
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transition: height 0.4s ease;
}

.team-card:hover p {
  height: 100%; /* expand upward */
}



/* Lift effect on hover (keep both!) */
.team-card:hover { 

  box-shadow: 0 10px 30px rgba(8,10,15,0.08); 
}

/* Hide scrollbar (WebKit) */
.team-carousel::-webkit-scrollbar { display: none; }
/* Hide scrollbar (Firefox) */
.team-carousel { -ms-overflow-style: none; scrollbar-width: none; }

/* Responsive tweaks */
@media (max-width: 768px) {
  #team { padding: 0px 0; }
  #team h2 { font-size: 40px; }
  .team-card { flex: 0 0 180px; }
  .carousel-track::before,
  .carousel-track::after { flex: 0 0 30px; }
  .team-card img { height: 300px; }
  .team-card p { font-size: 16px; }

  .carousel-track {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: flex-start;
}
}

@media (max-width: 480px) {
  #team h2 { font-size: 30px; }
  #team h2 { padding: 0px; }
  .team-card { flex: 0 0 150px; }
  .carousel-track::before,
  .carousel-track::after { flex: 0 0 20px; }
  .team-card img { height: 300px; }
  .team-card p { font-size: 14px; }

  .carousel-track {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: flex-start;
}

}

/* Optional: specificity helper */
#team .carousel-track::before {}


/* --- Scroll Right Button (Mobile Only) --- */
.scroll-right {
  display: none;
}

@media (max-width: 768px) {
  .scroll-right {
    display: flex;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: linear-gradient(135deg, #008e38, #04ba4d);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .scroll-right:hover {
    transform: translateY(-50%) scale(1.05);
    background: linear-gradient(135deg, #04ba4d, #00c94d);
  }

  /* Ensure section is positioned for absolute button placement */
  #team {
    position: relative;
  }
}

