/* ==========================================================================
   Therapist Profile Card
   ========================================================================== */

.tpc-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    font-family: inherit;
}

/* --- Media Area (absolute, fills entire card) --- */
.tpc-card__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.tpc-card__image,
.tpc-card__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 0;
}

/* --- Gradient Overlay (pseudo-element, immune to WPBakery sanitization) --- */
.tpc-card__media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85%;
    background: linear-gradient(to bottom, transparent 0%, var(--tpc-overlay-color, #6b4c6e) 85%);
    pointer-events: none;
    z-index: 2;
}

/* --- Content Area (drives card height, text sits over image) --- */
.tpc-card__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 105% 24px 32px 24px;
}

/* --- Name (h5 — inherits theme typography by default) --- */
.tpc-card__name {
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-weight: 700;
}

/* --- Specialties --- */
.tpc-card__specialties {
    margin: 0 0 4px 0;
    line-height: 1.5;
}

/* --- Location (h6 — inherits theme typography by default) --- */
.tpc-card__location {
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* --- CTA Button --- */
.tpc-card__btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 0 15px 0 15px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.tpc-card__btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.tpc-card__btn:active {
    transform: translateY(0);
    opacity: 0.75;
}

/* --- Secondary Link --- */
.tpc-card__secondary-link {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.tpc-card__secondary-link:hover {
    opacity: 0.75;
    color: inherit;
}

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

@media (max-width: 991px) {
    .tpc-card__content {
        padding: 95% 20px 28px 20px;
    }
}

@media (max-width: 575px) {
    .tpc-card {
        border-radius: 16px;
    }

    .tpc-card__btn {
        padding: 10px 24px;
    }

    .tpc-card__content {
        padding: 100% 16px 24px 16px;
    }
}
