.success-stories-page {
  background: var(--color-page-bg);
}

.success-hero {
  padding: 110px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.499), rgba(131, 144, 163, 0.236)),
    url("../../images/testimonials/success_1.jpg") center / cover no-repeat;
}

.success-hero__content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.success-hero__content h1,
.success-hero__content p {
  color: #fff;
}

.success-hero__content h1 {
  font-size: 54px;
  margin-bottom: 18px;
}

.success-hero__content p {
  font-size: 19px;
}

.success-section {
  padding: 84px 0;
}

.success-section--light {
  background: var(--color-page-bg);
}

.story-image-card,
.testimonial-card,
.flyer-empty,
.flyer-card {
  height: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.story-image-card {
  overflow: hidden;
}

.story-image-card img,
.flyer-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 14px;
}

.testimonial-card {
  padding: 28px;
}

.testimonial-card i,
.flyer-empty i {
  color: #d9a441;
  font-size: 34px;
}

.testimonial-card p {
  margin: 18px 0;
  color: #4b5563;
}

.testimonial-card h3 {
  color: #052b63;
  font-size: 18px;
  margin: 0;
}

.flyer-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}

.flyer-empty h3 {
  margin: 16px 0 10px;
  color: #052b63;
}

.flyer-empty p {
  margin: 0;
  color: #4b5563;
}

.flyer-category {
  margin-top: 40px;
  margin-bottom: 50px;
}

.flyer-category h3 {
  color: #052b63;
  font-size: 28px;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 16px;
}

.flyer-category h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d9a441 0%, #073B73 100%);
  border-radius: 2px;
}

.flyer-slider {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 8px;
}

.flyer-slider .carousel-inner {
  display: flex;
  gap: 22px;
  overflow: visible;
  transition: transform 0.45s ease;
  will-change: transform;
}

.flyer-slider .carousel-item {
  display: block;
  flex: 0 0 calc((100% - 44px) / 3);
  float: none;
  margin: 0;
  transition: none;
}

.flyer-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  min-height: 310px;
  cursor: zoom-in;
}

.flyer-card img {
  display: block;
  height: 310px;
  min-height: 310px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.flyer-card:hover img {
  transform: scale(1.03);
}

.flyer-slider .carousel-control-prev,
.flyer-slider .carousel-control-next {
  width: 48px;
  opacity: 1;
}

.flyer-slider .carousel-control-prev {
  left: 8px;
}

.flyer-slider .carousel-control-next {
  right: 8px;
}

.flyer-slider .carousel-control-prev-icon,
.flyer-slider .carousel-control-next-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #073b73;
  background-size: 52%;
}

.flyer-modal .modal-content {
  background: rgba(2, 12, 27, 0.96);
}

.flyer-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 20px 24px;
}

.flyer-modal img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 88px);
  object-fit: contain;
}

.flyer-modal__close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1060;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .success-hero {
    padding: 82px 0;
  }

  .success-hero__content h1 {
    font-size: 42px;
  }

  .story-image-card img {
    min-height: 340px;
  }

  .flyer-slider {
    max-width: 680px;
  }

  .flyer-slider .carousel-item {
    flex-basis: calc((100% - 20px) / 2);
  }

  .flyer-card img {
    height: 300px;
    min-height: 300px;
  }

  .flyer-card {
    min-height: 300px;
  }

  .flyer-slider .carousel-control-prev {
    left: 4px;
  }

  .flyer-slider .carousel-control-next {
    right: 4px;
  }
}

@media (max-width: 575.98px) {
  .success-hero__content h1 {
    font-size: 34px;
  }

  .success-section {
    padding: 64px 0;
  }

  .flyer-empty {
    padding: 30px 22px;
  }

  .flyer-category {
    margin-top: 28px;
  }

  .flyer-slider {
    max-width: calc(100vw - 42px);
  }

  .flyer-slider .carousel-inner {
    gap: 0;
  }

  .flyer-slider .carousel-item {
    flex-basis: 100%;
  }

  .flyer-card img {
    height: 300px;
    min-height: 300px;
  }

  .flyer-card {
    min-height: 300px;
  }

  .flyer-slider .carousel-control-prev,
  .flyer-slider .carousel-control-next {
    width: 38px;
  }

  .flyer-slider .carousel-control-prev {
    left: -14px;
  }

  .flyer-slider .carousel-control-next {
    right: -14px;
  }

  .flyer-slider .carousel-control-prev-icon,
  .flyer-slider .carousel-control-next-icon {
    width: 34px;
    height: 34px;
  }
}
