/* =========================================
   8. TESTIMONIAL SLIDER SECTION (V242 Fixed)
   ========================================= */

/* Banner Slider Container - CENTERED IN SECTION */
.banner-slider {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 240px;
    margin: 50px auto; /* Upar-Niche centered spacing */
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #fff;
}

.banner-slides-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.banner-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Navigation Arrows - Hidden by default */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.banner-prev { left: 12px; }
.banner-next { right: 12px; }

/* Show arrows on slider hover */
.banner-slider:hover .banner-prev,
.banner-slider:hover .banner-next {
    opacity: 1;
    visibility: visible;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0,191,165,0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Dots Navigation - Slim Version */
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.banner-dot.active {
    background: #00bfa5;
    width: 20px;
    border-radius: 4px;
}

/* Responsive - Single Version (Duplicate Removed) */
@media (max-width: 768px) {
    .banner-slider {
        width: 95%;
        height: 140px;
        margin: 30px auto; /* Mobile par kam spacing */
        border-radius: 10px;
    }

    .banner-prev,
    .banner-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }

    .banner-dots {
        bottom: 8px;
        gap: 5px;
    }

    .banner-dot {
        width: 6px;
        height: 6px;
    }

    .banner-dot.active {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 120px;
        margin: 20px auto; /* Extra small screen spacing */
    }
}


/* Background Bubbles Decorative Circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

.circle-1 {
    width: 450px;
    height: 450px;
    top: -150px;
    right: -120px;
    opacity: 0.6;
}

.circle-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -100px;
    animation-delay: 10s;
    opacity: 0.5;
}

.circle-3 {
    width: 260px;
    height: 260px;
    top: 30%;
    left: 3%;
    animation-delay: 20s;
    opacity: 0.4;
}


/* Extra Small Bubbles */
.bubble-small {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: floatBubble 18s ease-in-out infinite;
    z-index: 1;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    top: 12%;
    right: 18%;
    animation-delay: 3s;
}

.bubble-2 {
    width: 60px;
    height: 60px;
    bottom: 22%;
    left: 12%;
    animation-delay: 7s;
}

.bubble-3 {
    width: 100px;
    height: 100px;
    top: 48%;
    right: 8%;
    animation-delay: 12s;
}



@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(-15px) translateX(-15px);
    }
}




/* =========================================
   TESTIMONIAL CAROUSEL - WORKING VERSION
   ========================================= */

.aeps-testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    perspective: 2000px;
    height: 450px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(90deg) scale(0.7);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.testimonial-card.active {
    transform: translate(-50%, -50%) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: all;
}

.testimonial-card.prev {
    transform: translate(-150%, -50%) rotateY(-45deg) scale(0.7);
    opacity: 0.3;
    z-index: 5;
}

.testimonial-card.next {
    transform: translate(50%, -50%) rotateY(45deg) scale(0.7);
    opacity: 0.3;
    z-index: 5;
}

.card-content {
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #009688, #67C949);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(0, 150, 136, 0.1);
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #67C949;
    object-fit: cover;
    flex-shrink: 0;
}

.info h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.info p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

.info .badge {
    display: inline-block;
    background: rgba(103, 201, 73, 0.1);
    color: #67C949;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.rating {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.rating i { color: #ffc107; }

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.earnings-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #009688, #67C949);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(103, 201, 73, 0.4);
}

.earnings-badge strong {
    font-weight: 800;
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: #67C949;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 8px 25px rgba(103, 201, 73, 0.5);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #4a9e2f;
    transform: translateY(-50%) scale(1.15);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.4s;
}

.dot.active {
    background: #67C949;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(103, 201, 73, 0.5);
}

/* ========================================
   MOBILE RESPONSIVE - FIXED VERSION
   ======================================== */

@media (max-width: 768px) {
    /* Carousel height kam karo */
    .carousel-container { 
        height: 380px;  /* ? 500px se 380px */
    }
    
    /* Card padding kam karo */
    .card-content { 
        padding: 20px; 
    }
    
    /* Avatar size kam karo */
    .avatar { 
        width: 60px; 
        height: 60px; 
    }
    
    /* Header flex wrap */
    .testimonial-header { 
        flex-wrap: wrap; 
    }
    
    /* Rating niche */
    .rating { 
        margin-left: 0; 
        margin-top: 10px; 
    }
    
    /* ? ARROW SIZE KAM KARO */
    .carousel-btn {
        width: 40px;      /* 55px se 40px */
        height: 40px;     /* 55px se 40px */
        font-size: 16px;  /* 20px se 16px */
    }
    
    /* Arrow positioning */
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    /* Dots position */
    .carousel-dots { 
        bottom: 10px; 
        gap: 10px; 
    }
    
    .carousel-dot { 
        width: 8px; 
        height: 8px; 
    }
	
    
    /* Text size adjust */
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .info h5 {
        font-size: 1.1rem;
    }
    
    /* Earnings badge small */
    .earnings-badge {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .earnings-badge strong {
        font-size: 1rem;
    }
    
    /* Quote icon chhota */
    .quote-icon {
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
}

/* Extra small devices ke liye */
@media (max-width: 576px) {
    .carousel-container { 
        height: 420px;  /* ? Very small screens */
    }
    
    .carousel-btn {
        width: 35px;     /* Aur chhota */
        height: 35px;
        font-size: 14px;
    }
    
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    
    .card-content {
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
}


/* ========================================
   CHAMAKTI LINE - BANNER KE NICHE
   ======================================== */

.card-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        #009688 0%, 
        #67C949 25%, 
        #FFD700 50%, 
        #67C949 75%, 
        #009688 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}



