@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

.testimonial-section {
    width: 100%;
    padding: 60px 20px;
    font-family: 'Nunito', sans-serif;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px;
}

.testimonial-image-wrapper {
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
}

.testimonial-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    pointer-events: none;
}

/* YouTube overlay on hover */
.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    z-index: 5;
}

.testimonial-image-wrapper:hover .youtube-overlay {
    opacity: 1;
}

.youtube-icon {
    width: 80px;
    height: 80px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.testimonial-image-wrapper:hover .youtube-icon {
    transform: scale(1.1);
}

.youtube-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.testimonial-image {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.testimonial-text {
    flex: 1;
    color: #000000;
}

.student-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.student-course {
    font-size: 20px !important;
    color: #f84846 !important;
    margin-bottom: 35px !important;
    font-weight: 700!important;
    text-transform: uppercase;
    letter-spacing: 2.5px !important;
}

.student-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.star {
    font-size: 28px;
    color: #f5c518;
}

.student-quote {
    font-size: 22px !important;
    line-height: 1.7 !important;
    color: #000000 !important;
    font-style: italic !important;
    padding-left: 30px !important;
    border-left: 5px solid #f5c518 !important;
    margin-bottom: 30px !important;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(18 18 18 / 16%);;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: #f5c518;
    color: #000;
    transform: translateY(-5px) scale(1.1);
    border-color: #f5c518;
    box-shadow: 0 10px 20px rgba(245, 197, 24, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* background: rgb(18 18 18 / 16%);; */
    background:rgb(18 18 18 / 16%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #000000;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: #f5c518;
    border-color: #f5c518;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: -80px;
}

.next-arrow {
    right: -80px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #f5c518;
    width: 40px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(245, 197, 24, 0.6);
}

@media (max-width: 1200px) {
    .prev-arrow {
        left: 10px;
    }
    .next-arrow {
        right: 10px;
    }
}

@media (max-width: 1024px) {
    .testimonial-content {
        gap: 40px;
        padding: 30px;
    }
    .testimonial-image {
        width: 300px;
        height: 400px;
    }
    .student-name {
        font-size: 40px;
    }
    .student-quote {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .testimonial-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    .testimonial-image {
        width: 280px;
        height: 350px;
    }
    .testimonial-text {
        text-align: center;
    }
    .student-name {
        font-size: 36px;
    }
    .student-course {
        font-size: 14px;
    }
    .student-quote {
        font-size: 18px;
        text-align: left;
        padding-left: 20px;
        border-left-width: 4px;
    }
    .student-rating {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .nav-arrow {
        width: 50px;
        height: 50px;
    }
    .prev-arrow {
        left: 5px;
    }
    .next-arrow {
        right: 5px;
    }
    .youtube-icon {
        width: 70px;
        height: 70px;
    }
    .youtube-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .testimonial-image {
        width: 240px;
        height: 300px;
    }
    .student-name {
        font-size: 28px;
    }
    .student-course {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    .student-quote {
        font-size: 16px;
        padding-left: 15px;
        border-left-width: 3px;
    }
    .star {
        font-size: 24px;
    }
    .social-icon {
        width: 45px;
        height: 45px;
    }
    .nav-arrow {
        width: 45px;
        height: 45px;
    }
    .youtube-icon {
        width: 60px;
        height: 60px;
    }
    .youtube-icon svg {
        width: 35px;
        height: 35px;
    }
}
