/* ========================================
   Modern Testimonial Section Styles
   ======================================== */

.testimonial_wrapper {
    position: relative;
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Background shape/pattern */
.testimonial_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 131, 69, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.testimonial_wrapper .container {
    position: relative;
    z-index: 1;
}

/* Modern Testimonial Card */
.testimonial-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 15px; /* Added horizontal margin for carousel spacing */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.testimonial-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 131, 69, 0.1);
    border-color: rgba(245, 131, 69, 0.1);
}

/* Quote Icon Decoration */
.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--theme-color);
    opacity: 0.05;
    pointer-events: none;
}

/* Rating Stars */
.testimonial-stars {
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #ffb400; /* Warm gold */
    font-size: 14px;
    margin-right: 2px;
}

/* Testimonial Quote Text */
.testimonial-quote-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--body-color);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Author Section */
.testimonial-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(245, 131, 69, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card-modern:hover .testimonial-avatar {
    border-color: var(--theme-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
    margin-bottom: 3px;
    font-family: var(--title-font);
}

.testimonial-author-info span {
    font-size: 14px;
    color: var(--theme-color);
    font-weight: 600;
}

/* Carousel Customization */
.testimonial_wrapper .slick-dots {
    bottom: -50px;
}

.testimonial_wrapper .slick-dots li button:before {
    font-size: 12px;
    color: var(--theme-color);
    opacity: 0.2;
}

.testimonial_wrapper .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--theme-color);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .testimonial-card-modern {
        padding: 30px 25px;
    }
    
    .testimonial-quote-text {
        font-size: 16px;
    }
    
    .testimonial_wrapper {
        padding: 60px 0 100px 0;
    }
}
