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

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

.carousel-container {
    position: relative;
    max-width: 1000px;
    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;
    }
}


/* =========================================
   V344: Technical Insight Badge Style
   (Applies to any .section-badge with Green theme)
   ========================================= */

.section-badge {
    /* Pill Shape and Alignment */
    display: inline-flex; 
    align-items: center;
    justify-content: center; 
    border-radius: 50px; 
    padding: 10px 25px; 
    
    /* Colors: Bright Green Pill */
    background: var(--tertiary-accent, #67C949); /* Bright Green */
    color: white; 
    font-size: 1rem; 
    font-weight: 700;
    text-transform: uppercase;
    
    /* Shadow and Icon */
    box-shadow: 0 5px 20px rgba(103, 201, 73, 0.4);
    margin-left: auto;
    margin-right: auto;
}

.section-badge i {
    color: white; /* White Icon (Chip) */
    margin-right: 10px; 
    font-size: 1.1rem;
}

/* Ensure the Transaction Flow section's badge uses this new style */
.recharge-flow-v142 .section-badge {
    /* Inherits V344 style */
}
