/* ==========================================================================
   ITERATION DESIGN STYLES (SECTION 09)
   ========================================================================== */

.iteration-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align top so cards stretch if needed, or center? */
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    position: relative;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.iteration-card {
    background-color: var(--surface-card);
    /* Dark charcoal */
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-light);
    flex: 1;
    min-width: 300px;
    /* Minimum width for readability */
    max-width: 500px;
    position: relative;
}

.card-header-label {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
    text-align: center;
}

.iteration-image-wrapper {
    width: 100%;
    /* Mobile screens are usually tall/narrow images */
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 4px solid transparent;
    /* Placeholder for spacing */
}

.iteration-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Inner radius */
}

.iteration-description {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

/* Arrow Styling */
.iteration-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    /* Center vertically relative to the row */
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.arrow-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Specific Highlight for After Card */
.highlight-glow {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 102, 46, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .iteration-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .iteration-arrow-container {
        transform: rotate(90deg);
        /* Point down */
        margin: -10px 0;
        /* Adjust spacing if needed */
    }

    .iteration-card {
        width: 100%;
        max-width: 100%;
    }

    .iteration-image-wrapper {
        width: 100%;
        /* Make images slightly smaller on mobile view to save vertical space if needed, or keep 60% */
    }
}

@media (max-width: 600px) {
    .iteration-image-wrapper {
        width: 0%;
        /* standard mobile width */
    }
}

@media (max-width: 768px) {
    .card-header-label {
        font-size: 16px;
    }
}