/* Home Page Testimonials Styles */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.testimonial-rating {
    margin-bottom: 12px;
}

.testimonial-rating .stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-message-wrapper {
    flex-grow: 1;
    margin-bottom: 12px;
}

.testimonial-message {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-style: italic;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.read-more-btn:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.testimonial-author {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px 18px;
    }

    .testimonial-message {
        font-size: 13px;
    }
}

/* Testimonial carousel: native scroll-snap track, so swipe/drag works for
   free on touch devices in addition to the arrow/dot controls. */
.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-track {
    display: flex;
    gap: 25px;
    flex: 1 1 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 17px);
    max-width: calc(33.333% - 17px);
    scroll-snap-align: start;
}
.testimonial-slide .testimonial-card {
    height: 100%;
}

@media screen and (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 13px);
        max-width: calc(50% - 13px);
    }
}
@media screen and (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 85%;
        max-width: 85%;
    }
}

.testimonial-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.testimonial-arrow:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #ffc107;
}

.testimonial-track:focus {
    outline: none;
}
.testimonial-track:focus-visible {
    outline: 2px solid rgba(255, 193, 7, 0.6);
    outline-offset: 4px;
}
