/* =========================================================
   Partner Tech Cards — css/partner-tech-cards.css
   Block: acf/partner-tech-cards
   Prefix: ptc-
   ========================================================= */

/* ---------- Section ---------- */
.ptc-section {
    padding: 120px 0 0px;
}

.ptc-section-title {
    /* text-align: center; */
    margin-bottom: 51px !important;
}

/* ---------- Grid ---------- */
.ptc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
}

/* ---------- Card ---------- */
.ptc-card {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
    border-radius: 12px;
    background: #F5F5F5;
    padding: 30px 22px 51px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

/* Hover — card turns white */
@media (min-width: 1200px) and (hover: hover) {
    .ptc-card:hover {
        background: radial-gradient(50% 50% at 50% 100%, rgba(204, 203, 255, 0.20) 0%, #FAFAFA 100%), #F5F5F5;
    }
}

/* ---------- Logo ---------- */
.ptc-card__logo-wrap {
    margin-bottom: 12px;
}

.ptc-card__logo-link {
    display: inline-block;
}

/* When stretched-link is on the logo link, ensure z-index stack is fine */
.ptc-card__logo-link.stretched-link::after {
    z-index: 1;
}

.ptc-card__logo {
    max-height: 92px;
    object-fit: contain;
    display: block;
}

/* ---------- Description ---------- */
.ptc-card__desc {
    padding-bottom: 30px;
    text-align: center;
}

/* ---------- Footer / Explore Now ---------- */
.ptc-card__footer {
    margin-top: auto;
}

.ptc-card__explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
}

.ptc-card__explore-link img {
    width: 10px;
    height: 10px;
}


/* ---------- View All Button ---------- */
.ptc-view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.ptc-view-all-btn {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    color: #fff;
    border-radius: 12px;
    background: #242424;
    text-decoration: none;
    display: inline-flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    isolation: isolate;
}

/* Gradient overlay — fades in on hover (avoids blink) */
.ptc-view-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:  linear-gradient(91deg, #544FF8 70.08%, #2EB6AE 100.12%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.ptc-view-all-btn:hover::before,
.ptc-view-all-btn:focus::before {
    opacity: 1;
}

.ptc-view-all-btn:hover,
.ptc-view-all-btn:focus {
    color: #fff;
    text-decoration: none;
}

.ptc-view-all-btn img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.ptc-view-all-btn:hover img,
.ptc-view-all-btn:focus img {
    filter: none;
    transform: scale(1.3);
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet — 2 columns */
@media (max-width: 1199.98px) {
     .ptc-section {
        padding: 80px 0 0;
    }

   .ptc-card {
        flex: 0 0 100%;
        max-width: 56%;
    }

    .ptc-section-title {
        margin-bottom: 32px !important;
    }
    .ptc-grid {
        gap:20px;
    }
}

/* Mobile — 1 column */
@media (max-width: 767.98px) {
    .ptc-section {
        padding: 60px 0 0;
    }
     .ptc-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ptc-card__desc {
        font-size: 14px;
    }

    /* .ptc-grid {
        gap: 20px;
        margin-bottom: 32px;
    } */
   
}
