/* sustainability.css */
.case-study-page {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 76px; /* Accounts for fixed navbar */
    min-width: 0;
}

.case-study-page *,
.case-study-page *::before,
.case-study-page *::after {
    box-sizing: border-box;
}

.case-study-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- Hero Section Updated --- */
.cs-hero {
    width: 100%;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

.cs-hero-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    min-width: 0;
}

.cs-hero-content {
    flex: 1.2;
    min-width: 0;
}

.cs-hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.cs-hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.cs-badge {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.cs-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.cs-hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cs-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.cs-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cs-meta-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    background: var(--surface-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.cs-meta-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Container for sections --- */
.cs-container {
    padding-top: 80px;
    padding-bottom: 80px;
}

.cs-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 60px 0;
}

/* --- Shared Section Layout --- */
.cs-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    min-width: 0;
}

.cs-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    color: #a78bfa; 
    line-height: 1;
    flex: 0 0 80px;
}

.cs-content-block {
    flex: 1;
    min-width: min(280px, 100%);
}

.cs-content-block h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cs-content-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.cs-image-block, .cs-grid-block {
    flex: 1.5;
    min-width: min(320px, 100%);
}

.rounded-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* --- Section 02 Icons Row --- */
.cs-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    min-width: 0;
}

.cs-icon-card {
    flex: 1;
    min-width: min(120px, 100%);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cs-card-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.cs-icon-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.cs-tiny-line {
    width: 20px;
    height: 2px;
    background: var(--border-strong);
    margin-top: auto;
}

.cs-outcome-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Section 03 Impact Grid --- */
.cs-section-stack {
    flex-direction: column;
}

.cs-stack-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.cs-stack-header h2 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.cs-impact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    padding-left: 120px; 
    min-width: 0;
}

.cs-impact-item {
    text-align: center;
    min-width: 0;
}

.cs-impact-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.cs-impact-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Quote Banner Updated --- */
.cs-quote-banner {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    min-width: 0;
}

.cs-quote-content {
    flex: 1.5;
    display: flex;
    gap: 20px;
    min-width: 0;
}

.cs-quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.cs-quote-content blockquote {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.cs-quote-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.cs-quote-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* --- Responsive adjustments --- */
@media (max-width: 1024px) {
    .cs-impact-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    /* Stack Hero */
    .cs-hero {
        padding: 48px 20px;
    }

    .cs-hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 28px;
    }
    
    .cs-hero-image {
        justify-content: center;
        width: 100%;
    }
    
    .cs-meta {
        justify-content: center;
        gap: 20px;
    }
    
    /* Stack general sections */
    .cs-section {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .cs-number {
        flex: none;
    }
    .cs-stack-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cs-icon-row {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    .cs-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stack Quote Banner */
    .cs-quote-banner {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        align-items: stretch;
        gap: 24px;
    }
    
    .cs-quote-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cs-quote-image {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 40px 16px;
    }

    .cs-container {
        padding: 56px 16px;
    }

    .cs-hero-content h1 {
        font-size: clamp(2rem, 12vw, 2.5rem);
        margin-bottom: 18px;
    }

    .cs-hero-content p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .cs-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .cs-meta-item {
        justify-content: center;
    }

    .cs-icon-row {
        grid-template-columns: 1fr;
    }
    .cs-impact-grid {
        grid-template-columns: 1fr;
    }

    .cs-quote-banner {
        margin-top: 56px;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .cs-quote-content blockquote {
        font-size: 1.1rem;
    }
}
