/* Case studies listing — matches homepage cards */

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

.cs-hero {
    padding: 72px 0 40px;
    background: var(--light-bg);
}

.cs-hero-label {
    display: block;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    color: #5f5d68;
    margin-bottom: 10px;
}

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

.cs-hero p {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(26, 26, 77, 1);
    margin: 0;
    max-width: 640px;
}

.case-studies.cs-listing {
    padding: 24px 0 80px;
    background-color: rgba(245, 246, 255, 1);
    width: 100%;
}

.case-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

a.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

a.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    height: 220px;
    background: #0b0b2e;
}

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

.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.tag {
    background: rgba(180, 177, 238, 0.9);
    color: rgba(8, 8, 59, 1);
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: 10px;
    line-height: 30px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 50px;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category {
    display: block;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 12px;
    color: rgba(184, 167, 255, 1);
}

.card-content h3 {
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 32px;
    color: rgba(26, 26, 77, 1);
}

.card-content p {
    color: rgba(71, 70, 80, 1);
    margin-bottom: 16px;
    font-weight: 400;
    flex: 1;
}

.cs-read-more {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--icons-color);
    margin-top: auto;
}

.cs-empty {
    text-align: center;
    padding: 64px 16px;
    background: var(--white);
    border-radius: 24px;
}

.cs-empty h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--headt-color);
    margin-bottom: 8px;
}

.cs-empty p {
    color: var(--p-color);
    margin: 0;
}

@media (max-width: 991.98px) {
    .cs-hero {
        padding: 48px 0 24px;
    }

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

@media (max-width: 767.98px) {
    .cs-hero {
        padding: 36px 0 16px;
    }

    .cs-hero h1 {
        font-size: 28px;
    }

    .cs-hero p {
        font-size: 16px;
    }

    .case-studies.cs-listing {
        padding: 16px 0 56px;
    }

    .card-image {
        height: 200px;
    }

    .card-content h3 {
        font-size: 20px;
        line-height: 28px;
    }
}
