.d-flex {
    display: flex;
}

.text-center {
    text-align: center;
}

.caseStudyBanner {
    background: url(../images/casestudy/banner.webp) no-repeat center center;
    background-size: cover;
    padding: 209px 0 0;
}

.caseStudyInner {
    max-width: 852px;
    width: calc(100% - 40px);
    margin: 0 auto;
    background: url(../images/casestudy/banneSmall.webp) no-repeat center top -15px;
    min-height: 647px;
    position: relative;
    transform: translateY(30px);
}

.caseStudyInner::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 28px solid #fff;
    border-top: 0;
    z-index: 99;
}

.titlePage {
    background-color: #fff;
    padding: 5px 40px 40px;
}

.titlePage h1 {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    color: #1E4683;
}

.titlePage p {
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #525252;
    margin-top: 10px;
}

.titlePage p span {
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #000000;
}

.caseStudyInner .subTitleName {
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    display: inline-block;
    padding: 7px 16px;
    background-color: #E1171F;
    color: #fff;
    position: relative;

    transform: translateY(-50%);
}


/* clientChallanges Css */
.clientChallanges {
    background: linear-gradient(180deg, #D2E4FF 0%, #FFFFFF 51.81%);
    padding: 60px 0 83px;
}

.clientChallanges h5 {
    font-weight: 600;
    font-size: 32px;
    line-height: 140%;
    text-align: center;
    color: #1E4683;
}

h3.sectionTop {
    font-weight: 600;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: #E1171F;
    margin-top: 13px;
}

h3.sectionTop span {
    font-weight: 600;
    font-size: 32px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: #1E4683;
    background-color: #F4F8FF;
    display: inline-block;
    padding: 8px 16px;
}

.clientBackDiv {
    max-width: 1140px;
    width: 100%;
    background-color: #FFFFFF;
    margin: 61px auto 70px;
    position: relative;

    padding: 0px 30px 30px;
}

.clientBackDiv .imgLeft {
    max-width: 244px;
    width: 100%;
    margin-right: 26px;
    text-align: center;
}

.clientBackDiv .imgLeft img {
    max-width: 100%;
    margin-bottom: 1rem;
    height: 200px;
}

.clientBackDiv .contentRight {
    max-width: 810px;
    width: 100%;
}

.clientBackDiv .contentRight p {
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    color: #525252;
    margin-bottom: 1rem;
}

.clientBackDiv .titleStack {
    background: linear-gradient(118.04deg, #1E4683 3.55%, #1A2A38 95.74%);
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #FFFFFF;
    padding: 16px 24px;
    display: inline-block;
    transform: translateY(-30px);
    position: relative;
}

.clientBackDiv .titleStack::after {
    content: "";
    width: 0;
    height: 0;
    border-bottom: 30px solid #10274A;
    border-right: 21px solid transparent;
    position: absolute;
    left: 100%;
    top: 0;
}

.industryCat {
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #525252;
}

.industryCat span {
    display: inline-flex;
    background: linear-gradient(97.46deg, #FFFFFF 6.37%, #FAFAFA 100%);
    border: 1px solid #D4D4D4;
    padding: 10px;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    color: #141414;
    vertical-align: middle;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.ChallengesBlock {
    background-color: #FFFFFF;
    max-width: 1426px;
    margin: 20px auto 0;
    width: 100%;
    position: relative;
}

.ChallengesBlock ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ChallengesBlock ul li {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    /* border-bottom: 1px solid #999999; */
    top: 170px;
    background-color: #FFFFFF;
    position: sticky;
    transition: position ease 0.4s;
    align-items: flex-end;
}

.ChallengesBlock ul li::after {
    content: "";
    position: absolute;
    border-bottom: 1px solid #999999;
    bottom: 0;
    width: 100%;
    left: 0;
}

.ChallengesBlock ul li .numbering {
    max-width: 443px;
    width: 100%;
    margin-right: 30px;
}

.ChallengesBlock ul li .numbering h5 {
    text-align: left;
}

.ChallengesBlock ul li .numbering span {
    font-weight: 600;
    font-size: 70px;
    line-height: 100%;
    background-color: #fff;
    display: block;
    color: white;
    /* white fill */
    -webkit-text-stroke: 1.5px #FF0000;
    /* red outline */
}

.ChallengesBlock ul li .content p {
    font-weight: 400;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: left;
    max-width: 847px;
    width: 100%;
    color: #525252;
}

/* delvalSolution css */
.delvalSolution {
    background: linear-gradient(118.04deg, #1E4683 3.55%, #1A2A38 95.74%);
    padding-top: 66px;
}

.delvalSolution .headingFont,
.delvalSolution .subHeading {
    color: #FFFFFF;
}

.delvalSolution p {
    max-width: 704px;
    width: 70%;
}

.offerdetails {
    margin-bottom: 0;
}

.solutionBlock {
    background-color: #FFFFFF;
    padding: 30px 30px 0;
    background-image: url(../images/casestudy/pattern.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 45% auto;
}

.solutionBlock img {
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.solutionBlock h4 {
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    color: #1E4683;
    margin-bottom: 20px;
    height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 6 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide extra lines */
    text-overflow: ellipsis;
    /* Add "..." at the end */
}

.solutionBlock p {
    height: 150px;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* Limit to 6 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide extra lines */
    text-overflow: ellipsis;
    /* Add "..." at the end */
    width: 100%;
    margin-bottom: 0.5rem;
}


.impactSection {
    background: linear-gradient(180deg, #FFFFFF 0%, #D2E4FF 100%);
    padding: 71px 0 97px;
}

.impactSection h2.headingFont {
    margin-bottom: 15px;
}

.impactSection .subHeading {
    max-width: 848px;
    width: 100%;
    margin: 0 auto 53px;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    text-align: center;
}

.autoTabSection {
    max-width: 1720px;
    width: 100%;
    margin: 60px auto 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 20px;
    color: #10274A;
    position: relative;
}

.leftSideImpact {
    position: relative;
    max-width: 170px;
    width: 100%;
}

/* ---- Tab List ---- */
.autoTabSection .autoTabList {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 200px;
    padding-left: 50px;
    height: 252px;
    justify-content: space-between;
}

/* Divider */
.autoTabSection .autoDivider {
    position: absolute;
    left: 12px;
    top: 0;
    width: 1px;
    height: 252px;
    background: #D2D1D1;
    /* base gray divider */
    border-radius: 2px;
    transition: background 0.5s ease;
    overflow: hidden;
}

.autoTabSection .autoDivider::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: #E1171F;
    /* red fill */
    transition: height 0.6s ease;
}

/* Circle pointer */
.autoTabSection .autoPointer {
    position: absolute;
    left: 6px;
    width: 14px;
    height: 22px;
    background: linear-gradient(118.04deg, #E1171F 3.55%, #B70910 95.74%);
    border-width: 4px 0 4px 0;
    border-style: solid;
    border-color: #FFFFFF;
    transition: top 0.6s ease;
}

/* --- Active Steps Controlled by CSS Classes --- */
.autoTabSection.step-1 .autoPointer {
    top: 0;
}

.autoTabSection.step-2 .autoPointer {
    top: 50%;
    transform: translateY(-50%);
}

.autoTabSection.step-3 .autoPointer {
    top: 100%;
    transform: translateY(-100%);
}

/* Divider Fill Levels */
.autoTabSection.step-1 .autoDivider::after {
    height: 0%;
}

.autoTabSection.step-2 .autoDivider::after {
    height: 50%;
}

.autoTabSection.step-3 .autoDivider::after {
    height: 100%;
}

/* ---- Tab Labels ---- */
.autoTabSection .autoTabList label {
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    transition: color 0.3s;
    font-size: 24px;
    line-height: 120%;
    color: #525252;
}

.autoTabSection .autoTabList label.active {
    color: #E1171F;
}

/* ---- Tab Content ---- */
.autoTabSection .autoTabContent {
    flex: 1;
    position: relative;
    min-height: 200px;
    max-width: 1330px;
    margin-left: auto;
}

.autoTabSection .autoTabPanel {
    display: none;
    gap: 60px;
    align-items: flex-end;
    animation: autoTabFade 0.6s ease;
}

.autoTabSection .autoTabPanel.active {
    display: flex;
}

.autoTabSection .autoTabPanel img {
    width: 100%;
    border-radius: 0px;
    object-fit: cover;
    max-width: 708px;
}

.autoTabSection .autoTabText {
    width: 100%;
    max-width: 562px;
}

.autoTabSection .autoTabText h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 10px;
    background: linear-gradient(118.04deg, #1E4683 3.55%, #1A2A38 95.74%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.autoTabSection .autoTabText p {
    font-size: 16px;
    line-height: 140%;
    color: #000000;
    font-weight: 400;
}

@keyframes autoTabFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.readNextSection {
    background: linear-gradient(180deg, #D2E4FF 0%, #FFFFFF 51.81%);
    padding-top: 9px;
    position: relative;
}

.readNextSection p.subHeading {
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: #525252;
    max-width: 848px;
    width: 100%;
    margin: 0 auto 38px;
}

.readNextSection .headingFont {
    margin-bottom: 20px;
}

/* caseStudyBlock css */
.caseStudyBlock {
    display: flex;
    max-width: 1720px;
    width: 100%;
    justify-content: center;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    margin-bottom: 20px;
    position: sticky;
    top: 170px;
    transform: position 0.4s ease;
}

.caseStudyBlock>img {
    max-width: 1011px;
    width: 65%;
    object-fit: cover;
}

.leftSideContent {
    max-width: 708px;
    width: 45%;
}

.leftSideContent .topRow {
    padding: 30px;
    border-bottom: #CCCCCC 1px solid;
}

.leftSideContent h4 {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #1E4683;
    margin-bottom: 75px;
}

.clientHead {
    color: #525252;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    display: block;
}

.clientName {
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #000000;
    margin-bottom: 20px;
    display: block;
}

.leftSideContent .industryCat p {
    margin-bottom: 10px;
}

.bottomRow {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
}

.bottomRow .viewCaseStudy {
    background-color: #E1171F;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    max-width: 290px;
    display: block;
    width: 60%;
    padding: 20px 20px;
    text-decoration: none;
    align-self: center;
}

.bottomRow .viewCaseStudy img {
    height: 12.5px;
    margin-left: 10px;
}

.bottomRow .clientLogo {
    height: 120px;
    max-width: 35%;
    align-self: center;
}

@media screen and (max-width: 1360px) {
    .titlePage h2 {
        font-size: 28px;
    }

    .titlePage p,
    .caseStudyInner .subTitleName {
        font-size: 20px;
    }

    .clientChallanges h5,
    h3.sectionTop span,
    .clientBackDiv .titleStack {
        font-size: 28px;
    }

    h3.sectionTop {
        font-size: 40px;
    }

    .ChallengesBlock ul li .content p {
        font-size: 20px;
    }

    .ChallengesBlock ul li .numbering span {
        font-size: 54px;
    }

    .solutionBlock {
        padding: 15px 15px 0;
    }

    .solutionBlock h4 {
        font-size: 20px;
        height: 55px;
        margin-bottom: 10px;
    }

    .solutionBlock p {
        font-size: 15px;
        min-height: 190px;
    }

    .solutionBlock img {
        object-fit: cover;
        aspect-ratio: 16/8;
    }

    .leftSideContent h4 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .autoTabSection .autoTabPanel img {
        width: 50%;
    }

    .leftSideContent {
        width: 50%;
    }

    .caseStudyBlock>img {
        width: 50%;
    }

    .bottomRow .viewCaseStudy {
        max-width: 220px;
    }

    .leftSideContent .topRow {
        padding: 10px 20px;
    }

    .bottomRow {
        padding: 10px 20px;
    }
}

@media screen and (max-width: 991px) {

    /* .caseStudyBlock > img{
        width: 55%;
    } */
    .caseStudyBlock {
        flex-direction: column;
        position: unset;
    }

    .caseStudyBlock>img {
        width: 100%;
        order: 1;
    }

    .leftSideContent {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .leftSideContent h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .leftSideContent .topRow {
        padding: 16px;
    }

    .bottomRow {
        padding: 10px 16px;
    }

    .bottomRow .clientLogo {
        position: relative;
        transform: translateY(-165px);
    }
}

@media screen and (max-width: 768px) {
    .caseStudyBanner {
        background: url(../images/casestudy/banner_mb.webp) no-repeat center bottom;
        background-size: cover;
        margin-top: 29.5px;
        padding-top: 75px;
    }

    .titlePage h2 {
        font-size: 20px;
        max-width: 350px;
    }

    .titlePage h1,
    .titlePage p span {
        font-size: 20px;
    }

    .titlePage {
        padding: 5px 20px 20px;
    }

    .caseStudyInner::after {
        border-width: 0 20px 28px;
    }

    .ChallengesBlock ul li .content p {
        font-size: 16px;
    }

    .delvalSolution p {
        width: 100%;
    }

    .clientChallanges h5.sectionTitle {
        font-size: 20px;
        max-width: 390px;
        text-align: center;
        margin: 0 auto;
    }

    h3.sectionTop {
        font-size: 32px;
        text-align: center;
    }

    h3.sectionTop span {
        font-size: 24px;
        display: block;
        max-width: 302px;
        margin: 5px auto 0;
    }

    .clientBackDiv .titleStack {
        font-size: 20px;
        padding: 12px 16px;
        transform: translate(-20px, -30px);
    }

    .clientBackDiv {
        padding: 0 20px 20px;
    }

    .clientBackDiv .d-flex {
        flex-direction: column;
    }

    .clientBackDiv .imgLeft {
        max-width: 100px;
    }

    .clientBackDiv .imgLeft img {
        height: auto;
        width: 100%;
    }

    .clientBackDiv .contentRight p {
        font-size: 14px;
    }

    .industryCat span {
        font-size: 16px;
    }

    .clientBackDiv {
        margin: 61px auto 20px;
    }

    .clientChallanges {
        padding: 60px 0 40px;
    }

    .industryCat {
        font-size: 16px;
    }

    .ChallengesBlock ul li {
        padding: 20px 40px;
        flex-direction: column;
    }

    .ChallengesBlock ul li .numbering {
        display: flex;
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 12px;
    }

    .ChallengesBlock ul li .numbering h5 {
        font-size: 18px;
    }

    .ChallengesBlock ul li .numbering span {
        font-size: 48px;
    }

    .autoTabSection {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px auto 0;
        padding-top: 0;
    }

    /* Adjust left side (tab + bar) layout */
    .autoTabSection .leftSideImpact {
        max-width: 100%;
        width: 100%;
        height: auto;
        position: relative;
        padding: 0 0 50px;
    }

    /* Horizontal divider (base line) */
    .autoTabSection .autoDivider {
        position: absolute;
        width: 100%;
        height: 2px;
        background: #D2D1D1;
        overflow: hidden;
        left: 0;
        bottom: 20px;
        top: unset;
    }

    /* Red fill goes left-to-right now */
    .autoTabSection .autoDivider::after {
        height: 100%;
        width: 0%;
        transition: width 0.6s ease;
    }

    .autoTabSection.step-1 .autoDivider::after {
        width: 0%;
    }

    .autoTabSection.step-2 .autoDivider::after {
        width: 50%;
    }

    .autoTabSection.step-3 .autoDivider::after {
        width: 100%;
    }

    /* Pointer block */
    .autoTabSection .autoPointer {
        position: absolute;
        bottom: -8px;
        top: auto;
        height: 22px;
        width: 18px;
        transition: left 0.6s ease;
    }

    .autoTabSection.step-1 .autoPointer {
        left: 0;
        top: unset;
        bottom: 10px;
    }

    .autoTabSection.step-2 .autoPointer {
        left: 50%;
        transform: translateX(-50%);
        top: unset;
        bottom: 10px;
    }

    .autoTabSection.step-3 .autoPointer {
        left: 100%;
        transform: translateX(-100%);
        top: unset;
        bottom: 10px;
    }

    /* Tab list horizontally */
    .autoTabSection .autoTabList {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 0 10px;
    }

    .autoTabSection .autoTabList label {
        font-size: 16px;
        text-align: center;
        flex: 1;
    }

    .autoTabSection .autoTabList label:first-child {
        text-align: left;
    }

    .autoTabSection .autoTabList label:last-child {
        text-align: right;
    }

    .autoTabSection .autoTabPanel {
        flex-direction: column;
        gap: 20px;
    }

    .autoTabSection .autoTabPanel img {
        width: 100%;
    }

    .impactSection {
        padding: 20px 0 20px;
    }

    .bottomRow .viewCaseStudy {
        width: 100%;
    }

    .bottomRow .clientLogo {
        position: absolute;
        transform: translateY(-165px);
        right: 30px;
        height: 80px;
        max-width: 30%;
    }

    .clientName {
        max-width: 40%;
    }

    .clientHead {
        font-size: 18px;
    }

    .bottomRow .viewCaseStudy {
        max-width: 100%;
        padding: 16px 20px;
    }

    .autoTabSection .autoTabText {
        max-width: 100%;
    }

    .caseStudyInner {
        min-height: 487px;
        background-size: auto 100%;
    }
}

@media screen and (max-width:420px) {

    .titlePage h1,
    .titlePage p span {
        font-size: 18px;
    }

    .autoTabSection .autoTabList label {
        font-size: 15px;
    }
}