
/* =========================================
   WEBTECHAGE - WHATSAPP API CASE STUDY CSS
========================================= */

.case-detail,
.case-detail * {
    box-sizing: border-box;
}

.case-detail {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #242424;
    line-height: 1.8;
    overflow-x: hidden;
    font-family: inherit;
}

.case-detail img {
    display: block;
    max-width: 100%;
    height: auto;
}

.case-detail a {
    text-decoration: none;
}

/* =========================================
   HERO SECTION
========================================= */

.case-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 65px 0 70px;
    color: #fff;
    background: linear-gradient(
        110deg,
        #390e13 0%,
        #170e10 48%,
        #201b08 100%
    );
}

.case-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.case-hero__container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1450px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    align-items: center;
    gap: 55px;
}

.case-hero__content {
    width: 100%;
    max-width: 730px;
    min-width: 0;
}

.case-breadcrumb {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    margin-bottom: 22px;
}

.case-breadcrumb a {
    color: #fff;
    transition: color .3s ease;
}

.case-breadcrumb a:hover {
    color: #ffc400;
}

.case-hero__label {
    display: inline-block;
    color: #ffc400;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.case-hero__tag {
    display: table;
    padding: 7px 19px;
    margin-bottom: 25px;
    border-radius: 30px;
    background: #ffc400;
    color: #17120a;
    font-size: 14px;
    font-weight: 700;
}

.case-hero__content h1 {
    color: #fff;
    font-size: clamp(32px,3.4vw,48px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 25px;
    overflow-wrap: break-word;
}

.case-hero__content p {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px;
}

.case-hero__image {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-hero__image img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,.3);
}

/* =========================================
   MAIN CONTENT
========================================= */

.case-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   CHALLENGE + SOLUTION
========================================= */

.case-content > section:nth-child(1),
.case-content > section:nth-child(2) {
    width: 100%;
    position: relative;
    padding: 65px 20px 70px;
    margin: 0;
    text-align: center;
    background: #f8f8f6;
}

.case-content > section:nth-child(1)::before,
.case-content > section:nth-child(2)::before {
    display: inline-block;
    padding: 9px 20px;
    margin-bottom: 18px;
    border: 1px solid #ffc5ca;
    border-radius: 30px;
    background: #fcebed;
    color: #ed1c2e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.case-content > section:nth-child(1)::before {
    content: "THE CHALLENGE";
}

.case-content > section:nth-child(2)::before {
    content: "THE SOLUTION";
}

.case-content > section:nth-child(1) h2,
.case-content > section:nth-child(2) h2 {
    color: #111;
    font-size: clamp(28px,3vw,39px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 auto 32px;
}

.case-content > section:nth-child(1) p,
.case-content > section:nth-child(2) p {
    max-width: 950px;
    margin: 0 auto 20px;
    color: #303030;
    font-size: 17px;
    line-height: 1.8;
}

.case-content > section:nth-child(1) ul,
.case-content > section:nth-child(2) ul {
    display: inline-block;
    max-width: 700px;
    margin: 5px auto 22px;
    padding-left: 25px;
    text-align: left;
}

.case-content > section:nth-child(1) li,
.case-content > section:nth-child(2) li {
    color: #303030;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 7px;
}

.case-content > section:nth-child(1) li::marker,
.case-content > section:nth-child(2) li::marker {
    color: #ed1c2e;
}

/* =========================================
   BUSINESS GROWTH & IMPACT
========================================= */

.case-growth-section {
    width: 100%;
    padding: 65px 7%;
    margin: 0;
    color: #fff;
    background: linear-gradient(
        110deg,
        #390e13 0%,
        #170e10 48%,
        #201b08 100%
    );
    overflow: hidden;
}

.case-growth-layout {
    width: 100%;
    max-width: 1450px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    align-items: center;
    gap: 55px;
}

.case-growth-content {
    width: 100%;
    min-width: 0;
}

.case-growth-section h2 {
    color: #fff;
    font-size: clamp(26px,3vw,34px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px;
}

.case-growth-section p {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 17px;
}

.case-growth-content ul {
    padding-left: 23px;
    margin: 12px 0 22px;
}

.case-growth-content li {
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 7px;
}

.case-growth-content li::marker {
    color: #ffc400;
}

.case-dashboard-image {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-dashboard-image img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,.3);
}

/* =========================================
   WHAT CHANGED AFTER WHATSAPP API
========================================= */

.case-whatsapp-changed {
    width: 100%;
    padding: 65px 20px 70px;
    margin: 0;
    text-align: center;
    background: #f8f8f6;
}

.case-whatsapp-changed::before {
    content: "THE BASICS";
    display: inline-block;
    padding: 9px 20px;
    margin-bottom: 18px;
    border: 1px solid #ffc5ca;
    border-radius: 30px;
    background: #fcebed;
    color: #ed1c2e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.case-whatsapp-changed h2 {
    color: #111;
    font-size: clamp(28px,3vw,39px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 auto 38px;
}

.case-whatsapp-changed p {
    max-width: 950px;
    margin: 0 auto 20px;
    color: #303030;
    font-size: 17px;
    line-height: 1.9;
}

/* =========================================
   BACK TO CASE STUDIES
========================================= */

.case-back {
    width: 90%;
    max-width: 900px;
    margin: 30px auto 0;
    padding-bottom: 30px;
}

.case-back a {
    color: #ed1c2e;
    font-size: 15px;
    font-weight: 700;
    transition: color .3s ease;
}

.case-back a:hover {
    color: #a90014;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .case-hero {
        padding: 50px 0;
    }

    .case-hero__container {
        gap: 28px;
    }

    .case-hero__content h1 {
        font-size: 36px;
    }

    .case-growth-section {
        padding: 50px 5%;
    }

    .case-growth-layout {
        gap: 28px;
    }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .case-hero {
        padding: 40px 0 45px;
    }

    .case-hero__container {
        width: 90%;
        grid-template-columns: minmax(0,1fr);
        gap: 30px;
    }

    .case-hero__content {
        max-width: 100%;
    }

    .case-hero__content h1 {
        font-size: clamp(28px,7vw,34px);
        line-height: 1.25;
    }

    .case-hero__content p {
        font-size: 15px;
    }

    .case-hero__image img {
        max-height: none;
        border-radius: 15px;
    }

    .case-content > section:nth-child(1),
    .case-content > section:nth-child(2) {
        padding: 50px 22px;
    }

    .case-content > section:nth-child(1) h2,
    .case-content > section:nth-child(2) h2 {
        font-size: 29px;
        margin-bottom: 25px;
    }

    .case-content > section:nth-child(1) p,
    .case-content > section:nth-child(2) p {
        font-size: 15px;
    }

    .case-growth-section {
        padding: 40px 6%;
    }

    .case-growth-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 30px;
    }

    .case-growth-section h2 {
        font-size: 27px;
    }

    .case-dashboard-image img {
        max-height: none;
        border-radius: 15px;
    }

    .case-whatsapp-changed {
        padding: 50px 22px;
    }

    .case-whatsapp-changed h2 {
        font-size: 29px;
        margin-bottom: 28px;
    }

    .case-whatsapp-changed p {
        font-size: 15px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .case-hero__container {
        width: 92%;
    }

    .case-hero__content h1 {
        font-size: 29px;
    }

    .case-hero__label {
        font-size: 13px;
    }

    .case-hero__tag {
        font-size: 12px;
    }

    .case-breadcrumb {
        font-size: 12px;
    }

    .case-content > section:nth-child(1),
    .case-content > section:nth-child(2) {
        padding: 40px 18px;
    }

    .case-content > section:nth-child(1) h2,
    .case-content > section:nth-child(2) h2 {
        font-size: 25px;
    }

    .case-content > section:nth-child(1) p,
    .case-content > section:nth-child(2) p {
        font-size: 14px;
    }

    .case-content > section:nth-child(1) li,
    .case-content > section:nth-child(2) li {
        font-size: 14px;
    }

    .case-growth-section {
        padding: 35px 5%;
    }

    .case-growth-content li,
    .case-growth-section p {
        font-size: 15px;
    }

    .case-whatsapp-changed {
        padding: 40px 18px;
    }

    .case-whatsapp-changed h2 {
        font-size: 25px;
    }

    .case-whatsapp-changed p {
        font-size: 14px;
    }
}
