/* =================================
   Testimonials Section - Matches Computer & IT Courses
   ================================= */
.testimonials-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    color: #1f2937;
    overflow: hidden;
}

.testimonial-overlay {
    display: none;
}

/* Center the slider container */
.testimonials-section .Center {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px; /* Add padding for arrows */
    z-index: 2;
}

/* Slider container */
.testimonials-slider {
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
}

/* Navigation Arrows */
.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #ff9000;
    border-color: #ff9000;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev i,
.testimonial-next i {
    transition: all 0.3s ease;
}

.testimonial-prev:hover i,
.testimonial-next:hover i {
    color: #fff;
}

/* Testimonial Slide */
.testimonial-slide {
    padding: 20px;
    outline: none;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(10, 74, 10, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(10, 74, 10, 0.2);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    color: #1f2937;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0;
    margin: 0 auto 25px;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.testimonial-rating i {
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 auto 30px;
    max-width: 700px;
    position: relative;
    padding: 0 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    position: relative;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff9000, transparent);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 74, 10, 0.1);
    color: #0a4a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(10, 74, 10, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    background: #0a4a0a;
    color: white;
    transform: scale(1.1);
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: #0a4a0a;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
}

/* Dots Navigation */
.testimonials-dots {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.testimonials-dots .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.testimonials-dots .slick-dots li {
    margin: 0 5px;
}

.testimonials-dots .slick-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    text-indent: -9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots .slick-dots .slick-active button {
    background: #ff9000;
    width: 30px;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .testimonial-card {
        padding: 40px 30px;
    }
    
    .testimonials-section .Center {
        padding: 0 60px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section .Center {
        padding: 0 40px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.testimonials-section .section-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ff9000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.testimonials-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    line-height: 1.2;
}

.testimonials-section .header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 25px;
}

.testimonials-section .divider-line {
    width: 50px;
    height: 2px;
    background: #ff9000;
    display: inline-block;
    margin: 0 10px;
}

.testimonials-section .fa-star {
    color: #ffc107;
    font-size: 14px;
}

.testimonials-section .section-description {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonial Slider */
.testimonials-slider {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 2;
}

.testimonial-slide {
    padding: 0 15px;
    outline: none;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    color: rgba(255, 144, 0, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 144, 0, 0.2);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0;
    margin: 0 0 25px;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.testimonial-rating i {
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 30px;
    position: relative;
    padding-left: 25px;
    border-left: 3px solid #ff9000;
    font-style: normal;
}

.testimonial-content p::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    height: 30px;
    width: 3px;
    background: linear-gradient(to bottom, #ff9000, transparent);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    position: relative;
    padding-top: 25px;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff9000, transparent);
}

.author-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9000, #ff6b00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 144, 0, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.05) rotate(5deg);
}

.author-info h4 {
    font-size: 1.1rem;
    color: #1a202c;
    margin: 0 0 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.author-info span {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    position: relative;
    padding-left: 20px;
}

.author-info span::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #ff9000;
    font-size: 12px;
}

/* Slider Navigation */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #4a5568;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.slider-arrow:hover {
    background: #ff9000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 144, 0, 0.3);
}

.slider-arrow:focus {
    outline: none;
}

.slider-arrow.prev-arrow {
    margin-right: 30px;
}

.slider-arrow.next-arrow {
    margin-left: 30px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
}

.slider-dots .slick-dots {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-dots .slick-dots li {
    margin: 0 5px;
}

.slider-dots .slick-dots button {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #e2e8f0;
    border: none;
    text-indent: -9999px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-dots .slick-dots .slick-active button {
    background: #ff9000;
    width: 30px;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .testimonials-slider {
        padding: 0 40px;
    }
    
    .testimonial-card {
        padding: 40px 30px;
    }
}

@media (max-width: 991px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 2.2rem;
    }
    
    .testimonial-card {
        padding: 35px 25px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 70px 0 50px;
    }
    
    .testimonials-slider {
        padding: 0 20px;
    }
    
    .testimonials-section .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-slide {
        padding: 0 10px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info span {
        font-size: 0.85rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-arrow.prev-arrow {
        margin-right: 15px;
    }
    
    .slider-arrow.next-arrow {
        margin-left: 15px;
    }
}

/* Animation for testimonial cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-slide.slick-active {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
