/* ============================================
   JunkShun Case Study Styles
   /casestudy/css/caseStudy.css
   ============================================ */

/* ---- Variables (matching landing page) ---- */
:root {
    --js-blue: #0b3d91;
    --js-blue-dark: #082a66;
    --js-blue-light: #1a56b8;
    --js-yellow: #FDB813;
    --js-yellow-dark: #e5a50f;
    --js-dark: #0f172a;
    --js-gray: #64748b;
    --js-gray-light: #e2e8f0;
    --js-light: #f8fafc;
    --js-success: #10B981;
    --js-danger: #EF4444;
}

/* ---- Base ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--js-dark);
    line-height: 1.7;
    background: white;
}

/* ---- Header ---- */
.cs-header {
    background: var(--js-blue);
    padding: 1rem 0;
}

.cs-logo-container {
    display: flex;
    align-items: center;
}

.cs-logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cs-logo-container img {
    height: 36px;
    margin-right: 10px;
}

.cs-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cs-logo-blue {
    color: white;
}

.cs-logo-yellow {
    color: var(--js-yellow);
}

/* ---- Hero ---- */
.cs-hero {
    background: linear-gradient(135deg, var(--js-blue) 0%, var(--js-blue-dark) 100%);
    color: white;
    padding: 3rem 0 3.5rem;
}

.cs-hero-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--js-yellow);
    margin-bottom: 1rem;
}

.cs-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 750px;
}

.cs-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 650px;
    line-height: 1.6;
}

/* ---- Article Body ---- */
.cs-article {
    padding: 3rem 0 4rem;
}

.cs-content {
    max-width: 800px;
}

/* ---- Sections ---- */
.cs-section {
    margin-bottom: 3rem;
}

.cs-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--js-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--js-blue);
    display: inline-block;
}

.cs-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--js-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.cs-section p {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ---- Client Profile Card ---- */
.cs-profile-card {
    background: var(--js-light);
    border: 1px solid var(--js-gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.cs-profile-title {
    font-weight: 700;
    color: var(--js-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.cs-profile-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--js-gray-light);
}

.cs-profile-label {
    font-size: 0.75rem;
    color: var(--js-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.cs-profile-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--js-dark);
}

/* ---- Chart ---- */
.cs-chart-container {
    background: var(--js-light);
    border: 1px solid var(--js-gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    height: 350px;
    position: relative;
}

.cs-chart-title {
    font-weight: 700;
    color: var(--js-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cs-chart-container canvas {
    max-height: 250px;
}

.cs-chart-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--js-success);
    font-weight: 600;
    margin-top: 0.75rem;
}

/* ---- Data Table ---- */
.cs-table-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.cs-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cs-data-table thead th {
    background: var(--js-blue);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cs-data-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.cs-data-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.cs-data-table tbody td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--js-gray-light);
}

.cs-data-table tbody tr:hover {
    background: var(--js-light);
}

.cs-highlight-row {
    background: #FEF2F2;
}

.cs-highlight-row:hover {
    background: #FEE2E2 !important;
}

.cs-active-row {
    background: #F0FDF4;
}

.cs-active-row:hover {
    background: #DCFCE7 !important;
}

.cs-inactive {
    color: var(--js-danger);
}

.cs-active {
    color: var(--js-success);
}

.cs-partial {
    color: var(--js-yellow-dark);
}

.cs-data-table tfoot td {
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--js-dark);
    background: var(--js-light);
}

.cs-data-table tfoot td:first-child {
    border-radius: 0 0 0 8px;
}

.cs-data-table tfoot td:last-child {
    border-radius: 0 0 8px 0;
}

/* ---- Callout Box (2020-2026 credits) ---- */
.cs-callout {
    background: var(--js-light);
    border: 1px solid var(--js-gray-light);
    border-left: 4px solid var(--js-blue);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.cs-callout-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--js-gray-light);
}

.cs-callout-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--js-gray);
    margin-bottom: 0.25rem;
}

.cs-callout-note {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--js-gray);
}

.cs-callout-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--js-blue);
}

.cs-callout-total {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--js-gray-light);
    font-size: 1rem;
    color: #374151;
}

/* ---- Stats Grid (3-year data) ---- */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.cs-stat-card {
    background: var(--js-light);
    border: 1px solid var(--js-gray-light);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.cs-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--js-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cs-stat-label {
    font-weight: 700;
    color: var(--js-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cs-stat-desc {
    font-size: 0.8rem;
    color: var(--js-gray);
}

/* ---- ROI Box ---- */
.cs-roi-box {
    background: linear-gradient(135deg, var(--js-blue) 0%, var(--js-blue-dark) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.cs-roi-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--js-yellow);
    margin-bottom: 1.25rem;
}

.cs-roi-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cs-roi-label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.cs-roi-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.cs-roi-box p,
.cs-roi-summary {
    color: white !important;
}

.cs-roi-summary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ---- CTA Box ---- */
.cs-cta-box {
    background: var(--js-light);
    border: 2px solid var(--js-blue);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cs-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--js-dark);
    margin-bottom: 0.5rem;
}

.cs-cta-box p {
    color: var(--js-gray);
    margin-bottom: 1.25rem;
}

.cs-btn-primary {
    background: var(--js-yellow);
    color: var(--js-dark);
    border: none;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.cs-btn-primary:hover {
    background: var(--js-yellow-dark);
    color: var(--js-dark);
    transform: translateY(-1px);
}

/* ---- Footer ---- */
.cs-footer {
    background: var(--js-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.cs-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.cs-footer a:hover {
    color: white;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cs-hero h1 {
        font-size: 1.6rem;
    }

    .cs-hero-subtitle {
        font-size: 1rem;
    }

    .cs-section h2 {
        font-size: 1.3rem;
    }

    .cs-section p {
        font-size: 1rem;
    }

    .cs-stats-grid {
        grid-template-columns: 1fr;
    }

    .cs-stat-number {
        font-size: 1.5rem;
    }

    .cs-roi-box {
        padding: 1.5rem;
    }

    .cs-roi-value {
        font-size: 1.25rem;
    }

    .cs-callout {
        padding: 1.25rem;
    }

    .cs-cta-box {
        padding: 1.5rem;
    }

    .cs-chart-container {
        height: 300px;
    }

    .cs-data-table {
        font-size: 0.85rem;
    }

    .cs-data-table thead th,
    .cs-data-table tbody td,
    .cs-data-table tfoot td {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 2rem 0 2.5rem;
    }

    .cs-hero h1 {
        font-size: 1.4rem;
    }

    .cs-article {
        padding: 2rem 0 3rem;
    }
}
