/* ── CASE STUDY SINGLE ──────────────────────────── */

/* ── PROSE (editor content) ────────────────────── */
.cs-prose {
  background: var(--cream);
  padding: 64px 0;
  color: var(--dark);
}

.cs-prose__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.7;
  font-size: 17px;
}

.cs-prose__inner h2,
.cs-prose__inner h3 {
  font-family: var(--serif);
  color: var(--dark);
  margin-top: 2em;
}

.cs-prose__inner h2 {
  font-size: 28px;
  margin-bottom: 16px !important;
}

.cs-prose__inner h3 {
  font-size: 22px;
  margin-bottom: 12px !important;
}

.cs-prose__inner ul,
.cs-prose__inner ol {
  padding-left: 1.5em;
}

.cs-prose__inner li {
  margin-bottom: 0.5em;
}

/* ── PHASES ────────────────────────────────────── */
.phases-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.phase-wrap {
  padding: 64px 40px;
  border-radius: 10px;
}

.phase-header {
  margin: 0 0 32px;
}

.phase-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

h2.phase-name {
  font-family: var(--serif);
  font-size: 32px !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
  margin: 0 0 12px !important;
}

.phase-tab-line {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.phase-description {
  margin: 0 0 24px;
  padding: 0 0 24px;
  line-height: 1.65;
  font-size: 16px;
}

.phase-description p:not(:last-child) {
  margin-bottom: 1em;
}

/* ── PHASE CAROUSEL ────────────────────────────── */
.phase-carousel {
  margin: 0;
}

.phase-carousel .splide__slide {
  border-radius: 6px;
  overflow: hidden;
}

.phase-slide {
  margin: 0;
  position: relative;
}

.phase-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.phase-slide__caption {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  padding: 20px;
  margin-top: 10px;
  border-radius: 6px;
  line-height: 1.4;
}

/* Splide arrow overrides for phase carousels */
.phase-carousel .splide__arrow {
  background: rgba(0, 0, 0, .4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 1;
}

.phase-carousel .splide__arrow:hover {
  background: rgba(0, 0, 0, .6);
}

.phase-carousel .splide__arrow svg {
  fill: #fff;
  width: 18px;
  height: 18px;
}

/* ── MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .cs-prose {
    padding: 48px 0;
  }

  .cs-prose__inner {
    padding: 0 16px;
    font-size: 16px;
  }

  .phase-wrap {
    padding: 48px 0;
  }

  .phase-header {
    margin-bottom: 24px;
  }

  .phase-name {
    font-size: 26px;
  }

  .phase-description {
    margin-bottom: 28px;
  }

  .phases-section {
    padding: 0 16px;
  }

  .phase-wrap {
    padding: 48px 20px;
  }

  .phase-slide img {
    height: 400px;
  }
}
