/* ==================== HOW IT WORKS SECTION ==================== */

.how-it-works {
    background-color: var(--dark-bg);
    padding: var(--spacing-xl) 0;
}

.how-it-works .section-title {
    color: var(--light-text);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-primary);
}

/* Timeline Container */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

/* Timeline Item */
.timeline-item {
    background: var(--card-bg);
    padding: 0;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Flex sizing - Mobile first (full width) */
    width: 100%;
    flex: 1 1 100%;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Timeline Number */
.timeline-number {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Timeline Image */
.timeline-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

/* Timeline Content */
.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    text-align: center;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 600;
}

.timeline-description {
    color: var(--muted-text);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* CTA Section */
.how-it-works-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-xl);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .timeline-item {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2); /* 2 per row */
        min-height: 400px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .timeline-item {
        flex: 0 0 calc(33.333% - var(--spacing-lg)); /* 3 per row */
        max-width: 350px;
        min-height: 450px;
    }
}
