/* ═══════════════════════════════════════════════════
   Case Study Detail – Hero Banner
   • Desktop : content block (left ~60%) | bg image right
   • Mobile  : image fills full-width, content BELOW image
═══════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.cs-hero-section {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ── Gradient overlay: white left → transparent right (desktop) ── */
.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.92) 35%,
            rgba(255, 255, 255, 0.60) 55%,
            rgba(255, 255, 255, 0.0) 72%);
    z-index: 1;
}

/* ── Content block: left column (desktop) ── */
.cs-hero-content {
    position: relative;
    z-index: 2;
    width: 60%;
    padding: 60px 0 60px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* ── Heading ── */
.cs-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: Montserrat, sans-serif;
    color: #111111;
    line-height: 1.18;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

/* ── Description ── */
.cs-hero-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: #444444;
    margin: 0 0 28px 0;
    max-width: 460px;
}

/* ── Download button ── */
.cs-hero-btn {
    display: inline-block;
    background-color: #e8111e !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: Montserrat, sans-serif !important;
    padding: 13px 28px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0.3px;
    transition: background-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(232, 17, 30, 0.35);
}

.cs-hero-btn:hover {
    background-color: #c50e19 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 17, 30, 0.45);
}

/* ── Back link (desktop & mobile) ── */
.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    top: 20px;
    left: 60px;
    z-index: 3;
    font-size: 13px;
    text-decoration: none;
    color: #555555 !important;
    transition: color 0.2s ease;
}

.cs-back-link:hover {
    color: #e8111e !important;
    text-decoration: none;
}

/* ── Mobile content block (below image) – hidden on desktop ── */
.cs-mobile-content {
    display: none;
}

/* ── Mobile title (overlaid on image) – hidden on desktop ── */
.cs-mobile-title {
    display: none;
}

/* ── Mobile back link (inside .cs-mobile-content) ── */
.cs-back-link-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #555555 !important;
    margin-bottom: 18px;
    transition: color 0.2s ease;
}

.cs-back-link-mobile:hover {
    color: #e8111e !important;
    text-decoration: none;
}

/* ══════════════════════════════════
   Responsive
══════════════════════════════════ */

/* Large tablet */
@media (max-width: 1199px) {
    .cs-hero-section {
        min-height: 460px;
    }

    .cs-hero-content {
        padding: 60px 0 60px 40px;
        width: 58%;
    }

    .cs-hero-title {
        font-size: 2.4rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .cs-hero-section {
        min-height: 400px;
    }

    .cs-hero-overlay {
        background: linear-gradient(to right,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.90) 50%,
                rgba(255, 255, 255, 0.50) 75%,
                rgba(255, 255, 255, 0.0) 90%);
    }

    .cs-hero-content {
        padding: 50px 0 50px 30px;
        width: 58%;
    }

    .cs-hero-title {
        font-size: 2rem;
    }
}

/* ── Mobile (≤767px) ──
   Hero section = image with title overlaid at bottom-left.
   Description + button appear below in .cs-mobile-content.
── */
@media (max-width: 767px) {

    /* Image section: full-width, proportional height */
    .cs-hero-section {
        min-height: 200px;
        height: 52vw;
        max-height: 320px;
        background-position: center center;
        background-size: cover;
        width: 100%;
        align-items: flex-end;
        /* title sits at bottom */
        justify-content: flex-start;
    }

    /* Remove left-to-right gradient overlay on mobile */
    .cs-hero-overlay {
        display: none;
    }

    /* Back link: reposition for mobile */
    .cs-back-link {
        top: 12px;
        left: 16px;
        font-size: 12px;
    }

    .cs-desktop-content {
        display: none;
    }

    /* ── Mobile title overlaid on image ── */
    .cs-mobile-title {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        /* Bottom-up gradient so text is readable on the image */
        background: linear-gradient(to top,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.80) 50%,
                rgba(255, 255, 255, 0.0) 100%);
        padding: 28px 70px 16px 18px;
    }

    .cs-mobile-title__h1 {
        font-size: 1.3rem !important;
        font-weight: 800;
        font-family: Montserrat, sans-serif;
        color: #111111;
        line-height: 1.2;
        margin: 0;
        letter-spacing: -0.3px;
    }

    /* ── Content below the image ── */
    .cs-mobile-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px 32px 18px;
        background: #ffffff;
    }

    /* Description */
    .cs-mobile-content .cs-hero-desc {
        font-size: 13.5px;
        color: #444444;
        margin-bottom: 22px;
        max-width: 100%;
    }

    /* Button */
    .cs-mobile-content .cs-hero-btn {
        padding: 12px 24px !important;
        font-size: 13.5px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .cs-hero-section {
        height: 56vw;
        max-height: 260px;
    }

    .cs-mobile-title__h1 {
        font-size: 1.2rem;
    }

    .cs-mobile-content {
        padding: 18px 16px 28px 16px;
    }
}