/* Single case study — aligned with blog detail layout */

.cs-detail-main {
    background: var(--white);
}

.cs-detail-section {
    padding: 48px 0 80px;
}

.cs-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 48px;
    align-items: start;
}

.cs-detail-content {
    min-width: 0;
    max-width: 956px;
}

.cs-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #5f5d68;
}

.cs-detail-breadcrumb a {
    color: var(--icons-color);
    text-decoration: none;
}

.cs-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.cs-detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
}

.cs-detail-badge {
    display: inline-flex;
    width: fit-content;
    background: rgba(180, 177, 238, 0.9);
    color: rgba(8, 8, 59, 1);
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 50px;
}

.cs-detail-subtitle {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.6%;
    color: rgba(184, 167, 255, 1);
}

.cs-detail-header h1 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.18;
    color: var(--headt-color);
    margin: 0;
}

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

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

.cs-detail-meta-item i {
    font-size: 14px;
    color: #5f5d68;
}

.cs-detail-meta-item span {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    color: #5f5d68;
}

.cs-detail-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 34px;
    aspect-ratio: 956 / 487;
    background: #0b0b2e;
}

.cs-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(54, 12, 12, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.cs-detail-lead {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.625;
    color: var(--p-color);
    margin: 0 0 24px;
}

.cs-detail-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 929px;
}

.cs-detail-html {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--p-color);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.625;
}

.cs-detail-html > *:first-child {
    margin-top: 0;
}

.cs-detail-html > *:last-child {
    margin-bottom: 0;
}

.cs-detail-html h1,
.cs-detail-html h2,
.cs-detail-html h3,
.cs-detail-html h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    color: #1a1a4d;
    line-height: 1.33;
    margin: 12px 0 0;
}

.cs-detail-html h2,
.cs-detail-html h3 {
    font-size: 24px;
}

.cs-detail-html h4 {
    font-size: 20px;
}

.cs-detail-html p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.625;
    color: var(--p-color);
    margin: 0;
}

.cs-detail-html ul,
.cs-detail-html ol {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-detail-html li {
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.625;
    color: var(--p-color);
}

.cs-detail-html a {
    color: var(--icons-color);
    text-decoration: underline;
}

.cs-detail-html img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.cs-detail-html blockquote {
    margin: 0;
    padding: 16px 20px;
    border-left: 4px solid var(--icons-color);
    background: var(--light-bg);
    border-radius: 0 12px 12px 0;
    color: #5f5d68;
}

.cs-detail-back {
    display: inline-flex;
    margin-top: 36px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--icons-color);
    text-decoration: none;
}

.cs-detail-back:hover {
    text-decoration: underline;
}

.cs-detail-sidebar {
    position: sticky;
    top: 110px;
    margin-top: 120px;
}

.cs-latest-panel {
    background: var(--light-bg);
    border-radius: 24px 0 0 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-right: calc(-5vw);
    min-height: 200px;
}

.cs-latest-panel h2 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.33;
    color: var(--headt-color);
    text-align: right;
    margin: 0 0 4px;
}

.cs-side-story {
    background: var(--white);
    border: 1px solid #a8aed0;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-side-story-image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    height: 160px;
}

.cs-side-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-side-category {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: rgba(184, 167, 255, 1);
}

.cs-side-story h3 {
    margin: 0;
    font-family: Inter, sans-serif !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.66;
}

.cs-side-story h3 a {
    color: #111827 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-side-story h3 a:hover {
    color: var(--icons-color) !important;
}

.cs-read-more {
    font-family: Inter, sans-serif !important;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.625;
    color: #7b61ff !important;
    width: fit-content;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cs-read-more:hover {
    opacity: 0.8;
}

.cs-side-empty {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #5f5d68;
    margin: 0;
    text-align: right;
}

@media (max-width: 1199.98px) {
    .cs-detail-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 32px;
    }

    .cs-detail-header h1 {
        font-size: 36px;
    }

    .cs-latest-panel {
        margin-right: 0;
        border-radius: 24px;
    }
}

@media (max-width: 991.98px) {
    .cs-detail-section {
        padding: 32px 0 64px;
    }

    .cs-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-detail-sidebar {
        position: static;
        margin-top: 0;
    }

    .cs-latest-panel {
        border-radius: 24px;
        margin-right: 0;
    }

    .cs-latest-panel h2 {
        text-align: left;
    }

    .cs-detail-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .cs-detail-section {
        padding: 24px 0 48px;
    }

    .cs-detail-header {
        margin-bottom: 24px;
    }

    .cs-detail-header h1 {
        font-size: 26px;
    }

    .cs-detail-meta-item span {
        font-size: 14px;
    }

    .cs-detail-hero {
        border-radius: 16px;
        margin-bottom: 24px;
        aspect-ratio: 16 / 10;
    }

    .cs-detail-html h2,
    .cs-detail-html h3 {
        font-size: 20px;
    }

    .cs-latest-panel {
        padding: 24px 16px;
    }
}
