/* Case study — aligned with site banner (gold title, white lead) + restrained body layout */

.case-study-banner-lead {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .case-study-banner-lead {
    font-size: 1.1rem;
  }
}

.case-study-page {
  padding: 48px 0 96px;
}

.case-study-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-study-inner.narrow {
  max-width: 760px;
}

/* Bordered panel + hover for each main section */
.case-study-section > .case-study-inner {
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid rgba(15, 30, 54, 0.1);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 30, 54, 0.06);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease;
}

.case-study-section > .case-study-inner:hover {
  border-color: rgba(201, 162, 77, 0.5);
  box-shadow: 0 14px 40px rgba(15, 30, 54, 0.12);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .case-study-section > .case-study-inner {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .case-study-section > .case-study-inner:hover {
    transform: none;
  }
}

.case-study-section {
  margin: 64px 0;
}

.case-study-section--first {
  margin-top: 0;
}

.case-study-section h2,
.case-study-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: #0f1e36;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case-study-section--features .case-study-section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.case-study-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f1e36;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.case-study-section p {
  color: #333;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 0;
}

.case-study-section p + p {
  margin-top: 1rem;
}

.solution-list {
  margin: 1.25rem 0 1.25rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(201, 162, 77, 0.45);
}

.solution-list li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
  padding-left: 0.25rem;
}

.solution-list li:last-child {
  margin-bottom: 0;
}

.solution-follow-on {
  margin-top: 1.75rem;
}

.highlight-box {
  /* Inner emphasis only — outer section already has the bordered card */
  background: rgba(15, 30, 54, 0.035);
  border: 1px solid rgba(15, 30, 54, 0.06);
  border-radius: 10px;
  padding: 22px 20px 20px;
  margin-top: 0;
}

.highlight-box h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  /* Vertically center screenshots with the paragraph column beside them */
  align-items: center;
  margin: 48px 0 56px;
}

.feature-row > .feature-text,
.feature-row > .feature-image {
  min-width: 0;
}

.feature-text p + p {
  margin-top: 14px;
}

.feature-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.case-study-shot-wrap {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 30, 54, 0.08);
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease;
}

.case-study-shot-wrap:hover {
  border-color: rgba(201, 162, 77, 0.35);
  box-shadow: 0 16px 44px rgba(15, 30, 54, 0.14);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .case-study-shot-wrap {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .case-study-shot-wrap:hover {
    transform: none;
  }
}

.styled-img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  vertical-align: middle;
}

.caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #5a5a5a;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.download-section {
  text-align: center;
  margin-top: 72px;
  padding-top: 0;
}

.case-study-download-btn {
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  background: #0f1e36 !important;
  border-color: #0f1e36 !important;
}

.case-study-download-btn:hover {
  background: #1a2d4d !important;
  border-color: #1a2d4d !important;
}

.download-note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 991px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 40px 0 48px;
  }

  .case-study-section {
    margin: 48px 0;
  }

  .case-study-page {
    padding: 32px 0 72px;
  }
}
