/* ==========================================================================
   Layout: Partners Marketplace
   ========================================================================== */

.pb-pm {
    padding: 0 16px 80px;
}

.pb-pm__inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.pb-pm__hero {
    max-width: 100%;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.02), 0 4px 22px 0 rgba(0, 0, 0, 0.04), 0 10px 58px 0 rgba(0, 0, 0, 0.05), 0 19px 134px 0 rgba(0, 0, 0, 0.07);
    background: var(--brand-blue-500);
    border-radius: 8px;
    padding: 24px 16px 80px 16px;

    gap: 0;
    color: #fff;
    margin-top: 90px;
    position: relative;
    width: 100%;
}

.pb-pm__hero:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-image: url("data:image/svg+xml,%3Csvg width='1408' height='341' viewBox='0 0 1408 341' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_f_2756_49498)'%3E%3Cpath d='M-131.501 -183.653L-467.034 -53.6956L-684.849 551.697L1400.3 1301.91L2161.96 810.472L1945.69 481.98L490.442 481.976L38.4271 183.771L-131.501 -183.653Z' fill='%23C22383'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_f_2756_49498' x='-1084.85' y='-583.652' width='3646.81' height='2285.57' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='200' result='effect1_foregroundBlur_2756_49498'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
}

.pb-pm__breadcrumbs,
.pb-pm__hero-body {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto
}
.pb-pm__breadcrumbs{

}
/* Breadcrumbs */
.pb-pm__breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
}

.pb-pm__crumb {
    white-space: nowrap;
    flex-shrink: 0;
}

.pb-pm__crumb--current {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.pb-pm__crumb--current span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-pm__crumb,
.pb-pm__crumb a,
.pb-pm__crumb span {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.pb-pm__crumb a:hover {
    color: #fff;
}

.pb-pm__crumb--current span {
    color: rgba(255, 255, 255, 0.95);
}

.pb-pm__crumb-sep {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 2px;
}

/* Hero body */
.pb-pm__hero-body {
    width: 100%;
    text-align: center;
}

.pb-pm__hero-title {
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 74px;
    line-height: 110%;
    letter-spacing: -0.03em;
    text-align: center;
    background: linear-gradient(159deg, rgba(255, 255, 255, 0.9) 0%, #fff 50%, rgba(255, 255, 255, 0.9) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: inset 0 1px 0px 0 var(--white-transparent-20);
    margin: 0 0 24px;
}

.pb-pm__hero-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: var(--white-transparent-80);
    max-width: 862px;
    margin: 0 auto;
}

/* ── Nav tabs ──────────────────────────────────────────────────────────── */

.pb-pm__nav-wrap {
    position: relative;
    max-width: 1280px;
    display: flex;
    justify-content: center;
      margin-left: auto;
    margin-right: auto;
}

/* Mobile trigger — hidden on desktop */
.pb-pm__nav-trigger {
    display: none;
}
.pb-pm__grid{
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.pb-pm__nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
    background: var(--base-white);
    border: 1px solid var(--base-border-black);
    border-radius: 8px;
    padding: 4px;
    gap: 12px;
}

.pb-pm__nav-btn {

    border: none;
    border-radius: 4px;
    padding: 14px 16px;
    background: transparent;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 129%;
    letter-spacing: 0.01em;
    color: var(--gray-700);
    cursor: pointer;
    transition: color 0.18s, background 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    position: relative;
}

.pb-pm__nav-btn:after {
    content: '';
    display: block;
    position: absolute;
    width: 1px;
    height: calc(100% - 8px);
    right: -6px;
    top: 4px;
    background-color: var(--base-border-black);
}

.pb-pm__nav-btn:last-child:after {
    display: none;
}

.pb-pm__nav-btn:hover {
    color: var(--brand-blue-500);
    background: var(--brand-blue-50);
}

.pb-pm__nav-btn.is-active {
    color: var(--brand-blue-500);
    background: var(--brand-blue-50);
}

/* ── Grid ──────────────────────────────────────────────────────────────── */

.pb-pm__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    transition: opacity 0.22s ease;
}

/* last column — no outer right edge */
.pb-pm__grid .pb-pm__card:nth-child(4n) {
    border-right: none;
}

.pb-pm__grid.is-loading {
    opacity: 0;
    pointer-events: none;
}

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

@keyframes pb-pm-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pb-pm__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 28px 20px 20px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    outline: none;
    border-right: 1px solid var(--base-border-black);
    border-bottom: 1px solid var(--base-border-black);
}

.pb-pm__card:hover,
.pb-pm__card:focus-visible {
    background: var(--base-white);
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.pb-pm__card.is-entering {
    animation: pb-pm-card-in 0.3s ease both;
}

/* Logo */
.pb-pm__card-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    padding-bottom: 16px;
}

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

/* Footer: title ↔ Read more */
.pb-pm__card-footer {
    position: relative;
    width: 100%;
    height: 22px;
    overflow: hidden;
    text-align: center;
}

.pb-pm__md-desc p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    color: var(--text-base);
    margin: 0 0 24px 0;
}

.pb-pm__card-title,
.pb-pm__card-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pb-pm__card-title {
    color: var(--text-base);
    opacity: 1;
    transform: translateY(0);
}

.pb-pm__card-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary, #1B5DF8);
    opacity: 0;
    transform: translateY(6px);
}

.pb-pm__card:hover .pb-pm__card-title,
.pb-pm__card:focus-visible .pb-pm__card-title {
    opacity: 0;
    transform: translateY(-6px);
}

.pb-pm__card:hover .pb-pm__card-more,
.pb-pm__card:focus-visible .pb-pm__card-more {
    opacity: 1;
    transform: translateY(0);
}

/* ── Show more ─────────────────────────────────────────────────────────── */

.pb-pm__more-wrap {
    transition: opacity 0.22s;
}

.pb-pm__more-wrap.is-hidden {
    display: none;
}

.pb-pm__more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: #fff;
    border: 1.5px solid var(--base-border-black, #e8eaf0);
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-base);
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--base-black);
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
    background: var(--base-white);
    border: 1px solid var(--base-border-black);
    border-radius: 6px;
    padding: 14px 32px;
}

.pb-pm__more:hover {
    border-color: #adb5c6;
    color: var(--text-bold);
}

.pb-pm__more svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.pb-pm__more.is-loading svg {
    transform: rotate(180deg);
}

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

.pb-pm__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-pm__modal[hidden] {
    display: none;
}

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

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

.pb-pm__modal-box {
    position: relative;
    z-index: 1;
    background: var(--base-white);
    border-radius: 16px 16px 0 0;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 80px 100px 64px 100px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .18) transparent;
}

/* Chrome / Safari — thin scrollbar inset from border-radius */
.pb-pm__modal-box::-webkit-scrollbar {
    width: 4px;
}

.pb-pm__modal-box::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 16px;
    margin-bottom: 8px;
}

.pb-pm__modal-box::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 4px;
}

.pb-pm__modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .32);
}

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

.pb-pm__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-pm__modal-close:hover {
    background: none;
}

/* Prevent body scroll when modal open + compensate scrollbar */
body.pb-pm-modal-open {
    overflow: hidden;
}



/* ── Modal content: header / logo ──────────────────────────────────────── */

.pb-pm__md-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.pb-pm__md-logo {
    max-height: 64px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Category ──────────────────────────────────────────────────────────── */

.pb-pm__md-cat {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-base);
    margin: 0 0 16px;
}

/* ── Title ─────────────────────────────────────────────────────────────── */

.pb-pm__md-title {
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 36px;
    line-height: 128%;
    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;
}

/* ── Description ───────────────────────────────────────────────────────── */

.pb-pm__md-desc {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.7;
    color: #3d4450;
    margin-bottom: 28px;
}

.pb-pm__md-desc p {
    margin: 0 0 14px;
}

.pb-pm__md-desc p:last-child {
    margin-bottom: 0;
}

/* ── Quote ─────────────────────────────────────────────────────────────── */

.pb-pm__md-quote {
    background: #f5f6fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.pb-pm__md-quote-text {
    font-family: var(--second-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #121733;
    margin: 0 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pb-pm__md-quote-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

.pb-pm__md-quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-pm__md-quote-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pb-pm__md-quote-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pb-pm__md-quote-name {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: #121733;
}

.pb-pm__md-quote-pos {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    color: #6c7680;
}

/* ── Actions ───────────────────────────────────────────────────────────── */

.pb-pm__md-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pb-pm__md-visit {
    display: inline-flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.03), 0 21px 26px 0 rgba(0, 0, 0, 0.04), 0 55px 81px 0 rgba(0, 0, 0, 0.07);
    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;
    transition: background 0.18s;
}

.pb-pm__md-visit:hover {}

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

.pb-pm__md-visit-icon svg path {
    fill: #1B5DF8;
}

.pb-pm__md-story {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    color: #1B5DF8;
    text-decoration: none;
    transition: opacity 0.18s;
}

.pb-pm__md-story:hover {
    opacity: 0.75;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pb-pm__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 3-column: reset 4n rule, apply 3n */
    .pb-pm__grid .pb-pm__card:nth-child(4n) {
        border-right: 1px solid var(--base-border-black);
    }
    .pb-pm__grid .pb-pm__card:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .pb-pm__hero {
        padding: 24px 16px 40px;
        margin-top: 16px;
    }

    .pb-pm__breadcrumbs ol {
        margin-bottom: 24px;
    }

    .pb-pm__hero-title {
        font-size: 40px;
        overflow-wrap: break-word;
    }

    .pb-pm {
        padding: 60px 16px;
    }

    .pb-pm__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2-column: reset 3n rule, apply 2n */
    .pb-pm__grid .pb-pm__card:nth-child(3n) {
        border-right: 1px solid var(--base-border-black);
    }
    .pb-pm__grid .pb-pm__card:nth-child(2n) {
        border-right: none;
    }

    /* ── Nav → dropdown ── */

    .pb-pm__nav-wrap {
        justify-content: stretch;
            position: relative;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    }

    .pb-pm__nav-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        background: var(--base-white);
        border: 1px solid var(--base-border-black);
        border-radius: 8px;
        box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.02);
        font-family: var(--second-family);
        font-weight: 600;
        font-size: 14px;
        line-height: 129%;
        color: var(--brand-blue-500);
        cursor: pointer;
        background: var(--brand-blue-50);
        border: 1px solid var(--base-border-blue);
        border-radius: 4px;
        padding: 16px;
    }

    .pb-pm__md-actions {
        flex-direction: column;
    }

    .pb-pm__md-title {
        font-size: 28px;
        line-height: 129%;
        letter-spacing: -0.02em;
    }

    .pb-pm__md-quote-text {
        font-size: 18px;
        line-height: 133%;
        letter-spacing: 0.01em;
    }

    .pb-pm__md-quote {
        padding: 16px;
    }

    .pb-pm__md-desc p {
        font-size: 14px;
        line-height: 157%;
        letter-spacing: 0.02em;
        margin: 0 0 16px 0;
    }

    .pb-pm__md-actions a {
        width: 100%;
        justify-content: center;
    }

    .pb-pm__md-visit {
        position: relative;
        height: 56px;
        padding: 0px;
    }

    .pb-pm__md-visit-icon {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
    }

    .pb-pm__modal-box {
        width: 100%;
        padding: 72px 16px 40px 16px;
    }

    .pb-pm__hero-desc {
        font-size: 16px;
        line-height: 150%;
        letter-spacing: 0.01em;
    }

    .pb-pm__nav-trigger svg {
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .pb-pm__nav-trigger.is-open svg {
        transform: rotate(180deg);
    }

    .pb-pm__nav {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;

        height: 300px;
        overflow-y: auto;
        padding: 8px 16px 8px 8px;
        border: 1px solid var(--base-border-black);
        border-radius: 8px;
        box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
        background: var(--base-white);

        /* thin scrollbar */
        scrollbar-width: thin;
        scrollbar-color: var(--base-border-black) transparent;
    }

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

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

    .pb-pm__nav::-webkit-scrollbar-thumb {
        background: var(--base-border-black);
        border-radius: 4px;
    }

    .pb-pm__nav-trigger.is-open+.pb-pm__nav {
        display: flex;
    }

    .pb-pm__nav-btn {
        border-radius: 4px;
        text-align: left;
        width: 100%;
    }

    .pb-pm__nav-btn:after {
        display: none;
    }
}

@media (max-width: 480px) {}