/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff;
    --text-color-dark: #212529;
    --text-color-light: #6c757d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color-dark);
    line-height: 1.6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Main Container Styling --- */
.testimonial-container {
    background-color: var(--card-background);
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem 3rem;
    position: relative;
    overflow: hidden; /* Important for the slider effect */
}

.testimonial-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* --- Slider Core --- */
.testimonial-slider {
    display: flex; /* This creates the horizontal layout for slides */
    transition: transform 0.5s ease-in-out; /* This is our sliding animation! */
}

/* --- Individual Slide Styling --- */
.testimonial-slide {
    flex: 0 0 100%; /* Each slide takes up the full width of the container */
    box-sizing: border-box;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-image {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Prevents image distortion */
    border: 3px solid var(--border-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color-light);
    max-width: 600px; /* For better readability */
    margin-bottom: 1.5rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* --- Navigation Buttons --- */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Allows clicking through the container */
}

.nav-btn {
    pointer-events: auto; /* Re-enables clicking on the buttons themselves */
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .testimonial-container {
        padding: 1.5rem 1rem;
    }

    .testimonial-title {
        font-size: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .slider-nav {
        /* On small screens, move nav below the slider */
        position: static;
        transform: none;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
}