/* Testimonials — standalone so deploy cannot miss these styles */

.home-testimonials .tm-wrap {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.75rem;
}

.home-testimonials.is-slider .tm-wrap {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.home-testimonials .tm-viewport {
    overflow: hidden !important;
    width: 100%;
    min-width: 0;
}

.home-testimonials .tm-track {
    display: grid;
    grid-template-columns: repeat(var(--tm-cols, 3), minmax(0, 1fr));
    gap: 1.15rem;
    width: 100%;
}

.home-testimonials.is-slider .tm-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.15rem !important;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-testimonials .tm-card {
    background: #fff !important;
    border: 1px solid rgba(0, 57, 128, 0.08);
    border-radius: 18px;
    padding: 1.45rem 1.3rem 1.25rem;
    box-shadow: 0 10px 28px rgba(0, 57, 128, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    height: 100%;
    box-sizing: border-box;
}

.home-testimonials.is-slider .tm-card {
    flex: 0 0 calc((100% - 2.3rem) / 3) !important;
    width: calc((100% - 2.3rem) / 3) !important;
    max-width: calc((100% - 2.3rem) / 3);
    min-width: 0 !important;
    height: auto;
}

.home-testimonials .tm-stars {
    display: flex;
    gap: 0.22rem;
    margin-bottom: 0.85rem;
    color: #F5B301 !important;
    font-size: 0.95rem;
    line-height: 1;
}

.home-testimonials .tm-stars i {
    color: #F5B301 !important;
}

.home-testimonials .tm-stars .is-empty,
.home-testimonials .tm-stars i.is-empty {
    color: #E5E7EB !important;
}

.home-testimonials .tm-text {
    margin: 0;
    color: #5B6B8C;
    font-size: 0.95rem;
    line-height: 1.85;
    flex: 1;
}

.home-testimonials .tm-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 57, 128, 0.08);
}

.home-testimonials .tm-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.home-testimonials .tm-author strong {
    color: #003980;
    font-size: 0.95rem;
    font-weight: 800;
}

.home-testimonials .tm-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 57, 128, 0.14);
    background: #fff;
    color: #003980;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 57, 128, 0.08);
    transition: 0.2s ease;
    flex-shrink: 0;
}

.home-testimonials .tm-arrow:hover {
    border-color: #F5B301;
    color: #D4A000;
}

.home-testimonials .tm-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
}

.home-testimonials .tm-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 57, 128, 0.18);
    cursor: pointer;
    transition: 0.2s ease;
}

.home-testimonials .tm-dots button.is-active {
    background: #F5B301;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .home-testimonials.is-slider .tm-wrap {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .home-testimonials.is-slider .tm-card {
        flex-basis: calc((100% - 1.15rem) / 2) !important;
        width: calc((100% - 1.15rem) / 2) !important;
        max-width: calc((100% - 1.15rem) / 2);
    }

    .home-testimonials .tm-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    .home-testimonials.is-slider .tm-wrap {
        grid-template-columns: 1fr;
    }

    .home-testimonials.is-slider .tm-arrow {
        display: none;
    }

    .home-testimonials.is-slider .tm-card {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100%;
    }

    .home-testimonials .tm-card {
        min-height: 0;
        padding: 1.2rem 1.1rem 1.05rem;
    }
}
