/* Testimonials - Slider Track and Cards */

.testimonials-slider-wrapper {
    position: relative;
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    padding: 60px 0 20px 0; /* Extra top padding for avatars */
    z-index: 10;
}

.testimonials-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* The Box */
.testimonial-card {
    flex: 0 0 calc(50% - 15px); /* Show 2 cards at a time (30px gap / 2 = 15px) */
    padding: 40px 30px;
    border: 2px solid rgba(0, 245, 255, 0.35); /* Base subtle cyan border */
    border-radius: 24px;
    background: rgba(10, 12, 25, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.1);
    position: relative;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
    z-index: 10;
}

/* Gradient glowing border effect */
.testimonial-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff, #ff4a3f); 
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 245, 255, 0.25);
}

/* Quote Icon */
.testimonial-quote-icon {
    color: #00f6fe;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.6;
    margin: 15px 0 10px 0;
    font-family: Georgia, serif;
}

/* Text */
.testimonial-text {
    color: #e0e0e0;
    font-size: 1.08rem;
    line-height: 1.9;
    font-family: "Source Sans Pro", Arial, sans-serif;
    text-align: center;
    font-style: italic;
    flex-grow: 1; /* Pushes content evenly */
}

.testimonial-text p {
    margin: 0;
}

/* Student Info */
.student-info {
    margin-top: 0;
}

.student-info h3 {
    color: #00f6fe;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.student-info span {
    color: #a1a8c0;
    font-size: 0.9rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Source Sans Pro", Arial, sans-serif;
}

/* Navigation Arrows (Re-used class names for easy integration) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(10, 12, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: #00f5ff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.slider-btn:hover {
    background: #00f5ff;
    color: #0f061c;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4);
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 100%; /* Show 1 card at a time on mobile */
    }
}

@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        width: 95%;
    }
    .testimonial-card {
        padding: 30px 40px;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .slider-btn.left { left: 0; }
    .slider-btn.right { right: 0; }
}

/* Default Avatar Placeholder */
.default-avatar {
    width: 60px;
    height: 60px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00f5ff;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}