/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
.wrapper {
  max-width: 1100px;
  width: 100%;
  position: relative;
}
.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}
.wrapper i:active{
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child{
  left: -22px;
}
.wrapper i:last-child{
  right: -22px;
}
.wrapper .carousel{
  display: grid;
  grid-auto-flow: column;
  /* grid-auto-columns: calc((100% / 3) - 12px); */
  grid-auto-columns: calc(100% / 3);
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}
.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel .card {
  scroll-snap-align: start;
  height: 342px;
  list-style: none;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.78)),
    radial-gradient(circle at top right, rgba(20, 129, 186, 0.18), transparent 45%);
  cursor: pointer;
  padding: 18px auto;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(20, 129, 186, 0.2);
  box-shadow: 0 12px 32px rgba(7, 25, 41, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.carousel .card .img {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 233, 246, 0.9));
  height: 148px;
  width: 148px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 129, 186, 0.12);
}
.card .img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.95);
}
.carousel .card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 129, 186, 0.45);
  box-shadow: 0 18px 42px rgba(7, 25, 41, 0.24);
}
.carousel .card h2 {
  font-weight: 600;
  font-size: 1.22rem;
  color: #23303f;
  text-align: center;
  line-height: 1.35;
  margin: 24px 0 6px;
}
.carousel .card span {
  color: #516070;
  font-size: 0.92rem;
  text-align: center;
}
.carousel .card > span:nth-of-type(1) {
  font-weight: 600;
  color: #344455;
  margin-bottom: 3px;
}
.carousel .card > span:nth-of-type(2) {
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6f7f90;
}

@media screen and (max-width: 900px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
}

@media screen and (max-width: 600px) {
  .wrapper .carousel {
    grid-auto-columns: 100%;
  }
  .carousel .card {
    height: 332px;
  }
}