.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}

.team-card {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}


.team-image {
    width: 100%;
    height: 312px;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 20px 0;
    text-align: left;
}

.team-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.team-position {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .team-title {
        font-size: 28px;
    }

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

    .team-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .team-title {
        font-size: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .team-image {
        height: 220px;
    }

    .team-info {
        padding: 15px;
    }
}

.bio-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.bio-modal.hidden {
  display: none;
}

.bio-modal-content {
  background: var(--text-secondary);
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.bio-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.bio-modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.bio-modal-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--green-200);
}

.bio-modal-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
   color: var(--text-light);
}

.bio-modal-position {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
}

.bio-modal-body {
  max-height: 250px;
  overflow-y: auto;
}

.bio-modal-bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
}

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