/* How it Works Section Styles - Exact Match to Image */

.how-it-works-section {
    background: #f8fafc;
    padding: 80px 0;
    min-height: 500px;
}

.how-it-works-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ewbly-brand {
    position: relative;
    color: #374151;
}

.ewbly-brand::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #10B981;
    border-radius: 2px;
}

.how-it-works-subtitle {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 60px;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 300px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-numbers {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.step-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-description {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

.step-connector {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #E5E7EB;
    z-index: 1;
    transform: translateX(-50%);
}

.step-connector:last-child {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .how-it-works-title {
        font-size: 2.25rem;
    }
    
    .how-it-works-subtitle {
        font-size: 0.95rem;
    }
    
    .steps-container {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .how-it-works-title {
        font-size: 2rem;
        margin-bottom: 14px;
    }
    
    .how-it-works-subtitle {
        font-size: 0.95rem;
        margin-bottom: 50px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .step-item {
        max-width: 400px;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 20px;
    }
    
    .step-numbers {
        font-size: 1.375rem;
    }
    
    .step-title {
        font-size: 1.125rem;
        margin-bottom: 10px;
    }
    
    .step-description {
        font-size: 0.9rem;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 50px 0;
    }
    
    .how-it-works-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .how-it-works-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .steps-container {
        gap: 35px;
    }
    
    .step-item {
        max-width: 350px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 18px;
    }
    
    .step-numbers {
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .how-it-works-section {
        padding: 40px 0;
    }
    
    .how-it-works-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .how-it-works-subtitle {
        font-size: 0.85rem;
        margin-bottom: 35px;
        padding: 0 15px;
    }
    
    .steps-container {
        gap: 30px;
    }
    
    .step-item {
        max-width: 300px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 16px;
    }
    
    .step-numbers {
        font-size: 1.125rem;
    }
    
    .step-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 0.8rem;
    }
}

/* Animation Effects */
.step-item {
    animation: fadeInUp 0.6s ease-out;
}

.step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.step-item:nth-child(3) {
    animation-delay: 0.2s;
}

.step-item:nth-child(5) {
    animation-delay: 0.3s;
}

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

/* Hover Effects */
.step-item:hover .step-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.step-item:hover .step-title {
    color: #1F2937;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .step-icon {
        background: #1E40AF;
        border: 2px solid #000000;
    }
    
    .step-title {
        color: #000000;
    }
    
    .step-description {
        color: #333333;
    }
    
    .step-connector {
        background: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .step-item {
        animation: none;
    }
    
    .step-item:hover .step-icon {
        transform: none;
    }
}
