/* ─────────────────────────────────────────
   SHELL / TRACK
   Layout mode (single / row2 / row3 / slider) is set by the parent as a
   class on .orbisk-ifc-shell, derived purely from its own children count.
───────────────────────────────────────── */
.orbisk-ifc-viewport {
    overflow: visible;
}

.orbisk_info_card_item .et_pb_module_inner {
    padding: 0;
    height: 100%;
}

/* row2 / row3 — static grid, no sliding, nav hidden (row3 only at TRUE
   desktop — see the ≥1024px / tablet / mobile media queries below, it
   collapses into a sliding 2-up row well before row2 needs to change) */
.orbisk-ifc-mode-row2 .orbisk-ifc-track,
.orbisk-ifc-mode-row3 .orbisk-ifc-track {
    display: grid;
    gap: 24px;
}

.orbisk-ifc-mode-row2 .orbisk-ifc-track {
    grid-template-columns: repeat(2, 1fr);
}

.orbisk-ifc-mode-row3 .orbisk-ifc-track {
    grid-template-columns: repeat(3, 1fr);
}

.orbisk-ifc-mode-row2 .orbisk-ifc-nav,
.orbisk-ifc-mode-row3 .orbisk-ifc-nav,
.orbisk-ifc-mode-single .orbisk-ifc-nav {
    display: none;
}

/* single — one full-width card, no grid/slider chrome */
.orbisk-ifc-mode-single .orbisk-ifc-track {
    display: block;
}

/* slider (4+ cards) — pages of 3 cards at a time on TRUE desktop (≥1024px,
   same width as row3's grid, NOT stretched to fill the row like single-card
   mode), dropping to 2 at a time on tablet and 1 at a time on mobile — see
   the ≥1024px / tablet / mobile media queries below. All viewports slide;
   only how many cards are visible per "page" changes. See info-card.js for
   the matching group-index → translateX math. */
.orbisk-ifc-mode-slider .orbisk-ifc-viewport {
    overflow: hidden;
}

.orbisk-ifc-mode-slider .orbisk-ifc-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.orbisk-ifc-mode-slider .orbisk_info_card_item {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    min-width: 0;
}

.orbisk-ifc-mode-slider .orbisk-ifc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

/* ─────────────────────────────────────────
   CARD — compact family (row2 / row3 / slider)
───────────────────────────────────────── */
.orbisk-ifc-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 375px;
    overflow: hidden;
    padding: 27px 32px;
    border-radius: 16px;
    background-color: #ECF4EC;
}

.orbisk-ifc-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.orbisk-ifc-eyebrow {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    color: #FD712B;
    margin-bottom: 16px;
}

.orbisk-ifc-logo {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 36px;
}

.orbisk-ifc-quote {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #13382A;
    margin: 0;
}

.orbisk-ifc-quote p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.orbisk-ifc-person-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.orbisk-ifc-avatar,
.orbisk-ifc-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.orbisk-ifc-avatar-placeholder {
    background-color: rgba(19, 56, 42, 0.1);
}

.orbisk-ifc-person-details {
    display: flex;
    flex-direction: column;
}

.orbisk-ifc-person-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #13382A;
}

.orbisk-ifc-person-title,
.orbisk-ifc-company {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #13382A;
}

/* Feature image only exists visually in single-card mode */
.orbisk-ifc-feature-image {
    display: none;
}

/* ─────────────────────────────────────────
   NAV ROW (indicators + arrows)
───────────────────────────────────────── */
.orbisk-ifc-indicators {
    display: flex;
    align-items: center;
    gap: 21px;
}

.orbisk-ifc-indicator {
    display: block;
    height: 10px;
    width: 10.57px;
    border-radius: 3px;
    background-color: rgba(19, 56, 42, 0.1);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.orbisk-ifc-indicator.is-active {
    width: 52.86px;
    background-color: #13382A;
}

/* "slider" and "row3" render multiple indicator sets — one per width tier,
   since how many cards page together differs by tier (see the ≥1024px /
   tablet / mobile media queries below): --group3 (one dot per 3 cards, true
   desktop only, "slider" only), --group2 (one dot per 2 cards, tablet only,
   "slider" and "row3"), --card (one dot per literal card, mobile only, every
   mode). Exactly one set is visible at a time per breakpoint. row2/single
   only ever render the plain (un-suffixed) .orbisk-ifc-indicators, which is
   unaffected by these rules and keeps its own existing mobile-only toggle. */
.orbisk-ifc-indicators--group3,
.orbisk-ifc-indicators--group2,
.orbisk-ifc-indicators--card {
    display: none;
}

@media (min-width: 1024px) {
    .orbisk-ifc-indicators--group3 {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .orbisk-ifc-indicators--group2 {
        display: flex;
    }
}

@media (max-width: 767px) {
    .orbisk-ifc-indicators--card {
        display: flex;
    }
}

.orbisk-ifc-arrows {
    display: flex;
    gap: 12px;
}

.orbisk-ifc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #ECF4EC;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.orbisk-ifc-arrow:hover {
    background-color: #004737;
}

.orbisk-ifc-arrow:hover svg path {
    stroke: #ffffff;
}

.orbisk-ifc-arrow--next svg {
    transform: scaleX(-1);
}

/* ─────────────────────────────────────────
   SINGLE MODE — one full-width feature card
───────────────────────────────────────── */
.orbisk-ifc-mode-single .orbisk-ifc-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
    height: auto;
    overflow: visible;
    padding: 56px;
}

.orbisk-ifc-mode-single .orbisk-ifc-content {
    flex: 1;
    justify-content: center;
}

.orbisk-ifc-mode-single .orbisk-ifc-quote {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: #13382A;
    margin-bottom: 32px;
}

.orbisk-ifc-mode-single .orbisk-ifc-person-row {
    margin-top: 0;
}

.orbisk-ifc-mode-single .orbisk-ifc-feature-image {
    display: block;
    width: 340px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
}

/* ─────────────────────────────────────────
   TABLET (768px–1023px)
   - row2 still fits statically (unaffected — 2 cards already the target width)
   - row3 (3 cards) collapses from a static 3-up grid into a sliding 2-up row
     — 3 columns looked squashed at tablet widths, so anything with MORE than
     2 cards drops to the same 2-up width row2 already uses at this size
   - slider (4+) drops from 3-cards-per-page to 2-cards-per-page, same width
     formula as row2's 2 columns
   - single is unaffected (always full-width, no grid concept to squash)
───────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .orbisk-ifc-mode-row3 .orbisk-ifc-viewport {
        overflow: hidden;
    }

    .orbisk-ifc-mode-row3 .orbisk-ifc-track {
        display: flex;
        gap: 24px;
        transition: transform 0.4s ease;
    }

    .orbisk-ifc-mode-row3 .orbisk_info_card_item,
    .orbisk-ifc-mode-slider .orbisk_info_card_item {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2);
        min-width: 0;
    }

    .orbisk-ifc-mode-row3 .orbisk-ifc-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
    }
}

/* ─────────────────────────────────────────
   MOBILE (≤767px)
   - single stays a single card (stacks text/image)
   - row2 / row3 collapse into a one-at-a-time slider (doesn't fit a phone)
   - slider (4+) drops to 1-card-per-page too — every card individually
     reachable, not frozen within whichever group it belongs to (see
     info-card.js)
───────────────────────────────────────── */
@media (max-width: 767px) {
    .orbisk-ifc-mode-single .orbisk-ifc-card {
        flex-direction: column;
    }

    .orbisk-ifc-mode-single .orbisk-ifc-feature-image {
        width: 100%;
        height: 240px;
    }

    .orbisk-ifc-mode-row2 .orbisk-ifc-viewport,
    .orbisk-ifc-mode-row3 .orbisk-ifc-viewport {
        overflow: hidden;
    }

    .orbisk-ifc-mode-row2 .orbisk-ifc-track,
    .orbisk-ifc-mode-row3 .orbisk-ifc-track {
        display: flex;
        transition: transform 0.4s ease;
    }

    .orbisk-ifc-mode-row2 .orbisk_info_card_item,
    .orbisk-ifc-mode-row3 .orbisk_info_card_item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .orbisk-ifc-mode-row2 .orbisk-ifc-nav,
    .orbisk-ifc-mode-row3 .orbisk-ifc-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
    }

    .orbisk-ifc-mode-slider .orbisk-ifc-track {
        gap: 0;
    }

    .orbisk-ifc-mode-slider .orbisk_info_card_item {
        flex: 0 0 100%;
        width: 100%;
    }
}
