/* ============================================================
   PHW Team Grid Widget
   Wraps in .team-section so all parent theme card styles apply.
   ============================================================ */

/* ── Grid layout ────────────────────────────────────────────── */
.team-section .phw-team-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    row-gap: 60px !important;
    width: 100% !important;
}

.team-section .phw-team-grid-item {
    width: 270px !important;
    flex: 0 0 270px !important;
}

/* ── Center text inside content-box ────────────────────────── */
.team-section.centred .phw-team-grid .content-box,
.team-section.centred .phw-team-grid .content-box .info,
.team-section.centred .phw-team-grid .content-box h3,
.team-section.centred .phw-team-grid .content-box .designation,
.team-section.centred .phw-team-grid .social-links {
    text-align: center !important;
    justify-content: center !important;
}

/* ── Neutralise theme .team-section padding/margin ──────────── */
.elementor .team-section.phw-team-grid-section {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .team-section .phw-team-grid {
        gap: 24px !important;
        row-gap: 50px !important;
    }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .team-section .phw-team-grid-item {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 40px !important;
    }
    .team-section .phw-team-grid-item:last-child {
        margin-bottom: 0 !important;
    }
    .team-section .phw-team-grid {
        gap: 0 !important;
    }
}
/* ── Text content — hidden by default, revealed on hover ─────── */
/* Mirrors original purehearts theme .text behaviour */
.phw-team-grid .team-block-one .inner-box .content-box .text {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    transition: all 500ms ease;
    text-align: center;
}

.phw-team-grid .team-block-one .inner-box:hover .content-box .text {
    opacity: 1;
}

.phw-team-grid .team-block-one .inner-box .content-box .text p,
.phw-team-grid .team-block-one .inner-box .content-box .text strong,
.phw-team-grid .team-block-one .inner-box .content-box .text em,
.phw-team-grid .team-block-one .inner-box .content-box .text * {
    color: #ffffff;
}
