/* Banner */

.case-studies-hero-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #000;
    background-image: url('../../img/pages/case-studies/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.banner-cs {
    padding: 22rem 0px 10rem 0rem;
    background-image: url('../../img/pages/case-studies/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: end;
    min-height: 76vh;
    height: 100vh;
}

.case-studies-hero-shell .banner-cs {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    background: transparent;
}

.banner-cs h1 {
    font-size: clamp(29px, 4.2vw, 80px);
    line-height: 130%;
    font-weight: 300;
}

/* ───────────────────────────────────────────
   Featured Cases Carousel
─────────────────────────────────────────── */

.case-studies-logo-carousel {
    flex-shrink: 0;
    padding: clamp(24px, 2.5vw, 36px) 0 clamp(16px, 2vw, 20px);
    background: transparent;
}

.case-studies-logo-carousel .slabel {
    display: block;
    font-size: clamp(14px, 1.042vw, 20px);
    line-height: 140%;
    color: #6f767e;
    padding-left: var(--fs30, 30px);
    position: relative;
    max-width: 320px;
    text-align: left;
}

.case-studies-logo-carousel .slabel::before {
    width: clamp(11px, 0.73vw, 14px);
    height: clamp(11px, 0.73vw, 14px);
    position: absolute;
    left: 0;
    top: 17px;
    content: "";
    border-radius: 50%;
    background: var(--primary, #ebf441);
}

.case-studies-logo-carousel .partnerSwiper-wrap {
    position: relative;
    width: calc(100% + ((100vw - 100%) / 2));
    max-width: none;
}

.case-studies-logo-carousel .logo-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 clamp(56px, 8vw, 160px), #000 calc(100% - clamp(56px, 8vw, 160px)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 clamp(56px, 8vw, 160px), #000 calc(100% - clamp(56px, 8vw, 160px)), transparent 100%);
}

.case-studies-logo-carousel .logo-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    will-change: transform;
}

.case-studies-logo-carousel .logo-item {
    flex-shrink: 0;
    margin: 0 max(0.75vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-studies-logo-carousel .logo-item img {
    height: clamp(40px, 3.7vw, 56px);
    width: auto;
    max-width: none;
    filter: brightness(0) saturate(100%) invert(56%) sepia(15%) saturate(0%) hue-rotate(134deg) brightness(90%) contrast(79%);
}

.featured-cases-cs {
    /* background: #0b0b0b; */
    /* padding: max(4vw, 40px) 0px max(2vw, 40px) 0px; */
    overflow-x: hidden;
}

/* Full-width slide viewport */
.fc-clip {
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding-bottom: 0;
}

/* Swiper instance */
.fcSwiper {
    overflow: hidden !important;
}

/* ── Slide (swiper-slide) ── */
.featured-cases-cs .swiper-slide {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border-radius: 1.125rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: max(550px, 30.7vw);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* opacity: 0.5; */
    transform: none;
    align-items: end;
    color: inherit;
    text-decoration: none;
}

/* Active / centre slide */
.featured-cases-cs .swiper-slide.active,
.featured-cases-cs .swiper-slide-active {
    opacity: 1;
    transform: none;
    cursor: pointer;
}

.featured-cases-cs .swiper-slide:focus-visible {
    outline: 2px solid #ebf441;
    outline-offset: 4px;
}

/* Dark gradient overlay */
.featured-cases-cs .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.20) 0%,
            rgba(0, 0, 0, 0.75) 100%);
    border-radius: inherit;
    z-index: 1;
}

/* All inner content above the overlay */
.featured-cases-cs .swiper-slide>* {
    position: relative;
    z-index: 2;
    padding: 0px clamp(16px, 1.4vw, 24px);
}

/* ── Label (top-left) ── */
.fc-label {
    position: absolute !important;
    top: 1.25rem;
    left: clamp(16px, 1.4vw, 24px);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 2;
    padding-left: 0px !important;
}

.fc-label__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ebf441;
    display: inline-block;
    flex-shrink: 0;
}

.fc-label__text {
    /* font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em; */
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(14px, 1.05vw, 1.25rem);
    line-height: 150%;
}

/* ── Info block — yellow box bottom-left ── */
.fc-info {
    /* position: absolute;
    bottom: 1.5rem;
    left: 1.5rem; */
    background: #ebf441;
    /* border-radius: 0.5rem; */
    padding: 2rem 1.3rem;
    width: clamp(250px, 18vw, 333px);
    ;
    /* width: clamp(150px, 21%, 215px); */
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-info__brand {
    display: flex;
    align-items: center;
    margin-bottom: clamp(16px, 1.3vw, 24px);
}

.fc-info__logo {
    max-height: 32px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
}

.fc-info__desc {
    /* font-size: 0.8rem;
    line-height: 1.45; */
    color: #111;
    margin: 0;
    font-size: clamp(14px, 1.05vw, 1.25rem);
    line-height: 140%;
    margin-bottom: clamp(24px, 1.8vw, 34px);
}

.fc-info__link {
    /* font-size: 0.78rem; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
    font-weight: 600;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s;
}

.featured-cases-cs .swiper-slide:hover .fc-info__link,
.fc-info__link:hover {
    opacity: 0.7;
}

/* ── Stats row ── */
.fc-stats {
    /* position: absolute; */
    /* bottom: 1.5rem; */
    /* left: calc(clamp(150px, 21%, 215px) + 2.75rem); */
    /* right: 1.5rem; */
    display: flex;
    width: 55%;
    align-items: flex-end;
    gap: 0;
    z-index: 2;
    padding: clamp(16px, 1.4vw, 24px) 0px;
}

.fc-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.fc-stat:first-child {
    border-left: none;
    padding-left: 0;
}

@media (max-width: 767px) {
    .fc-stat:nth-child(n+3) {
        display: none;
    }

    .w-100.flex-column.flex-md-row.d-flex.align-items-start.align-items-md-end.justify-content-between {
        gap: 4rem !important;
    }
}

.w-100.flex-column.flex-md-row.d-flex.align-items-start.align-items-md-end.justify-content-between {
    gap: 0rem;
}

.fc-stat__value {
    /* font-size: clamp(1.6rem, 3vw, 2.4rem); */
    font-weight: 700;
    color: #fff;
    /* line-height: 1; */

    font-size: clamp(26px, 2.5vw, 48px);
    line-height: 140%;
}

.fc-stat__label {
    /* font-size: 0.72rem; */
    color: rgba(255, 255, 255, 0.75);
    /* line-height: 1.4; */
    /* max-width: 140px; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
}

/* ── Swiper Pagination dots ── */
.featured-cases-cs .fc-pagination {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: max(1.563vw, 24px);
    width: auto !important;
}

.featured-cases-cs .fc-pagination .swiper-pagination-bullet {
    width: max(1.98vw, 26px);
    height: max(0.417vw, 6px);
    background: var(--primary);
    opacity: 0.35;
    border-radius: 999px;
    margin: 0 !important;
    cursor: pointer;
    transition: width 0.25s ease, opacity 0.25s ease, border-radius 0.25s ease;
}

.featured-cases-cs .fc-pagination .swiper-pagination-bullet-active {
    width: max(1.98vw, 26px);
    background: var(--primary);
    opacity: 1;
}



/* ───────────────────────────────────────────
   All Projects Grid
─────────────────────────────────────────── */

.all-projects-cs {
    background: #000;
    /* padding: max(2vw, 20px) 0px max(2vw, 40px) 0px; */
    padding: clamp(50px, 5.25vw, 100px) 0px clamp(50px, 5.25vw, 100px) 0px
}

/* Section heading */
.ap-heading {
    font-size: clamp(26px, 2.5vw, 48px);
    line-height: 140%;
    color: #fff;
    margin: 0 0 2.5rem;

}

/* 3-column grid */
.ap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Card ── */
.ap-card {
    background: #1c1c1c;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.ap-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55); */
}

.ap-card:focus-visible {
    outline: 2px solid #ebf441;
    outline-offset: 4px;
}

/* ── Image + logo area ── */
.ap-card__visual {
    position: relative;
    height: max(230px, 14.5vw);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* dark overlay on image — transparent → #111 top to bottom */
.ap-card__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #1c1c1c 90%);
    transition: opacity 0.3s ease;
}

/* .ap-card:hover .ap-card__visual::before {
    opacity: 0.75;
} */

/* centred client logo */
.ap-card__logo {
    position: relative;
    z-index: 1;
    /* max-height: 36px; */
    max-height: 30px;
    max-width: auto;
    /* max-width: 160px; */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* always white */
}

/* ── Text content ── */
.ap-card__body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.ap-card__heading {
    /* font-size: 1rem; */
    font-weight: 500;
    color: #fff;
    /* line-height: 1.45; */
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 140%;
    margin: 0;
}

.ap-card__desc {
    /* font-size: 0.8rem; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
    color: rgba(255, 255, 255, 0.55);
    /* line-height: 1.55; */
    margin: 0;
    /* Clamp to exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ap-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /* font-size: 0.82rem; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    margin-top: 0.4rem;
    transition: color 0.2s, gap 0.2s;
}

.ap-card__link svg {
    transition: transform 0.25s ease;
}

.ap-card:hover .ap-card__link,
.ap-card__link:hover {
    color: #ebf441;
    gap: 0.65rem;
}

.ap-card:hover .ap-card__link svg,
.ap-card__link:hover svg {
    transform: translateX(4px);
}


/* ── Responsive ── */
@media (max-width: 991px) {
    .ap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ap-grid {
        grid-template-columns: 1fr !important;
    }

    .fc-info {
        width: 92% !important;

    }


}

@media (max-width: 767px) {
    .case-studies-hero-shell {
        height: auto;
        overflow: visible;
    }

    .ap-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ap-card__visual {
        height: 180px;
    }

    .banner-cs {
        align-items: center;
        padding: 24vw 0 10vw 0;
        /* min-height: 600px; */
        /* height: 600px;    */
    }

    .case-studies-hero-shell .banner-cs {
        height: auto;
        min-height: 50vh;
        /* min-height: 600px; */
    }

    .case-studies-logo-carousel {
        padding: 20px 0 28px;
    }

    .case-studies-logo-carousel .col-xxl-2.col-lg-3.col-md-4.col-12 {
        padding: 0 20px;
        margin-bottom: 12px;
    }

    .case-studies-logo-carousel .slabel {
        padding-left: 0;
    }

    .case-studies-logo-carousel .slabel::before,
    .case-studies-logo-carousel .partnerSwiper-wrap::before,
    .case-studies-logo-carousel .partnerSwiper-wrap::after {
        display: none;
    }

    .case-studies-logo-carousel .container {
        padding-left: 0;
        padding-right: 0;
    }

    .case-studies-logo-carousel .row {
        --bs-gutter-x: 0;
    }

    .fc-stats {
        flex-direction: column;
        gap: 1rem;
        /* width: 100%; */
        align-items: flex-start;
        padding: 0px clamp(16px, 1.4vw, 24px);
    }

    .fc-stat {
        padding: 0px;
        border-left: none;
        /* width: 100%; */
    }

    .fc-stat:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .fc-label {
        position: static !important;
        padding: clamp(16px, 1.4vw, 24px) !important;
    }

    .featured-cases-cs .swiper-slide {
        align-items: flex-start;
        justify-content: space-around;
    }
    .featured-cases-cs .swiper-slide>*{
        padding:0px;
    }
}


/* ───────────────────────────────────────────
   CTA Section
─────────────────────────────────────────── */

.cta-cs {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: max(3vw, 20px) 0px max(3vw, 40px) 0px;
    /* padding: 6rem 0 4rem; */
    text-align: center;
    overflow: hidden;
}

/* Dark overlay */
.cta-cs__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 0;
}

.container.cta-cs__inner .btn-primary {
    margin-top: 0.75rem;
}

.cta-cs__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Label — reuses global .slabel, centred override */
/* .cta-cs__label {
    margin: 0 auto;
    font-size: clamp(11px, 0.75vw, 14px);
    letter-spacing: 0.12em;
} */

/* Heading */
.cta-cs__heading {
    /* font-size: clamp(2rem, 3.8vw, 3.5rem); */
    font-weight: 700;
    color: #fff;
    /* line-height: 1.15; */
    font-size: clamp(26px, 2.5vw, 48px);
    line-height: 140%;
    margin: 0;
    max-width: 1420px;
}

/* Description */
.cta-cs__desc {
    /* font-size: clamp(0.85rem, 1vw, 1rem); */
    color: rgba(255, 255, 255, 0.65);
    /* line-height: 1.65; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
    margin: 0;
    max-width: 520px;
}

/* CTA Button — yellow pill with dark arrow icon badge */
.cta-cs__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ebf441;
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.4rem 0.75rem 1.75rem;
    border-radius: 999px;
    margin-top: 0.25rem;
    transition: background 0.25s, transform 0.2s;
}

.cta-cs__btn:hover {
    background: #d8e03a;
    transform: translateY(-2px);
    color: #111;
}

/* Icon badge circle inside the button */
.cta-cs__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #111;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s;
}

.cta-cs__btn-icon svg {
    stroke: #ebf441;
}

.cta-cs__btn:hover .cta-cs__btn-icon {
    background: #000;
}

/* Trusted Label */
.cta-cs__trusted-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 2.5rem auto 0;
    color: rgba(255, 255, 255, 0.45);
    /* font-size: clamp(10px, 0.75vw, 12px); */
    /* letter-spacing: 0.05em; */
    font-size: clamp(14px, 0.835vw, 16px);
    line-height: 150%;
    /* font-weight: 500; */
}

.cta-cs__trusted-label::before,
.cta-cs__trusted-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.cta-cs__trusted-label::before {
    margin-right: 1.5rem;
}

.cta-cs__trusted-label::after {
    margin-left: 1.5rem;
}

/* Partner logos grid */
.cta-cs__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 1300px;
}

.cta-cs__logo-item img {
    /* max-height: 30px;
    max-width: 130px; */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.2s;
}

.cta-cs__logo-item img:hover {
    opacity: 1;
}

/* Mobile Marquee Slider */
.cta-cs__marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 1.5rem;
}

.cta-cs__marquee-wrap .logo-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.cta-cs__marquee-wrap .logo-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    will-change: transform;
}

.cta-cs__marquee-wrap .logo-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 clamp(0.8rem, 1.8vw, 2rem);
}

.cta-cs__marquee-wrap .logo-item img {
    height: clamp(55px, 5vw, 90px);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.2s;
    display: block;
}

.cta-cs__marquee-wrap .logo-item img:hover {
    opacity: 1;
}


/* ───────────────────────────────────────────
   More Projects Grid (below CTA, no heading)
─────────────────────────────────────────── */

.more-projects-cs {
    background: #000;
    padding: 5rem 0 6rem;
}
