/* ============================= */
/* General Section Styling        */
/* ============================= */
.team-container {
    padding: 50px 20px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.team-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.team-container p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* ============================= */
/* Senior Team - 1 row x 4 cols  */
/* ============================= */
.senior-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* fixed 4 columns on desktop */
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.senior-team div {
    width: 100%;
}
/* ============================= */
/* Regular Team - 3 cols x 2 rows */
/* ============================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================= */
/* Team Card Styling              */
/* ============================= */
.team-card,
.div-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover,
.div-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.team-card img,
.div-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-content {
    padding: 20px;
    text-align: center;
}

.team-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.team-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

/* ============================= */
/* Responsive Design             */
/* ============================= */

/* Large screens - default handled by repeat(auto-fit) */

/* Medium screens - 2 columns for both sections */
@media (max-width: 1200px) {
   
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens - 1 column */
@media (max-width: 768px) {
    

    .team-card img,
    .div-card img {
        height: 200px;
    }
}

/* Extra small screens - reduce padding */
@media (max-width: 480px) {
    .team-container {
        padding: 30px 10px;
    }

    .team-content h3 {
        font-size: 1rem;
    }

    .team-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .senior-team {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 1 column for small screens */
@media (max-width: 768px) {
    .senior-team {
        grid-template-columns: 1fr;
    }
}



.team-container {
  padding: 50px 20px;
  background-color: #f9f9f9;
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.team-container h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
  color: #333;
}

.team-container p {
  font-size: 1rem;
  margin-bottom: 40px;
  text-align: center;
  color: #666;
}

/* ============================= */
/* Senior Team Grid              */
/* ============================= */
.senior-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ============================= */
/* Team Card Styling              */
/* ============================= */
.team-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
  min-width: 200px;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.team-card h3 {
  margin: 10px 0 5px;
  color: #333;
}

.team-card p {
  margin: 5px 0;
  color: #666;
}

/* ============================= */
/* Modal Styling                 */
/* ============================= */
.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);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  text-align: center;
  margin-left: 150px;
  padding: 20px;
  
}

/* ============================= */
/* Responsive Design             */
/* ============================= */
@media (max-width: 1200px) {
  .senior-team {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-container {
    width: 100%;
  }
  .senior-team, .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card img {
    height: 300px;
  }
  .modal-img {
    margin-left: 40px;
    height: 200px;
    width: 200px;
    border-radius: 50%;
    object-fit: cover;
  }
  .close {
    font-size: 4rem;
    margin: -25px -5px;
  }
 
}

@media (max-width: 480px) {
  .team-container {
    padding: 30px 10px;
  }
  .team-card h3 {
    font-size: 1rem;
  }
  .team-card p {
    font-size: 0.85rem;
  }
}