/* How It Works Section Improvements */

/* Desktop styles - based on the original design but with enhancements */
.how-it-works {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.how-it-works .section-title {
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.how-it-works .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color, #3A86FF), var(--secondary-color, #8B5CF6));
    border-radius: 2px;
}

/* Desktop layout - enhanced version of the original */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    width: 18%;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--card-bg, #1E293B);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-700, #374151);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Step number styling */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color, #3A86FF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

/* Step icon styling */
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--darker-color, #0A0F1C);
    border: 2px solid var(--primary-color, #3A86FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color, #3A86FF);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Step text styling */
.step h3 {
    color: var(--primary-color, #3A86FF);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.step p {
    color: var(--gray-300, #D1D5DB);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Add connecting arrows between steps */
.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -12%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color, #3A86FF);
    opacity: 0.7;
}

/* Mobile styles - completely different from desktop */
@media (max-width: 992px) {
    .steps {
        flex-direction: column;
        max-width: 100%;
    }
    
    .step {
        width: 90%;
        margin: 0 auto 2rem;
        padding: 1.5rem;
    }
    
    .step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        top: auto;
        right: auto;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small mobile styles - card-based layout with clear separation */
@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 0;
    }
    
    .steps {
        padding: 0 1rem;
    }
    
    .step {
        width: 100%;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .step-icon-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .step-content {
        width: 100%;
        text-align: center;
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .step p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .step:not(:last-child)::after {
        font-size: 1.5rem;
        bottom: -1.2rem;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 576px) {
    .step {
        padding: 1.2rem 1rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
}
