/* How It Works Component Styles */

.how-it-works {
    padding: 80px 0;
    background-color: #ffffff;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Section Header */
.how-it-works-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 12px;
    text-align: left;
}

.how-it-works-heading {
    font-family: 'Fira Sans', sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.4em;
    letter-spacing: -1%;
    margin: 0;
}

.rafinera-text {
    color: #333231;
}

.nasil-calisir-text {
    color: #3E7B51;
}

.how-it-works-subheading {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5em;
    color: #6E6C6A;
    margin: 0;
}

/* Steps Container */
.steps-container {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    align-self: stretch;
    gap: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    flex: 1;
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    padding-left: 20px;
    padding-right: 20px;
    height: 300px;
    min-height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    position: relative;
}



.step-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1%;
    color: #333231;
    margin: 0;
    text-align: center;
    z-index: 2;
    position: relative;
    display: none;
}

.step-description {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
    color: #333231;
    margin: 0;
    margin-top: 0;
    text-align: left;
}

/* Step Color Themes */
.step-green .step-content {
    background: url('../../assets/images/how-it-works/step-1-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.step-purple .step-content {
    background: url('../../assets/images/how-it-works/step-2-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.step-orange .step-content {
    background: url('../../assets/images/how-it-works/step-3-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.step-blue .step-content {
    background: url('../../assets/images/how-it-works/step-4-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive Design - Simplified for mobile */
@media (max-width: 768px) {
    .how-it-works {
        padding: 40px 0;
        background-color: #FFFFFF; /* White background */
    }
    
    .how-it-works-container {
        padding: 0 16px;
        gap: 40px;
    }
    
    .how-it-works-header {
        text-align: left;
        gap: 12px;
    }
    
    .how-it-works-heading {
        font-size: 32px;
        line-height: 1.4;
        text-align: left;
        font-weight: 600;
        letter-spacing: -1%;
    }
    
    .rafinera-text {
        color: #333231;
    }
    
    .nasil-calisir-text {
        color: #3E7B51;
    }
    
    .how-it-works-subheading {
        font-size: 15px;
        text-align: left;
        margin: 0;
        color: #6E6C6A;
        line-height: 1.5;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 20px;
        position: relative;
    }
    
    .step-item {
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        transition: none;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    
    /* Remove step number badge */
    .step-item::before {
        display: none;
    }
    
    /* Remove color-coded borders */
    .step-item:nth-child(1),
    .step-item:nth-child(2),
    .step-item:nth-child(3),
    .step-item:nth-child(4) {
        border-left: none;
    }
    
    .step-content {
        height: 350px;
        width: 100%;
        max-width: none;
        padding: 20px;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 8px;
        box-sizing: border-box;
    }
    
    .step-description {
        font-family: 'Fira Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        color: #333231;
        line-height: 1.5;
        text-align: left;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    
    .step-title {
        font-family: 'Fira Sans', sans-serif;
        font-size: 32px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -1%;
        color: #FFFFFF;
        margin: 0;
        text-align: left;
        z-index: 2;
        position: relative;
        display: block;
    }
    
    /* Mobile background images and solid colors */
    .step-green .step-content {
        background: rgba(40, 95, 53, 0.8), url('../../assets/images/how-it-works/step-1-mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .step-purple .step-content {
        background: rgba(71, 40, 95, 0.8), url('../../assets/images/how-it-works/step-2-mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .step-orange .step-content {
        background: rgba(95, 51, 40, 0.8), url('../../assets/images/how-it-works/step-3-mobile-785271.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .step-blue .step-content {
        background: rgba(40, 68, 95, 0.8), url('../../assets/images/how-it-works/step-4-mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Remove hover effects and animations */
    .step-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .step-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (max-width: 480px) {
    .how-it-works {
        padding: 32px 0;
    }
    
    .how-it-works-container {
        padding: 0 16px;
        gap: 32px;
    }
    
    .how-it-works-heading {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .how-it-works-subheading {
        font-size: 16px;
        max-width: 280px;
    }
    
    .step-content {
        min-height: 180px; /* Minimum height for small screens */
        width: 100%; /* Full width for better responsiveness */
        margin: 0 0 16px 0; /* Left aligned with bottom margin */
    }
    
    .step-description {
        font-size: 15px;
        line-height: 1.5;
    }
}