/* ===========================================
   CASE STUDY ISOLATION WRAPPER
=========================================== */
.case-study-wrapper {
    background: #111; /* Dark background behind the floating card */
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 80px;
}

/* ===========================================
   HERO SECTION
=========================================== */
.case-study-wrapper .case-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Overlay */
.case-study-wrapper .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.7), rgba(0,0,0,.3));
    z-index: 1;
}

/* Content */
.case-study-wrapper .hero-container-layout {
    position: relative;
    z-index: 3;
}

.case-study-wrapper .hero-content {
    max-width: 400px;
    color: #fff;
}

.case-study-wrapper .hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.case-study-wrapper .hero-content p {
    font-size: 1.15rem;
    opacity: .9;
}

/* ✅ WATERMARK – MATCHES DESIGN */
.case-study-wrapper .location-watermark {
    position: absolute;
    right: 5vw;
    bottom: 18vh;
    font-size: clamp(2.5rem, 10vw, 7.5rem);
    font-weight: 800;
    color: rgba(255,255,255,.18);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}
.case-study-wrapper .hero-container-layout {
    padding-left: clamp(20px, 6vw, 80px);
    padding-right: clamp(20px, 6vw, 80px);
}

/* Mobile */
@media (max-width: 768px) {
    .case-study-wrapper .location-watermark {
        bottom: 22vh;
        font-size: clamp(3rem, 14vw, 6rem);
    }
}


/* ===========================================
   MAIN CARD (FLOATING LAYOUT)
=========================================== */
.case-study-wrapper .main-content-container {
    position: relative;
    z-index: 10;
    margin-top: -150px; /* Pulls the white card UP over the image */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.case-study-wrapper .case-card {
    background: #fff;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* --- Intro Text --- */
.case-study-wrapper .case-intro {
    margin-bottom: 50px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.case-study-wrapper .case-intro p {
    margin-bottom: 20px;
}

/* --- Grid Layout --- */
.case-study-wrapper .case-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* Text content wider than sidebar */
    gap: 60px;
}

/* --- Left Column Content --- */
.case-study-wrapper .case-section {
    margin-bottom: 40px;
}

/* Title with Blue Underline */
.case-study-wrapper .section-title-left {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.case-study-wrapper .section-title-left::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #00b4d8; /* CareLine Blue */
    margin-top: 8px;
}

.case-study-wrapper .case-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

/* List Style */
.case-study-wrapper .case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study-wrapper .case-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #444;
}

.case-study-wrapper .case-list li::before {
    content: '•';
    color: #00b4d8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- Right Column Sidebar --- */
.case-study-wrapper .case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-study-wrapper .sidebar-box {
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* Blue Box */
.case-study-wrapper .blue-box {
    background: #2D9CDB; /* Bright Blue */
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Grey Growth Box */
.case-study-wrapper .grey-box {
    background: #EAEAEA; /* Light Grey */
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.case-study-wrapper .big-stat {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 10px;
}

.case-study-wrapper .stat-text {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 80%;
    margin: 0 auto;
}

/* PDF Download Box */
.case-study-wrapper .pdf-box {
    background: #F5F5F5;
    text-align: center;
}

.case-study-wrapper .pdf-box h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.case-study-wrapper .pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.case-study-wrapper .pdf-link:hover {
    opacity: 0.7;
}

.case-study-wrapper .pdf-icon {
    width: 50px;
    height: 50px;
}

.case-study-wrapper .pdf-text {
    font-size: 0.8rem;
    color: #666;
}

/* ===========================================
   TESTIMONIAL SECTION
=========================================== */
.case-study-wrapper .case-testimonial {
    margin-top: 60px;
}

.case-study-wrapper .testimonial-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.case-study-wrapper .testimonial-box {
    background: #B6CED9; /* Muted Light Blue */
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 4px;
}

.case-study-wrapper .person-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.case-study-wrapper .quote-content {
    position: relative;
    flex: 1;
}

.case-study-wrapper .quote-content p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

.case-study-wrapper .quote-mark {
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
    position: absolute;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.case-study-wrapper .quote-mark.left {
    top: -10px;
    left: -10px;
}

.case-study-wrapper .quote-mark.right {
    bottom: -30px;
    right: 0;
}

/* ===========================================
   RESPONSIVE STYLES
=========================================== */
@media (max-width: 900px) {
    .case-study-wrapper .case-card {
        padding: 30px;
    }

    .case-study-wrapper .case-grid {
        grid-template-columns: 1fr; /* Stack Sidebar below text */
        gap: 40px;
    }

    .case-study-wrapper .location-watermark {
        font-size: 5rem;
        bottom: 0;
    }
    
    .case-study-wrapper .testimonial-box {
        flex-direction: column;
        text-align: center;
    }
}