/* ==================== Everything You Need Section ==================== */

.features-slider-section {
    background-color: #f6f5f4;
    padding: 80px 0;
}

.features-slider-section h1 {
    font-family: 'Sebenta', 'Crimson Pro', Georgia, 'Times New Roman', serif;
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 60px;
    line-height: 1.2;
}

/* Individual Slider Wrapper */
.slider-wrapper {
    margin: 0;
}

.slider-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-wrapper .row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left Side - Title and Tabs */
.left-wrapper {
    flex: 0.8;
    min-height: 0; /* Prevent flex item from expanding */
    margin-top: 15px;
    margin-bottom: 15px;
}

.left-wrapper h1 {
    font-size: 42px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.2;
    font-family: Inter, "Inter Fallback", sans-serif;
}

.slider-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Prevent scroll within tabs container */
}

.slider-tabs li {
    padding: 20px 20px 20px 20px;
    border-bottom: 1px solid #e6e6e6;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-tabs li:first-child {
    border-top: 1px solid #e6e6e6;
}

.slider-tabs li:hover {
    background-color: #f9f9f9;
}

.slider-tabs li.active {
    background-color: #f0eeff;
    border-left-color: #6C5CE7;
}

.slide-tabs-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
}

.slide-tabs-text strong {
    color: #111111;
    font-weight: 600;
}

.mobile-img {
    display: none;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Right Side - Slider */
.slider-image-wrapper {
    flex: 1.2;
    position: relative;
}

/* Progress Bars */
.progress-bar-wrapper {
    display: flex;
    gap: 8px;
	margin-top: 25px;
    margin-bottom: 5px;
}

.progress {
    flex: 1;
    height: 4px;
    background-color: #e6e6e6;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #6C5CE7 0%, #8B7CEE 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* Carousel */
.slider-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-user-drag: none;
    outline: none; /* Remove focus outline that can cause scroll */
}

.slider-carousel:active {
    box-shadow: none;
}

.slider-carousel:focus {
    outline: none; /* Remove focus outline */
    box-shadow: none; /* Subtle focus indicator */
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.slider-carousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Bottom CTA Section */
.features-cta-section {
	max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

.free-style-text {
    font-size: 24px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.free-style-text strong {
    color: #111111;
    font-weight: 700;
}

.cta-main {
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #67519f;
    color: #ffffff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.cta-button:hover {
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.cta-button:active {
    transform: none !important;
}

.avatars-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.avatars-row img {
    height: 30px;
    width: auto;
}

.arrow-text {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonial Section */
.testimonial-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    margin-bottom: -150px; /* Перекрывает steps-section наполовину */
}

.testimonial-container {
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 11;
}

.testimonial-box > img:first-of-type {
    height: 24px;
    margin-bottom: 20px;
}

.testimonial-box p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 25px;
}

.testimonial-box p strong {
    color: #111111;
    font-weight: 600;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-box .benefits-author img,
.benefits-testimonial .benefits-author img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 5px;
}

.author-meta {
    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.youtube-icon img {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .left-wrapper h1 {
        font-size: 36px;
    }
    
    .slider-wrapper .row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features-slider-section {
        padding: 30px 0;
    }
    
    .features-slider-section h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .slider-tabs li.active {
        background-color: transparent;
        border-left-color: transparent;
    }
    
    .slider-wrapper {
        margin: 0;
    }
    
    .slider-wrapper .row {
        flex-direction: column;
        gap: 30px;
    }
    
    .left-wrapper {
        order: 1; /* Текст первым */
    }
    
    .left-wrapper h1 {
        font-size: 32px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .slider-tabs li {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
    }
    
    .slider-tabs li .slide-tabs-text {
        order: 1; /* Текст первым */
    }
    
    .slider-tabs li .mobile-img {
        order: 2; /* Изображение вторым */
        display: block !important;
        margin-bottom: 20px;
        margin-top: 0;
        width: 100%;
    }
    
    .slider-image-wrapper {
        display: none !important;
    }
    
    .mobile-img img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: none;
        margin: 0;
        cursor: grab;
        display: block;
    }
    
    .mobile-img img:active {
        cursor: grabbing;
    }
    
    /* Убеждаемся, что изображения видны в активном табе */
    .slider-tabs li.active .mobile-img,
    .slider-tabs li .mobile-img {
        display: block !important;
    }
    
    
    .free-style-text {
        font-size: 20px;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .testimonial-container {
        padding: 30px 25px;
    }
    
    .testimonial-box p {
        font-size: 16px;
    }
    
    .testimonial-section {
        margin-bottom: 40px; /* Нормальный отступ на мобильных вместо перекрытия */
    }
    
    /* Hide navigation arrows on mobile */
    .slider-nav-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .features-slider-section h1 {
        font-size: 28px;
    }
    
    .left-wrapper h1 {
        font-size: 26px;
    }
    
    .slider-tabs li {
        padding: 12px 8px;
    }
    
    .slide-tabs-text {
        font-size: 15px;
    }
    
    .free-style-text {
        font-size: 18px;
    }
    
    .testimonial-container {
        padding: 25px 20px;
    }
    
    .testimonial-box p {
        font-size: 15px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide navigation arrows on small mobile */
    .slider-nav-arrow {
        display: none;
    }
}

/* Navigation Arrows */
.slider-image-wrapper {
    position: relative;
}

.slider-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #6C5CE7;
    font-size: 20px;
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

.slider-image-wrapper:hover .slider-nav-arrow {
    opacity: 0.8;
}

.slider-nav-arrow:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.slider-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-carousel {
    cursor: grab;
}

.slider-carousel:active {
    cursor: grabbing;
}

/* Animation for slide transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-carousel.animating {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.slide-from-right {
    animation: slideFromRight 0.3s ease-out;
}

.carousel-slide.slide-from-left {
    animation: slideFromLeft 0.3s ease-out;
}

/* Initial load animations */
.left-wrapper {
    animation: slideFromLeft 0.8s ease-out;
}

.slider-image-wrapper {
    animation: slideFromRight 0.8s ease-out;
}

