/* --- block 1 --- */
/* ===== CASE STUDIES SECTION ===== */
        .case-studies-section { background: var(--white); }

        /* ===== DESKTOP TABS (side-by-side layout) ===== */
        .desktop-tabs {
            display: grid;
            grid-template-columns: 270px 1fr;
            border: 1px solid var(--gray-100);
            border-radius: 10px;
            overflow: hidden;
            min-height: 520px;
        }
        .mobile-accordion { display: none; }

        /* Hide radio inputs */
        .tab-radio { position: absolute; opacity: 0; pointer-events: none; }

        .tab-label {
            grid-column: 1;
            display: flex; flex-direction: row; align-items: center; gap: 12px;
            padding: 16px 18px;
            font-size: 0.82rem; font-weight: 600;
            color: var(--section-text);
            cursor: pointer;
            white-space: nowrap;
            border-left: 3px solid transparent;
            border-bottom: 1px solid var(--gray-100);
            background: var(--gray-50);
            transition: all 0.25s;
            text-align: left;
            min-width: 0;
        }
        .tab-label:hover { color: var(--black); background: rgba(0,0,0,0.02); }
        .tab-label .tab-icon {
            width: 36px; height: 36px; border-radius: 8px;
            background: var(--white);
            display: flex; align-items: center; justify-content: center;
            transition: all 0.25s;
            flex-shrink: 0;
        }
        .tab-label .tab-icon svg { width: 18px; height: 18px; color: var(--gray-300); transition: color 0.25s; }

        /* Active tab styles via radio */
        .tab-radio:checked + .tab-label {
            color: var(--red);
            border-left-color: var(--red);
            background: var(--white);
        }
        .tab-radio:checked + .tab-label .tab-icon {
            background: var(--red-glow);
        }
        .tab-radio:checked + .tab-label .tab-icon svg {
            color: var(--red);
        }

        /* Tab content panels */
        .tab-panels {
            grid-column: 2;
            grid-row: 1 / span 7;
            position: relative;
            background: var(--white);
            border-left: 1px solid var(--gray-100);
            overflow-y: auto;
        }
        .tab-panel {
            display: none;
            padding: 36px 40px;
            animation: fadeInTab 0.3s ease;
        }
        @keyframes fadeInTab {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Show panels based on checked radio */
        #cs-tab1:checked ~ .tab-panels .panel-1,
        #cs-tab2:checked ~ .tab-panels .panel-2,
        #cs-tab3:checked ~ .tab-panels .panel-3,
        #cs-tab4:checked ~ .tab-panels .panel-4,
        #cs-tab5:checked ~ .tab-panels .panel-5,
        #cs-tab6:checked ~ .tab-panels .panel-6,
        #cs-tab7:checked ~ .tab-panels .panel-7 {
            display: block;
        }

        /* Panel header */
        .panel-header {
            display: flex; align-items: center; gap: 16px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--gray-100);
        }
        .panel-header-icon {
            width: 52px; height: 52px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .panel-header-icon svg { width: 26px; height: 26px; }
        .panel-header-text .panel-label {
            font-size: 0.72rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em;
            color: var(--red); margin-bottom: 2px;
        }
        .panel-header-text h3 {
            font-family: var(--font-display);
            font-size: 1.5rem; font-weight: 700;
            color: var(--black); line-height: 1.25;
        }

        /* Panel intro */
        .panel-intro {
            font-size: 1rem; color: var(--section-text);
            line-height: 1.7; margin-bottom: 28px;
            font-style: italic;
            padding-left: 16px;
            border-left: 3px solid var(--red);
        }

        /* Panel subsections */
        .panel-subsection { margin-bottom: 24px; }
        .panel-subsection:last-child { margin-bottom: 0; }
        .panel-subsection-title {
            display: flex; align-items: center; gap: 8px;
            font-family: var(--font-display);
            font-size: 1rem; font-weight: 600;
            color: var(--black); margin-bottom: 10px;
        }
        .panel-subsection-title svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
        .panel-subsection p {
            font-size: 0.95rem; color: var(--section-text);
            line-height: 1.75; margin-bottom: 10px;
        }
        .panel-subsection ul {
            list-style: none; padding: 0; margin: 10px 0 14px;
        }
        .panel-subsection ul li {
            font-size: 0.88rem; color: var(--section-text);
            padding: 5px 0 5px 22px; position: relative;
            line-height: 1.6;
        }
        .panel-subsection ul li::before {
            content: ''; position: absolute; left: 0; top: 12px;
            width: 8px; height: 8px; border-radius: 2px;
            background: var(--red-glow); border: 1.5px solid var(--red);
        }

        /* ===== MOBILE ACCORDION ===== */
        .acc-checkbox { position: absolute; opacity: 0; pointer-events: none; }

        .acc-label {
            display: flex; align-items: center; gap: 12px;
            padding: 16px 20px;
            background: var(--white);
            border: 1px solid var(--gray-100);
            border-radius: 10px;
            cursor: pointer;
            margin-bottom: 8px;
            transition: all 0.25s;
        }
        .acc-label:hover {
            border-color: var(--gray-200);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .acc-label .acc-icon {
            width: 38px; height: 38px; border-radius: 8px;
            background: var(--red-glow);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .acc-label .acc-icon svg { width: 18px; height: 18px; color: var(--red); }
        .acc-label .acc-title {
            flex: 1;
            font-size: 0.95rem; font-weight: 600;
            color: var(--black);
        }
        .acc-label .acc-arrow {
            width: 20px; height: 20px; color: var(--gray-300);
            transition: transform 0.3s;
            flex-shrink: 0;
        }

        .acc-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
            margin-bottom: 8px;
        }
        .acc-content-inner {
            padding: 24px 20px;
            background: var(--gray-50);
            border: 1px solid var(--gray-100);
            border-radius: 10px;
        }

        /* Accordion open state */
        .acc-checkbox:checked + .acc-label {
            border-color: var(--red);
            background: rgba(205,0,26,0.02);
        }
        .acc-checkbox:checked + .acc-label .acc-arrow {
            transform: rotate(180deg);
        }
        .acc-checkbox:checked + .acc-label + .acc-content {
            max-height: 2000px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .desktop-tabs { grid-template-columns: 220px 1fr; }
            .tab-label { padding: 13px 14px; font-size: 0.78rem; }
            .tab-label .tab-icon { width: 32px; height: 32px; }
            .tab-label .tab-icon svg { width: 16px; height: 16px; }
            .tab-panel { padding: 28px 24px; }
        }
        @media (max-width: 768px) {
            .desktop-tabs { display: none; }
            .mobile-accordion { display: block; }
            .panel-header { flex-direction: column; align-items: flex-start; gap: 12px; }
        }
