.team {
  padding: 3rem 1rem;
  text-align: center;
}


.team h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}
  
  .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: rgba(255, 255, 255, 0.65);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
    animation: flipIn 0.6s ease-out;
  }
  
  @keyframes flipIn {
    from {
      transform: perspective(600px) rotateY(-90deg);
      opacity: 0;
    }
    to {
      transform: perspective(600px) rotateY(0);
      opacity: 1;
    }
  }
  
  .modal-content img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
  }
  
  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
  }
  
  .nav-arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }
  
  .nav-arrows button {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .nav-arrows button:hover {
    background: #1a242f;
  }

  .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .team-member {
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .team-member:hover {
    transform: scale(1.05);
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .team-member h3 {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: #333;
  }
  
  .team-member p {
    font-size: 0.95rem;
    color: #777;
  }
  
  /* 🔁 Responsive stacking for smaller screens */
  @media (max-width: 768px) {
    .team-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .team-member {
      width: 100%;
      max-width: 300px;
    }
  
    .modal-content {
      padding: 2rem;
    }

    .team-heading {
      font-size: 2.5rem;
      text-align: center;
      margin-bottom: 2rem;
      color: #2c3e50;
    }
  }
  
  .documents-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1rem 2rem;
    background-color: #f5f5f5;
    border-radius: 10px;
    text-align: center;
  }
  
  .documents-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
  }

  .policy-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .policy-grid a {
    text-decoration: none;
    font-weight: 500;
    color: #2c3e50;
    background: #e6e6e6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
  }
  
  .policy-grid a:hover {
    background: #d0d0d0;
  }
  
  .policy-list {
    list-style: none;
    padding: 0;
  }
  
  .policy-list li {
    margin: 0.5rem 0;
  }
  
  .policy-list a {
    text-decoration: none;
    font-weight: 500;
    color: #2c3e50;
    background: #e6e6e6;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.2s;
  }
  
  .policy-list a:hover {
    background: #d0d0d0;
  }
  
  
  