/* ═══════════════════════════════════════════════════════════════════
   B2I Carousel – lightweight replacement for owl-carousel
   ═══════════════════════════════════════════════════════════════════ */

.b2i-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.b2i-carousel__viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}
.b2i-carousel__viewport:active {
    cursor: grabbing;
}

.b2i-carousel__track {
    display: flex;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}

.b2i-carousel__slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Ensure slide children fill the slide */
.b2i-carousel__slide > * {
    width: 100%;
}

/* ── Navigation Arrows ────────────────────────────────────────────── */
.b2i-carousel__prev,
.b2i-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    padding: 0;
    outline: none;
}
.b2i-carousel__prev:hover,
.b2i-carousel__next:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.b2i-carousel__prev.is-disabled,
.b2i-carousel__next.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.b2i-carousel__prev {
    left: -16px;
}
.b2i-carousel__next {
    right: -16px;
}

@media (max-width: 768px) {
    .b2i-carousel__prev { left: 4px; }
    .b2i-carousel__next { right: 4px; }
    .b2i-carousel__prev,
    .b2i-carousel__next {
        width: 34px;
        height: 34px;
    }
}

/* ── Pagination Dots ──────────────────────────────────────────────── */
.b2i-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 4px;
}

.b2i-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
    outline: none;
}
.b2i-carousel__dot:hover {
    background: #999;
}
.b2i-carousel__dot.is-active {
    background: #e8604c;
    transform: scale(1.25);
}

/* ── Banner / Hero carousel overrides ─────────────────────────────── */
.b2i-carousel--banner .b2i-carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.b2i-carousel--banner .b2i-carousel__prev,
.b2i-carousel--banner .b2i-carousel__next {
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}
.b2i-carousel--banner .b2i-carousel__prev:hover,
.b2i-carousel--banner .b2i-carousel__next:hover {
    background: rgba(0, 0, 0, 0.55);
}
.b2i-carousel--banner .b2i-carousel__prev { left: 16px; }
.b2i-carousel--banner .b2i-carousel__next { right: 16px; }

/* ── Testimonial carousel overrides ───────────────────────────────── */
#testimonial-home-page {
    position: relative;
    padding: 54px 0 56px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.08), transparent 18%),
        radial-gradient(circle at bottom right, rgba(221, 29, 80, 0.08), transparent 20%),
        linear-gradient(180deg, #fffdfa 0%, #f8f3ec 100%);
}

#testimonial-home-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.28;
    pointer-events: none;
}

#testimonial-home-page .container {
    max-width: 1040px;
}

.testimonial-home-heading {
    margin: 0 auto 22px;
    text-align: center;
}

.testimonial-home-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #c46a32;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

#testimonial-home-page .main-headingCustom {
    margin-bottom: 0;
    color: #2f3137;
    font-size: 50px;
    line-height: 1.02;
}

#testimonial-home-slide.b2i-carousel .b2i-carousel__viewport {
    cursor: default;
}

#testimonial-home-slide .b2i-carousel__slide {
    padding: 4px 0 8px;
}

#testimonial-home-slide .b2i-carousel__dots {
    padding-top: 18px;
}

.testimonial-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 42px 24px;
    border-radius: 24px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.93));
    border: 1px solid rgba(196, 106, 50, 0.14);
    box-shadow:
        0 20px 44px rgba(47, 49, 55, 0.06),
        0 2px 0 rgba(255, 255, 255, 0.75) inset;
}

.testimonial-card__icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.testimonial-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 1px solid rgba(47, 49, 55, 0.16);
    background: linear-gradient(180deg, #fff8f1, #f4ede3);
    color: #2f3137;
    font-size: 34px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.testimonial-quote {
    position: relative;
    margin: 0;
    padding: 0;
    font-style: normal;
}

.testimonial-quote::before {
    content: "\201C";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(196, 106, 50, 0.16);
    font-size: 78px;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-quote p {
    position: relative;
    margin: 0;
    color: #34373f;
    font-size: 23px;
    line-height: 1.72;
    font-weight: 400;
}

.testimonial-card__meta {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(47, 49, 55, 0.08);
}

.testimonial-card__meta cite {
    display: inline-block;
    color: #28313b;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Partner logo carousel overrides ──────────────────────────────── */
#partner-slide .b2i-carousel__slide img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}
#partner-slide.b2i-carousel .b2i-carousel__viewport {
    cursor: default;
}

@media (max-width: 991px) {
    #testimonial-home-page {
        padding: 44px 0 46px;
    }

    #testimonial-home-page .main-headingCustom {
        font-size: 40px;
    }

    .testimonial-card {
        padding: 24px 24px 22px;
        border-radius: 22px;
    }

    .testimonial-quote p {
        font-size: 20px;
        line-height: 1.62;
    }
}

@media (max-width: 767px) {
    #testimonial-home-page .main-headingCustom {
        font-size: 30px;
    }

    .testimonial-home-kicker {
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .testimonial-card {
        padding: 22px 16px 20px;
    }

    .testimonial-user-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .testimonial-quote::before {
        font-size: 62px;
    }

    .testimonial-quote p {
        font-size: 17px;
        line-height: 1.65;
    }

    .testimonial-card__meta cite {
        font-size: 12px;
        line-height: 1.6;
    }
}
