/* Step by Step Block Frontend Styles */
.step-by-step-block {
    margin: 3rem 0;
    padding: 0;
    background-color: var(--tcm-theme-bg, #1a1d29);
    border-radius: 12px;
    overflow: hidden;
}

/* Header Section */
.step-by-step-header {
    text-align: left;
    margin-bottom: 40px;
}

.step-by-step-block .step-main-title {
    margin: 0 0 0.5rem 0;
    font-size: 32px !important;
    font-family: 'Clash Display', 'Clash Display Variable', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #FFFFFF !important;
    margin-bottom: -7px;
    padding: 0;
}

.step-sub-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--step-title-color, #2CD8B9);
    line-height: 1.2;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Individual Step */
.step-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* padding: 2rem; */
    transition: all 0.3s ease;
}

/* Step without image - single column layout */
.step-item.step-no-image {
    display: block;
}

.step-item.step-no-image .step-content {
    max-width: 100%;
}

/* Step Content */
.step-content {
    display: flex;
    flex-direction: column;
}

.step-by-step-block .step-number {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700 !important;
    font-family: 'Clash Display', 'Clash Display Variable', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E9ECFC;
    margin-bottom: 0;
}

.step-by-step-block .step-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700 !important;
    font-family: 'Clash Display', 'Clash Display Variable', sans-serif !important;
    text-transform: uppercase;
    color: #2CD8B9;
    line-height: 1.3;
    /* margin-bottom: 24px; */
}

.step-description {
    margin: 0;
    font-size: 16px;
    font-family: 'Vela Sans', sans-serif !important;
    color: #E9ECFC;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Step Image */
.step-image {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(26, 29, 41, 0.8);
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.step-item:hover .step-image img {
    transform: scale(1.05);
}

/* Placeholder for missing images */
.step-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 216, 185, 0.05);
    border: 2px dashed rgba(44, 216, 185, 0.2);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(233, 236, 252, 0.4);
}

.placeholder-content svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Desktop Layout */
@media (min-width: 768px) {
    
    .step-item {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
        /* padding: 2.5rem; */
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 0 !important;
    }
    
    .step-image {
        height: 200px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .step-item {
        grid-template-columns: 1fr 400px;
        gap: 15px;
        /* padding: 3rem; */
    }
    
    /* Step without image remains single column */
    .step-item.step-no-image {
        grid-template-columns: 1fr;
        display: block;
    }
    
    .step-image {
        height: 262px;
    }
}

/* Animation - DISABLED */
/*
.step-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-item.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
*/

/* Stagger animation for steps - DISABLED */
/*
.step-item:nth-child(1) { transition-delay: 0.1s; }
.step-item:nth-child(2) { transition-delay: 0.2s; }
.step-item:nth-child(3) { transition-delay: 0.3s; }
.step-item:nth-child(4) { transition-delay: 0.4s; }
.step-item:nth-child(5) { transition-delay: 0.5s; }
*/

/* Mobile optimizations */
@media (max-width: 767px) {
    .step-by-step-block {
        padding: 0 20px
    }
    
    .step-sub-title {
        font-size: 24px;
    }
    
    .steps-container {
        gap: 1.5rem;
    }
    
    .step-item {
        /* padding: 1.5rem; */
        display: flex;
        flex-direction: column;
    }
    
    /* Контент шага (номер и заголовок) */
    .step-content {
        order: 0;
    }
    
    /* Скрываем десктопное описание на мобильных */
    .step-description-desktop {
        display: none;
    }
    
    /* Изображение в середине */
    .step-image {
        order: 1;
        height: 220px;
        margin-bottom: 1rem;
    }
    
    /* Мобильное описание под изображением */
    .step-description-mobile {
        order: 2;
        font-size: 16px;
        color: #E9ECFC;
        font-family: 'Vela Sans', sans-serif;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        margin: 0;
    }
    
    .step-title {
        font-size: 18px;
    }
}

/* Скрываем мобильное описание на десктопе */
@media (min-width: 768px) {
    .step-description-mobile {
        display: none;
    }
}