.doctor-card {
    --doctor-card-bg: linear-gradient(155deg, var(--header-top-bg, #f0f8f7) 0%, #f8fcfb 48%, #eef4f3 100%);
    --doctor-card-accent: var(--header-accent, #4a8c88);
    --doctor-card-accent-dark: var(--header-accent-dark, #3d7572);
    --doctor-card-badge-bg: var(--header-accent, #4a8c88);
    --doctor-card-badge-text: #ffffff;
    --doctor-card-text: var(--site-body-text, #333333);
    --doctor-card-muted: var(--header-text-muted, #8f8f8f);
    --doctor-card-border: rgba(74, 140, 136, 0.16);

    width: 100%;
}

.doctor-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    min-height: 360px;
    padding: 36px 40px;
    border-radius: 28px;
    border: 1px solid var(--doctor-card-border);
    background: var(--doctor-card-bg);
    overflow: hidden;
}

.doctor-card__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
}

.doctor-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.doctor-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--doctor-card-badge-bg);
    color: var(--doctor-card-badge-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.doctor-card__experience {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--doctor-card-muted);
}

.doctor-card__name {
    margin: 0 0 14px;
    color: var(--doctor-card-text);
    line-height: 1.2;
}

.doctor-card__lastname {
    display: block;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
}

.doctor-card__given {
    display: block;
    margin-top: 4px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

.doctor-card__desc {
    margin: 0 0 24px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--doctor-card-text);
}

.doctor-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.doctor-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--header-radius-pill, 999px);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.doctor-card__btn--primary {
    border: none;
    background: var(--doctor-card-accent);
    color: #ffffff;
}

.doctor-card__btn--primary:hover {
    background: var(--doctor-card-accent-dark);
    transform: translateY(-1px);
}

.doctor-card__btn--ghost {
    border: 1px solid var(--doctor-card-accent);
    background: transparent;
    color: var(--doctor-card-accent);
}

.doctor-card__btn--ghost:hover {
    border-color: var(--doctor-card-accent-dark);
    color: var(--doctor-card-accent-dark);
    background: transparent;
}

.doctor-card__media {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    min-height: 280px;
}

.doctor-card__photo {
    position: relative;
    z-index: 1;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
    object-fit: contain;
    object-position: bottom center;
}

@media (max-width: 900px) {
    .doctor-card__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        min-height: 0;
        padding: 20px;
    }

    .doctor-card__media,
    .doctor-card__content {
        grid-column: 1;
        grid-row: auto;
    }

    .doctor-card__media {
        align-items: stretch;
        min-height: 0;
    }

    .doctor-card__photo {
        display: block;
        width: 100%;
        max-width: none;
        max-height: none;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center top;
    }

    .doctor-card__badges {
        margin-bottom: 10px;
    }

    .doctor-card__experience {
        margin-bottom: 10px;
    }

    .doctor-card__name {
        margin-bottom: 12px;
    }

    .doctor-card__lastname {
        font-size: clamp(26px, 7vw, 34px);
    }

    .doctor-card__given {
        font-size: clamp(22px, 5.5vw, 28px);
    }

    .doctor-card__desc {
        margin-bottom: 20px;
        max-width: none;
    }

    .doctor-card__actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .doctor-card__btn {
        width: 100%;
    }
}
