/* =========================================================
   Partner Ecosystem Block
   ========================================================= */

.pe-section {
    padding: 120px 0 0;
}

/* Section heading */
.pe-section-title {
    margin-bottom: 32px !important;
}

/* ── Grid – 4 columns, last row auto-centred ─────────────── */
.pe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 20px;
    justify-content: center;
}

/* ── Card shell ──────────────────────────────────────────── */
.pe-card {
    position: relative;
    border-radius: 12px;
    background: #F8F8F8;
    overflow: hidden;
    flex: 0 0 calc(25% - 15px);
    min-height: 260px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ── Hand cursor anywhere on a linkable card ── */
.pe-card--has-link {
    cursor: pointer;
}


/* ── FRONT FACE ──────────────────────────────────────────── */
.pe-card__front {
    display: flex;
    width: 85%;
    justify-content: center;
    align-items: center;
}

/* Logo */
.pe-card__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pe-card__logo {
    width: 100%;
    display: block;
}

/* "Learn More" — pinned 31px from the card bottom */
.pe-card__front-footer {
    position: absolute;
    bottom: 31px;
    left: 0;
    right: 0;
    text-align: center;
}

.pe-card__learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.pe-card--has-hover .pe-card__back {
    display: none;
}
.pe-card__back {
    position: absolute;
    inset: 0;
    background: #544FF8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 37px 31px;
    transition: opacity 0.3s ease;
}

/* Reveal back on card hover */
.pe-card--has-hover:hover .pe-card__back {
   display: block;
}

/* Fade / push front out */
.pe-card--has-hover:hover .pe-card__front {
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
}

/* ── Back inner content ──────────────────────────────────── */
.pe-card__back-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.pe-card__back-title {
   color: #FFF;
    text-align: center;
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 32.2px */
    margin-bottom: 8px;
}

.pe-card__back-subtitle {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 112.5% */
    margin: 0;
    padding-bottom: 12px;
}

.pe-card__back-desc {
   color: #FFF;
    text-align: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 138.462% */
}

/* Back "Learn More" button – pushed to bottom via margin-top:auto;
   position remains static so stretched-link::after anchors to .pe-card__back */
.pe-card__back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    margin-top: auto;
    width: 100%;
    position: absolute;
    bottom: 31px;
}



.pe-card__back-btn img {
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}
/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
   .pe-section {
        padding: 80px 0 0;
    }
    .pe-card {
        min-height: 126px;
    }
    .pe-card__front-footer {
        bottom: 12px;
    }
    .pe-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px 20px;
        justify-content: center;
    }
    /* Keep back hidden — no hover overlay on tablet/mobile */
    .pe-card--has-hover:hover .pe-card__back {
        display: none;
    }

    /* Reset front-face transform so it stays in place and is clickable */
    .pe-card--has-hover:hover .pe-card__front {
        transform: none;
        /* pointer-events: auto; */
    }
}

/* Tablet – 2 columns */
@media (max-width: 767.98px) {
    .pe-section {
        padding: 60px 0 0;
    }
    .pe-card {
        flex: 0 0 calc(50% - 10px);
    }

  
     .pe-card__front-footer {
        bottom: 13px;
    }
    .pe-grid {
        gap: 20px 16px;
    }

    .pe-card__learn-more {
        font-size: 14px;
    }
}


/* ── Disable all hover effects on touch devices ── */
@media (hover: none) {
    .pe-card--has-hover:hover .pe-card__back {
        display: none;
    }
    .pe-card--has-hover:hover .pe-card__front {
        transform: none;
        /* pointer-events: auto; */
    }
}