﻿body {
    background-color: #ffffff;
    margin: 0;
}

.container {
    max-width: 1200px;
/*    margin: 0 auto;*/
/*    padding: 40px 20px;*/
}

/**/
.intro-title {
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 40px;
}

    .intro-title span {
        font-size: 40px;
        font-weight: 700;
        letter-spacing: 3px;
    }

    .intro-title::before,
    .intro-title::after {
        color: #007bff;
        font-size: 20px;
        font-weight: 700;
    }

    .intro-title::before {
        content: '" ';
    }

    .intro-title::after {
        content: ' "';
    }

.intro-message {
    margin-bottom: 50px;
}

.intro-message1, .intro-message2 {
    font-size: 20px;
    font-weight: 500;
}

.intro-message1 {
    color: dodgerblue;
}

.greeting-section {
    display: grid;
    grid-template-columns: 650px 380px;
    /*    grid-template-columns: 1fr 380px;*/
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

.greeting-text {
    width: 650px;
}

.greeting-text h4 {
    margin-bottom: 20px;
}

    .greeting-text p {
        margin-right: 60px;
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 16px;
    }

.greeting-image {
    width: 250px;
}

.greeting-image img {
    width: 100%;
    border-radius: 10px;
}

.greeting-sign {
    width: 90%;
}

.sign-image {
    width: 60%;
}

.intro-highlight {
    font-size: 16px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 4px solid #007bff;
    margin-bottom: 50px;
    /*    text-align: center;
    margin: 40px 0 50px 0;*/
}

.intro-highlight span {
    color: #007bff;
}

/**/
.doctor-list {
    display: none;
}

.doctor-list.active {
    display: block;
}

.doctor-tabs,
.doctor-list {
    max-width: 800px; /* 탭과 동일한 폭 */
    margin: 0 auto; /* 가운데 정렬 */
}

.doctor-card {
    display: flex;
    gap: 30px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    align-items: center;
    /*    align-items: flex-start;*/
    margin-bottom: 30px;
}

.doctor-photo img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.doctor-info {
    flex: 1;
}

.doctor-photo {
    flex-shrink: 0;
}

    .doctor-photo img {
        width: 200px;
        height: auto;
        /*        width: 140px;
        aspect-ratio: 3/4;*/
        object-fit: cover;
        border-radius: 8px;
    }

.doctor-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.doctor-position {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-left: 8px;
    /*뱃지 font-size:13px;
    background:#e8f2ff;
    color:#0a4fa3;
    padding:3px 8px;
    border-radius:4px;
    margin-left:8px;*/
}

.doctor-career {
    list-style: none;
    padding-left: 18px;    
}

    .doctor-career li {
        position: relative;
        padding-left: 14px;
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.7;
    }

        .doctor-career li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 9px;
            width: 4px;
            height: 4px;
            background: #333;
            border-radius: 50%;
        }

.doctor-tabs {
    display: flex;
    max-width: 800px;
    margin: auto;
    /*    justify-content: center;*/
    border-bottom: 1px solid #ddd;
    /*    display: flex;
    justify-content: center;
    gap: 20px;*/
    margin-bottom: 40px;
}

.tab-btn {
    flex: 1;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 600;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease;
    width: 50%;
    /*    padding: 10px 30px;
    border: none;
    background: #eee;
    font-weight: 600;
    cursor: pointer;*/
}

    .tab-btn.active {
        color: #0a4fa3;
        border-bottom: 3px solid #0a4fa3; /* 활성 밑줄 */
        /*    background: #007bff;
    color: #fff;*/
    }

    .tab-btn:not(.active):hover {
        border-bottom: 3px solid #0a4fa3;
        color: #0a4fa3;
    }

.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: #0a4fa3;
}

    .tab-btn:hover {
        color: #0a4fa3;
    }

    .tab-btn::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -1px;
        width: 0;
        height: 3px;
        background: #0a4fa3;
        transition: 0.3s;
        transform: translateX(-50%);
    }

    .tab-btn.active::after {
        width: 100%;
    }
