/**
 * Homepage "What Clients Say" testimonials section — layout and typography.
 * Scoped to .homepage-testimonials; all slider elements remain intact.
 */

/* Section heading */
.homepage-testimonials .mxd-section-title.pre-grid {
    margin-bottom: 0.4rem;
}

.homepage-testimonials .mxd-section-title__hrtitle h2 {
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.homepage-testimonials .mxd-section-title__hrdescr {
    margin-top: 1.4rem;
}

.homepage-testimonials .mxd-section-title__hrdescr p {
    font: normal var(--fw-regular) 1.55rem/1.7 var(--_font-accent);
    color: var(--t-medium);
    max-width: 52rem;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-section-title__hrdescr {
        margin-top: 1rem;
    }

    .homepage-testimonials .mxd-section-title__hrdescr p {
        font-size: 1.65rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-section-title__hrdescr {
        margin-top: 0.6rem;
        padding-top: 0.35rem;
    }

    .homepage-testimonials .mxd-section-title__hrdescr p {
        font-size: 1.75rem;
        line-height: 1.65;
    }
}

/* Slider shell */
.homepage-testimonials .testimonials-slider-2 {
    margin-top: 2.4rem;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .testimonials-slider-2 {
        margin-top: 3rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .testimonials-slider-2 {
        margin-top: 3.6rem;
    }
}

.homepage-testimonials .swiper-testimonials-2 {
    padding-bottom: 6.5rem;
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .swiper-testimonials-2.no-padding {
        padding-bottom: 5.5rem;
    }
}

/* Slide layout */
.homepage-testimonials .mxd-testimonials-image__content {
    gap: 2.4rem;
    padding: 0 1.5rem 2rem;
    max-width: 100%;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__content {
        gap: 2.8rem;
        padding: 0 2rem 2.4rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__content.col-xl-7 {
        gap: 3.2rem;
        padding: 2rem 1.25rem 6rem 0;
        justify-content: center;
        min-height: 100%;
        flex: 0 0 65% !important;
        max-width: 65% !important;
        width: 65% !important;
    }

    .homepage-testimonials .mxd-testimonials-image__img.col-xl-5 {
        flex: 0 0 35% !important;
        max-width: 35% !important;
        width: 35% !important;
    }
}

/* Author block */
.homepage-testimonials .mxd-testimonials-image__author {
    align-items: center;
    gap: 1.4rem;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__author {
        gap: 2rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__avatar {
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__avatar {
        width: 9.6rem;
        height: 9.6rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__avatar {
        width: 10.4rem;
        height: 10.4rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__info {
    gap: 0.45rem;
    width: calc(100% - 8.5rem);
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__info {
        width: auto;
        gap: 0.55rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__name {
    font: normal var(--fw-medium) 2.1rem/1.25 var(--_font-accent);
    color: var(--t-bright);
    letter-spacing: -0.01em;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__name {
        font-size: 2.4rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__name {
        font-size: 2.6rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__position {
    font: normal var(--fw-regular) 1.4rem/1.55 var(--_font-accent);
    color: var(--t-medium);
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__position {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__position {
        font-size: 1.55rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__position .link-small-underline {
    font-weight: var(--fw-medium);
}

.homepage-testimonials .mxd-testimonials-image__rating {
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.homepage-testimonials .mxd-testimonials-image__rating i {
    font-size: 1.45rem;
    color: #f5b301;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__rating i {
        font-size: 1.55rem;
    }
}

/* Quote */
.homepage-testimonials .mxd-testimonials-image__text {
    margin-bottom: 0;
    padding-left: 1.6rem;
    border-left: 2px solid rgba(232, 26, 12, 0.55);
    width: 100%;
    max-width: 100%;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__text {
        padding-left: 2rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__text p.t-large,
.homepage-testimonials .mxd-testimonials-image__quote {
    margin-bottom: 2rem;
    font: normal var(--fw-regular) 1.85rem/1.68 var(--_font-accent);
    color: var(--t-bright);
    opacity: 0.96;
    width: 100%;
    max-width: 100%;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__text p.t-large,
    .homepage-testimonials .mxd-testimonials-image__quote {
        font-size: 2rem;
        line-height: 1.65;
        margin-bottom: 2.2rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__text p.t-large,
    .homepage-testimonials .mxd-testimonials-image__quote {
        font-size: 2.15rem;
    }
}

@media only screen and (min-width: 1600px) {
    .homepage-testimonials .mxd-testimonials-image__text p.t-large,
    .homepage-testimonials .mxd-testimonials-image__quote {
        font-size: 2.25rem;
    }
}

.homepage-testimonials .mxd-testimonials-image__text .btn {
    margin-top: 0.2rem;
}

/* Side image */
.homepage-testimonials .mxd-testimonials-image__img {
    padding: 0 1.5rem 1.5rem;
    overflow: hidden;
    border-radius: var(--_radius-l, 1.6rem);
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .mxd-testimonials-image__img {
        padding: 0 2rem 2rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .mxd-testimonials-image__img {
        padding: 2rem 0 6rem 0.75rem;
        align-items: center;
        justify-content: flex-start;
    }
}

.homepage-testimonials .mxd-testimonials-image__img img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: var(--_radius-l, 1.6rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Slider controls */
.homepage-testimonials .swiper-testimonials__controls {
    gap: 2rem;
    padding: 0 1.5rem;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .swiper-testimonials__controls {
        padding: 0 2rem;
        gap: 2.4rem;
    }
}

@media only screen and (min-width: 992px) {
    .homepage-testimonials .swiper-testimonials__controls {
        left: 2rem;
        bottom: 0.4rem;
        width: auto;
        max-width: 36rem;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-testimonials .swiper-testimonials__controls {
        left: 0;
        bottom: 1.6rem;
        max-width: 32rem;
    }
}

.homepage-testimonials .swiper-testimonials__controls .mxd-swiper-pagination-fraction {
    font: normal var(--fw-medium) 1.35rem/1 var(--_font-accent);
    color: var(--t-medium);
    letter-spacing: 0.04em;
}

@media only screen and (min-width: 768px) {
    .homepage-testimonials .swiper-testimonials__controls .mxd-swiper-pagination-fraction {
        font-size: 1.45rem;
    }
}
