

/* --- Main Section Layout --- */
.testimonial-section {
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    display: grid;
    /* Two columns: left for text, right for slider */
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Needed for z-index context */
}

/* On smaller screens, stack the columns */
@media (max-width: 992px) {
    .testimonial-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Left Side: Header Content --- */
.testimonial-header {
    /* z-index allows the slider to overlap this text */
    position: relative;
    z-index: 1;
}

.testimonial-header .subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #888;
    margin: 0 0 10px;
}

.testimonial-header h2 {
    font-size: clamp(3rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 25px;
    color: #cccccc;
}

/* The blue brush-stroke underline on "Say" */
.testimonial-header h2 span {
    position: relative;
    color: #ffffff; /* Make the word "Say" pure white */
}
.testimonial-header h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -10%;
    right: -10%;
    height: 15px;
    background-color: #4A69FF; /* Blue color from image */
    border-radius: 8px;
    transform: rotate(-2.5deg);
    z-index: -1; /* Place it behind the text */
}

.testimonial-header .description {
    font-size: 1rem;
    line-height: 1.7;
    color: #a0a0a0;
    max-width: 400px;
}

@media (max-width: 992px) {
    .testimonial-header .description {
        margin: 0 auto;
    }
}

/* --- Right Side: Slider --- */
.testimonial-slider-wrapper {
    /* z-index makes this part sit ON TOP of the header */
    position: relative;
    z-index: 2;
}

.testimonial-cards-container {
    position: relative;
    min-height: 320px; /* Prevents layout jump during animation */
}

.testimonial-card {
    background-color: #1f1f1f; /* Dark gray card background */
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    
    /* These properties stack the cards and prepare them for animation */
    position: absolute;
    top: 0;
    left: 0;
    
    /* Animation state for INACTIVE cards */
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    pointer-events: none; /* Inactive cards are not clickable */
}

/* State for the ACTIVE card */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 10;
    pointer-events: auto;
}

/* Decorative dots on the active card */
.testimonial-card.active::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 25px;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(#00c6a7 1.2px, transparent 1.2px);
    background-size: 10px 10px;
    opacity: 0.2;
    z-index: 0;
}

.review-text, .reviewer-info {
    position: relative;
    z-index: 1; /* Ensure text is above the dot pattern */
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 30px 0;
    color: #c0c0c0;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.role {
    color: #a0a0a0;
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

/* --- Pagination Dots --- */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: #4A69FF; /* Active dot color */
}