/* .team{
    background-color: rgba(121, 123, 126, 0.678);
    padding: 30px;
}
.team-h1{
    color: red;
    font-size: 2.5rem;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: capitalize;
    color: black;
    justify-content:left;
    font-weight: bold;
}

.team-btn{
    margin-top: 20px;
    width: 150px;
    padding: 10px;
    border-radius: 50px;
    background-color: orange;
    border: none;
    color: white;
}

.team-btn:hover{
    transform: translateY(-10px);
    transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 2s;
}
.fa-heart{
    color: black;
}
.team-btn:hover .fa-heart{
transform: rotate(0.1turn);
transition: ease-out 1s;
color: black;
}



.team-card {
  cursor: pointer;
  border-radius: 20px !important;
}

.overlay {
  position: absolute;
  left: 0;
  bottom: -50%;
  width: 100%;
  height: 100%;
border-radius: 20px;
  background: linear-gradient(
    to top,
    rgba(247, 227, 47, 0.8),
    rgba(255, 251, 29, 0.2),
    transparent
  );

  transition: all 0.5s ease;
}

.team-card:hover .overlay {
  bottom: 0;
}

.team-member-h1{
    font-size: 6rem;
    font-weight: bold;
    color: orange;
    text-align: center;
    letter-spacing: 3px;
} */



/* Base Section Styling */
.team-section {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  overflow: hidden;
}

.team-subtitle {
  color: #ff5722;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.team-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  font-weight: 800;
  color: #0b132b;
  letter-spacing: -0.5px;
}

/* Donate Button */
.team-donate-btn {
  background: #ff5722;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.25);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.team-donate-btn:hover {
  background: #e04818;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 87, 34, 0.35);
}

.team-donate-btn .fa-heart {
  transition: transform 0.3s ease;
  color: #ffffff;
}

.team-donate-btn:hover .fa-heart {
  transform: scale(1.2) rotate(10deg);
}

/* Team Card Styling */
.team-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* 
   IMAGE RATIO ADJUSTMENT
   Changed aspect-ratio to 4 / 3 (shorter height) and object-fit to contain 
   so the entire banner image fits inside the frame cleanly without getting cropped.
*/
.team-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Shorter card height */
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* Slight padding so poster image borders fit gracefully */
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures full image graphic is visible */
  transition: transform 0.4s ease;
}

.team-card:hover .team-img {
  transform: scale(1.04);
}

/* Glassmorphism Social Overlay */
.team-social-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 42, 53, 0.85) 0%,
    rgba(0, 42, 53, 0.25) 60%,
    transparent 100%
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 12px;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-social-overlay {
  opacity: 1;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #ff5722;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Card Typography */
.team-card-body {
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-role {
  color: #ff5722;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-name {
  color: #0d1b2a;
  font-weight: 700;
  font-size: 1rem;
}

/* Stat Card Box ("10+ Awesome Team Members") */
.team-stat-card {
  background: #ffffff;
  border: 2px dashed rgba(0, 42, 53, 0.2);
  border-radius: 16px;
  min-height: 200px; /* Reduced min-height to match shorter cards */
  transition: all 0.3s ease;
}

.team-stat-card:hover {
  border-color: #ff5722;
  background: rgba(255, 87, 34, 0.02);
}

.team-stat-number {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 900;
  color: #ff5722;
  line-height: 1;
  margin-bottom: 6px;
}

.team-stat-title {
  color: #0b132b;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .team-img-wrapper {
    aspect-ratio: 4 / 3;
  }
  
  .team-h1 {
    text-align: center;
  }
}