/* Doctor cards: make whole card clickable and move name to bottom center */
.team-card-three {
    position: relative;
}
.team-card-three__link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
}
.team-card-three .social-links,
.team-card-three__identity {
    position: relative;
    z-index: 2;
}
.team-card-three__hover {
    position: relative;
}
.team-card-three__identity {
    position: absolute;
    left: 30%;
    bottom: 24px;
    transform: translateX(-50%) !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: var(--mediox-white, #FFFFFF);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    transition: all 0.3s ease;
    min-width: 250px;
    max-width: 90%;
}

/* Force reset any legacy 270deg rotations on identity and descendants */
.team-card-three .team-card-three__identity,
.team-card-three .team-card-three__identity *,
.team-card-three .team-card-three__name,
.team-card-three .team-card-three__name *,
.team-card-three .team-card-three__designation {
    transform: none !important;
    rotate: 0deg !important;
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
}

.team-card-three__name {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--mediox-dark, #0F172A);
    text-align: center;
    line-height: 1.3;
}

.team-card-three__designation {
    margin: 0;
    font-size: 15px;
    color: rgba(15, 23, 42, 0.7);
    text-align: center;
    line-height: 1.4;
}

.team-card-three:hover .team-card-three__identity {
    transform: translateX(-20%) translateY(-6px) !important;
    background-color: var(--mediox-base, #33C1ED);
    color: #fff;
}

.team-card-three:hover .team-card-three__name,
.team-card-three:hover .team-card-three__designation {
    color: #fff;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state__icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state__title {
    color: #374151;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.empty-state__description {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
