.cases-page {
  background: #f8fafc;
  overflow: hidden;
}

.cases-hero {
  min-height: 300px;
  padding: 150px 0 74px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(10, 25, 48, 0.72), rgba(30, 58, 95, 0.42)),
    url("../src/assets/cases/concat_b.png") center/cover no-repeat;
}

.cases-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.12;
}

.case-section {
  padding: 72px 0;
  background: #ffffff;
}

.case-section:nth-of-type(odd) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.case-container {
  max-width: 1180px;
}

.case-title {
  margin: 0 0 34px;
  text-align: center;
  color: var(--brand-blue);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 3.2fr);
  gap: 24px;
  align-items: stretch;
}

.case-summary,
.case-detail {
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 24%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.case-summary {
  padding: 26px 22px;
  text-align: center;
}

.case-summary > img {
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.case-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 6px;
  padding: 4px 20px;
  border-radius: 999px;
  background: #e5b84f;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.case-meta p {
  margin: 9px 0 18px;
  color: #4b5563;
}

.case-solution-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  color: #374151;
  font-size: 0.95rem;
}

.case-solution-list li + li {
  margin-top: 7px;
}

.case-detail {
  padding: 32px 34px;
}

.case-detail h3 {
  margin: 0 0 18px;
  color: var(--brand-blue);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.35;
}

.case-intro,
.case-result-list p {
  color: #4b5563;
}

.case-intro {
  margin: 0 0 26px;
  text-indent: 2em;
}

.case-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-result-list li {
  position: relative;
  padding: 0 0 28px 24px;
}

.case-result-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.13);
}

.case-result-list li + li {
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  padding-top: 26px;
}

.case-result-list li:last-child {
  padding-bottom: 0;
}

.case-result-list strong {
  color: #cc7b16;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.case-result-list p {
  margin: 12px 0 0;
  text-indent: 2em;
}

.case-result-list b {
  color: #1f2937;
}

.case-carousel {
  position: relative;
  margin-top: 28px;
  padding: 0 44px;
}

.case-image-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.case-image-track::-webkit-scrollbar {
  display: none;
}

.case-image-track img {
  width: min(370px, 82vw);
  flex: 0 0 auto;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.case-carousel-btn {
  position: absolute;
  top: 45%;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22);
}

.case-carousel-btn--prev {
  left: 0;
}

.case-carousel-btn--next {
  right: 0;
}

.case-carousel-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    text-align: left;
  }

  .case-summary > img {
    margin: 0;
  }

  .case-solution-list {
    grid-column: 2;
    margin-top: -10px;
  }
}

@media (max-width: 640px) {
  .cases-hero {
    min-height: 240px;
    padding: 130px 0 56px;
  }

  .case-section {
    padding: 56px 0;
  }

  .case-summary {
    display: block;
    text-align: center;
  }

  .case-summary > img {
    margin: 0 auto 20px;
  }

  .case-solution-list {
    margin-top: 10px;
  }

  .case-detail {
    padding: 26px 20px;
  }

  .case-carousel {
    padding: 0 34px;
  }

  .case-carousel-btn {
    width: 32px;
    height: 32px;
  }
}
