/* How It Works Section */
.how-it-works-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    background: #f5f7f9;
}

.how-it-works-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.how-it-works-section .section-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #3675ff;
    border-radius: 2px;
}

.how-it-works-section h2 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 80px;
    color: #000000;
}

.how-it-works-section h2 .highlight {
    color: #3675ff;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    padding: 24px 0 24px 24px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item.active {
    border-left-color: #3675ff;
}

.step-item h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #000000;
    transition: color 0.3s ease;
}

.step-item.active h3 {
    color: #3675ff;
}

.step-item p {
    font-size: 18px;
    line-height: 1.7;
    color: #667085;
    opacity: 1;
    /* Always visible */
    margin-top: 8px;
    /* Always have margin */
    transition: color 0.3s ease;
    /* Only transition color if needed, removed height transition */
}

/* Optional: Highlight text color on active to match title, or keep as is. Keeping gray for now. */
.step-item.active p {
    color: #475467;
    /* Slightly darker gray for active state if desired, or keep same */
}

.step-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step-image.active {
    opacity: 1;
}

.static-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Image Support */
/* Mobile Image Support */
.mobile-step-image {
    display: none;
    width: 100%;
    aspect-ratio: 2 / 1;
    /* Shorter height for compactness */
    object-fit: cover;
    margin-top: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .how-it-works-section h2 {
        font-size: 32px;
        margin-bottom: 40px;
        line-height: 1.25;
    }

    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-image-container {
        display: none;
        /* Hide main image area on mobile */
    }

    /* Show inline image when step is active */
    .step-item.active .mobile-step-image {
        display: block;
        animation: fadeInImage 0.5s ease forwards;
    }

    @keyframes fadeInImage {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}