/* ============================================
   TESTIMONIALS MOBILE FIXES
   Perfect mobile testimonials optimization
   ============================================ */

@media (max-width: 768px) {
    /* Testimonials section mobile */
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .testimonials-title {
        font-size: 1.875rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .testimonials-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    /* Slider wrapper - stacked layout */
    .testimonials-slider-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    
    /* Navigation buttons - above slider */
    .testimonial-slider-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #F28C28;
        background: #ffffff;
        color: #F28C28;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 1.25rem;
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0;
        box-shadow: 0 4px 12px rgba(242, 140, 40, 0.2);
        flex-shrink: 0;
        order: 1;
    }
    
    .testimonial-slider-btn:hover:not(:disabled),
    .testimonial-slider-btn:active:not(:disabled) {
        background: #F28C28;
        color: #ffffff;
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(242, 140, 40, 0.4);
    }
    
    .testimonial-slider-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        border-color: #D1D5DB;
        color: #D1D5DB;
    }
    
    /* Button container */
    .testimonials-slider-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        order: 1;
        padding: 0 1rem;
    }
    
    /* Slider container */
    .testimonials-slider {
        order: 2;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .testimonials-slider-track {
        gap: 1.5rem;
        cursor: grab;
        padding: 0.5rem 0;
    }
    
    .testimonials-slider-track:active {
        cursor: grabbing;
    }
    
    /* Testimonial cards */
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        padding: 0 0.5rem;
    }
    
    .testimonial-card-inner {
        padding: 1.5rem;
        height: auto;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }
    
    .testimonial-rating {
        margin-bottom: 1rem;
    }
    
    .testimonial-rating i {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        padding-left: 1.25rem;
        flex-grow: 1;
    }
    
    .testimonial-quote-icon {
        font-size: 1.25rem;
        top: -0.25rem;
    }
    
    .testimonial-author {
        margin-bottom: 1rem;
    }
    
    .testimonial-author-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .testimonial-author-location {
        font-size: 0.875rem;
    }
    
    .testimonial-service {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        margin-top: auto;
    }
    
    /* Dots navigation - below slider */
    .testimonials-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1rem;
        order: 3;
        padding: 0 1rem;
    }
    
    .testimonial-slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #D1D5DB;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
        min-width: 10px;
        min-height: 10px;
    }
    
    .testimonial-slider-dot.active {
        background: #F28C28;
        width: 30px;
        border-radius: 5px;
    }
    
    /* Remove old controls positioning */
    .testimonials-slider-controls {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 2.5rem 0;
    }
    
    .testimonials-header {
        margin-bottom: 1.5rem;
    }
    
    .testimonials-title {
        font-size: 1.5rem !important;
    }
    
    .testimonials-subtitle {
        font-size: 0.875rem;
    }
    
    .testimonial-slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    .testimonials-slider-nav-buttons {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .testimonials-slider-track {
        gap: 1rem;
        padding: 0.25rem 0;
    }
    
    .testimonial-card-inner {
        padding: 1.25rem;
        min-height: 280px;
    }
    
    .testimonial-text {
        font-size: 0.875rem;
        padding-left: 1rem;
    }
    
    .testimonial-quote-icon {
        font-size: 1rem;
    }
    
    .testimonial-author-name {
        font-size: 0.9375rem;
    }
    
    .testimonial-author-location {
        font-size: 0.8125rem;
    }
    
    .testimonial-service {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .testimonial-slider-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }
    
    .testimonial-slider-dot.active {
        width: 24px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .testimonial-card-inner {
        transition: transform 0.2s ease;
    }
    
    .testimonial-card-inner:active {
        transform: scale(0.98);
    }
    
    .testimonial-slider-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .testimonial-slider-dot {
        min-width: 44px;
        min-height: 44px;
        padding: 16px;
        background: transparent;
        border: 2px solid transparent;
    }
    
    .testimonial-slider-dot::after {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #D1D5DB;
        transition: all 0.3s ease;
    }
    
    .testimonial-slider-dot.active::after {
        width: 30px;
        border-radius: 5px;
        background: #F28C28;
    }
}

/* Smooth scrolling for slider */
.testimonials-slider-track {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Accessibility */
@media (max-width: 768px) {
    .testimonial-slider-btn:focus {
        outline: 3px solid #F28C28;
        outline-offset: 2px;
    }
    
    .testimonial-slider-dot:focus {
        outline: 3px solid #F28C28;
        outline-offset: 2px;
    }
}




