/* Advisory case detail (/blog/advisory-cases/:slug) ------------------------ */
/* Values mirror the live page's computed styles at 1440px. */

.case-detail {
  background: #fff;
}

.case-detail-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* Breadcrumb */
.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 32px;
  border-bottom: 1px solid #d5d8de;
  font-size: 13px;
  color: #646464;
  text-transform: uppercase;
}

.case-breadcrumb-link {
  flex-shrink: 0;
  white-space: nowrap;
  color: #646464;
  text-decoration: none;
}

.case-breadcrumb-link:hover {
  color: #f2542d;
}

.case-breadcrumb-current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Title area */
.case-detail-company {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #f2542d;
}

.case-detail-title {
  margin: 10px 0 40px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  color: #161616;
}

/* Confidentiality notice */
.case-confidential {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #ebebeb;
}

.case-confidential img {
  flex-shrink: 0;
  width: 50px;
  height: auto;
  filter: brightness(0) saturate(0);
}

.case-confidential-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #323232;
}

/* Metadata + thumbnail */
.case-meta-grid {
  display: flex;
  gap: 16px;
}

.case-meta-box {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0;
  min-height: 384px;
  padding: 40px 40px 40px 24px;
  background: #fafafa;
}

.case-meta-row {
  display: flex;
  gap: 40px;
}

.case-meta-row dt {
  flex: 0 0 100px;
  font-size: 20px;
  line-height: 1.6;
  color: #7e8181;
}

.case-meta-row dd {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #323232;
}

.case-meta-thumb {
  flex: 1 1 48%;
  min-height: 384px;
  background-size: cover;
  background-position: 50% 50%;
}

/* Advisory summary */
.case-summary {
  margin: 60px 0;
  padding: 40px 10px;
  border-top: 1px solid #f64114;
  border-bottom: 1px solid #f64114;
}

.case-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.case-summary-head img {
  width: 40px;
  height: 40px;
}

.case-summary-label {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #f2542d;
}

.case-summary-body {
  font-size: 20px;
  line-height: 1.6;
  color: #323232;
}

.case-summary-body ul {
  margin: 0;
  padding-left: 20px;
}

/* Body sections */
.case-section {
  margin-bottom: 60px;
}

.case-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.case-section-head img {
  width: 14px;
  height: 14px;
}

.case-section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: #323232;
}

.case-section-body {
  padding: 40px;
  background: #fafafa;
  font-size: 20px;
  line-height: 1.6;
  color: #323232;
}

.case-rich-text p {
  margin: 0 0 20px;
}

.case-rich-text p:last-child {
  margin-bottom: 0;
}

.case-rich-text a {
  color: #f64114;
  border-bottom: 1px solid #f64114;
  text-decoration: none;
}

.case-rich-text li {
  margin-bottom: 8px;
}

.case-rich-text li:last-child {
  margin-bottom: 0;
}

/* Inline contact CTA banner */
.case-cta-banner {
  display: block;
}

.case-cta-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.case-cta-banner-mobile {
  display: none !important;
}

/* Inline lead form */
.case-form-wrap {
  margin-top: 40px;
  padding-bottom: 60px;
}

.case-form-head {
  margin-bottom: 24px;
}

.case-form-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  color: #323232;
}

.case-form-subtitle {
  margin: 0;
  font-size: 16px;
  color: #7e8181;
}

/* More cases --------------------------------------------------------------- */
.case-more {
  background: #fafafa;
}

.case-more .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.case-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.case-more-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 44px;
  color: #151515;
}

.case-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #f2542d;
  text-decoration: none;
}

.case-more-link:hover {
  text-decoration: underline;
}

.case-more-grid {
  margin-top: 0;
}

/* Final CTA — live final-cta sizing (same override as the about page) */
.cta-banner {
  padding: 80px 0;
  background-color: #151515;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.55), rgba(21, 21, 21, 0.55)), url('/assets/images/cta-section.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    center;
}

.cta-banner-heading {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.cta-banner-subtitle {
  margin-bottom: 48px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 991px) {
  .case-detail-title {
    font-size: 36px;
  }

  .case-meta-grid {
    flex-direction: column;
  }

  .case-meta-box,
  .case-meta-thumb {
    min-height: 0;
  }

  .case-meta-thumb {
    aspect-ratio: 442 / 384;
  }

  .case-more-heading {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .case-detail-container {
    padding-top: 32px;
  }

  .case-detail-title {
    font-size: 28px;
  }

  .case-confidential-text,
  .case-meta-row dt,
  .case-meta-row dd {
    font-size: 16px;
  }

  .case-meta-row {
    gap: 20px;
  }

  .case-meta-box {
    padding: 24px 20px;
  }

  .case-summary-label {
    font-size: 22px;
  }

  .case-summary-body,
  .case-section-body {
    font-size: 17px;
  }

  .case-section-title {
    font-size: 24px;
  }

  .case-section-body {
    padding: 24px 20px;
  }

  .case-cta-banner-desktop {
    display: none !important;
  }

  .case-cta-banner-mobile {
    display: block !important;
  }

  .case-form-title {
    font-size: 24px;
  }

  .case-more-heading {
    font-size: 28px;
  }

  .cta-banner {
    padding: 64px 0;
  }

  .cta-banner-heading {
    font-size: 30px;
  }

  .cta-banner-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }
}
