/* 병원안내 그룹 CSS */

/*======================================================
// 의료진 소개 - doctor.php
=======================================================*/
:root {
    --doctor-list-gap: 40px;
    --doctor-profile-group-gap: 20px;
    --doctor-profile-margin-top: clamp(10px, 2.5vw, 20px);
    --doctor-profile-img-box-border-radius: 24px;
    --doctor-profile-img-box-height-mobile: clamp(200px, 37.5vw, 300px);

    --schedule-box-padding: clamp(8px, 2.142vw, 15px);
}

#doctor-container {
    margin-bottom: var(--content-vertical-gap-big);
}

.doctor-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--doctor-list-gap);

    @media screen and (max-width: 1320px) {
        & {
            display: flex;
            flex-direction: column;

            & .doctor-profile-group {
                height: 380px;
            }
        }
    }

    & .doctor-item {
        display: flex;
        flex-direction: column;
        gap: var(--doctor-profile-group-gap);

        & .doctor-profile-group {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--doctor-profile-group-gap);

            @media screen and (max-width: 800px) {
                & {
                    display: flex;
                    flex-direction: column;
                    height: auto;
                }
            }

            & .doctor-profile-img-box {
                overflow: hidden;
                display: flex;
                justify-content: center;
                align-items: flex-end;
                width: 100%;
                padding-top: 20px;
                border-radius: var(--doctor-profile-img-box-border-radius);
                background-color: var(--color-main-04);

                @media screen and (max-width: 800px) {
                    & {
                        height: var(--doctor-profile-img-box-height-mobile);
                    }
                }

                & img {
                    width: 90%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            & .doctor-profile-info-box {
                display: flex;
                flex-direction: column;

                & .doctor-title-wrap {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;

                    & .department {
                        font-size: var(--font-size-20);
                        font-weight: var(--font-weight-bold);
                        color: var(--color-main-03);

                        @media screen and (max-width: 1500px) {
                            & {font-size: var(--font-size-18);}
                        }
                    }

                    & .name-box {
                        display: flex;
                        align-items: flex-end;
                        gap: 5px;

                        & h4 {font-size: var(--font-size-28);}
                        & p {font-size: var(--font-size-20);}
                    }
                }

                & .doctor-career-list {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    margin-top: var(--doctor-profile-group-gap);
                    word-break: keep-all;

                    & li {
                        display: -webkit-box;            /* flex 대신 */
                        -webkit-box-orient: vertical;    /* 세로 방향 */
                        -webkit-line-clamp: 2;           /* 2줄까지만 표시 */
                        overflow: hidden;                /* 넘치는 부분 숨기기 */
                        text-overflow: ellipsis;         /* 말줄임표(...) */
                        word-break: keep-all;     
                        
                        @media screen and (max-width: 1400px) {
                            & {
                                -webkit-line-clamp: 1; 
                            }
                        }
                    }
                }

                & .schedule-doctor-btn-box {
                    margin-top: auto;
                    padding-top: 20px;
                }
            }
        }

    }
}

.schedule-box {
    & {
        margin-top: var(--doctor-profile-margin-top);
        padding: var(--schedule-box-padding);
        border: 1px solid var(--color-line-02);
        border-radius: var(--main-border-radius-default);

        & .schedule-data {
            padding: var(--schedule-box-padding) 
            0
        ;}
    }
}