/* Customer Experience Section Styles - Logo Only Auto Scrolling */
.customer-experience-section {
/*    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    position: relative;
    overflow: hidden;
}

.customer-experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="1" fill="%23000" opacity="0.02"/><circle cx="90" cy="40" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.section-title {
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Logo scrolling track - similar to client logos */
.experience-logo-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 30px 0;
}

.experience-logo-wrapper {
    display: flex;
    width: 200%;
    animation: scroll-experience-logos 20s linear infinite;
}

.experience-logo-marquee {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 50%;
    gap: 80px;
    padding: 20px 0;
}

.experience-brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 161px;
    min-width: 140px;
    max-width: 200px;
/*    padding: 15px 25px;*/
/*    background: rgba(255, 255, 255, 0.95);*/
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-brand-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.experience-brand-logo img {
    max-width: 100%;
    max-height: 157px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.experience-brand-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll-experience-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.experience-logo-track:hover .experience-logo-wrapper {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customer-experience-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .experience-logo-marquee {
        gap: 50px;
    }
    
    .experience-brand-logo {
        min-width: 100px;
        max-width: 140px;
        height: 80px;
        padding: 10px 20px;
    }
    
    .experience-brand-logo img {
        max-height: 50px;
    }
    
    .experience-logo-wrapper {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .experience-logo-marquee {
        gap: 30px;
    }
    
    .experience-brand-logo {
        min-width: 80px;
        max-width: 120px;
        height: 60px;
        padding: 8px 15px;
    }
    
    .experience-brand-logo img {
        max-height: 40px;
    }
    
    .experience-logo-wrapper {
        animation-duration: 12s;
    }
}

/* Alternative speed controls */
.experience-logo-wrapper.fast-scroll {
    animation-duration: 15s;
}

.experience-logo-wrapper.slow-scroll {
    animation-duration: 30s;
}

/* Smooth gradient fade at edges for better visual effect */
.experience-logo-track::before,
.experience-logo-track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.experience-logo-track::before {
    left: 0;
/*    background: linear-gradient(to right, #f8f9fa, transparent);*/
}

.experience-logo-track::after {
    right: 0;
/*    background: linear-gradient(to left, #f8f9fa, transparent);*/
}

/* New Testimonials Home Section Styles */
.testimonials-home-section {
    position: relative;
    overflow: hidden;
}

.testimonial-home-card {
/*    background: #ffffff;*/
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(0, 62, 166, 0.1);
}

.testimonial-home-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 25px;
}

.quote-icon {
    color: #003EA6;
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin: 0;
    text-align: left;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #003EA6;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003EA6, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-details {
    flex-grow: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating i {
    margin-right: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-home-section {
        padding: 60px 0 !important;
    }
    
    .testimonial-home-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .author-info {
        gap: 12px;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
    }
    
    .author-name {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonials-home-section h2 {
        font-size: 2rem !important;
    }
    
    .testimonial-home-card {
        padding: 20px;
    }
    
    .quote-icon {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Animation for cards appearing */
.testimonial-home-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-home-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-home-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-home-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-home-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Mobile Slider Styles */
.testimonial-mobile-slider {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.testimonial-slider-container {
    display: flex;
    transition: transform 0.3s ease;
    width: 400%; /* 4 slides * 100% */
}

.testimonial-slide {
    width: 25%; /* Each slide takes 25% of container width */
    flex-shrink: 0;
    padding: 0 10px;
}

.testimonial-slide .testimonial-home-card {
    margin-bottom: 20px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #003EA6;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #0056b3;
}

/* Touch/Swipe Support */
.testimonial-slider-container {
    touch-action: pan-y;
}

/* Responsive adjustments for mobile slider */
@media (max-width: 767px) {
    .testimonial-mobile-slider {
        padding: 0 15px;
    }
    
    .testimonial-slide {
        padding: 0 5px;
    }
    
    .testimonial-slide .testimonial-home-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .testimonial-mobile-slider {
        padding: 0 10px;
    }
    
    .slider-dots {
        gap: 8px;
        margin-top: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* View More Button Styles */
.view-more-btn {
    display: inline-block !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    color: #515151 !important;
    border-bottom: 2px solid currentColor !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 0 0 3px 0 !important;
    background: transparent !important;
    transition: opacity 0.3s ease !important;
    margin-top: 20px !important;
}

.view-more-btn:hover {
    text-decoration: none !important;
    opacity: 0.7;
    color: #515151 !important;
}

/* Responsive adjustments for view more button */
@media (max-width: 768px) {
    .view-more-btn {
        font-size: 0.8rem !important;
        margin-top: 15px !important;
    }
}

/* Bootstrap Carousel Custom Styles for Testimonials - Match Banner Style */
#testimonialsCarousel {
    position: relative;
    padding: 0 60px; /* Add padding to make space for buttons */
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialsCarousel .carousel-control-prev {
    left: 10px;
}

#testimonialsCarousel .carousel-control-next {
    right: 10px;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

/* Custom arrow icons with dark color - same as banner */
#testimonialsCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

#testimonialsCarousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

/* Responsive adjustments - match banner responsive behavior */
@media (max-width: 768px) {
    #testimonialsCarousel {
        padding: 0 50px;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #testimonialsCarousel .carousel-control-prev-icon,
    #testimonialsCarousel .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }
}

/* Hide carousel controls on smaller screens */
@media (max-width: 991px) {
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        display: none;
    }
}

/* Ensure carousel items have equal height */
#testimonialsCarousel .carousel-item .row {
    display: flex;
    align-items: stretch;
}

#testimonialsCarousel .carousel-item .col-lg-4,
#testimonialsCarousel .carousel-item .col-md-4 {
    display: flex;
}

#testimonialsCarousel .testimonial-home-card {
    width: 100%;
}