@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;800&display=swap');

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Nunito, sans-serif;
}

.bi {
  font-size: 1.6rem;
  color: rgb(100, 100, 100);
  transition: transform 0.4s ease !important;
}

.social-media-links a {
  display: inline-block;
  transition: transform 0.4s ease;
}

.social-media-links a:hover {
  transform: scale(1.3);
}

.social-media-links .git:hover {
  background: linear-gradient(45deg, #333, #666, #999);
  -webkit-background-clip: text;
  color: transparent;
}

.social-media-links .insta:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  color: transparent;
}

.social-media-links .gmail:hover {
  background: linear-gradient(45deg, #d93025, #ea4335, #fbbc05);
  -webkit-background-clip: text;
  color: transparent;
}

.social-media-links .link:hover {
  background: linear-gradient(45deg, #0077b5, #005582, #004182);
  -webkit-background-clip: text;
  color: transparent;
}

.text-blk {
  margin: 0;
  line-height: 25px;
}

.responsive-container-block {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 0 auto;
}

.outer-container {
  padding: 100px 30px 20px;
  background-color: rgb(244, 252, 255);
}

.inner-container {
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
}

.section-head-text {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgb(0, 135, 177);
  margin: 0 0 10px;
  text-align: center;
}

.section-subhead-text {
  font-size: 1.25rem;
  color: rgb(153, 153, 153);
  line-height: 1.5;
  max-width: 700px;
  text-align: center;
  margin: 0 0 60px;
}

.img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-media-links {
  width: 150px;
  display: flex;
  justify-content: space-between;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(102, 102, 102);
  margin: 0 0 5px;
}

.position {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(0, 135, 177);
  margin: 0 0 40px;
}

.team-img {
  width: 273px;
  height: 273px;
  border-radius: 10%;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-card-container {
  width: 280px;
  margin: 0 20px 40px; /* Added horizontal margin for row spacing */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Layout */
.responsive-container-block {
  flex-wrap: nowrap; /* Row layout on larger screens */
}

@media (max-width: 1024px) {
  .responsive-container-block {
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }

  .section-head-text {
    font-size: 2rem;
  }
  
  .section-subhead-text {
    font-size: 1.125rem;
  }

  .team-card-container {
    width: 220px;
    margin: 10px; /* Adjust spacing for responsiveness */
  }
}

@media (max-width: 768px) {
  .section-head-text {
    font-size: 1.75rem;
  }

  .section-subhead-text {
    font-size: 1rem;
  }

  .outer-container {
    padding: 80px 20px;
  }

  .team-img {
    width: 200px;
    height: 200px;
  }

  .name, .position {
    font-size: 1.25rem;
  }
}

@media (max-width: 500px) {
  .section-head-text {
    font-size: 1.5rem;
  }

  .section-subhead-text {
    font-size: 0.9rem;
  }

  .team-img {
    width: 150px;
    height: 150px;
  }

  .team-card-container {
    width: 100%;
    margin: 10px auto; /* Center cards on small screens */
  }

  .outer-container {
    padding: 60px 10px;
  }

  .name, .position {
    font-size: 1rem;
  }

  .social-media-links {
    width: 100px;
  }
}
