.mentors {
  width: 100%;
  padding: 20px 0px;
}

.mentors .container {
  width: 95%;
  margin: auto;
}

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

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

.mentor-groups {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mentor-groups h2 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1c4386;
  text-align: center;
  margin: 3rem 0 0rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.mentor-groups h2::before,
.mentor-groups 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);
}

.mentor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  width: 95%;
}

.mentor-card {
  width: 400px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mentor-img-wrapper {
  width: 400px;
  /* height: 312px; */
  position: relative;
  transform: scale(0.48);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mentor-img-wrapper:hover {
  transform: scale(0.54);
}

.mentor-img-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.mentor-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%; /* Ensures circular crop */
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.mentor-img-wrapper:hover .mentor-img {
  transform: translateY(0) scale(1.2);
}

.mentor-divider {
  background-color: #ca6060;
  height: 2.5px;
  width: 160px;
}

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

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

.mentor-img-inner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: #1c4386;
  border-radius: 50%;
  transition: all 0.4s ease-in-out;
  z-index: -1;
  box-shadow: rgb(0 0 2 / 35%) 0 20px 30px -10px;
}

.mentor-img-inner:hover::before {
  border-radius: 50% 10% 50% 50% / 50% 10% 50% 50%;
  box-shadow: rgb(0 0 2 / 35%) 0 20px 30px -10px;
  background-color: #1c4386;
  z-index: -1;
}
.mentor-img-wrapper:hover .mentor-img-inner::before {
  border-radius: 50% 10% 50% 50% / 50% 10% 50% 50%;
}
.mentor-img-wrapper:hover .mentor-img {
  transform: scale(1.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 (max-width: 1024px) {
  .mentor-card {
    width: 350px;
    height: auto;
  }

  .mentor-img-wrapper {
    width: 350px;
    height: auto;
    transform: scale(0.5);
  }

  .mentor-img-wrapper:hover {
    transform: scale(0.56);
  }

  .mentor-img-inner::before {
    width: 270px;
    height: 270px;
  }

  .mentor-img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .mentor-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mentor-card {
    width: 90%;
    height: auto;
  }

  .mentor-img-wrapper {
    width: 100%;
    transform: scale(0.55);
  }

  .mentor-img-wrapper:hover {
    transform: scale(0.6);
  }

  .mentor-img-inner::before {
    width: 230px;
    height: 230px;
  }

  .mentor-img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .mentors .container h1 {
    font-size: 24px;
  }

  .mentor-groups h2 {
    font-size: 20px;
  }

  .mentor-card {
    width: 100%;
    padding: 0 10px;
  }

  .mentor-img-wrapper {
    transform: scale(0.6);
  }

  .mentor-img-wrapper:hover {
    transform: scale(0.65);
  }

  .mentor-img-inner::before {
    width: 200px;
    height: 200px;
  }

  .mentor-img {
    width: 180px;
    height: 180px;
  }

  .mentor-name {
    font-size: 18px;
  }

  .mentor-description {
    font-size: 14px;
  }
}
