/* ================================================================
   single-case-study.css
   Styles for free-form (template: false) case study content.
   All classes mirror the HTML injected via caseStudy.content.
   ================================================================ */

/* ── Base typography inside #case-content ── */
#case-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #111827;
    line-height: 1.6;
}

#case-content>p {
    margin: 0 0 24px;
    color: #000;
    font-size: 18px;
    line-height: 1.6;
}

/* ── Shared list styles ── */
.cs-list {
    list-style: disc;
    padding-left: 28px;
    margin: 0 0 16px;
}

.cs-list li {
    font-size: 18px;
    color: #000;
    line-height: 2;
    margin-bottom: 0;
}

.cs-dot-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-dot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #000;
    line-height: 1.5;
}

.cs-dot-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #0c753e;
    flex-shrink: 0;
}

/* ── Blockquote ── */
.cs-blockquote {
    border-left: 3px solid #0c753e;
    background: #f4f4f4;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 0 0 32px;
}

.cs-blockquote-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
    color: #000;
    margin: 0 0 8px;
    font-style: italic;
}

.cs-blockquote-attr {
    font-size: 18px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* ── Challenge box ── */
.cs-challenge-box {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-challenge-intro {
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    line-height: 1.6;
    margin: 0;
}

.cs-challenge-statement {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-statement-dim {
    font-weight: 600;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.4;
    margin: 0;
}

.cs-challenge-statement>p:not(.cs-statement-dim) {
    font-weight: 600;
    font-size: 24px;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

/* ── Solution box (green bg) ── */
.cs-solution-box {
    background: #f0fdf4;
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cs-solution-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-solution-label {
    font-weight: 500;
    font-size: 18px;
    color: #111827;
    line-height: 1.6;
    margin: 0;
}

.cs-solution-need {
    font-weight: 600;
    font-size: 18px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.cs-solution-divider {
    width: 90px;
    height: 3px;
    background: #0c753e;
    border-radius: 2px;
    margin: 0;
}

.cs-solution-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* OMAP title inside solution box */
.cs-omap-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.cs-omap-heading {
    font-weight: 600;
    font-size: 36px;
    color: #0c753e;
    line-height: 1.25;
    display: block;
}

.cs-omap-subheading {
    font-weight: 700;
    font-size: 24px;
    color: #000;
    line-height: 1.5;
    display: block;
}

/* "Not a dashboard / chatbot / rule-based" row */
.cs-not-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.cs-not-row>span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #000;
    font-weight: 400;
    line-height: 1.5;
}

.cs-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #0c753e;
    border-radius: 50%;
    flex-shrink: 0;
}

.cs-engine-label {
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.cs-summary {
    font-weight: 500;
    font-size: 24px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

.cs-italic-close {
    font-weight: 500;
    font-size: 20px;
    color: #000;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ── Section heading inside solution ── */
.cs-section-heading {
    font-weight: 700;
    font-size: 24px;
    color: #000;
    text-align: center;
    margin: 8px 0;
    line-height: 1.5;
}

/* ── Three column comparison cards ── */
.cs-three-col-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-col-card {
    background: #fff;
    border: 1px solid rgba(87, 189, 136, 0.5);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-col-card-title {
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    line-height: 1.5;
    margin: 0;
}

.cs-col-card p:not(.cs-col-card-title) {
    font-size: 18px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

/* ── Two column panels ── */
.cs-two-col-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 32px;
}

.cs-panel {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-panel h2 {
    font-weight: 700;
    font-size: 24px;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.cs-panel p {
    font-size: 18px;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

.cs-green-highlight {
    font-weight: 600;
    font-size: 24px;
    color: #0c753e !important;
    line-height: 1.5;
}

.cs-panel-callout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.cs-callout-label {
    font-weight: 500;
    color: #111827 !important;
}

.cs-callout-bold {
    font-weight: 600;
    font-size: 18px;
    color: #000 !important;
    line-height: 1.5;
}

.cs-green-accent {
    font-weight: 600;
    color: #0c753e !important;
    font-size: 18px;
}

.cs-semibold {
    font-weight: 600 !important;
}

.cs-bold {
    font-weight: 700 !important;
}

.cs-italic {
    font-style: italic;
    font-weight: 600;
}

.cs-green-italic {
    font-style: italic;
    font-weight: 600;
    color: #0c753e;
}

/* ── Outcomes box ── */
.cs-outcomes-box {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-outcomes-box h2 {
    font-weight: 700;
    font-size: 24px;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.cs-outcomes-box>p {
    font-size: 18px;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

/* Before / After callout */
.cs-before-after {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-before-after>p {
    font-size: 18px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.cs-before,
.cs-after {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-muted {
    font-weight: 600;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    margin: 0;
}

.cs-quote-text {
    font-weight: 600;
    font-size: 24px;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

.cs-green-text {
    color: #0c753e !important;
}

.cs-arrow-down {
    font-size: 32px;
    color: #0c753e;
    font-weight: 300;
    text-align: left;
    line-height: 1;
    padding: 4px 0;
}

/* ── Closing quote ── */
.cs-closing-quote {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-closing-text {
    font-weight: 600;
    font-size: 24px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.cs-closing-dim {
    color: rgba(0, 0, 0, 0.4);
}

.cs-closing-line {
    width: 90px;
    height: 3px;
    background: #0c753e;
    border-radius: 2px;
}

/* ── Content spacing for #case-content wrappers ── */
#case-content>.cs-challenge-box,
#case-content>.cs-outcomes-box,
#case-content>.cs-closing-quote {
    margin-bottom: 32px;
}

#case-content>.cs-solution-box {
    margin-bottom: 32px;
}

#case-content>.cs-two-col-panels {
    margin-bottom: 32px;
}

#case-content>.cs-blockquote {
    margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cs-three-col-cards {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cs-not-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cs-not-row>span {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .cs-three-col-cards {
        grid-template-columns: 1fr;
    }

    .cs-two-col-panels {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-omap-heading {
        font-size: 28px;
    }

    .cs-omap-subheading {
        font-size: 20px;
    }

    .cs-engine-label,
    .cs-summary,
    .cs-section-heading {
        font-size: 20px;
    }

    .cs-blockquote-text {
        font-size: 18px;
    }

    .cs-statement-dim,
    .cs-challenge-statement>p:not(.cs-statement-dim),
    .cs-muted,
    .cs-quote-text,
    .cs-closing-text {
        font-size: 18px;
    }

    .cs-not-row>span {
        font-size: 17px;
    }

    .cs-green-highlight {
        font-size: 20px;
    }
}