/* ===========================
CASE STUDIES
=========================== */

.case-studies {
    padding: 120px 7%;
    background: #fff;
}

/* ---------- Heading (Matching Reference Style, Centered) ---------- */

.case-heading {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.case-heading .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #edf5df;
    border-radius: 999px;
    color: #88b918;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.case-heading h2 {
    font-family: "SuisseIntl", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
}

.case-heading p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.6;
}

/* ---------- Cards Grid ---------- */

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Container */

.case-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: #dcdcdc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Image Container (Prevents Blurring & Distortions) */

.case-card img {
width: 110px;
    height: 110px;
    object-fit: contain;          /* Prevents cropping & blurry stretching */
    background-color: #f7f7f7;   /* Soft background for logos */
    padding: 12px;               /* Breathing room around the logo */
    border-radius: 16px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.case-card:hover img {
    background-color: #f0f0f0;
}

/* Divider */

.case-divider {
    width: 1px;
    height: 80px;
    background: #eeeeee;
    flex-shrink: 0;
}

/* Content Area */

.case-content {
    flex: 1;
}

.case-content h3 {
    font-family: "SuisseIntl", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    color: #111111;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.case-content p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.case-content span {
    color: #111111;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.case-content span i {
    margin-left: 8px;
    color: #88b918;
    transition: transform 0.3s ease;
}

.case-card:hover span {
    color: #88b918;
}

.case-card:hover span i {
    transform: translateX(5px);
}

/* ---------- Responsive Adjustments ---------- */

@media (max-width: 1200px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-studies {
        padding: 80px 5%;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .case-divider {
        display: none;
    }

    .case-card img {
        width: 120px;
        height: 120px;
    }

    .case-content span {
        justify-content: center;
    }
}
