/* Enhanced team page styles */
.team-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.team-hero .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.team-hero .hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: white;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.enhanced-intro {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(162, 108, 54, 0.05), rgba(64, 36, 62, 0.05));
  border-radius: 20px;
  border: 1px solid rgba(162, 108, 54, 0.1);
}

.intro-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.enhanced-intro h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.enhanced-intro p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.content-section {
  padding: 0;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}



/* Team Page Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 40px 0;
}

.team-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}




.enhanced-member {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(162, 108, 54, 0.1);
}

.enhanced-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(162, 108, 54, 0.8), rgba(64, 36, 62, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enhanced-member:hover .member-overlay {
  opacity: 1;
}

.enhanced-member:hover .member-photo img {
  transform: scale(1.1);
}

.member-social {
  display: flex;
  gap: 1rem;
}

.member-social a {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.member-social a:hover {
  transform: scale(1.1);
}

.member-info {
  padding: 2rem;
}

.member-header {
  margin-bottom: 1.5rem;
}

.member-header h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.member-info p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-expertise h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tags .tag {
  background: rgba(162, 108, 54, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(162, 108, 54, 0.2);
}

.section-header {
  text-align: center;
  margin: 0rem 0;
  padding: 0rem;
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  color: var(--accent-color);
  font-size: 2.5rem;
  /* margin-bottom: 1rem; */
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  /* max-width: 600px; */
  margin: 0 0 25px auto;
}

.enhanced-department {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(162, 108, 54, 0.1);
}

.department-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(162, 108, 54, 0.1);
}

.dept-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-info h3 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.dept-info p {
  color: var(--text-color);
  font-size: 1rem;
  opacity: 0.8;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.enhanced-small {
  background: rgba(162, 108, 54, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(162, 108, 54, 0.1);
}

.enhanced-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.enhanced-small img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
}

.small-member-info h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.small-member-info p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.location-badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  /* Responsive logo sizing for mobile */
  .logo-img {
    height: 50px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    width: 100%;
    max-width: 400px;
  }

  /* Adjust dropdown arrow for mobile */
  .dropdown>.nav-link::after {
    font-size: 0.7rem;
  }

  /* Responsive social media links for mobile */
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }


  .programs-grid,
  .team-grid,
  .approaches-grid,
  .partners-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .program-card,
  .team-member,
  .approach-card,
  .partner-category,
  .location-card {
    padding: 1.5rem;
  }

  .team-hero .hero-content h1 {
    font-size: 2.5rem;
  }

  .team-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .department-header {
    flex-direction: column;
    text-align: center;
  }

  .dept-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .department-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .enhanced-cta {
    padding: 3rem 1.5rem;
  }


  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .philosophy-highlights {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .enhanced-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-step {
    flex-direction: column;
    text-align: center;
  }

  .step-connector {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive adjustments for where-we-work page */
  .enhanced-overview {
    padding: 2rem;
  }

  .overview-highlights {
    flex-direction: column;
    gap: 1rem;
  }

  .enhanced-location-card {
    padding: 2rem;
  }

  .location-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .country-item {
    padding: 0.8rem;
  }

  .enhanced-impact-section {
    padding: 3rem 2rem;
  }

  .enhanced-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .expansion-grid {
    grid-template-columns: 1fr;
  }

  .expansion-card {
    padding: 2rem;
  }

}

@media (max-width: 480px) {

  /* Smaller logo for very small screens */
  .logo-img {
    height: 40px;
  }


  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Smaller social links for very small screens */
  .social-link {
    width: 35px;
    height: 35px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }
}