/* -------------------------------------------------------------------------- */
/*	Testimonial Section - Awwwards Style
/* -------------------------------------------------------------------------- */

.aw-testimonial {
    padding: 10rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.aw-testimonial__container {
    max-width: 1000px;
    /* Focus width */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.aw-testimonial__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aw-color-primary);
    margin-bottom: 3rem;
}

.aw-testimonial__quote-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    opacity: 0.2;
}

.aw-testimonial__track-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    /* Ensure it never exceeds parent */
    margin: 0 auto;
    position: relative;
    /* Context for absolute positioning if needed */
}

.aw-testimonial__track {
    display: flex;
    width: 100%;
    /* Remove transition here to set it via JS or keep it generic */
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    /* Performance optimization */
}

.aw-testimonial__slide {
    width: 100%;
    flex: 0 0 100%;
    /* Strictly force 100% width */
    box-sizing: border-box;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically if height differs */
}

.aw-testimonial__content {
    font-family: var(--aw-font-sans);
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    /* Adjusted minimum for mobile */
    font-weight: 500;
    line-height: 1.4;
    color: var(--aw-color-dark);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    max-width: 800px;
    width: 100%;
    /* Ensure text container respects width */
    word-wrap: break-word;
    /* Prevent text overflow */
}

.aw-testimonial__content p {
    margin: 0;
}

.aw-testimonial__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.aw-testimonial__avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.aw-testimonial__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aw-testimonial__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--aw-color-dark);
    line-height: 1.2;
}

.aw-testimonial__role {
    font-size: 0.875rem;
    color: rgba(26, 11, 10, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .aw-testimonial {
        padding: 6rem 0;
    }
}