.breadcrumb-bg {
    background-image: url(assets/img/bg/testimonial.jpg);
    background-size: cover;
    /* Changed from 100% to cover for better responsive behavior */
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-container {
    perspective: 2000px;
    padding: 3rem 1rem;
    /* Added horizontal padding */
    overflow-x: hidden;
    width: 100%;
    max-width: 1200px;
    /* Added max-width for larger screens */
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    height: auto;
    /* Changed from fixed height */
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    max-width: 500px;
    /* Added max-width instead of fixed width */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments for slide positions */
@media (min-width: 768px) {
    .testimonial-slide.prev {
        opacity: 0.6;
        transform: translateX(-70%) scale(0.85) translateZ(-200px);
        filter: blur(2px);
    }

    .testimonial-slide.next {
        opacity: 0.6;
        transform: translateX(70%) scale(0.85) translateZ(-200px);
        filter: blur(2px);
    }
}

/* Mobile adjustments for slides */
@media (max-width: 767px) {

    .testimonial-slide.prev,
    .testimonial-slide.next {
        display: none;
        /* Hide side slides on mobile */
    }
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) translateZ(0);
    pointer-events: auto;
    z-index: 2;
}

.testimonial-card,
.testimonial-card.active {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 300px;
    margin: 0 15px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    /* Remove fixed height */
}

/* Content container styles */
.testimonial-content {
    position: relative;
    margin-top: 20px;
}

.content-wrapper {
    max-height: 150px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    margin-bottom: 20px;
    position: relative;
}

.content-wrapper.expanded {
    max-height: 150px;
    /* Fixed height when expanded */
    overflow-y: auto;
    /* Enable scrolling in content */
    max-width: 800px;
}

/* Scrollbar styling for content wrapper */
.content-wrapper.expanded::-webkit-scrollbar {
    width: 6px;
}

.content-wrapper.expanded::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.content-wrapper.expanded::-webkit-scrollbar-thumb {
    background: var(--tg-theme-primary);
    border-radius: 3px;
}

/* See more button styles */
.see-more-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 0 10px;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 1) 20%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0) 100%);
    text-align: center;
    cursor: pointer;
    color: var(--tg-theme-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    width: 100%;

}

.see-more-btn:hover {
    color: var(--tg-theme-secondary);
}

.see-more-btn.expanded {
    background: none;
    padding: 5px 0;
    bottom: -30px;
    /* Move button below scrollable content */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        max-height: 120px;
    }

    .content-wrapper.expanded {
        max-height: 250px;
        /* Slightly shorter on mobile */
    }

    .see-more-btn {
        padding: 25px 0 10px;
    }
}
.content-wrapper.expanded {
    scrollbar-width:none;
    scrollbar-color: var(--tg-theme-primary) rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    /* Reduced border width */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

/* Larger avatar for desktop */
@media (min-width: 768px) {
    .avatar {
        width: 100px;
        height: 100px;
        border-width: 6px;
        margin: -80px auto 1.5rem;
    }
}

/* Modern Arrows Style */
.carousel-navigation {
    position: absolute;
    width: 100%;
    top: 40%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dot-wrapper {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 33.33%;
    height: 100%;
    background: white;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

/* Text Navigation Style */
.carousel-text-nav {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    opacity: 0.8;
}

.nav-button .label {
    font-size: 14px;
    font-weight: 500;
}

.nav-button .count {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: 12px;
    }

    .carousel-arrow.next {
        right: 12px;
    }

    .carousel-text-nav {
        padding: 0 16px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
    padding: 0 15px;
}

.section-header h2 {
    font-size: 2rem;
    /* Reduced for mobile */
    margin-bottom: 15px;
    position: relative;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

.section_testimonial {
    padding: 30px 0;
    /* Reduced padding for mobile */
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .section_testimonial {
        padding: 40px 0;
        margin-bottom: 40px;
    }
}
.section-header .svg-icon-wrapper {
    display: inline-block;
    position: absolute;
    top: 9px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
}

.svg-icon {
    width: 50px; /* Adjust size as needed */
    height: 50px;
}

.svg-icon path {
    stroke-dasharray: 200; /* Total length of the path */
    stroke-dashoffset: 200; /* Start hidden */
    animation: draw-svg 2s ease-in-out forwards; /* Animate the stroke */
}

@keyframes draw-svg {
    from {
        stroke-dashoffset: 200; /* Fully hidden */
    }
    to {
        stroke-dashoffset: 0; /* Fully drawn */
    }
}


