/* ================================
   Ultra-Compact Testimonials Section
================================ */
.testimonials-ultra-compact {
    padding: 3.5rem 0;
    background: white;
    position: relative;
}

.testimonials-ultra-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, #f8fafc 0%, transparent 100%);
    pointer-events: none;
}

/* Testimonial Card - Mini */
.testimonial-card-mini {
    background: white;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.testimonial-card-mini:hover {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.14);
    transform: translateY(-4px);
}

/* Quote Icon - Mini */
.quote-icon-mini {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

/* Testimonial Text - Mini */
.testimonial-text-mini {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
    position: relative;
}

/* Student Info - Mini */
.student-info-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f1f5f9;
}

.student-avatar-mini {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--gradient-1);
    padding: 2px;
    flex-shrink: 0;
}

.student-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.student-details-mini {
    text-align: left;
}

.student-details-mini h6 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.student-details-mini p {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

/* Rating - Mini */
.rating-mini {
    display: flex;
    gap: 3px;
}

.rating-mini i {
    color: #ffc107;
    font-size: 0.82rem;
}

.rating-mini .far {
    color: #e2e8f0;
}

/* Carousel Controls - Mini */
.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1;
}

.control-btn-mini {
    width: 38px;
    height: 38px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.control-btn-mini:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 5px 18px rgba(99, 102, 241, 0.28);
}

.control-btn-mini i {
    font-size: 14px;
}

/* Custom Carousel Indicators - Mini */
.carousel-indicators-mini {
    position: static;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0;
}

.carousel-indicators-mini button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-indicators-mini button.active {
    width: 28px;
    border-radius: 4px;
    background: var(--gradient-1);
}

.carousel-indicators-mini button:hover {
    background: var(--primary);
    transform: scale(1.15);
}

/* No Testimonials Message - Mini */
.no-testimonials-mini {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}

.no-testimonials-mini i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
}

.no-testimonials-mini p {
    font-size: 0.95rem;
    margin: 0;
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 1199px) {
    .testimonial-card-mini {
        padding: 1.7rem 1.4rem;
    }
    
    .testimonial-text-mini {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .testimonials-ultra-compact {
        padding: 3rem 0;
    }
    
    .testimonial-card-mini {
        padding: 1.6rem 1.3rem;
    }
    
    .quote-icon-mini {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .testimonial-text-mini {
        font-size: 0.92rem;
        line-height: 1.65;
    }
    
    .student-avatar-mini {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 767px) {
    .testimonials-ultra-compact {
        padding: 2.5rem 0;
    }
    
    .section-title.mb-3 {
        margin-bottom: 2rem !important;
    }
    
    .testimonial-card-mini {
        padding: 1.5rem 1.1rem;
    }
    
    .quote-icon-mini {
        width: 44px;
        height: 44px;
        font-size: 17px;
        margin-bottom: 0.9rem;
    }
    
    .testimonial-text-mini {
        font-size: 0.9rem;
        margin-bottom: 1.3rem;
    }
    
    .student-info-mini {
        flex-direction: column;
        text-align: center;
        gap: 0.7rem;
        padding-top: 1rem;
    }
    
    .student-details-mini {
        text-align: center;
    }
    
    .rating-mini {
        justify-content: center;
    }
    
    .control-btn-mini {
        width: 36px;
        height: 36px;
    }
    
    .control-btn-mini i {
        font-size: 13px;
    }
    
    .carousel-control-prev {
        left: 8px;
    }
    
    .carousel-control-next {
        right: 8px;
    }
}

@media (max-width: 575px) {
    .testimonials-ultra-compact {
        padding: 2rem 0;
    }
    
    .testimonial-card-mini {
        padding: 1.3rem 1rem;
    }
    
    .quote-icon-mini {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .testimonial-text-mini {
        font-size: 0.88rem;
        line-height: 1.6;
    }
    
    .student-avatar-mini {
        width: 50px;
        height: 50px;
    }
    
    .student-details-mini h6 {
        font-size: 0.95rem;
    }
    
    .student-details-mini p {
        font-size: 0.8rem;
    }
    
    .rating-mini i {
        font-size: 0.78rem;
    }
    
    .carousel-indicators-mini {
        margin-top: 1.2rem;
        gap: 6px;
    }
    
    .carousel-indicators-mini button {
        width: 7px;
        height: 7px;
    }
    
    .carousel-indicators-mini button.active {
        width: 24px;
    }
}

/* ================================
   Animation Enhancements
================================ */


.carousel-item1 {
    transition: transform 0.5s ease-in-out;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item1.active .testimonial-card-mini {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth height transition */
#testimonialCarousel {
    transition: height 0.5s ease;
}
