.swiper-container {
  overflow: hidden;
}

.team-section {
  width: 100%;
  overflow: hidden;
  padding: 8rem 4rem;
  border-radius: 75px 75px 0 0;
  margin-top: -4rem;
  background: #fff;
}

.team-container {
  width: 100%;
  text-align: center;
  position: relative;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cards.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.card {
  width: 23%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s ease-in-out;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease-in-out;
}

.card:hover img {
  transform: scale(1.1);
}

.card h3 {
  margin: 10px 0 5px;
  font-size: 1.2em;
  font-family: anton;
  font-weight: 400;
  margin: 1rem 0;
}
.card p {
  color: #777;
  font-size: 0.9em;
  font-family: "Unbounded";
  margin-bottom: 2rem;
}
.swiper-container {
  width: 100%;
  /* height: 400px; */
  display: none;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.swiper-container.active {
  opacity: 1;
  transform: scale(1);
  display: block;
  position: absolute;
  top: 0;
}

.member-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-right: 2rem;
}

.close-button {
  position: absolute;
  top: -10px;
  right: 30px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  /* background-color: yellowgreen; */
  /* padding: 5rem; */
  z-index: 100;
}

.member-slide {
  display: flex;
  justify-content: flex-start;
  padding: 2rem;
  width: 100%;
}
.team-detail h2 {
  font-family: anton;
  text-align: left;
  font-weight: 500;
  font-size: 28px;
  /* letter-spacing: 1px; */
  margin: 1rem 0;
}
.team-img {
  margin-right: 2rem;
}
.team-img img {
  border-radius: 20px;
  width: auto;
  height: 20rem;
}
.team-detail p {
  font-family: unbounded;
  font-size: 17px;
  color: #252525;
}

.team-hero {
  background-image: url(../images/team-b.jpg);
  background-size: cover;
  background-position: center;
}
.team-upper {
  display: flex;
  justify-content: flex-start;
  padding: 3rem;
  width: 100%;
}

.ceo-img {
  width: 35%;
  margin-right: 1rem;
}
.ceo-img img {
  width: 100%;
  border-radius: 20px;
  object-fit: none;
  object-position: top;
}
.ceo-detail {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3rem;
}
.ceo-detail p:nth-child(1) {
  font-family: anton;
  font-size: 35px;
}
.ceo-detail p:nth-child(2) {
  font-family: "Unbounded";
}
.li-icon {
  width: 25px;
  margin-right: 0.5rem;
}
.imdb-icon {
  width: 44px;
  margin-right: 0.5rem;
}
.linkedin a {
  color: #000;
  display: flex;
  align-items: center;
  font-family: unbounded;
}
.linkedin {
  display: flex;
  margin-top: 1rem;
  align-items: center;
}

@media (max-width: 1200px) {
  .team-upper {
    padding: 2rem;
  }
  .ceo-detail {
    width: 65%;
    padding: 1rem;
  }
}

@media (max-width: 1024px) {
  .ceo-img {
    width: 45%;
  }
}
@media (max-width: 900px) {
  .team-section {
    padding: 5rem 2rem;
  }
  .card {
    width: 35%;
  }
}

@media (max-width: 765px) {
  .card {
    width: 45%;
  }
  .member-slide {
    flex-direction: column;
  }
  .ceo-img {
    width: 60%;
  }
}

@media (max-width: 600px) {
  .ceo-img {
    width: 75%;
  }
  .ceo-detail p:nth-child(1) {
    font-family: anton;
    font-size: 29px;
  }

  .team-upper {
    padding: 1rem;
  }
}

@media (max-width: 500px) {
  .team-upper {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
  }
  .ceo-detail p:nth-child(2) {
    font-family: "Unbounded";
    font-size: 14px;
  }
  .ceo-detail p:nth-child(1) {
    font-family: anton;
    font-size: 25px;
  }
  .ceo-detail {
    align-items: center;
  }
  .team-img img {
    height: 15rem;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 60%;
  }
  .card img {
    object-fit: contain;
  }
  .ceo-img {
    width: 100%;
  }
}
