/* Team Page Specific Styles */

/* Team Hero Section */
.team-hero {
  position: relative;
  padding: 120px 0 80px;
  color: white;
  text-align: center;
  overflow: hidden;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #fbedc3, #ccb363, #c27e35, #76290b, #1e3226);
  z-index: -2;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.bg1 {
  background-image: url('./public/our.png');
}

.hero-slide.bg2 {
  background-image: url('./public/bg2.jpeg');
}

.hero-slide.bg3 {
  background-image: url('./public/bg3.jpeg');
}

.team-hero-content h1 {
  font-family: "Sackers Gothic", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbedc3;
}

.hero-stat p {
  font-size: 1rem;
  margin: 0;
  opacity: 1s;
}

/* Leadership Team */
.leadership-team {
  padding: 5rem 0;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

/* Force a single row layout for specific sections */
.leadership-grid.single-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  grid-template-columns: none;
  gap: 2rem;
  overflow-x: auto;
}

.leadership-grid.single-row .leader-card {
  min-width: 300px;
}

.leader-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
}

.leader-image {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;  /* Ensure image is fully visible */
  transition: transform 0.3s ease;
}

/* Remove or update any overlays that might be affecting the image */
.leader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 50, 38, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Add better image loading handling */
.leader-image img[src] {
  opacity: 1;
  visibility: visible;
}

.leader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 50, 38, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.leader-overlay .social-links {
  display: flex;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.leader-card:hover .social-links {
  transform: translateY(0);
  opacity: 1;
}

.leader-overlay .social-link {
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leader-overlay .social-link img {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.leader-overlay .social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: #c27e35;
}

.leader-overlay .social-link:hover img {
  filter: brightness(0) invert(1);
}

.leader-info {
  padding: 2rem;
}

.leader-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1e3226;
}

.leader-info .role {
  color: #c27e35;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.leader-info .bio {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-height: 4.8em; /* Show 3 lines initially */
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.leader-info .bio.expanded {
  max-height: 1000px; /* Large enough to show full content */
}

.leader-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.social-links-inline {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 6px;
  border: 1px solid #e0e0e0;
}

.social-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #c27e35;
  transform: translateY(-2px);
  border-color: #c27e35;
}

.read-more-btn {
  padding: 8px 16px;
  background: #1e3226;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: none; /* Hide by default */
}

.read-more-btn:hover {
  background: #c27e35;
  transform: translateY(-2px);
}

.leader-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.achievement {
  background: #f0f9ff;
  color: #0369a1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Department Teams */
.department-teams {
  padding: 5rem 0;
  background: #fbedc3;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.department-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.department-header {
  text-align: center;
  margin-bottom: 2rem;
}

.department-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.department-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e3226;
}

.department-header p {
  color: #666;
  line-height: 1.6;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.team-member {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.team-member:hover {
  background: #f8fafc;
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #c27e35;
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1e3226;
}

.member-role {
  color: #c27e35;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.member-bio {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Volunteers Section */
.volunteers-section {
  padding: 5rem 0;
}

.volunteers-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.volunteer-stat {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.volunteer-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c27e35;
  margin-bottom: 0.5rem;
}

.volunteer-stat p {
  color: #666;
  font-weight: 500;
}

.volunteer-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.volunteer-category {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.volunteer-category:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.volunteer-category h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e3226;
}

.volunteer-category p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.volunteer-count {
  background: #c27e35;
  color: #1e3226;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Advisory Board */
.advisory-board {
  padding: 5rem 0;
  background: #f8fafc;
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advisor-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.advisor-card:hover {
  transform: translateY(-5px);
}

.advisor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #c27e35;
}

.advisor-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1e3226;
}

.advisor-role {
  color: #c27e35;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.advisor-credentials {
  color: #c27e35;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.advisor-bio {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Join Our Team */
.join-team {
  background: linear-gradient(135deg, #1e3226, #76290b, #c27e35);
  color: white;
  text-align: center;
  min-height: 70vh;
}

.join-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.join-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.opportunities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.opportunity {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.opportunity h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.opportunity p {
  margin: 0;
  opacity: 0.9;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.join-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.join-btn.primary {
  background: #c27e35;
  color: #1e3226;
}

.join-btn.primary:hover {
  background: #fbedc3;
  color: #1e3226;
}

.join-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.join-btn.secondary:hover {
  background: white;
  color: #1e3226;
}

/* Responsive Design for Team */
@media (max-width: 768px) {
  .team-hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .hero-stat h3 {
    font-size: 2rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-overlay .social-link {
    width: 40px;
    height: 40px;
  }

  .leader-overlay .social-link img {
    width: 18px;
    height: 18px;
  }

  .read-more-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .departments-grid {
    grid-template-columns: 1fr;
  }

  .team-members {
    grid-template-columns: repeat(2, 1fr);
  }

  .volunteers-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .volunteer-categories {
    grid-template-columns: 1fr;
  }

  .advisors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .opportunities {
    grid-template-columns: 1fr;
  }

  .join-buttons {
    flex-direction: column;
    align-items: center;
  }

  .join-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .team-members {
    grid-template-columns: 1fr;
  }

  .volunteers-stats {
    grid-template-columns: 1fr;
  }

  .advisors-grid {
    grid-template-columns: 1fr;
  }

  .join-content h2 {
    font-size: 2rem;
  }
}