/* Core Layout Adjustments */
body.case-study-page {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Offset for fixed navbar */
    background-color: var(--background, #05040a); /* Fallback dark */
    color: var(--text-primary, #f8fafc);
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Hero Section
   ========================================= */
.cs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border, rgba(226, 232, 240, 0.14));
}

.cs-hero-content {
    flex: 1;
    max-width: 600px;
}

.cs-subtitle {
    color: var(--primary, #8b5cf6);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.cs-hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.cs-meta-data {
    display: flex;
    gap: 30px;
}

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

.cs-meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-border, rgba(139, 92, 246, 0.38));
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.1rem;
}

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

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

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

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

.cs-hero-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    object-fit: cover;
}

/* =========================================
   Standard Sections (01, 02, 03)
   ========================================= */
.cs-section {
    display: flex;
    gap: 30px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border, rgba(226, 232, 240, 0.14));
}

.cs-number {
    font-size: 5rem;
    font-weight: 700;
    color: #a78bfa; 
    line-height: 1;
    min-width: 80px;
}

.cs-content-split {
    display: flex;
    gap: 40px;
    width: 100%;
}

.cs-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cs-text-column h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary, #8b5cf6);
    margin-bottom: 20px;
}

.cs-text-column p {
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.cs-highlight-box {
    margin-top: 20px;
    padding: 15px 0;
    border-left: 3px solid var(--primary, #8b5cf6);
    padding-left: 15px;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.mt-auto {
    margin-top: auto;
}

/* Images & Grids inside content split */
.cs-image-column {
    flex: 1.5;
}

.cs-image-column img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(226, 232, 240, 0.14));
    object-fit: cover;
}

.cs-grid-column {
    flex: 1.5;
    display: flex;
    align-items: center;
}

.cs-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

.cs-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.cs-icon-card i {
    font-size: 2rem;
    color: var(--primary, #8b5cf6);
    margin-bottom: 15px;
}

.cs-icon-card h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cs-icon-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Impact Section Specifics */
.cs-impact-section {
    border-bottom: none;
}

.cs-impact-content {
    width: 100%;
}

.cs-impact-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary, #8b5cf6);
    margin-bottom: 40px;
}

.cs-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.impact-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.impact-card p {
    font-size: 0.85rem;
}

/* =========================================
   Quote Banner Section
   ========================================= */
.cs-quote-banner {
    display: flex;
    align-items: stretch; /* Match heights */
    background: var(--surface-elevated, #1d1829);
    border: 1px solid var(--border-strong, rgba(226, 232, 240, 0.24));
    border-radius: 16px;
    overflow: hidden; 
}

.cs-quote-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary, #8b5cf6);
    margin-bottom: 20px;
}

.cs-quote-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.cs-quote-image {
    flex: 1;
    display: flex; /* Remove default block spacing issues */
}

.cs-quote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the right side smoothly */
}


/* =========================================
   Responsive Design (Desktop/Tablet/Mobile)
   ========================================= */
@media (max-width: 1200px) {
    .cs-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cs-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cs-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .cs-meta-data {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cs-content-split {
        flex-direction: column;
    }

    .cs-reverse-mobile {
        flex-direction: column;
    }
    
    .cs-quote-banner {
        flex-direction: column;
    }
    
    .cs-quote-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .cs-number {
        font-size: 3rem;
        min-width: 50px;
    }
    
    .cs-hero h1 {
        font-size: 2rem;
    }
    
    .cs-grid-5, .cs-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cs-quote-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cs-grid-5, .cs-grid-6 {
        grid-template-columns: 1fr;
    }
    
    .cs-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .cs-number {
        margin-bottom: 0;
    }
}