/* Case Study Page Styles */

/* =============================================
   INLINE PROCESS IMAGES (small, with slide-in)
   ============================================= */
.cs-process-img {
    margin: 20px 0 10px;
    max-width: 480px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #E0DDD8;
}

.cs-process-img img {
    width: 100%;
    display: block;
}

.cs-process-img figcaption {
    font-size: 0.82rem;
    color: #999;
    padding: 8px 12px;
    background: #F7F6F3;
    font-family: var(--font-body);
}

/* slide-in-left animation for images */
.reveal-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Two small images side by side within process content */
.cs-process-img-row {
    display: flex;
    gap: 16px;
    margin: 20px 0 10px;
}

.cs-process-img-row .cs-process-img {
    margin: 0;
    flex: 1;
    max-width: none;
}

@media (max-width: 768px) {
    .cs-process-img {
        max-width: 100%;
    }
    .cs-process-img-row {
        flex-direction: column;
    }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* =============================================
   CENTENE-STYLE CASE STUDY
   ============================================= */

/* Page background */
.cs-page {
    background: #F0EFEB;
    min-height: 100vh;
    --font-display: 'DM Serif Display', 'Georgia', serif;
    --accent-color: #888888;
}

.cs-page .navbar-industrial {
    background: #F0EFEB;
}

/* Hero */
.cs-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 40px 60px;
}

.cs-hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-hero-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: #888;
    display: inline-block;
}

.cs-hero-title {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    color: #222;
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 900px;
}

.cs-hero-summary {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    max-width: 750px;
    margin-bottom: 30px;
}

.cs-hero-summary .highlight {
    background: rgba(255, 243, 176, 0.6);
    padding: 2px 0;
}

/* Tag pills */
.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cs-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 6px 16px;
    border: 1px solid #CCC;
    border-radius: 4px;
    color: #555;
    background: transparent;
    letter-spacing: 0.3px;
}

/* Hero image */
.cs-hero-image {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.cs-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* =============================================
   OVERVIEW: Sidebar + Content (2-column)
   ============================================= */
.cs-overview {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

.cs-overview-header {
    margin-bottom: 50px;
}

.cs-overview-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.cs-overview-title {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    color: #222;
    line-height: 1.05;
}

.cs-two-col {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Left sidebar meta */
.cs-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
}

.cs-meta-group {
    margin-bottom: 35px;
}

.cs-meta-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    margin-bottom: 6px;
}

.cs-meta-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

/* Right content column */
.cs-content {
    flex: 1;
    min-width: 0;
}

.cs-content-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.cs-content-heading {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #222;
    line-height: 1.25;
    margin-bottom: 20px;
}

.cs-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 20px;
}

.cs-content p .highlight {
    background: rgba(255, 243, 176, 0.6);
    padding: 2px 0;
}

.cs-content p strong {
    color: #333;
    font-weight: 600;
}

/* =============================================
   FULL-WIDTH SECTION (Impact, Problem, etc.)
   ============================================= */
.cs-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

.cs-section-divider {
    border: none;
    border-top: 1px solid #D8D6D0;
    max-width: 1100px;
    margin: 0 auto;
}

/* =============================================
   IMPACT NUMBERS (Centene-style big numbers)
   ============================================= */
.cs-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
    margin: 40px 0;
}

.cs-impact-number {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #222;
    line-height: 1;
    margin-bottom: 8px;
}

.cs-impact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
}

/* =============================================
   IMAGE SECTIONS
   ============================================= */
.cs-image-full {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cs-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-image-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #999;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

.cs-image-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.cs-image-compare img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* =============================================
   PROCESS LIST
   ============================================= */
.cs-process-item {
    padding: 30px 0;
    border-bottom: 1px solid #D8D6D0;
}

.cs-process-item:last-child {
    border-bottom: none;
}

.cs-process-num {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: 1.2rem;
    color: #BBB;
    margin-bottom: 8px;
}

.cs-process-title {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cs-process-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 0;
}

.cs-process-text strong {
    color: #333;
}

/* =============================================
   BACK LINK
   ============================================= */
.cs-back {
    text-align: center;
    padding: 50px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.cs-back a {
    font-family: 'Inter', sans-serif;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cs-back a:hover {
    color: #222;
    text-decoration: none;
}

/* =============================================
   FOOTER override for cs-page
   ============================================= */
.cs-page footer {
    background: #F0EFEB;
    border-top: 1px solid #D8D6D0;
}

/* =============================================
   CARD LINK (index.html clickable cards)
   ============================================= */
.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   ORKA CASE STUDY (original styles, kept)
   ============================================= */

.casestudy-hero {
    padding-top: 160px;
    min-height: 45vh;
    margin-bottom: 30px;
}

.casestudy-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.casestudy-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.casestudy-meta-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto 70px;
    padding: 25px 20px;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}

.casestudy-meta-bar .meta-item h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}

.casestudy-meta-bar .meta-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.casestudy-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.casestudy-section {
    margin-bottom: 80px;
}

.section-heading-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.casestudy-section p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--secondary-color);
    margin-bottom: 22px;
}

.casestudy-section p strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Highlight band */
.highlight-band {
    background: var(--text-color);
    color: #FFFFFF;
    padding: 80px 20px;
    margin: 80px -20px;
    text-align: center;
}

.highlight-band .section-label { color: rgba(255,255,255,0.5); }

.highlight-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFF;
    margin-bottom: 25px;
    line-height: 1.25;
}

.highlight-band p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto 15px;
}

.highlight-band p strong { color: #FFF; }

/* Split layout */
.split-section {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 70px;
}

.split-section.reverse { flex-direction: row-reverse; }

.split-text { flex: 1; min-width: 0; }

.split-visual {
    flex: 0 0 340px;
    border-radius: 12px;
    overflow: hidden;
}

.split-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.visual-placeholder {
    background: #F4F6F8;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.visual-placeholder i { font-size: 2.5rem; color: #CCC; margin-bottom: 15px; }
.visual-placeholder span { font-size: 0.8rem; color: #AAA; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Workstream card */
.workstream-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 45px 40px;
    margin-bottom: 40px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workstream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.workstream-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.workstream-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.workstream-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.workstream-card p strong { color: var(--text-color); }

.workstream-card ul { list-style: none; padding: 0; margin: 0 0 20px; }

.workstream-card ul li {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--secondary-color);
    padding: 6px 0 6px 22px;
    position: relative;
}

.workstream-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Result callout */
.result-callout {
    background: #F8F9FB;
    border-radius: 10px;
    padding: 20px 25px;
    margin-top: 20px;
    border-left: 3px solid var(--accent-color);
}

.result-callout p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.result-callout strong { color: var(--accent-color); }

/* Metrics */
.casestudy-metrics {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.metric-card:hover { transform: translateY(-3px); }

.metric-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    line-height: 1;
}

.metric-card .metric-label {
    font-size: 0.82rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-card .metric-desc {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
}

/* Takeaways */
.takeaway {
    margin-bottom: 35px;
    padding: 25px 30px;
    border-radius: 10px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
}

.takeaway h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.takeaway p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 0;
}

/* Back link */
.casestudy-back {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid #EAEAEA;
    margin-top: 80px;
}

.back-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-color);
    text-decoration: none;
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
    /* Centene-style */
    .cs-hero { padding: 120px 20px 40px; }
    .cs-hero-title { font-size: 2.2rem; }
    .cs-overview { padding: 50px 20px; }
    .cs-two-col { flex-direction: column; gap: 40px; }
    .cs-sidebar { position: static; flex: none; display: flex; flex-wrap: wrap; gap: 20px 40px; }
    .cs-meta-group { margin-bottom: 0; }
    .cs-impact-grid { grid-template-columns: 1fr; gap: 30px; }
    .cs-section { padding: 50px 20px; }
    .cs-hero-image { padding: 0 20px; }
    .cs-image-compare { grid-template-columns: 1fr; }

    /* Orka-style */
    .casestudy-meta-bar { flex-wrap: wrap; gap: 20px 30px; justify-content: flex-start; padding: 20px; }
    .casestudy-metrics { flex-direction: column; }
    .casestudy-hero { padding-top: 120px; }
    .split-section, .split-section.reverse { flex-direction: column; gap: 30px; }
    .split-visual { flex: none; width: 100%; }
    .workstream-card { padding: 30px 25px; }
    .highlight-band { margin: 60px -20px; padding: 60px 20px; }
    .section-heading-lg { font-size: 1.8rem; }
}
