/* dental_doctor_profile_card.php
 * /doctors의 Doctor_Card_Profile 기준 공통 카드 스타일
 */
.dental-profile-card,
.dental-profile-card * {
    box-sizing: border-box;
}

.dental-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
    column-gap: 20px;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--dp-card-line, #e7e5e4);
    color: inherit;
    text-decoration: none;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.dental-profile-card::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid var(--dp-card-line, #e7e5e4);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.dental-profile-card:hover {
    box-shadow:
        inset 0 0 0 1px var(--dp-card-line, #e7e5e4),
        0 14px 34px rgba(94, 44, 123, 0.1);
    transform: translateY(-2px);
}

.dental-profile-card__profile {
    display: contents;
}

.dental-profile-card__photo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 320px;
    height: 400px;
    overflow: hidden;
}

.dental-profile-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.dental-profile-card__photo,
.dental-profile-card__identity,
.dental-profile-card__body {
    position: relative;
    z-index: 1;
}

.dental-profile-card__identity {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 40px 18px 0 0;
}

.dental-profile-card__body {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 0 18px 40px 0;
}

.dental-profile-card__role,
.dental-profile-card__name,
.dental-profile-card__position,
.dental-profile-card__list,
.dental-profile-card__more {
    margin: 0;
    letter-spacing: 0;
}

.dental-profile-card__role {
    margin-bottom: 12px;
    color: var(--dp-point2, #a8599e);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.72px;
}

.dental-profile-card__name {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 18px;
    color: #111;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.dental-profile-card__position {
    color: var(--dp-grey39, #636363);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.84px;
}

.dental-profile-card__divider {
    display: none;
}

.dental-profile-card__list {
    list-style: none;
    padding: 0;
    color: var(--dp-warm, #78716c);
}

.dental-profile-card__list li {
    margin-bottom: 6px;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.68px;
}

.dental-profile-card__list li:last-child {
    margin-bottom: 0;
}

.dental-profile-card__list li.dental-profile-card__tight {
    letter-spacing: -1.3px;
}

.dental-profile-card__more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 8px 20px;
    border: 1px solid var(--dp-point2, #a8599e);
    border-radius: 8px;
    color: var(--dp-point2, #a8599e) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.45px;
}

.dental-profile-card__more img {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.dental-profile-card__watermark {
    position: absolute;
    right: -6px;
    bottom: -26px;
    z-index: 0;
    width: 214px;
    height: 214px;
    pointer-events: none;
}

.dental-profile-card__watermark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

/* /doctors의 Card_Profile_Mobile 기준: 태블릿과 모바일은 상단 프로필 + 하단 약력 */
@media (max-width: 1199px) {
    .dental-profile-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        column-gap: 0;
        height: auto;
        min-height: 322px;
        padding: 0;
        border-radius: 20px;
        box-shadow: inset 0 0 0 0.8px var(--dp-card-line, #e7e5e4);
    }

    .dental-profile-card__profile {
        display: flex;
        align-items: flex-start;
        flex: 0 0 118px;
        width: 100%;
        padding: 0 10px;
    }

    .dental-profile-card__photo {
        align-self: flex-start;
        display: block;
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        margin: 8px 0 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .dental-profile-card__photo img {
        width: 110px;
        height: 110px;
        object-position: top center;
    }

    .dental-profile-card__identity {
        align-self: stretch;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 16px 16px 16px 8px;
        overflow: hidden;
    }

    .dental-profile-card__role {
        margin-bottom: 6px;
        font-size: 13px;
        line-height: normal;
        letter-spacing: -0.39px;
    }

    .dental-profile-card__name {
        gap: 4px;
        margin-bottom: 0;
        font-size: 23px;
        line-height: 1.3;
        letter-spacing: -0.45px;
    }

    .dental-profile-card__position {
        font-size: 15px;
        line-height: 1.5;
        letter-spacing: -0.6px;
    }

    .dental-profile-card__divider {
        display: block;
        flex: 0 0 0;
        width: calc(100% - 32px);
        margin: 0 auto;
        border-top: 1px solid #f5f5f4;
    }

    .dental-profile-card__body {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 20px;
        padding: 16px 20px 20px;
        overflow: hidden;
    }

    .dental-profile-card__list {
        margin: 0;
    }

    .dental-profile-card__list li {
        width: 100%;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: normal;
        letter-spacing: -0.52px;
    }

    .dental-profile-card__more {
        margin-top: 0;
        padding: 8px 16px;
        border-width: 0.8px;
        border-radius: 6px;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: -0.52px;
        gap: 3px;
    }

    .dental-profile-card__more img {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .dental-profile-card__watermark {
        right: -28px;
        bottom: 0;
        width: 131px;
        height: 131px;
    }
}

/* 상세 링크가 없는 프로필도 같은 카드 구조를 사용한다. */
.dental-profile-card--static {
    height: auto;
    min-height: max-content;
}

.dental-profile-card--static:hover {
    box-shadow: inset 0 0 0 1px var(--dp-card-line, #e7e5e4);
    transform: none;
}

.dental-profile-card__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    color: var(--dp-warm, #78716c);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dental-profile-card__info dt {
    margin: 0 0 4px;
    color: #44403c;
    font-weight: 700;
}

.dental-profile-card__info dd {
    margin: 0;
}

@media (min-width: 1200px) {
    .dental-profile-card--static {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .dental-profile-card--static .dental-profile-card__photo {
        width: 220px;
        height: 100%;
    }
}

/* 사진이 없는 카드는 사진 열 없이 이름과 약력이 카드 폭을 모두 쓴다. */
@media (min-width: 1200px) {
    .dental-profile-card--static.dental-profile-card--no-photo {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px 18px 20px 40px;
    }

    .dental-profile-card--no-photo .dental-profile-card__identity,
    .dental-profile-card--no-photo .dental-profile-card__body {
        grid-column: 1;
    }
}

@media (max-width: 1199px) {
    .dental-profile-card--static {
        min-height: 322px;
    }

    .dental-profile-card__info {
        gap: 12px;
        font-size: 13px;
    }
}
