/* Testimonials page — mobile-first responsive */

/* Legacy base (scoped overrides below) */
section.services-main-banner-sec {
    position: relative;
    margin-bottom: 0
}

section.services-main-banner-sec .container {
    padding: 40px 15px 80px
}

section.services-main-banner-sec:after {
    position: absolute;
    content: "";
    top: 0;
    z-index: -1;
    width: 38%;
    height: 100%;
    background-color: #f8c46b1a;
    left: 0;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain
}

.services-banner-text-in h1,
.services-banner-text-in h2 {
    font-size: clamp(26px, 4.5vw, 45px);
    line-height: 1.15;
    color: #181b1b;
    font-family: Cambria-Bold;
    margin-bottom: 10px
}

.services-banner-text-in p {
    font-size: clamp(15px, 2vw, 18px);
    color: #636678;
    line-height: 1.6
}

.services-banner-text-in {
    padding-bottom: 20px
}

section.connect-with-sec {
    padding: 0
}

.client_reviews_sec .container-fluid {
    max-width: 1460px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px
}

section.client_reviews_sec {
    padding: 48px 0;
    position: relative;
    overflow: hidden
}

section.client_reviews_sec:before {
    content: "";
    background: linear-gradient(215deg, #fe9645 45%, #fe3fab 100%);
    position: absolute;
    left: 0;
    width: 200%;
    z-index: -1;
    height: 70%;
    top: 0
}

.testimonial-item {
    padding: 0
}

.testimonial-item article {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
    gap: 14px
}

.testimonial-item figure {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    overflow: hidden;
    margin-right: 0;
    flex-shrink: 0
}

.client-item figure img,
.testimonial-item figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center
}

.testimonial-item figcaption {
    min-width: 0;
    flex: 1
}

.testimonial-item figcaption h5 {
    font-size: clamp(17px, 2.5vw, 20px);
    color: #181b1b;
    margin-bottom: 4px
}

.testimonial-item figcaption p {
    font-size: 14px;
    font-style: italic;
    color: #636678;
    margin-bottom: 8px
}

.testimonial-item figcaption span {
    background-color: #1f18df;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 20px
}

.testimonial-item > p {
    font-size: 15px;
    color: #181b1b;
    line-height: 1.65;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere
}

.bb, .bt, .br, .bl {
    border: none !important
}

.section-padding {
    padding: 56px 0
}

.main-heading-box {
    max-width: 770px;
    margin: 0 auto 32px;
    text-align: center;
    padding: 0 15px
}

.main-heading-box h2,
.main-heading-box h3 {
    font-size: clamp(26px, 4vw, 40px);
    color: #181b1b;
    font-family: Cambria-Bold;
    margin-bottom: 10px
}

.connect-with ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0 12px
}

.connect-with li {
    padding: 0;
    flex: 0 1 auto
}

.connect-with img {
    max-width: min(115px, 28vw);
    height: auto;
    display: block;
    margin: 0 auto
}

/* ========== Page wrapper ========== */
.testimonials-page {
    background: #fff;
    overflow-x: hidden
}



/* Kill legacy flex widths inside this page */
.testimonials-page section.services-main-banner-sec .col-md-5,
.testimonials-page section.services-main-banner-sec .col-md-6,
.testimonials-page .ts-hero-grid > [class*="col-"],
.testimonials-page .testimonial-col,
.testimonials-page .ts-video-card,
.testimonials-page .ts-gallery [class*="col-md"] {
    max-width: 100% !important;
    flex: none !important;
    width: 100% !important
}

/* ========== Hero ========== */
.testimonials-page .ts-hero {
    margin-bottom: 0
}

.testimonials-page .ts-hero:after {
    width: 100%;
    height: 38%;
    border-radius: 0
}

.testimonials-page .ts-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%
}

.testimonials-page .ts-hero-grid.row::before,
.testimonials-page .ts-hero-grid.row::after,
.testimonials-page .ts-cards-grid.row::before,
.testimonials-page .ts-cards-grid.row::after {
    display: none
}

.testimonials-page .ts-hero-grid > .col-md-5,
.testimonials-page .ts-hero-grid > .col-md-6 {
    padding: 0 !important
}

.testimonials-page .ts-hero-media {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(24, 27, 27, .1);
    height: clamp(200px, 50vw, 280px);
    width: 100%
}

.testimonials-page .ts-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.testimonials-page .ts-hero-content,
.testimonials-page .services-banner-head-info {
    display: block !important;
    width: 100%;
    text-align: center
}

.testimonials-page .ts-hero-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto
}

.testimonials-page .ts-hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin: 0 !important;
    box-sizing: border-box
}

/* ========== Partners ========== */
.testimonials-page .ts-partners {
    padding: 24px 0 32px;
    background: #fafbfc;
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2
}

.testimonials-page .ts-partners .connect-with ul {
    gap: 12px 20px
}

.testimonials-page .ts-partners .connect-with li {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center
}

.testimonials-page .ts-partners .connect-with li a {
    display: block;
    opacity: .85;
    transition: opacity .2s, transform .2s
}

.testimonials-page .ts-partners .connect-with li a:hover {
    opacity: 1;
    transform: scale(1.04)
}

/* ========== Review cards ========== */
.testimonials-page .ts-reviews {
    background: #f4f6f9;
    padding: 40px 0 48px
}

.testimonials-page .ts-reviews.paddTop0 {
    padding-top: 40px
}

.testimonials-page .ts-reviews .container {
    padding-left: 15px;
    padding-right: 15px
}

.testimonials-page .ts-reviews .main-heading-box {
    margin-bottom: 28px
}

.testimonials-page .ts-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 !important;
    width: 100%
}

.testimonials-page .testimonial-col {
    padding: 0 !important;
    min-width: 0
}

.testimonials-page .testimonial-item {
    height: 100%;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(24, 27, 27, .05);
    box-sizing: border-box
}

@media (hover: hover) {
    .testimonials-page .testimonial-item {
        transition: transform .22s ease, box-shadow .22s ease
    }

    .testimonials-page .testimonial-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(24, 27, 27, .09)
    }
}

/* ========== Videos ========== */
.testimonials-page .ts-videos {
    padding: 40px 0 48px
}

.testimonials-page .ts-videos .container-fluid {
    padding-left: 15px;
    padding-right: 15px
}

.testimonials-page .ts-video-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 !important;
    width: 100%
}

.testimonials-page .ts-video-card {
    padding: 0 !important;
    min-width: 0
}

.testimonials-page .ts-video-card figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

.testimonials-page .ts-video-card figure a {
    display: block;
    position: relative;
    line-height: 0
}

.testimonials-page .ts-video-card figure a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f18df'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    z-index: 2;
    pointer-events: none
}

.testimonials-page .ts-video-card figure a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35));
    z-index: 1;
    pointer-events: none
}

.testimonials-page .ts-video-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover
}

/* ========== Client visit gallery ========== */
.testimonials-page .ts-gallery {
    padding: 40px 0 56px;
    background: #fff
}

.testimonials-page .ts-gallery .container {
    padding-left: 15px;
    padding-right: 15px
}

.testimonials-page .ts-gallery .main-heading-box {
    margin-bottom: 24px
}

.testimonials-page .ts-gallery .client-memory-list .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px
}

.testimonials-page .ts-gallery .client-memory-list [class*="col-"] {
    padding: 0 8px !important;
    margin-bottom: 14px;
    box-sizing: border-box
}

.testimonials-page .ts-gallery .client-item figure {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(24, 27, 27, .08);
    overflow: hidden
}

.testimonials-page .ts-gallery .client-item.box1 figure {
    height: auto;
    min-height: 140px;
    aspect-ratio: 4 / 3
}

.testimonials-page .ts-gallery .client-item.box2 figure {
    height: auto;
    min-height: 200px;
    aspect-ratio: 3 / 4
}

.testimonials-page .ts-gallery .client-item.box1 {
    margin-bottom: 0
}

.testimonials-page .ts-gallery .client-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

@media (hover: hover) {
    .testimonials-page .ts-gallery .client-item:hover figure img {
        transform: scale(1.03)
    }
}

/* Tablet: 576px+ */
@media (min-width: 576px) {
    .testimonials-page .ts-partners .connect-with li {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px)
    }

    .testimonials-page .ts-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none
    }

    .testimonials-page .ts-hero-actions .btn {
        width: auto !important;
        flex: 0 1 auto;
        min-width: 160px
    }

    .testimonials-page .ts-gallery .client-item.box1 figure {
        min-height: 160px
    }

    .testimonials-page .ts-gallery .client-item.box2 figure {
        min-height: 240px
    }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .testimonials-page .ts-hero .container {
        padding: 40px 15px 56px
    }

    .testimonials-page .ts-hero:after {
        width: 42%;
        height: 100%;
        border-radius: 0 0 72px 0
    }

    .testimonials-page .ts-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px
    }

    .testimonials-page .ts-hero-media {
        height: clamp(280px, 36vw, 380px)
    }

    .testimonials-page .ts-hero-content,
    .testimonials-page .services-banner-head-info {
        text-align: left
    }

    .testimonials-page .ts-hero-actions {
        justify-content: flex-start;
        margin: 0
    }

    .testimonials-page .ts-partners {
        padding: 32px 0 44px
    }

    .testimonials-page .ts-partners .connect-with li {
        flex: 0 1 auto;
        max-width: none
    }

    .testimonials-page .ts-reviews {
        padding: 56px 0 64px
    }

    .testimonials-page .ts-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px
    }

    .testimonials-page .testimonial-item {
        padding: 22px 20px
    }

    .testimonials-page .testimonial-item figure {
        width: 72px;
        height: 72px;
        min-width: 72px
    }

    .testimonials-page .ts-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px
    }

    .testimonials-page .ts-videos .container-fluid {
        padding-left: 24px;
        padding-right: 24px
    }

    /* Gallery: restore mosaic proportions */
    .testimonials-page .ts-gallery .client-memory-list > .row > .col-md-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
        width: 41.666667% !important
    }

    .testimonials-page .ts-gallery .client-memory-list > .row > .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important
    }

    .testimonials-page .ts-gallery .client-memory-list > .row > .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important
    }

    .testimonials-page .ts-gallery .client-memory-list .row .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important
    }

    .testimonials-page .ts-gallery .client-item.box1 figure {
        height: 207px;
        min-height: 0;
        aspect-ratio: auto
    }

    .testimonials-page .ts-gallery .client-item.box2 figure {
        height: 430px;
        min-height: 0;
        aspect-ratio: auto
    }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
    .testimonials-page .ts-hero .container {
        padding: 48px 15px 72px
    }

    .testimonials-page .ts-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px
    }

    .testimonials-page .testimonial-item {
        padding: 24px 22px
    }

    .testimonials-page .testimonial-item > p {
        font-size: 16px
    }

    .testimonials-page .ts-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px
    }

    .testimonials-page .ts-video-card figure a::after {
        width: 60px;
        height: 60px;
        background-size: 26px
    }

    .testimonials-page .ts-reviews {
        padding: 64px 0 72px
    }

    .testimonials-page .ts-gallery {
        padding: 56px 0 80px
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .testimonials-page .ts-videos .container-fluid {
        padding-left: 32px;
        padding-right: 32px
    }
}

/* Override common.css mobile column stack inside grids */
@media (max-width: 767px) {
    .testimonials-page .ts-cards-grid .testimonial-col,
    .testimonials-page .ts-video-grid .ts-video-card {
        width: 100% !important;
        max-width: 100% !important
    }

    .testimonials-page .ts-gallery .client-memory-list > .row > [class*="col-"],
    .testimonials-page .ts-gallery .client-memory-list .row .col-md-6,
    .testimonials-page .ts-gallery .client-memory-list .row .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important
    }

    .testimonials-page .ts-gallery .client-item.box2 figure {
        min-height: 220px;
        aspect-ratio: 16 / 10
    }

    .section-padding {
        padding: 40px 0
    }
}

/* Small phones */
@media (max-width: 380px) {
    .testimonials-page .ts-partners .connect-with li {
        flex: 0 0 100%;
        max-width: 100%
    }

    .testimonials-page .testimonial-item article {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .testimonials-page .testimonial-item figcaption {
        width: 100%
    }
}
