/**
 * Data Automation - Flex Part Styles
 * Duplicated from evaluate_generate + 3rd block, colored titles, diagram title, mobile carousel.
 * Figma: Desktop 1249:12663, Mobile 1291:15891
 */

.data-automation {
    padding: 80px 0 40px;
}

/* Section title — centered above wrapper */
.data-automation__section-title {
    font-family: "Funnel Sans", sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.19px;
    color: #1D004B;
    text-align: center;
    margin: 0 0 40px;
}

/* ── Desktop wrapper — same as evaluate-generate ── */
.data-automation__wrapper {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.data-automation__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.data-automation__block {
    display: flex;
    flex: 1;
    padding: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    border-radius: 8px;
    background: var(--color-white, #FFF);
    box-shadow: 0 4px 15px 3px rgba(39, 43, 43, 0.08);
}

.data-automation__title {
    font: var(--font-h2);
    letter-spacing: var(--font-h2-spacing);
    margin: 0;
    /* color set inline per block */
}

.data-automation__content {
    font: var(--font-body-lg);
    color: var(--color-gray-05, #434344);
}

.data-automation__content p {
    margin: 0;
}

.data-automation__content p + p {
    margin-top: 16px;
}

/* Diagram — right side */
.data-automation__diagram {
    display: flex;
    flex: 1;
    padding: 40px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 72px;
    border-radius: 8px;
    background: var(--color-white, #FFF);
    box-shadow: 0 4px 15px 3px rgba(39, 43, 43, 0.08);
}

.data-automation__diagram-title {
    font-family: "Funnel Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 120%;
    color: #1D004B;
    text-align: center;
    margin: 0;
    padding: 0 40px;
}

.data-automation__diagram img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile wrapper — hidden on desktop */
.data-automation__mobile {
    display: none;
}

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
    .data-automation__wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .data-automation__left {
        flex: unset;
    }

    .data-automation__block {
        flex: unset;
    }

    .data-automation__diagram {
        min-height: 400px;
    }
}

/* ── Mobile (768px) ── */
@media (max-width: 768px) {
    .data-automation {
        padding: 60px 0;
    }

    /* Section title — mobile H2 token */
    .data-automation__section-title {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: 0.16px;
        text-align: center;
        margin-bottom: 40px;
    }

    /* Hide desktop layout */
    .data-automation__wrapper {
        display: none;
    }

    /* Show mobile layout */
    .data-automation__mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Carousel — horizontal scroll like news events */
    .data-automation__carousel {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .data-automation__carousel::-webkit-scrollbar {
        display: none;
    }

    .data-automation__card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
        background: #FFFFFF;
        border-radius: 8px;
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .data-automation__card-title {
        font-family: "Funnel Sans", sans-serif;
        font-size: 26px;
        font-weight: 600;
        line-height: 120%;
        margin: 0;
    }

    .data-automation__card-content {
        font-family: "Funnel Sans", sans-serif;
        font-size: 20px;
        font-weight: 300;
        line-height: 150%;
        color: #000;
    }

    .data-automation__card-content p {
        margin: 0;
    }

    .data-automation__card-content p + p {
        margin-top: 16px;
    }

    /* Diagram card below carousel */
    .data-automation__mobile-diagram {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 0;
        border-radius: 8px;
        background: #FFFFFF;
        box-shadow: 0 4px 15px 3px rgba(39, 43, 43, 0.08);
    }

    .data-automation__mobile-diagram .data-automation__diagram-title {
        font-size: 24px;
    }

    .data-automation__mobile-diagram img {
        max-width: 100%;
        object-fit: contain;
    }
}
