/**
 * Testimonials Carousel Component
 *
 * Custom carousel with equal-height cards.
 * Uses CSS variables from colors-variables.css for theming.
 */

/* ========================================
   Testimonials Section
   ======================================== */

.testimonial-area {
    /* padding and background now set inline for dynamic alternation */
    overflow: hidden;
}

.testimonial-area .section-title .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonial-area .section-title .text {
    font-size: 1.1rem;
}

/* ========================================
   Custom Carousel
   ======================================== */

.testimonial-carousel {
    position: relative;
    width: 100%;
}

.testimonial-carousel > .testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    overflow: visible;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 33.333%;
    padding: 10px 15px 25px;
    box-sizing: border-box;
}

/* Hide overflow on the carousel wrapper */
.testimonial-carousel {
    overflow: hidden;
}

/* ========================================
   Testimonial Card
   ======================================== */

.single-testimonial {
    background: var(--background-white, #ffffff);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Testimonial Icon */
.testimonial-image {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1;
    color: var(--primary-color, #3498db);
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-content .text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color, #555555);
    flex: 1;
    margin-bottom: 15px;
    text-align: left;
}

.testimonial-content .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-title-color, #333333);
    margin-bottom: 3px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color-light, #e0e0e0);
}

.testimonial-content .sub-title {
    color: var(--text-muted, #888888);
    font-size: 0.85rem;
}

/* ========================================
   Carousel Dots
   ======================================== */

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 5px 0;
    list-style: none;
}

.testimonial-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color-light, #d0d0d0);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-dots button:hover {
    background: var(--primary-color, #3498db);
}

.testimonial-dots button.active {
    background: var(--primary-color, #3498db);
    transform: scale(1.3);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    .testimonial-slide {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .testimonial-area {
        padding: 60px 0;
    }

    .single-testimonial {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .testimonial-area {
        padding: 50px 0;
    }

    .testimonial-area .section-title .title {
        font-size: 2rem;
    }

    .single-testimonial {
        padding: 20px 15px;
    }

    .testimonial-image {
        font-size: 2rem;
    }

    .testimonial-content .text {
        font-size: 0.9rem;
    }
}
