/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-section .section-title h2 {
    font-size: 2.5rem;
    color: #23120B;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.testimonials-section .section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #FDB827;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-slider {
    position: relative;
    padding: 20px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible; /* Allow arrows to be seen outside */
}

.slick-slide {
    padding: 0 15px;
    height: auto;
}

.slick-list {
    margin: 0 -15px;
    overflow: hidden;
    padding: 20px 0 !important;
}

.slick-track {
    display: flex !important;
    align-items: stretch;
    transition: transform 0.5s ease !important;
}

.testimonial-item {
    outline: none;
    display: block !important;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    height: 100%;
    visibility: visible !important;
    padding: 20px;
    box-sizing: border-box;
    transform: scale(0.85);
}

.slick-center .testimonial-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.1);
    z-index: 2;
}

/* Slider Navigation Arrows */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100; /* Increased Z-index */
    width: 50px;
    height: 50px;
    background: #FDB827; /* Yellow background */
    border: none;
    border-radius: 50%;
    color: white !important; /* Force text color to potentially hide it if mixed */
    font-size: 0 !important; /* Force hide text nodes */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Add shadow for better visibility */
}

.slick-prev:before,
.slick-next:before {
    display: none; /* Hide default slick font icons */
}

/* Icons within buttons */
.slick-prev i,
.slick-next i {
    font-size: 20px !important;
    color: #23120B !important; /* Dark icon color for contrast on yellow */
    display: block !important;
    opacity: 1 !important;
}

.slick-prev:hover,
.slick-next:hover {
    background: #23120B; /* Dark background on hover */
}

.slick-prev:hover i,
.slick-next:hover i {
    color: #FDB827 !important; /* Yellow icon on hover */
}

.slick-prev {
    left: -20px; /* Moved slightly inside or less negative to prevent cutting */
}

.slick-next {
    right: -20px; /* Moved slightly inside or less negative to prevent cutting */
}

.slick-prev:hover,
.slick-next:hover {
    background: #23120B !important; /* Dark background on hover */
}

/* Dots */
.slick-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: center;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.slick-dots li {
    margin: 0 4px;
}

.slick-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ddd;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-dots .slick-active button {
    background: #FDB827;
    width: 30px;
    border-radius: 5px;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #FDB827;
    font-size: 16px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    margin: 0 2px;
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
    text-align: center;
}

.testimonial-content::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -40px;
    left: -10px;
    line-height: 1;
    z-index: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 2;
    font-style: italic;
    margin: 0 auto 20px;
    max-width: 90%;
    text-align: center;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-align: center;
}

.author-avatar {
    margin: 0 0 15px 0;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f5f5f5;
    object-fit: cover;
}

.author-info {
    margin-left: 0;
    text-align: center;
    width: 100%;
}

.author-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #23120B;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.author-info span {
    display: block;
    font-size: 14px;
    color: #777;
}

/* Slick Dots */
.slick-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slick-dots li {
    display: inline-block;
    margin: 0 4px;
}

/* Slider Dots/Pagination */
.slick-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.slick-dots li {
    margin: 0 5px;
    padding: 0;
}

.slick-dots li button {
    font-size: 0;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #FDB827;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.slick-dots li button:before {
    display: none;
}

.slick-dots li.slick-active button {
    background: #FDB827;
    transform: scale(1.2);
}

.slick-dots li button:hover {
    background: rgba(253, 184, 39, 0.5);
}
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slick-dots li button:focus {
    outline: none;
}

.slick-dots li.slick-active button {
    background: #FDB827;
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}

/* Slick Arrows */
.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #23120B;
    font-size: 16px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slick-arrow:hover {
    background: #FDB827;
    color: #fff;
    opacity: 1;
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .testimonials-section .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonials-section .section-title h2 {
        font-size: 2rem;
    }
    
    .slick-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-section .section-title h2 {
        font-size: 1.75rem;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .slick-arrow {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .testimonials-section .section-title h2 {
        font-size: 1.5rem;
    }
    
    .author-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .author-info h4 {
        font-size: 16px;
    }
    
    .author-info span {
        font-size: 13px;
    }
}
