.case-study-page {
    background: #f8fafc;
}

.case-grid-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 34px 34px;
}

.case-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(100px);
    opacity: 0.28;
    animation: caseFloat 10s ease-in-out infinite;
}

.case-orb-one {
    width: 380px;
    height: 380px;
    top: -100px;
    left: -80px;
    background: #da8622;
}

.case-orb-two {
    width: 340px;
    height: 340px;
    right: -120px;
    bottom: 10%;
    background: #a22446;
    animation-delay: 2.2s;
}

.case-orb-three {
    width: 250px;
    height: 250px;
    left: 40%;
    bottom: -80px;
    background: #f4ce7b;
    animation-delay: 4.4s;
}

.case-hero-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(2, 6, 23, 0.45);
}

.case-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(218, 134, 34, 0.24), rgba(162, 36, 70, 0.2) 48%, rgba(244, 206, 123, 0.22));
    pointer-events: none;
}

.case-copy-readable {
    line-height: 1.85;
}

.case-results-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.25);
}

.case-feature-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.case-feature-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.case-light-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-light-card:hover {
    transform: translateY(-6px);
    border-color: rgba(218, 134, 34, 0.5);
    box-shadow: 0 18px 34px rgba(162, 36, 70, 0.15);
}

.case-light-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(150deg, #da8622, #a22446);
    box-shadow: 0 10px 20px rgba(162, 36, 70, 0.24);
}

.case-framework-split-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-framework-split-card:hover {
    transform: translateY(-4px);
    border-color: rgba(218, 134, 34, 0.5);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.case-framework-split-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a22446;
    background: rgba(162, 36, 70, 0.08);
    border: 1px solid rgba(162, 36, 70, 0.25);
    margin-top: 2px;
}

.case-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.case-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.case-gallery-card:hover img {
    transform: scale(1.06);
}

.case-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.case-gallery-card:hover::after {
    opacity: 1;
}

.case-study-link {
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-study-link:hover {
    transform: translateY(-4px);
    border-color: rgba(218, 134, 34, 0.55);
}

.case-study-link-light {
    border-color: #e2e8f0;
    background: #fff;
}

.case-related-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    aspect-ratio: 16 / 9;
}

.case-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.case-study-link:hover .case-related-image {
    transform: scale(1.04);
}

@keyframes caseFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        transform: translateY(-14px) translateX(8px) scale(1.06);
    }
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
}

@media (max-width: 767px) {
    .case-orb-one,
    .case-orb-two,
    .case-orb-three {
        opacity: 0.18;
        filter: blur(80px);
    }

    .case-feature-image {
        min-height: 280px;
    }

    .case-framework-split-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
