/* =========================================================
   INDUSTRY CARDS BLOCK
   Desktop: 1-4 equal-width cards inside the site container.
   Mobile: one card at a time with touch scrolling + arrows.
   ========================================================= */

.industry_cards_block {
    --industry-card-gap: 12px;
    --industry-card-image-size: 164px;
    --industry-card-image-overlap: 56px;
    --industry-control-blue: #1D59EC;

    margin: 0 !important;
    padding: 120px 0;
    background: var(--black);
    overflow: hidden;
}

.industry_cards_block,
.industry_cards_block *,
.industry_cards_block *::before,
.industry_cards_block *::after {
    box-sizing: border-box;
}

.industry_cards_inner {
    position: relative;
}

.industry_cards_track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--industry-card-count), minmax(0, 1fr));
    gap: var(--industry-card-gap);
    align-items: stretch;
    padding-top: var(--industry-card-image-overlap);
}

.industry_card {
    position: relative;
    min-width: 0;
    min-height: 520px;
    padding: 132px 38px 52px;
    border: 1px solid var(--color-orange);
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.industry_card.no_image {
    padding-top: 52px;
}

.industry_card_image_wrap {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--industry-card-image-size);
    height: var(--industry-card-image-size);
    overflow: hidden;
    border-radius: 50%;
    transform: translate(-50%, calc(-1 * var(--industry-card-image-overlap)));
    background: var(--black);
}

.industry_card_image_wrap img,
.industry_card_image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.industry_card_content {
    width: 100%;
    margin: 0 auto;
}

/* Keep a single full-width card readable while still letting the card fill the container. */
.industry_cards_track[data-count="1"] .industry_card_content {
    max-width: 900px;
}

.industry_card_title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--color-orange);
    font-family: var(--font-MDBoldReg);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    text-transform: none;
}

.industry_card_text {
    color: var(--white);
    font-family: var(--font-Figtree);
    font-style: normal;
    font-weight: 400;
}

.industry_card_text, .industry_card_text p {
    font-size: 20px;
    line-height: 32px;
}

.industry_card_text p,
.industry_card_text ul,
.industry_card_text ol {
    margin-top: 0;
}

.industry_card_text p {
    margin-bottom: 16px;
}

.industry_card_text p:last-child,
.industry_card_text ul:last-child,
.industry_card_text ol:last-child {
    margin-bottom: 0;
}

.industry_card_text a {
    color: inherit;
    text-decoration: underline;
}

.industry_card_text a:hover,
.industry_card_text a:focus {
    color: var(--color-orange);
}

/* Controls are a mobile-only treatment. */
.industry_cards_controls {
    display: none;
}

.industry_cards_arrow {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--industry-control-blue);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.industry_cards_arrow svg {
    width: 23px;
    height: 23px;
}

.industry_cards_arrow:hover {
    transform: translateY(-1px);
}

.industry_cards_arrow:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

/* Gutenberg/ACF empty-state preview. */
.industry_cards_block--empty {
    padding: 40px 0;
    color: var(--white);
}

.industry_cards_block--empty p {
    margin: 0;
}


@media (max-width: 1550px) {
    .industry_cards_block {
        padding: 75px 0;
    }
}

/* =========================================================
   TABLET
   3-4 items become a two-column grid before the mobile slider.
   With three items, the final card spans the full row so there
   is no unused half-row.
   ========================================================= */
@media (max-width: 1199px) and (min-width: 768px) {
    .industry_cards_track[data-count="3"],
    .industry_cards_track[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--industry-card-gap);
        row-gap: 100px;
    }

    .industry_cards_track[data-count="3"] .industry_card:last-child {
        grid-column: 1 / -1;
    }

    .industry_card {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* =========================================================
   MOBILE
   Matches the supplied mobile composition: one card, circular
   overlapping image, and two centered circular arrow controls.
   Native overflow keeps swipe/trackpad interaction available.
   ========================================================= */
@media (max-width: 767px) {

    .industry_cards_block .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .industry_cards_track {
        display: flex;
        gap: 16px;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding-top: var(--industry-card-image-overlap);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .industry_cards_track::-webkit-scrollbar {
        display: none;
    }

    .industry_card,
    .industry_cards_track[data-count="3"] .industry_card:last-child {
        flex: 0 0 100%;
        width: 100%;
        min-height: 520px;
        padding: 132px 16px 32px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .industry_card.no_image {
        padding-top: 32px;
    }

    .industry_card_title {
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 22px;
    }

    .industry_card_text {
        font-size: 16px;
        line-height: 24px;
    }

    .industry_cards_controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 28px;
    }

    .industry_cards_arrow {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .industry_cards_arrow {
        transition: none;
    }

    .industry_cards_track {
        scroll-behavior: auto;
    }
}