/* ==========================================================================
   Layout: Partners Grid
   Header (label + heading | partner types) + logo grid with hover effects
   ========================================================================== */

/* Wrapper ----------------------------------------------------------------- */

.pb-pg-wrap {
    padding: 16px;
}

/* Section ----------------------------------------------------------------- */

.pb-pg {
    background: var(--base-white, #fff);
    border-radius: 8px;
    padding: 150px 20px 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Header row -------------------------------------------------------------- */

.pb-pg__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

/* Left: label + heading */

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

.pb-pg__heading {
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;
}

.pb-pg__heading strong {
    font-weight: 700;
}

/* Right: partner types */

.pb-pg__types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.pb-pg__type-heading {
font-family: var(--second-family);
font-weight: 600;
font-size: 20px;
line-height: 140%;
color: var(--text-bold);
    margin: 0 0 12px;
}

.pb-pg__type-desc {
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 16px;
}

.pb-pg__type-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 16px;
    line-height: 150%;
    color: var(--brand-blue-500);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.pb-pg__type-link:hover {
    gap: 8px;
}

/* Logo grid --------------------------------------------------------------- */
.pb-pg__type-link-arrow{
    height: 18px;
    width: 18px;
}
.pb-pg__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
   
}

/* Card */

.pb-pg__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
}

.pb-pg__card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 28px 20px 20px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-left: 1px solid var(--base-border-black);
}

.pb-pg__card-link:hover .pb-pg__card-inner,
.pb-pg__card:not(:has(.pb-pg__card-link)) .pb-pg__card-inner:hover {
    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);
}

/* Logo image */

.pb-pg__card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    transition: filter 0.2s ease;
}

.pb-pg__card-logo img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.2s ease;
}

.pb-pg__card-link:hover .pb-pg__card-logo img {
    filter: grayscale(0) opacity(1);
}

/* Partner name */

.pb-pg__card-name {
font-family: var(--font-family);
font-weight: 500;
font-size: 14px;
line-height: 157%;
color: var(--text-bold);
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pb-pg__card-link:hover .pb-pg__card-name {
    opacity: 0;
    transform: translateY(-4px);
}

/* "Read more" — hidden, slides in on hover, positioned over name */

.pb-pg__card-more {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue-500, #2F6CFA);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.pb-pg__card-link:hover .pb-pg__card-more {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Cards without a link — no hover state on "Read more" */
.pb-pg__card:not(:has(.pb-pg__card-link)) .pb-pg__card-more {
    display: none;
}

/* Footer / Show more ------------------------------------------------------ */

.pb-pg__footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pb-pg__show-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 28px;
    border: 1.5px solid var(--border-light, #e8eaf0);
    border-radius: 100px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bold, #0d0d0d);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pb-pg__show-more:hover {
    border-color: var(--brand-blue-300, #93b5fd);
    box-shadow: 0 4px 16px 0 rgba(47, 108, 250, 0.10);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
    .pb-pg {
        padding: 60px 40px;
    }
}

@media (max-width: 860px) {
    .pb-pg {
        padding: 48px 24px;
    }

    .pb-pg__header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 600px) {
    .pb-pg__types {
        grid-template-columns: 1fr;
    }

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