/* Team Page Styles */

/* Hero Section */
.team-hero {
  background-color: var(--primary-green);
  padding: var(--spacing-lg) 0;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 4rem);
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.team-hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Team Section */
.team-section {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
}

.team-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left Side - Title */
.team-title h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  color: var(--primary-green);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* Right Side - Team Members */
.team-members {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Team Member Card */
.team-member-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow:
    0 0 15px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  max-width: 300px;
}

.team-member-card:hover {
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.member-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-green);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.25rem;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.member-designation {
  font-size: 1rem;
  color: var(--primary-green);
  font-weight: 600;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal-content {
  background-color: var(--white);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  position: relative;
  animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent-red);
}

.modal-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md)
    var(--spacing-md);
}

.modal-photo {
  flex-shrink: 0;
}

.modal-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-info {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.modal-info h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.modal-designation {
  font-size: 1.125rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.modal-about {
  max-height: 300px;
  overflow-y: auto;
  padding-right: var(--spacing-md);
}

.modal-about h3 {
  font-size: 1.25rem;
  color: var(--primary-green);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  position: sticky;
  top: 0;
  background-color: var(--white);
  padding-bottom: var(--spacing-xs);
}

.modal-about p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--medium-text);
  margin-bottom: var(--spacing-md);
}

.modal-about p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .team-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .team-title {
    text-align: center;
  }

  .team-members {
    align-items: center;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .modal-photo {
    text-align: center;
  }

  .modal-photo img {
    height: auto;
    max-width: 280px;
  }

  .modal-info {
    padding-top: 0;
  }

  .modal-about {
    max-height: 300px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .team-hero {
    min-height: 200px;
  }

  .team-member-card {
    max-width: 100%;
  }

  .member-photo {
    width: 150px;
    height: 150px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: var(--spacing-md);
  }

  .modal-photo {
    text-align: center;
  }

  .modal-photo img {
    height: auto;
    max-width: 250px;
  }

  .modal-about {
    max-height: 250px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 1.75rem;
  }
}
