/*
 * File: xt-slider-styles.css
 * This file contains all the custom styles for the testimonial slider.
 */

/* === BASE & LAYOUT FIXES === */
.xt-testimonial-container * {
    box-sizing: border-box; 
    font-family: Arial, sans-serif; /* Ensuring a standard font */
}
.xt-testimonial-container {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    padding-bottom: 50px;
}
.xt-swiper {
    overflow: hidden; 
    width: 100%;
}
.swiper-wrapper {
    align-items: stretch;
}
/* CRITICAL FIX: Ensure the slide container itself adjusts for equal height */
.swiper-slide {
    height: auto !important;
}

/* === THE TESTIMONIAL CARD (Equal Height Target) === */
.xt-testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    display: flex;
    align-items: flex-start; /* Align content to the top */
    gap: 40px;
    height: 100%; /* CRITICAL FIX: Make card fill the slide height */
    min-height: 250px; /* Optional: Sets a minimum height */
}

/* === Content and Typography === */
.xt-card-left { flex: 0 0 150px; }
.xt-author-image {
    width: 150px; height: 150px;
    border-radius: 50%;
    background-size: cover; background-position: center;
}
.xt-card-right { flex: 1; text-align: left; }
.xt-author-meta { margin-bottom: 20px; }

.xt-author-name {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}
.xt-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}
.xt-yellow-bar {
    display: inline-block;
    width: 4px;
    height: 15px;
    background-color: #FFC107;
    border-radius: 2px;
}

.xt-testimonial-content {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 1; 
}
.xt-testimonial-content p {
     margin-top: 0;
     margin-bottom: 1em; 
}

/* === PAGINATION / NAVIGATION FIX === */
.xt-swiper-pagination {
    position: absolute;
    bottom: 0;
    /* Centering Fix */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allows the dots to float naturally in the center */
    text-align: center;
}
.xt-swiper-pagination .swiper-pagination-bullet {
    width: 14px; height: 14px;
    background: #fff;
    opacity: 0.5;
    margin: 0 6px;
    border: 1px solid #ccc;
    transition: all 0.3s;
}
.xt-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    transform: scale(1.2);
    border: none;
    background-color: #FFC107; /* Make active dot stand out */
}

/* === Responsive === */
@media (max-width: 768px) {
    .xt-testimonial-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .xt-card-left { margin: 0 auto; }
    .xt-author-info { justify-content: center; }
}