/* ==========================================================================
   Layout: Strategic Partners
   Hub-and-spoke diagram — SVG connector arms per card position.
   Geometry: --stn-arm 120px, main-row 420px, card centres at ±144px from hub.
   ========================================================================== */

/* ── Arm length: hub-col = 2 × --stn-arm ────────────────────────────────── */
.pb-stn__diagram {
    --stn-arm: 120px;
}

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.pb-stn {
    padding: 100px 16px;
}

.pb-stn__inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.pb-stn__header {
    text-align: center;
    margin-bottom: 40px;
}

.pb-stn__label {
    font-family: var(--font-family);
    font-weight: 450;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: #61647a;
    margin: 0 0 24px 0;
}

.pb-stn__heading {
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 36px;
    line-height: 128%;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(169deg, rgba(0, 5, 25, 0.9) 0%, #000519 50%, rgba(0, 5, 25, 0.9) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto 24px auto;
    max-width: 510px;
}

.pb-stn__desc {
    font-family: var(--font-family);
    font-weight: 450;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--text-base);
    max-width: 510px;
    margin: 0 auto;
}

/* ── Diagram container ───────────────────────────────────────────────────── */

.pb-stn__diagram {
    background: var(--gray-25);
    border-radius: 8px;
    margin: 0 auto;
    padding: 80px 64px;
}

/* ── Main row: 3 flex columns ────────────────────────────────────────────── */

.pb-stn__main-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 352px;
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* spoke-bottom is absolute inside here on desktop */
}

/* ── Partner columns ─────────────────────────────────────────────────────── */
/*
 * Explicit spacing so card centres land at hub_centre ± 144 px.
 * With 3 × 80px cards, gap 38px, padding-top 26px in a 420px column:
 *   card 1 centre = 26 + 40 = 66px   (hub − 144)
 *   card 2 centre = 26+80+8+18+38+40 = 210px = hub centre
 *   card 3 centre = 210 + 144 = 354px
 */

.pb-stn__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.pb-stn__col--left {
    align-items: flex-start;
}

.pb-stn__col--right {
    align-items: flex-end;
}

/* ── Hub column ──────────────────────────────────────────────────────────── */

.pb-stn__hub-col {
    width: calc(2 * var(--stn-arm));
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pb-stn__hub {
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--base-white, #fff);
    border: 1.5px solid var(--base-border-black, #e8eaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.pb-stn__hub-img,
.pb-stn__hub-svg {
    max-width: 98px;
    max-height: 98px;
    object-fit: contain;
    display: block;
}

/* ── Hub edge junction dots ──────────────────────────────────────────────── */

.pb-stn__hub-dot {
    position: absolute;
    display: flex;
    pointer-events: none;
    z-index: 2;
}

.pb-stn__hub-dot--left {
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.pb-stn__hub-dot--right {
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.pb-stn__hub-dot--bottom {
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Bottom spoke wrapper (vertical arm + 7th card) ─────────────────────── */

.pb-stn__spoke-bottom {
    position: absolute;
    top: calc(50% + 90px); /* hub centre + hub radius + gap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    pointer-events: none;
}

.pb-stn__spoke-bottom > * {
    pointer-events: auto;
}

/* ── Vertical arm (hub → bottom card) ───────────────────────────────────── */

.pb-stn__varm {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Bottom card (7th partner) ───────────────────────────────────────────── */

.pb-stn__bottom-card .pb-stn__dot {
    top: -22px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* ── Partner item ────────────────────────────────────────────────────────── */

.pb-stn__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    outline: none;
}

/* ── Card box ────────────────────────────────────────────────────────────── */

.pb-stn__card {
    position: relative;
    width: 209px;
    height: 64px;
    border: 1.5px solid var(--base-border-black, #e8eaf0);
    border-radius: 12px;
    background: var(--base-white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 3px 8px 0 rgba(59, 44, 177, 0.06);
background: var(--base-white);
}

/* Logo — grayscale by default, colour on hover */
.pb-stn__card-img {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    display: block;
    filter: grayscale(1);
    opacity: 0.25;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.pb-stn__card-placeholder {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-subtle, #6c7680);
    text-align: center;
}

/* Hover state */
.pb-stn__item:hover .pb-stn__card,
.pb-stn__item:focus-visible .pb-stn__card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.pb-stn__item:hover .pb-stn__card-img,
.pb-stn__item:focus-visible .pb-stn__card-img {
    filter: grayscale(0);
    opacity: 1;
}

/* ── Card junction dots ──────────────────────────────────────────────────── */

.pb-stn__dot {
    position: absolute;
    display: flex;
    pointer-events: none;
    z-index: 2;
}

.pb-stn__col--left .pb-stn__dot {
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.pb-stn__col--right .pb-stn__dot {
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── SVG arm connectors (inside .pb-stn__card, position: relative) ───────── */
/*
 * l1/r1 — top card    : SVG path starts at card-centre → top of 144px SVG
 * l2/r2 — middle card : 2px straight line → centred at card-centre
 * l3/r3 — bottom card : SVG path starts at card-centre → bottom of 146px SVG
 */

.pb-stn__arm {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* Left arms — extend from card's right edge toward hub */
.pb-stn__arm--l1 { left: calc(100% + 29px); top: 50%; }
.pb-stn__arm--l2 { left: calc(100% + 29px); top: 50%; transform: translateY(-50%); }
.pb-stn__arm--l3 { left: calc(100% + 29px); top: 50%; transform: translateY(-100%); }

/* Right arms — extend from card's left edge toward hub */
.pb-stn__arm--r1 { right: calc(100% + 29px); top: 50%; }
.pb-stn__arm--r2 { right: calc(100% + 29px); top: 50%; transform: translateY(-50%); }
.pb-stn__arm--r3 { right: calc(100% + 29px); top: 50%; transform: translateY(-100%); }

/* ── Card name ───────────────────────────────────────────────────────────── */

.pb-stn__card-name {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle, #6c7680);
    text-align: center;
    max-width: 128px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.pb-stn__item:hover .pb-stn__card-name {
    color: var(--brand-blue-500, #1b5df8);
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.pb-stn__modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pb-stn__modal[hidden] {
    display: none;
}

.pb-stn__modal.is-open {
    opacity: 1;
}

.pb-stn__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.pb-stn__modal-box {
    position: relative;
    z-index: 1;
    background: var(--base-white, #fff);
    border-radius: 16px 16px 0 0;
    width: min(920px, calc(100vw - 32px));
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.pb-stn__modal-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    padding: 80px 100px 64px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

.pb-stn__modal-scroll::-webkit-scrollbar {
    width: 4px;
}

.pb-stn__modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.pb-stn__modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.pb-stn__modal.is-open .pb-stn__modal-box {
    transform: translateY(0);
}

.pb-stn__modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.pb-stn__modal-close:hover {
    background: var(--base-bg, #f5f6fa);
}

body.pb-stn-modal-open {
    overflow: hidden;
}

/* ── Modal content ───────────────────────────────────────────────────────── */

.pb-stn__md-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 85px;
    margin-top: 40px;
    max-width: 530px;
    margin-left: auto;
    margin-right: auto;
}

.pb-stn__md-logo {
    max-height: 80px;
    height: auto;
    width: 100%;
    object-fit: contain;
    display: block;
}

.pb-stn__md-type {
    font-family: var(--font-family);
font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: 24px; /* 160% */
letter-spacing: 0.75px;
text-transform: uppercase;
    margin: 0 0 16px;
    color: var(--text-base, #61647A);
}

.pb-stn__md-title {
    font-family: var(--second-family);
    font-size: 36px;
    font-weight: 550;
    line-height: 120%;
    letter-spacing: -0.02em;
    background: linear-gradient(169deg, rgba(0, 5, 25, 0.9) 0%, #000519 50%, rgba(0, 5, 25, 0.9) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 24px;
}

.pb-stn__md-desc {
    font-family: var(--font-family);
color: var(--text-base, #61647A);
font-size: 16px;
font-style: normal;
font-weight: 450;
line-height: 24px; /* 150% */
letter-spacing: 0.16px;
    margin-bottom: 32px;
}

.pb-stn__md-visit {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(180deg, #4b81fe 0%, #1b5df8 100%);
    color: #fff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    padding: 4px 4px 4px 24px;
    box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.03), 0 21px 26px 0 rgba(0, 0, 0, 0.04);
    transition: opacity 0.18s;
}

.pb-stn__md-visit:hover {
    opacity: 0.88;
}

.pb-stn__md-visit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.pb-stn__md-visit-icon svg path {
    fill: #1b5df8;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
   .pb-stn__col--left-mob,
   .pb-stn__col--right-mob{
        display: none;
    }
@media (max-width: 768px) {
    .pb-stn {
        padding: 56px 16px;
    }

    .pb-stn__label {
        font-size: 12px;
        text-align: left;
    }

    .pb-stn__heading {
        font-size: 28px;
        line-height: 129%;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .pb-stn__desc {
        text-align: left;
        font-size: 14px;
        margin-left: 0;
        margin-right: 0;
    }

    .pb-stn__header {
        margin-bottom: 32px;
    }

    .pb-stn__diagram {
        padding: 32px 16px;
        border-radius: 16px;
    }

    /* ── Vertical stack: top-3 → hub → bottom-3 → bottom-1 ── */
    .pb-stn__main-row {
        flex-direction: column;
        align-items: center;
        min-height: unset;
        position: static; /* spoke-bottom flows in-place, no absolute */
    }

    /* Partner columns: vertical stack of cards */
    .pb-stn__col {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        justify-content: flex-start;
    }

    .pb-stn__col--left  { align-items: center; padding-bottom: 20px; }
    .pb-stn__col--right { align-items: center; padding-top: 20px; }

    /* Hub */
    .pb-stn__hub-col {
        width: auto;
        padding: 0;
    }

    .pb-stn__hub {
        width: 100px;
        height: 100px;
    }

    .pb-stn__hub-img,
    .pb-stn__hub-svg {
        max-width: 70px;
        max-height: 70px;
    }

    /* Hide side hub dots; bottom dot stays for spoke-bottom connection */
    .pb-stn__hub-dot--left,
    .pb-stn__hub-dot--right { display: none; }
    .pb-stn__hub-dot--bottom { display: flex; }

    /* Cards: centered, fixed width */
    .pb-stn__card {
        width: 100%;
        max-width: calc(100vw - 80px);
        height: 100%;
        border-radius: 8px;
    }

    .pb-stn__card-img { max-height: 36px; }

    /* Hide SVG arm connectors, show junction dots */
    .pb-stn__arm { display: none; }
    .pb-stn__dot { display: flex; }

    /* Spoke-bottom: in-flow below right col */
    .pb-stn__spoke-bottom {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        gap: 0;
        padding-top: 0;
    }

    /* Hide varm — hub and bottom card are separated by right col */
    .pb-stn__varm { display: none; }

    /* Bottom card dot: top edge */
    .pb-stn__bottom-card .pb-stn__dot {
        top: -22px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    /* ── Modal ── */
    .pb-stn__modal-box {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .pb-stn__modal-scroll {
        padding: 45px 20px 40px;
    }

    .pb-stn__md-title   { font-size: 26px; }
    .pb-stn__md-visit   { justify-content: center; }
    .pb-stn__md-logo    { max-width: 260px; }
    .pb-stn__md-logo-wrap { margin-top: 50px; margin-bottom: 50px; }
    .pb-stn__md-type    { font-size: 12px; font-weight: 500; }
    .pb-stn__md-desc    { font-size: 14px; }
    .pb-stn__dot,
    .pb-stn__hub-dot{
        display: none;
    }
    .pb-stn__col{
        gap: 10px;
    }
    .pb-stn__hub{
        width: 80px;
        height: 80px;
    }
    .pb-stn__col--left{
        padding-bottom: 40px;
    }
    .pb-stn__col--right{
        padding-top: 40px;
    }
    .pb-stn__bottom-card{
        margin-top: 10px;
    }
    .pb-stn__hub-img, .pb-stn__hub-svg{
        width: 65px;
        height: 65px;
    }
    .pb-stn__col--right,
    .pb-stn__col--left{
        position: relative;
    }
     .pb-stn__col--right-mob{
        display: block;
        position: absolute;
        right: calc(50% + 20px);
        z-index: 1;
        top: -64px;
    }
    .pb-stn__col--left-mob{
        display: block;
           position: absolute;
        left: calc(50% + 20px);
        bottom: -82px;
        z-index: 1;
    }
    .pb-stn__card-img{
        filter: none;
    }
    .pb-stn__item{
        height: 64px;
        width: 209px;
    }
    .pb-stn__card-img{
        opacity: 1;
    }
    .pb-stn__item{
        position: relative;
        z-index: 2;
    }
}
