/* Team Section Styles */
.team-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://via.placeholder.com/1920x1080");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
}

.team-section .section-title {
  position: relative;
  margin-bottom: 20px;
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
}

.section-divider {
  width: 80px;
  height: 4px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.team-section .section-subtitle {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color-secondary);
  line-height: 1.6;
}

.team-category-title {
  position: relative;
  margin-bottom: 40px;
  font-size: 1.8rem;
  text-align: center;
  color: var(--primary-color);
}

.team-category-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 1.5px;
}

.team-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
}

.leadership-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.departments-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.team-member {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.member-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.member-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member:hover .member-social {
  transform: translateY(0);
}

.member-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.member-social-link:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.member-info {
  padding: 20px;
  text-align: center;
}

.member-name {
  margin: 0 0 5px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.member-role {
  margin: 0 0 15px;
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 500;
}

.member-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
  margin-bottom: 0;
}

.team-cta {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-cta p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Team Page Specific Styles */
.team-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  overflow: hidden;
}

.team-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://via.placeholder.com/1920x1080");
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.team-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.team-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.team-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.team-filter-btn {
  padding: 8px 20px;
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.team-filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: #fff;
}

.team-structure {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.structure-container {
  max-width: 1000px;
  margin: 0 auto;
}

.org-chart {
  position: relative;
  margin: 40px 0;
}

.org-chart-container {
  position: relative;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.org-chart-node {
  position: relative;
  padding: 15px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.org-chart-node::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background-color: var(--primary-color);
}

.org-chart-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.org-chart-level:last-child .org-chart-node::after {
  display: none;
}

.team-values {
  padding: 80px 0;
  background-color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff!important;
  font-size: 1.8rem;
  border-radius: 50%;
}

.value-title {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.value-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
}

.team-testimonials {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.testimonials-slider {
  margin-top: 40px;
  padding: 20px 0;
}

.testimonial-card {
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 20px;
}

.testimonial-content {
  position: relative;
  padding: 20px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-color);
}

.testimonial-author-info p {
  margin: 5px 0 0;
  font-size: 0.85rem;
  color: var(--text-color-secondary);
}

.join-team-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  text-align: center;
}

.join-team-content {
  max-width: 700px;
  margin: 0 auto;
}

.join-team-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.join-team-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.join-team-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .team-hero-title {
    font-size: 2.5rem;
  }

  .team-category-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  .team-section {
    padding: 70px 0;
  }

  .team-hero {
    padding: 80px 0 60px;
  }

  .team-hero-title {
    font-size: 2rem;
  }

  .team-hero-subtitle {
    font-size: 1rem;
  }

  .team-grid {
    gap: 20px;
  }

  .leadership-grid,
  .departments-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .org-chart-level {
    flex-direction: column;
    align-items: center;
  }

  .org-chart-node::after {
    height: 30px;
    bottom: -30px;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 575px) {
  .team-section .section-title,
  .team-hero-title,
  .join-team-title {
    font-size: 1.8rem;
  }

  .team-category-title {
    font-size: 1.4rem;
  }

  .team-section .section-subtitle,
  .team-hero-subtitle,
  .join-team-description {
    font-size: 0.95rem;
  }

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

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

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

/* Animation Classes */
.team-member {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-member.animate {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover .member-image::before {
  opacity: 0.7;
}

/* Team Member Detail Modal */
.team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.team-modal.active {
  opacity: 1;
  visibility: visible;
}

.team-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.team-modal.active .team-modal-content {
  transform: scale(1);
}

.team-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.team-modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.team-modal-image {
  flex: 0 0 250px;
  max-width: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.team-modal-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-modal-info {
  flex: 1;
}

.team-modal-name {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.team-modal-role {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.team-modal-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
}

.team-modal-details {
  margin-bottom: 20px;
}

.team-modal-detail {
  display: flex;
  margin-bottom: 10px;
}

.team-modal-detail-label {
  flex: 0 0 120px;
  font-weight: 600;
  color: var(--primary-color);
}

.team-modal-detail-value {
  flex: 1;
  color: var(--text-color);
}

.team-modal-social {
  display: flex;
  gap: 10px;
}

.team-modal-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.team-modal-social-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

@media (max-width: 767px) {
  .team-modal-body {
    flex-direction: column;
  }

  .team-modal-image {
    flex: 0 0 100%;
    max-width: 100%;
    max-height: 300px;
  }

  .team-modal-image img {
    height: 100%;
  }
}

/* Team Member Card Variations */
.team-member.featured {
  grid-column: span 2;
}

.team-member.featured .member-image-wrapper {
  aspect-ratio: 16 / 9;
}

.team-member.featured .member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 30px;
}

.team-member.horizontal {
  display: flex;
  flex-direction: row;
}

.team-member.horizontal .member-image-wrapper {
  flex: 0 0 40%;
  max-width: 40%;
}

.team-member.horizontal .member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

@media (max-width: 767px) {
  .team-member.featured {
    grid-column: span 1;
  }

  .team-member.horizontal {
    flex-direction: column;
  }

  .team-member.horizontal .member-image-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .team-member.horizontal .member-info {
    text-align: center;
  }
}

