@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.case-details-body, .case-details-body * {
    box-sizing: border-box;
}
.case-details-body {
    font-family: 'Poppins', Arial, sans-serif;
    /* background: #f8f9fa; */
    color: #23272e;
    min-height: 100vh;
}
img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}
a { color: inherit; text-decoration: none; }

/* HERO BANNER UPGRADE */
.case-details-hero-banner {
    position: relative;
    min-height: 340px;
    height: 55vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.case-details-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,38,66,0.7) 0%, rgba(33,37,41,0.4) 70%,rgba(0,0,0,0.32) 100%);
    z-index: 1;
}
.case-details-hero-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 5rem;
    letter-spacing: -.5px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    line-height: 1.06;
    margin: 0;
    padding: 0 0.25em;
    position: relative;
}
@media (max-width:800px) {
    .case-details-hero-title {
        font-size: 1.9rem;
    }
    .case-details-hero-banner {
        min-height: 180px;
        height: 30vh;
    }
}

/* CONTAINER & CARD === */
.case-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.case-content {
    background: #fff;
    /* margin-top: -85px; */
    border-radius: 22px;
    padding: 70px 43px 50px;
    /* box-shadow: 0 20px 60px 0 rgba(0,0,0,0.08); */
    position: relative;
    z-index: 3;
}
@media (max-width: 700px) {
    .case-content { padding: 38px 10px 40px; margin-top: -56px; }
}

/* HEADINGS & TEXT SCALE (match homepage) */
.case-details-heading {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #23272e;
    margin: 0 0 1.2em 0;
    line-height: 1.15;
}
@media (max-width: 900px) {
    .case-details-heading {
        font-size: 1.398rem;
    }
}
/* --- SUBHEADING STYLES, ALWAYS UNDERLINED --- */
.case-details-subheading {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a3344;
    margin: 1.2em 0 .7em 0;
    line-height: 1.28;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.case-details-subheading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 7px;
    background: #53A2E8;
    border-radius: 4px;
}
/* Remove/override previous .text-block h3::after to avoid double lines */
.text-block h3::after { display: none !important; content: none !important; }

.case-details-paragraph {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1.5rem;
    color: #49505b;
    line-height: 1.85;
    margin: 0 0 1.1em 0;
}
.case-details-content-strong {
    font-weight: 600;
    color: #23272e;
}

/* CONTENT FLOW === */
.content-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
}
@media (max-width: 900px) {
    .content-flow {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

.text-block {
    background: none;
    padding: 0;
}
.text-block h3 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.text-block p {
    font-size: 1.5rem;
    color: #3a4454;
    margin-bottom: 16px;
}
.text-block p:last-child { margin-bottom: 0; }

.image-block {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f7fbff;
    margin-bottom: 12px;
    /* box-shadow: 0 7px 17px rgba(0,16,70,0.07); */
}
.image-block img {
    border-radius: 16px;
    transition: transform 0.13s;
    width: 100%;
}
.image-block:hover img { transform: scale(1.03); }

.image-caption { display: none; }

.full-image {
    grid-column: 1 / -1;
    margin: 32px 0 28px 0;
}

/* BUTTON STYLE (if any) */
.case-details-nav-btn {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.09rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 14px;
}

/* === NAVIGATION === */
.case-details-nav-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 64px 0 0 0;
    padding: 40px 0 0 0;
    border-top: 1px solid #ebecf0;
}
.case-details-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins',sans-serif;
    font-size: 1.14rem;
    font-weight: 600;
    background: #53A2E8;
    color: #fff;
    text-decoration: none;
    padding: 17px 38px;
    border-radius: 14px;
    /* transition: background .22s, color .22s, box-shadow .22s; */
    /* box-shadow: 0 1px 8px 0 rgba(60,88,123,0.12); */
}

.case-details-nav-btn span{
    color: #fff;
}

.case-details-nav-btn:hover {
    background: #479fec;
    color: #fff;
    /* box-shadow: 0 3px 14px 2px rgba(30,66,180,0.11); */
}
.case-details-nav-btn--prev .case-details-nav-arrow {
    font-size: 1.6em;
    margin-right: 6px;
}
.case-details-nav-btn--next .case-details-nav-arrow {
    font-size: 1.6em;
    margin-left: 6px;
}

/* --- IMAGE FIXES AND RESPONSIVE GRID --- */
.case-details-image-block img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: none;
}
@media (max-width: 1100px) {
    .case-details-image-block img { height: 220px; }
}
@media (max-width: 600px) {
    .case-details-image-block img { height: 148px; }
}

.case-details-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 44px 0 0 0;
}
@media (max-width: 1000px) {
    .case-details-image-gallery {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width: 600px) {
    .case-details-image-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.case-details-image-gallery .case-details-image-block {
    background: #f7fbff;
    padding: 0;
    border-radius: 14px;
    display: block;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 600px) {
    .case-header h2 {font-size: 1.47rem;}
    .case-content { padding: 20px 2px 25px; }
    .case-details-nav-btn { font-size: 1em; padding: 11px 14px; border-radius: 8px; }
}
