/* ===========================================
   TEAM PAGE STYLES
   =========================================== */

/* Team Section Container */
.team {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 40px 20px;
  overflow-x: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Team Member Card */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 20px 15px 15px 15px;
  width: 200px;
  min-width: 180px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
  /* Initial state for animations */
  opacity: 0;
  transform: translateY(50px) scale(0.7) rotateY(45deg);
}

/* Animation state when cards are visible */
.card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1) rotateY(0deg);
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Team Member Image */
.team-member-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--primary-green);
  margin-bottom: 15px;
}

/* Team Member Name */
.card h3 {
  font-size: 1.1rem;
  color: var(--primary-green);
  margin: 0;
  font-weight: 700;
}

/* Team Member Role */
.card p {
  font-size: 0.95rem;
  color: #444;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Team Intro */
.team-intro {
  max-width: 800px;
  margin: 15px auto 10px;
  padding: 6px 10px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  font-family: "Poppins", sans-serif;
  text-align: center;
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.team-intro strong {
  color: var(--primary-green);
  font-weight: 600;
}

/* Quote Styles */
.highlight-quote-team {
  max-width: 800px;
  margin: 20px auto;
  padding: 16px 24px;
  font-style: italic;
  background-color: #f1f1f1;
  border-left: 6px solid var(--primary-green, #2e7d32);
  color: #444;
  text-align: center;
  font-size: 1.05rem;
  border-radius: 6px;
}

/* Gratitude Section */
.gratitude-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.gratitude-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 0.05),
    transparent
  );
  transition: left 0.8s ease;
}

.gratitude-section:hover::before {
  left: 100%;
}

.gratitude-section:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gratitude-section h2 {
  color: var(--primary-green);
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gratitude-section:hover h2 {
  transform: scale(1.05);
  color: #2e7d32;
}

.gratitude-content {
  text-align: center;
}

.gratitude-section .team-intro {
  transition: all 0.3s ease;
}

.gratitude-section:hover .team-intro {
  transform: translateY(-2px);
  color: #333;
}

.gratitude-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
  padding: 0 10px;
}

.gratitude-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary-green);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gratitude-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 0.08),
    transparent
  );
  transition: left 0.6s ease;
}

.gratitude-card:hover::before {
  left: 100%;
}

.gratitude-card:hover {
  transform: translateY(-12px) rotateX(0deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #2e7d32;
}

.gratitude-card h3 {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gratitude-card:hover h3 {
  transform: translateX(5px);
  color: #2e7d32;
}

.gratitude-card p {
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  transition: all 0.3s ease;
}

.gratitude-card:hover p {
  transform: translateX(3px);
  color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .team {
    gap: 20px;
    padding: 30px 15px;
  }
  
  .card {
    width: 160px;
    min-width: 150px;
    height: 260px;
    padding: 15px 10px 10px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg);
  }
  
  .card:hover {
    transform: translateY(-3px) scale(1.05);
  }
  
  .team-member-image {
    height: 140px;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .card p {
    font-size: 0.85rem;
  }

  .card {
    width: 80%;
    margin: 0 auto;
  }

  .team {
    gap: 20px;
    padding: 30px 10px;
  }

  .gratitude-section {
    margin: 20px 10px;
    padding: 25px 15px;
  }

  .gratitude-section h2 {
    font-size: 1.8rem;
  }

  .gratitude-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .gratitude-card {
    padding: 20px 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .card {
    width: 140px;
    min-width: 130px;
    height: 230px;
    padding: 12px 8px 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg);
  }
  
  .card:hover {
    transform: translateY(-2px) scale(1.03);
  }
  
  .team-member-image {
    height: 120px;
  }
  
  .card h3 {
    font-size: 0.9rem;
  }
  
  .card p {
    font-size: 0.8rem;
  }
}
