/* Enhanced Testimonial Carousel Styles */
.testimonial {
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.mask {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.slider-testimonial-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(253, 126, 20, 0.1);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    transform: scale(0.95);
    opacity: 0.7;
    transition: all 0.6s ease;
}

.slide.active .slider-testimonial-card {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 32px 80px rgba(253, 126, 20, 0.15);
}

.star-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    justify-content: center;
}

.star-icon {
    width: 24px;
    height: 24px;
    filter: hue-rotate(15deg) saturate(1.3) brightness(1.1);
    transition: transform 0.3s ease;
}

.star-icon:hover {
    transform: scale(1.2);
}

.testimonial-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.testimonial-content {
    text-align: center;
}

.apple-store {
    height: 28px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.testimonial-content .heading-3 {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    position: relative;
}

.testimonial-content .heading-3::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-content .heading-3::after {
    content: '"';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.testimonial-author-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-author-image:hover {
    transform: scale(1.1);
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

/* Navigation Arrows */
.left-arrow,
.right-arrow {
    position: absolute;
    top: 50%;
    margin: 50px;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.left-arrow:hover,
.right-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(253, 126, 20, 0.3);
}

.left-arrow:hover .chevron-left,
.right-arrow:hover .chevron-right {
    filter: brightness(0) invert(1);
}

.left-arrow {
    left: -28px;
}

.right-arrow {
    right: -28px;
}

.chevron-left,
.chevron-right {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(253, 126, 20, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Auto-play Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 20px 20px;
    transition: width 0.1s linear;
    opacity: 0.7;
}

/* Testimonial Section Title (if you want to add one) */
.testimonial-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-section-title .headline {
    margin-bottom: 20px;
}

.testimonial-section-title .label {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.testimonial-section-title .heading-2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.testimonial-section-title .body-text-16 {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Animation Classes */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out forwards;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.slide-out-left {
    animation: slideOutToLeft 0.6s ease-out forwards;
}

.slide-out-right {
    animation: slideOutToRight 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 991px) {
    .left-arrow,
    .right-arrow {
        width: 48px;
        height: 48px;
    }
    
    .left-arrow {
        left: -24px;
    }
    
    .right-arrow {
        right: -24px;
    }
    
    .slider-testimonial-card {
        padding: 36px 32px;
    }
    
    .testimonial-content .heading-3 {
        font-size: 1.3rem;
    }
    
    .testimonial-content .heading-3::before,
    .testimonial-content .heading-3::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .left-arrow,
    .right-arrow {
        width: 40px;
        height: 40px;
        display: none; /* Hide arrows on mobile for touch navigation */
    }
    
    .slider-testimonial-card {
        padding: 28px 24px;
    }
    
    .slide {
        padding: 0 10px;
    }
    
    .testimonial-content .heading-3 {
        font-size: 1.2rem;
    }
    
    .testimonial-content .heading-3::before,
    .testimonial-content .heading-3::after {
        display: none; /* Hide quote marks on mobile */
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .star-rating {
        margin-bottom: 24px;
    }
    
    .star-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 479px) {
    .slider-testimonial-card {
        padding: 24px 20px;
    }
    
    .testimonial-content .heading-3 {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .testimonial-author-image {
        width: 48px;
        height: 48px;
    }
    
    .apple-store {
        height: 24px;
        margin-bottom: 20px;
    }
    
    .testimonial-content-wrapper {
        gap: 32px;
    }
}

/* Touch/Swipe Support Indicators */
.touch-indicator {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .touch-indicator {
        display: block;
    }
}

/* Loading State */
.testimonial-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}