.oxy-problem-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  --oxy-visible: 4;
  --oxy-gap: 20px;
}

.oxy-problem-carousel,
.oxy-problem-carousel * {
  box-sizing: border-box;
}

.oxy-problem-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding-bottom: 8px;
}

.oxy-problem-carousel-track {
  display: flex;
  gap: var(--oxy-gap);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 8px;
}

.oxy-problem-slide {
  flex: 0 0
    calc(
      (100% - ((var(--oxy-visible) - 1) * var(--oxy-gap))) / var(--oxy-visible)
    );
  min-width: 0;
  padding-bottom: 2px;
}

.oxy-problem-card {
  overflow: hidden;
  border: 1px solid rgba(38, 100, 174, 0.16);
  border-radius: 32px;
  background: #ffffff;
  margin-bottom: 1px;
}

.oxy-problem-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: #f5f9fd;
}

.oxy-problem-card-image img,
.oxy-problem-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
}

.oxy-problem-card-content {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 35px 40px;
  border-top: 0;
  border-radius: 38px 38px 32px 32px;
  background: #ffffff;
}

.oxy-problem-card-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #2bbfce;
}

.oxy-problem-card-number span {
  width: 22px;
  height: 1px;
  background: #2bbfce;
  opacity: 0.75;
}

.oxy-problem-card h3 {
  max-width: 300px;
  margin: 0;
  font-family: "Champagne", "Raleway", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2664ae;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.oxy-problem-card p {
  margin: 14px 0 0;
  max-width: 300px;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: #6f8da0;
}

.oxy-problem-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 0;
}

.oxy-problem-carousel-btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(38, 100, 174, 0.16);
  border-radius: 999px !important;
  background: #ffffff;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.oxy-problem-carousel-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #2664ae;
  border-right: 2px solid #2664ae;
  transition: border-color 0.25s ease;
}

.oxy-problem-prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.oxy-problem-next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.oxy-problem-carousel-btn:visited,
.oxy-problem-carousel-btn:focus,
.oxy-problem-carousel-btn:focus-visible,
.oxy-problem-carousel-btn:active {
  background: #ffffff !important;
  border-color: rgba(38, 100, 174, 0.16) !important;
  outline: none !important;
  box-shadow: none !important;
}

.oxy-problem-carousel-btn:visited::before,
.oxy-problem-carousel-btn:focus::before,
.oxy-problem-carousel-btn:focus-visible::before,
.oxy-problem-carousel-btn:active::before {
  border-color: #2664ae !important;
}

.oxy-problem-carousel-btn:hover {
  background: #2664ae !important;
  border-color: transparent !important;
  box-shadow: 0 18px 40px rgba(38, 100, 174, 0.18) !important;
  transform: translateY(-2px) !important;
}

.oxy-problem-carousel-btn:hover::before {
  border-color: #ffffff !important;
}

.oxy-problem-carousel-btn:focus:not(:hover),
.oxy-problem-carousel-btn:focus-visible:not(:hover) {
  transform: none !important;
}

.oxy-problem-carousel-btn:active {
  transform: translateY(0) !important;
}

@media (max-width: 1280px) {
  .oxy-problem-carousel {
    --oxy-visible: 3;
  }

  .oxy-problem-card-content {
    padding: 58px 34px 42px;
  }

  .oxy-problem-card h3 {
    font-size: 29px;
  }

  .oxy-problem-card p {
    font-size: 19px;
  }
}

@media (max-width: 900px) {
  .oxy-problem-carousel {
    --oxy-visible: 2;
    --oxy-gap: 20px;
  }
}

@media (max-width: 580px) {
  .oxy-problem-carousel {
    --oxy-visible: 1;
    --oxy-gap: 16px;
  }

  .oxy-problem-carousel-viewport {
    padding-bottom: 8px;
  }

  .oxy-problem-carousel-track {
    padding-bottom: 8px;
  }

  .oxy-problem-slide {
    padding-bottom: 2px;
  }

  .oxy-problem-card {
    border-radius: 30px;
    margin-bottom: 1px;
  }

  .oxy-problem-card-image {
    aspect-ratio: 1 / 0.72;
    border-radius: 30px 30px 0 0;
  }

  .oxy-problem-card-image img,
  .oxy-problem-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center;
  }

  .oxy-problem-card-content {
    min-height: 260px;
    margin-top: -30px;
    padding: 56px 34px 40px;
    border-radius: 34px 34px 30px 30px;
  }

  .oxy-problem-card-number {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .oxy-problem-card h3 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 31px;
  }

  .oxy-problem-card p {
    max-width: 100%;
    font-size: 20px;
  }

  .oxy-problem-carousel-controls {
    justify-content: center;
  }
}
