/* 의사 정보 */
.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 서브페이지 헤더 - 인사말과 동일 */
.sub-header {
    position: relative;
    height: 400px;
    background-image: url('/assets/images/greting.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

/* 모바일에서 margin-top 제거 */
@media (max-width: 768px) {
    .sub-header {
        margin-top: 0;
    }
}

.sub-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    z-index: 1;
}

.sub-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sub-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* 의료진 소개 섹션 */
.doctors-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 14px;
    color: #2c5aa0;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-size: 40px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.4;
}

.section-title .highlight {
    color: #2c5aa0;
    font-weight: 500;
}

/* 대표원장 소개 */
.doctor-main {
    margin-bottom: 80px;
}

.doctor-main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
    background: #f8f9fa;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
}

.doctor-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.doctor-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.doctor-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #2c5aa0;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
}



.doctor-name-section {
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.doctor-name {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.doctor-name span {
    font-weight: 400;
    font-size: 30px;
}

.doctor-specialty {
    font-size: 18px;
    color: #2c5aa0;
    font-weight: 500;
}

/* 학력 및 경력 */
.doctor-credentials h4,
.doctor-expertise h4,
.doctor-message h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctor-credentials h4::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 3px;
}

.doctor-credentials ul {
    list-style: none;
    padding: 0;
}

.doctor-credentials li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.doctor-credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

/* 학력/경력 로고 - 하나만 있을 때 */
.credentials-logos {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* 학회활동 */
.doctor-academic {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.doctor-academic h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctor-academic h4::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 3px;
}

.doctor-academic ul {
    list-style: none;
    padding: 0;
}

.doctor-academic li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.doctor-academic li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

.logo-item {
    text-align: center;
    flex: 1;
}

.logo-item img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
}

.logo-item p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 전문진료분야 */
.doctor-expertise h4::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 3px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tags span {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expertise-tags span:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

/* 진료철학 */
.doctor-message h4::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 3px;
}

.doctor-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #2c5aa0;
}

/* 진료시간표 */
.doctor-schedule {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

/* 모바일 전용 시간표 기본적으로 숨김 */
.mobile-schedule {
    display: none;
}

.schedule-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.schedule-table {
    overflow-x: auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.schedule-table th,
.schedule-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.schedule-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.schedule-table .time-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.schedule-table .available {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
}

.schedule-table .surgery {
    color: #ffc107;
    font-weight: 600;
}

.schedule-table .off {
    color: #ccc;
    font-size: 20px;
}

.schedule-note {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.schedule-note p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.schedule-note .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.schedule-note .dot.available {
    background: #28a745;
}

.schedule-note .dot.surgery {
    background: #ffc107;
}

.schedule-note .dot.off {
    background: #ccc;
}

/* 학회활동 및 논문 */
.academic-section {
    margin-top: 60px;
}

.academic-single {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.academic-item,
.academic-single {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.academic-item h4,
.academic-single h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.academic-item h4 i,
.academic-single h4 i {
    color: #2c5aa0;
    font-size: 24px;
}

.academic-item ul,
.academic-single ul {
    list-style: none;
    padding: 0;
}

.academic-item li,
.academic-single li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.academic-item li::before,
.academic-single li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .doctor-main-content {
        grid-template-columns: 350px 1fr;
        gap: 60px;
        padding: 40px;
    }
    
    .academic-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 250px;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .doctor-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .doctor-photo {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .doctor-name {
        font-size: 28px;
    }
    
    .doctor-name span {
        font-size: 24px;
    }
    
    .credentials-logos {
        gap: 20px;
    }
    
    .logo-item img {
        height: 60px;
    }
    
    .expertise-tags {
        gap: 8px;
    }
    
    .expertise-tags span {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .schedule-table {
        font-size: 14px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
    }
    
    .academic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .academic-item {
        padding: 30px;
    }
}

/* 애니메이션 */
.doctor-main,
.doctor-schedule,
.academic-item,
.academic-single {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.doctor-main.animate-in,
.doctor-schedule.animate-in,
.academic-item.animate-in,
.academic-single.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.doctor-main.animate-in {
    transition-delay: 0.2s;
}

.doctor-schedule.animate-in {
    transition-delay: 0.4s;
}

.academic-item:nth-child(1).animate-in {
    transition-delay: 0.6s;
}

.academic-item:nth-child(2).animate-in {
    transition-delay: 0.8s;
}