/* =========================================================
   EasyPuja Testimonials
   File: assets/css/testimonials.css
========================================================= */

.testimonials-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(244,123,32,.08), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(109,27,27,.06), transparent 34%),
        #fffaf4;
}

.testimonials-section::before {
    content: "ॐ";
    position: absolute;
    left: -18px;
    bottom: -70px;
    font-family: Georgia, serif;
    font-size: 250px;
    color: rgba(109,27,27,.035);
    pointer-events: none;
}

.testimonials-shell {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 18px;
}

.testimonials-viewport {
    overflow: hidden;
    min-width: 0;
    padding: 8px 3px 18px;
}

.testimonials-track {
    display: flex;
    gap: 22px;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 335px;
    padding: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid #edd9c3;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(77,34,23,.08);
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #f3b057, #f47b20, #8b2f21);
}

.testimonial-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.testimonial-stars {
    color: #e59a28;
    letter-spacing: 2px;
    font-size: 14px;
    line-height: 1;
}

.testimonial-quote-mark {
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: .55;
    color: rgba(109,27,27,.14);
}

.testimonial-card h3 {
    margin: 0 0 12px;
    color: #4e2822;
    font-family: Georgia, serif;
    font-size: 21px;
    line-height: 1.3;
}

.testimonial-card > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.78;
    flex: 1;
}

.testimonial-customer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid #f0e4d8;
}

.customer-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff0d8, #f7d39e);
    border: 1px solid #edc489;
    color: #7c4218;
    font-size: 13px;
    font-weight: 900;
}

.testimonial-customer strong {
    display: block;
    color: #4e2822;
    font-size: 14px;
    margin-bottom: 4px;
}

.testimonial-customer span {
    display: block;
    color: #8a7169;
    font-size: 12px;
}

.testimonial-nav {
    width: 48px;
    height: 48px;
    border: 1px solid #e4c59d;
    border-radius: 50%;
    background: #ffffff;
    color: #6d1b1b;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 33px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(76,31,20,.08);
    transition: all .22s ease;
}

.testimonial-nav:hover {
    background: #6d1b1b;
    color: #ffffff;
    border-color: #6d1b1b;
    transform: translateY(-2px);
}

.testimonial-nav:focus-visible,
.testimonial-dot:focus-visible {
    outline: 3px solid rgba(244,123,32,.28);
    outline-offset: 3px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.testimonial-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #d5b99b;
    cursor: pointer;
    transition: all .25s ease;
}

.testimonial-dot.active {
    width: 28px;
    background: #f47b20;
}

@media (max-width: 1000px) {
    .testimonial-card {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 700px) {
    .testimonials-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testimonials-viewport {
        grid-column: 1;
        grid-row: 1;
    }

    .testimonial-card {
        flex-basis: 100%;
        min-height: 0;
        padding: 24px 21px;
    }

    .testimonial-prev,
    .testimonial-next {
        grid-row: 2;
        width: 44px;
        height: 44px;
    }

    .testimonial-prev {
        justify-self: end;
        margin-right: 30px;
    }

    .testimonial-next {
        justify-self: start;
        margin-left: 30px;
        transform: translate(74px, -58px);
    }

    .testimonial-next:hover {
        transform: translate(74px, -60px);
    }

    .testimonial-dots {
        margin-top: -35px;
    }
}