.cs-section {
  padding: 88px 0 72px;
}

.cs-header {
  margin-bottom: 36px;
}

.cs-swiper-wrap {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 48px;
  gap: 24px;
}

.cs-swiper {
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.cs-swiper .swiper-slide {
  width: 100% !important;
  opacity: 1;
}

.cs-card {
  min-height: 500px;
  height: auto;
  isolation: isolate;
}

.cs-card-body {
  padding: 42px 36px 38px 48px;
}

/* The image width/height attributes reserve layout space while it loads. Once
   styled, reset the intrinsic height so the image cannot stretch the whole
   flex card to its source-file height (1024px). */
.cs-card-visual,
.cs-visual-stack {
  min-width: 0;
  min-height: 0;
}

.cs-case-image {
  width: auto;
  height: auto;
  max-width: calc(100% - 40px);
  max-height: 100%;
  object-fit: contain;
}

.cs-tag {
  font-size: 1.65rem;
}

.cs-card-sub,
.cs-section-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.cs-result-desc {
  color: rgba(255, 255, 255, 0.76);
}

.cs-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 2px;
}

.cs-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.cs-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--color-secondary);
}

.cs-nav {
  gap: 12px;
}

.cs-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .cs-swiper-wrap {
    padding: 0 28px;
  }

  .cs-card {
    min-height: 480px;
    height: auto;
  }
}

@media (max-width: 900px) {
  .cs-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .cs-swiper-wrap {
    padding: 0 16px;
  }

  .cs-swiper,
  .cs-swiper .swiper-slide,
  .cs-card {
    border-radius: 18px;
  }

  .cs-card-body {
    padding: 28px 20px;
  }

  .cs-card-visual {
    height: 240px;
  }

  .cs-nav-btn {
    width: 44px;
    height: 44px;
  }
}

/* Card title is a heading (keeps h2 → h3 → h4 order intact) but must not
   inherit the browser's default heading margins. */
h3.cs-tag {
  margin: 0;
}
