.colleges {
  width: 100%;
  height: auto;
  padding: 20px 0px;
}

.colleges .container {
  height: auto;
}

.colleges .container h1 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #1c4386;
  text-align: center;
  transition: all 0.3s ease;
}

.colleges .container h1:hover {
  padding-left: 8px;
  padding-left: 8px;
}

.container2 {
  width: 100%;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-family: 'Schibsted Grotesk', sans-serif;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
}
.container2 h2 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1c4386;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.container2 h2::before,
.container2 h2::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: #ca6060;
  vertical-align: middle;
  margin: 0 10px;
  border-radius: 2px;
  transform: translateY(-2px);
}
.team_members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
.person {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 400px;
  height: 600px;
  margin: -1rem 2rem;
}
.container1 {
  border-radius: 50%;
  height: 312px;
  -webkit-tap-highlight-color: transparent;
  transform: scale(0.48);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container1:after {
  content: '';
  height: 10px;
  position: absolute;
  top: 390px;
  width: 100%;
}
.container1:hover {
  transform: scale(0.54);
}
.container-inner {
  border-radius: 50%;
  position: relative;
  transform-origin: 50%;
  top: -150px;
}
.img {
  pointer-events: none;
  position: relative;
  transform: translateY(20px);
  transform-origin: 50% bottom;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  left: 22px;
  top: 164px;
  width: 340px;
  border-radius: 50%;
}
.container1:hover .img {
  transform: translateY(0) scale(1.2);
}
.divider {
  background-color: #ca6060;
  height: 2.5px;
  width: 160px;
}
.name {
  color: #404245;
  font-size: 20px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.designation {
  color: #404245;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.description {
  color: #404245;
  font-size: 16px;
  font-weight: 400;
  margin-top: 1rem;
  text-align: justify;
}

.container-inner::before {
  content: '';
  position: absolute;
  bottom: -170px;
  left: 0;
  width: calc(90% + 30px);
  height: calc(90% + 10px);
  background-color: #fff;
  border-radius: 50%;
  z-index: -1;
  box-shadow: none;
  transition: border-radius 0.3s 0.1s;
  transition: background-color 0.3s;
}

.container-inner:hover::before {
  border-radius: 33% 67% 50% 50% / 50% 14% 86% 50%;
  box-shadow: rgb(0 0 2 / 35%) 0 20px 30px -10px;
  background-color: #1c4386;
  transition: border-radius 0.3s 0.1s;
  /* transition: box-shadow 0.5s; */
  z-index: -1;
}
.linkedin-icon {
  margin-top: 20px;
  text-align: center;
}

.linkedin-icon a {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #0a66c2;
  color: white;
  border-radius: 10px;
  text-align: center;
  line-height: 32px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.linkedin-icon a:hover {
  background-color: #084b99;
}
/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .colleges .container {
    width: 100%;
  }
  .person {
    width: 350px;
    height: auto;
    margin: 1rem;
  }

  .container1 {
    width: 350px;
    height: 270px;
    transform: scale(0.5);
  }

  .container1:hover {
    transform: scale(0.56);
  }

  .img {
    width: 300px;
    top: 140px;
    left: 18px;
  }

  .container-inner::before {
    bottom: -140px;
  }
  .container2 {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .team_members {
    flex-direction: column;
    gap: 40px;
  }

  .person {
    width: 300px;
    height: auto;
    margin: 1rem 0;
  }

  .container1 {
    width: 300px;
    height: 230px;
    transform: scale(0.55);
  }

  .container1:hover {
    transform: scale(0.6);
  }

  .img {
    width: 260px;
    top: 120px;
    left: 14px;
  }

  .container-inner::before {
    bottom: -120px;
  }
}

@media screen and (max-width: 480px) {
  .person {
    height: auto;
  }

  .container1 {
    height: 200px;
    transform: scale(0.6);
  }

  .container1:hover {
    transform: scale(0.65);
  }

  .img {
    width: 220px;
    top: 100px;
    left: 12px;
  }

  .container-inner::before {
    bottom: -100px;
  }

  .container2 h2::before,
  .container2 h2::after {
    width: 20px;
    margin: 0 6px;
  }

  .name,
  .designation,
  .description {
    font-size: 14px;
  }
}
