/* =========================================================
   Deliciously Ella case study  |  Bootstrap 4 + scoped CSS
   Every rule starts with .de-case-study, so nothing leaks
   into the rest of the site. No font declarations for typeface are used.
   ========================================================= */

.de-case-study {
    --green-900: #10261f;
    --green-800: #1b3d33;
    --green-700: #234c3f;
    --green-600: #2e6350;
    --green-500: #3d7a63;
    --sage: #c5e3c0;
    --sage-soft: #e6efdf;
    --sage-pale: #d3e6cd;
    --cream: #f5f3ee;
    --orange: #e8683a;
    --orange-dark: #d2562b;
    --text: #3b4540;
    --muted: #6c766f;
    --line: #e3e1da;
    --shadow: 0 10px 30px rgba(16, 38, 31, .08);
    --shadow-lg: 0 24px 60px rgba(16, 38, 31, .18);
    --radius: 20px;
    position: relative;
    color: var(--text);
    background: var(--cream);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.de-case-study *,
.de-case-study *::before,
.de-case-study *::after {
    box-sizing: border-box
}

/* scoped resets (Bootstrap adds margins we do not want here) */
.de-case-study h1,
.de-case-study h2,
.de-case-study h3,
.de-case-study p,
.de-case-study ul,
.de-case-study dl,
.de-case-study dd,
.de-case-study figure {
    margin: 0;
    padding: 0
}

.de-case-study h1,
.de-case-study h2,
.de-case-study h3 {
    color: var(--green-700);
    line-height: 1.2
}

.de-case-study img {
    display: block;
    max-width: 100%;
    height: auto
}

.de-case-study .container {
    max-width: 1220px;
    padding-left: 20px;
    padding-right: 20px
}

/* section spacing: 30px between sections */
.de-case-study .de-sec {
    position: relative;
    padding: 30px 0
}

/* grid helpers */
.de-case-study .de-gap {
    margin-bottom: 24px
}

.de-case-study .de-grid {
    margin-top: 36px;
    margin-bottom: -24px
}

/* eyebrow + titles */
.de-case-study .de-dash {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin-bottom: 18px
}

.de-case-study .de-sec-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    margin-bottom: 20px
}

.de-case-study .de-sec-lead {
    max-width: 880px;
    color: var(--text);
    font-size: 17px
}

.de-case-study .de-body {
    margin-bottom: 28px;
    font-size: 16.5px
}

/* buttons (Bootstrap .btn + theme classes) */
.de-case-study .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    padding: 16px 30px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-align: center;
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s
}

.de-case-study .de-btn-orange {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 104, 58, .35)
}

.de-case-study .de-btn-orange:hover,
.de-case-study .de-btn-orange:focus {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(232, 104, 58, .45);
    outline: 0
}

.de-case-study .de-btn-ghost,
.de-case-study .de-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55)
}

.de-case-study .de-btn-ghost:hover,
.de-case-study .de-btn-ghost:focus,
.de-case-study .de-btn-outline:hover,
.de-case-study .de-btn-outline:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    outline: 0
}

/* hero */
.de-case-study .de-hero {
    background: radial-gradient(1000px 600px at 85% 20%, rgba(61, 122, 99, .55), transparent 60%), linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 45%, var(--green-600) 100%);
    color: #fff;
    padding: 30px 0;
    overflow: hidden
}

.de-case-study .de-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4.2vw, 54px);
    font-weight: 600;
    margin-bottom: 26px
}

.de-case-study .de-hero-logo {
    width: 170px;
    margin-bottom: 26px
}

.de-case-study .de-intro {
    font-size: 18px;
    color: rgba(255, 255, 255, .88);
    max-width: 620px;
    margin-bottom: 34px
}

.de-case-study .de-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center
}

.de-case-study .de-hero-visual {
    position: relative;
    padding: 34px 0 34px 10px
}

.de-case-study .de-hero-visual>img {
    width: 100%;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .25))
}

.de-case-study .de-chip {
    position: absolute;
    background: #fff;
    color: var(--green-700);
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    z-index: 3;
    animation: deFloat 7s ease-in-out infinite
}

.de-case-study .de-chip b {
    display: block;
    font-size: 20px;
    font-weight: 600
}

.de-case-study .de-chip-a {
    top: 0;
    right: 12%
}

.de-case-study .de-chip-b {
    left: -6px;
    bottom: 6px;
    animation-delay: 1.2s
}

@keyframes deFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.de-case-study .de-hero-stats {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .2)
}

.de-case-study .de-stat {
    padding: 22px 14px 8px 0
}

.de-case-study .de-stat strong {
    display: block;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    color: #fff;
    line-height: 1.2
}

.de-case-study .de-stat span {
    font-size: 14px;
    color: rgba(255, 255, 255, .75)
}

/* about + understanding */
.de-case-study .de-about-logo {
    width: 150px;
    margin-bottom: 22px
}

.de-case-study .de-card-snap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 34px;
    box-shadow: var(--shadow)
}

.de-case-study .de-card-snap h3 {
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-500);
    margin-bottom: 10px
}

.de-case-study .de-snap-row {
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 15px
}

.de-case-study .de-snap-row dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-500);
    padding-top: 3px
}

.de-case-study .de-snap-row dd {
    color: var(--green-800)
}

.de-case-study .de-req-title {
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-500);
    margin-bottom: 14px
}

.de-case-study .de-req {
    list-style: none;
    display: grid;
    gap: 10px
}

.de-case-study .de-req li {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #efede6;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--green-700);
    transition: transform .25s, background .25s
}

.de-case-study .de-req li:hover {
    transform: translateX(6px);
    background: var(--sage-soft)
}

.de-case-study .de-req li span {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700
}

/* challenges */
.de-case-study .de-challenges {
    background: #fff
}

.de-case-study .de-ch {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden
}

.de-case-study .de-ch::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--orange), transparent);
    opacity: 0;
    transition: opacity .3s
}

.de-case-study .de-ch:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--sage)
}

.de-case-study .de-ch:hover::before {
    opacity: 1
}

.de-case-study .de-num {
    font-size: 38px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
    line-height: 1.2
}

.de-case-study .de-ch h3 {
    font-size: 20px;
    margin-bottom: 14px
}

.de-case-study .de-ch p {
    font-size: 15px
}

/* impact */
.de-case-study .de-impact {
    background: radial-gradient(900px 400px at 10% 0, rgba(61, 122, 99, .4), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-800));
    color: #fff
}

.de-case-study .de-impact h2 {
    color: #fff
}

.de-case-study .de-kpi {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 26px 22px;
    transition: transform .3s, background .3s
}

.de-case-study .de-kpi:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .12)
}

.de-case-study .de-kpi strong {
    display: block;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2
}

.de-case-study .de-kpi h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px
}

.de-case-study .de-kpi p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5
}

.de-case-study .de-note {
    margin-top: 46px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .7)
}

/* solution cards + gallery cards (shared image box) */
.de-case-study .de-sol,
.de-case-study .de-gal {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s
}

.de-case-study .de-sol:hover,
.de-case-study .de-gal:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg)
}

.de-case-study .de-sol .de-img,
.de-case-study .de-gal .de-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sage-soft), var(--sage-pale));
    display: flex;
    align-items: center;
    justify-content: center
}

.de-case-study .de-sol .de-img img,
.de-case-study .de-gal .de-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .6s
}

.de-case-study .de-sol:hover .de-img img,
.de-case-study .de-gal:hover .de-img img {
    transform: scale(1.04)
}

.de-case-study .de-sol .de-img.de-contain img,
.de-case-study .de-gal .de-img.de-contain img {
    object-fit: contain;
    object-position: center;
    padding: 16px
}

.de-case-study .de-txt {
    padding: 26px 26px 30px
}

.de-case-study .de-tag {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--orange);
    margin-bottom: 8px
}

.de-case-study .de-sol h3 {
    font-size: 21px;
    margin-bottom: 12px
}

.de-case-study .de-sol p {
    font-size: 15px
}

/* features */
.de-case-study .de-features {
    background: #fff
}

.de-case-study .de-feat {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s, background .3s
}

.de-case-study .de-feat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    background: var(--sage-soft)
}

.de-case-study .de-n {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-700);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: grid;
    place-items: center;
    margin-bottom: 16px
}

.de-case-study .de-feat h3 {
    font-size: 18.5px;
    margin-bottom: 10px
}

.de-case-study .de-feat p {
    font-size: 14.5px;
    margin-bottom: 16px
}

.de-case-study .de-benefit {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #c9d3c5;
    font-size: 14px;
    color: var(--green-800)
}

.de-case-study .de-benefit b {
    color: var(--orange);
    font-weight: 700
}

/* process */
.de-case-study .de-timeline {
    position: relative;
    margin-top: 50px
}

.de-case-study .de-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 56px 26px 30px;
    transition: transform .3s, box-shadow .3s
}

.de-case-study .de-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.de-case-study .de-dot {
    position: absolute;
    left: 26px;
    top: -2px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    display: grid;
    place-items: center;
    border: 5px solid var(--cream);
    box-shadow: var(--shadow)
}

.de-case-study .de-step h3 {
    font-size: 20px;
    margin-bottom: 12px
}

.de-case-study .de-step p {
    font-size: 15px
}

/* tech */
.de-case-study .de-tech {
    background: linear-gradient(180deg, #fff, var(--sage-soft))
}

.de-case-study .de-tech-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .3s, box-shadow .3s
}

.de-case-study .de-tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.de-case-study .de-tech-card h3 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 16px
}

.de-case-study .de-tech-card ul {
    list-style: none;
    display: grid;
    gap: 10px
}

.de-case-study .de-tech-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--green-800);
    background: var(--cream);
    padding: 10px 14px;
    border-radius: 12px
}

.de-case-study .de-tech-card li img,
.de-case-study .de-tech-card li .de-lg {
    width: 22px;
    height: 22px;
    flex: none;
    object-fit: contain
}

.de-case-study .de-tech-card li .de-lg {
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--green-700);
    color: #fff;
    font-size: 11px;
    font-weight: 700
}

/* gallery */
.de-case-study .de-cap {
    padding: 22px 24px 26px
}

.de-case-study .de-gal h3 {
    font-size: 19px;
    margin-bottom: 8px
}

.de-case-study .de-gal p {
    font-size: 14.5px;
    color: var(--muted)
}

/* results */
.de-case-study .de-results {
    background: var(--cream)
}

.de-case-study .de-results p {
    margin-bottom: 18px;
    font-size: 16.5px
}

.de-case-study .de-res-visual {
    position: relative;
    background: var(--sage-pale);
    border-radius: 28px;
    padding: 30px 30px 96px
}

.de-case-study .de-res-visual img {
    width: 100%;
    border-radius: 12px
}

.de-case-study .de-badge {
    position: absolute;
    bottom: 22px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: var(--shadow);
    color: var(--green-700);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35
}

.de-case-study .de-badge b {
    display: block;
    font-size: 22px;
    font-weight: 600
}

.de-case-study .de-badge-l {
    left: 22px
}

.de-case-study .de-badge-r {
    right: 22px
}

/* cta */
.de-case-study .de-cta {
    background: radial-gradient(800px 400px at 90% 0, rgba(61, 122, 99, .55), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-800) 55%, var(--green-700));
    color: #fff
}

.de-case-study .de-cta h2 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 20px
}

.de-case-study .de-cta p {
    color: rgba(255, 255, 255, .88);
    font-size: 17px
}

.de-case-study .de-cta-box {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    padding: 30px;
    display: grid;
    gap: 16px;
    backdrop-filter: blur(8px)
}

/* scroll reveal (only hidden when JS is running) */
.de-case-study.de-js .de-rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease
}

.de-case-study.de-js .de-rv.de-in {
    opacity: 1;
    transform: none
}

@media (prefers-reduced-motion:reduce) {
    .de-case-study.de-js .de-rv {
        opacity: 1;
        transform: none;
        transition: none
    }

    .de-case-study .de-chip {
        animation: none
    }
}

/* ---------- responsive ---------- */
@media (min-width:1200px) {
    .de-case-study .de-timeline::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 25px;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--green-500) 0 8px, transparent 8px 16px);
        opacity: .5
    }

    .de-case-study .de-stat {
        border-right: 1px solid rgba(255, 255, 255, .15)
    }

    .de-case-study .de-hero-stats .col-xl-2:last-child .de-stat {
        border-right: 0
    }
}

@media (max-width:1199.98px) {
    .de-case-study .de-timeline {
        margin-top: 36px
    }

    .de-case-study .de-timeline .de-gap {
        margin-bottom: 34px
    }
}

@media (max-width:991.98px) {
    .de-case-study .de-hero-visual {
        max-width: 620px;
        margin: 30px auto 0
    }

    .de-case-study .de-sec .row>.col-lg-6+.col-lg-6,
    .de-case-study .de-sec .row>.col-lg-5 {
        margin-top: 30px
    }
}

@media (max-width:575.98px) {
    .de-case-study .container {
        padding-left: 16px;
        padding-right: 16px
    }

    .de-case-study .de-hero-logo {
        width: 140px
    }

    .de-case-study .de-intro {
        font-size: 16.5px
    }

    .de-case-study .de-hero-cta {
        flex-direction: column;
        align-items: stretch
    }

    .de-case-study .btn {
        width: 100%
    }

    .de-case-study .de-chip {
        padding: 9px 14px;
        font-size: 12px
    }

    .de-case-study .de-chip b {
        font-size: 16px
    }

    .de-case-study .de-chip-a {
        right: 4%
    }

    .de-case-study .de-chip-b {
        left: 0
    }

    .de-case-study .de-card-snap {
        padding: 22px
    }

    .de-case-study .de-snap-row dt {
        margin-bottom: 2px
    }

    .de-case-study .de-res-visual {
        padding: 18px 14px 90px;
        border-radius: 22px
    }

    .de-case-study .de-badge {
        padding: 10px 14px;
        font-size: 12px
    }

    .de-case-study .de-badge b {
        font-size: 18px
    }

    .de-case-study .de-badge-l {
        left: 12px
    }

    .de-case-study .de-badge-r {
        right: 12px
    }

    .de-case-study .de-cta-box {
        padding: 22px
    }
}