/* FWW Testimonial Rotator - Frontend Styles */

/* THIS IS ALL THE STYLE PROVIDED BY CHAT THAT I'VE PUT INTO THE MAIN THEME TO EDIT AS SCSS - LEFT OTHER CSS FILE HERE EMPTY */

/* Background banner - full width, uses theme color from Kirki */
.fww-testimonial-banner {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

/* Single Testimonial */
.fww-single-testimonial {
    max-width: 60vw;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.fww-single-testimonial .fww-testimonial-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.fww-single-testimonial .fww-testimonial-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.fww-single-testimonial .fww-testimonial-content p:first-child {
    margin-top: 0;
}

.fww-single-testimonial .fww-testimonial-content p:last-child {
    margin-bottom: 0;
}

.fww-single-testimonial .fww-testimonial-author {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

.fww-single-testimonial .fww-testimonial-author a {
    color: #0073aa;
    text-decoration: none;
}

.fww-single-testimonial .fww-testimonial-author a:hover {
    text-decoration: underline;
}

/* Testimonial Rotator Container */
.fww-testimonial-rotator-wrapper {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* The banner behind the rotator */
.fww-testimonial-rotator-wrapper .fww-testimonial-banner {
    background: inherit;
}

/* Rotator element */
.fww-testimonial-rotator {
    height: 100%;
    position: relative;
}

/* Rotator container */
.fww-rotator-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Track for fade animation */
.fww-rotator-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide - positioned absolutely for fade animation */
.fww-rotator-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

/* Active slide - controlled by JavaScript */
.fww-rotator-slide.fww-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

/* Testimonial item styling */
.fww-rotator-slide .fww-testimonial-item {
    max-width: 60vw;
    margin: 0 auto;
    padding: 1rem;
}

.fww-rotator-slide .fww-testimonial-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.fww-rotator-slide .fww-testimonial-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.fww-rotator-slide .fww-testimonial-content p:first-child {
    margin-top: 0;
}

.fww-rotator-slide .fww-testimonial-content p:last-child {
    margin-bottom: 0;
}

.fww-rotator-slide .fww-testimonial-author {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

.fww-rotator-slide .fww-testimonial-author a {
    color: #0073aa;
    text-decoration: none;
}

.fww-rotator-slide .fww-testimonial-author a:hover {
    text-decoration: underline;
}

/* Quotation mark decoration */
.fww-rotator-quote-mark {
    position: absolute;
    left: 12vw;
    top: 15%;
    transform: translateY(-50%);
    font-size: 100px;
    color: #fff;
    line-height: 1;
    font-family: Georgia, serif;
    user-select: none;
    z-index: 1;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .fww-single-testimonial,
    .fww-rotator-slide .fww-testimonial-item {
        padding: 15px;
    }
    
    .fww-rotator-controls {
        gap: 10px;
    }
    
    .fww-rotator-prev,
    .fww-rotator-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .fww-rotator-quote-mark {
        font-size: 60px;
        left: 0;
        top: 5%;
    }
}

/* Remove fixed heights - let content flow naturally */
.fww-rotator-container {
    position: relative;
    width: 100%;
    /* Remove min-height and height */
}

/* Remove min-height from testimonial items */
.fww-testimonial-item {
    /* Remove min-height: 150px; */
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: transparent;
}

/* Slides should fill container height */
.fww-rotator-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}