/**
 * pages/subpage.css - 서브페이지 공통 추가 스타일
 */

/* 서브 타이틀 (2차 메뉴명) */
.subpage-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 20px;
    padding-bottom: 10px;
    text-align: center;
}

/* 서브페이지 body에 헤더 높이만큼 상단 패딩 */
body:not(.page-home) main {
    padding-top: 0;
}

/* ============================================
   인사말 / 원장 소개 페이지
   ============================================ */

/* 좌우 2컬럼 레이아웃 */
.greeting-wrap {
    display: grid;
    grid-template-columns: 36% 1fr;
    align-items: start;
    min-height: calc(65vh - 80px);
}

/* 왼쪽: 사진 컬럼 */
.greeting-photo-col {
    position: relative;
    align-self: stretch;
}

.greeting-photo-sticky {
    position: sticky;
    top: 80px; /* 헤더 높이 */
    background: #f0f2f4; /* 이미지 영역에만 배경색 */
    display: inline-block;
    width: 100%;
}

.greeting-photo-sticky img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 오른쪽: 콘텐츠 컬럼 */
.greeting-info-col {
    padding: 0 0 0 60px;
}

/* 헤드라인 */
.greeting-headline {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-dark);
    margin-top: 5px;
    margin-bottom: 10px;
}

/* 헤드라인 아래 인사말 */
.greeting-intro {
    margin: 25px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.greeting-intro p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin: 5px 0;
}
.greeting-intro p span {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 1.3rem;
}
.greeting-thanks {
    font-weight: 700;
    color: var(--text-dark) !important;
    margin-top: 8px;
    font-size: 1.5rem !important;
    text-align: right;
    margin-top: 30px !important;
}

/* 구분선 */
.greeting-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* 원장 기본 정보 */
.greeting-doctor-header {
    margin-bottom: 36px;
}
.greeting-dept {
    font-size: .9rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: .04em;
    margin-top: 30px;
    margin-bottom: 8px;
}
.greeting-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 0;
}
.greeting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.greeting-tags span {
    font-size: .78rem;
    color: var(--text-light);
}

/* 섹션 공통 */
.greeting-section { margin-bottom: 8px; }

.greeting-section-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* 진료시간 테이블 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: .85rem;
}
.schedule-table thead tr {
    background: var(--primary);
    color: var(--white);
}
.schedule-table th {
    padding: 11px 8px;
    text-align: center;
    font-weight: 700;
}
.schedule-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-mid);
}
.schedule-table td.schedule-period {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
}
.schedule-table td.schedule-highlight {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-color: var(--primary);
}
.schedule-table td.schedule-inquiry {
    color: var(--text-light);
}

.schedule-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.schedule-notes li {
    font-size: .78rem;
    color: var(--text-light);
    padding-left: 14px;
    position: relative;
}
.schedule-notes li::before {
    content: '※';
    position: absolute;
    left: 0;
}

/* 학력·경력·학회 리스트 */
.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.career-list li {
    font-size: .9rem;
    color: var(--text-mid);
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}
.career-list li::before {
    content: '·';
    position: absolute;
    left: 2px;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 1023px) {
    .greeting-info-col { padding: 0 0 0 32px; }
    .greeting-headline { font-size: 1.6rem; }
    .greeting-name { font-size: 1.6rem; }
}

@media (max-width: 767px) {
    .greeting-wrap { grid-template-columns: 1fr; }

    .greeting-photo-col { align-self: auto; }
    .greeting-photo-sticky {
        position: relative;
        top: auto;
        height: auto;
        overflow: hidden;
    }
    .greeting-photo-sticky img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
    }

    .greeting-info-col { padding: 32px 0 48px; }
    .greeting-headline { font-size: 1.35rem; margin-bottom: 20px; }
    .greeting-name { font-size: 1.4rem; }

    /* 진료시간 테이블 가로 스크롤 */
    .greeting-section { overflow-x: auto; }
    .schedule-table {
        min-width: 480px;
        font-size: .75rem;
    }
    .schedule-table th,
    .schedule-table td { padding: 8px 4px; }
}

@media (max-width: 480px) {
    .greeting-headline {
        font-size: 1.2rem;
    }

    .greeting-intro p {
        font-size: .85rem;
        line-height: 1.7;
    }

    .greeting-intro p span {
        font-size: 1.1rem;
    }

    .greeting-tags span {
        font-size: .7rem;
    }

    .career-list {
        gap: 6px;
    }

    .career-list li {
        font-size: .85rem;
    }
}



/* ============================================
   오시는 길 페이지
   ============================================ */
.location-page-wrap {
    padding: 10px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.location-page-map .root_daum_roughmap,
.location-page-map .root_daum_roughmap_landing {
    width: 100% !important;
    overflow: hidden;
}
.location-page-map .root_daum_roughmap > div,
.location-page-map .root_daum_roughmap_landing > div {
    width: 100% !important;
}
.location-page-map .root_daum_roughmap iframe,
.location-page-map .root_daum_roughmap_landing iframe {
    width: 100% !important;
    display: block;
}

/* 정보 리스트 */
.location-info-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e4e4e4;
    overflow: hidden;
}
.location-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #e4e4e4;
}
.location-info-list li:last-child { border-bottom: none; }

.location-info-icon {
    font-size: 1.1rem;
    color: var(--primary);
    width: 24px;
    flex-shrink: 0;
    padding-top: 2px;
    text-align: center;
}
.location-info-list strong {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.location-info-list p {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}
.location-info-list a {
    color: var(--primary);
    font-weight: 600;
}

/* 지도 버튼 — 서브페이지 오버라이드 (흰 배경) */
.location-map-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.location-page-info .location-map-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #dde1e7;
    font-weight: 500;
}
.location-page-info .location-map-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}


@media (max-width: 900px) {

}
@media (max-width: 640px) {

}

@media (max-width: 640px) {
    .location-info-list li { padding: 14px 16px; }
    .location-map-btns { gap: 8px; }
}

@media (max-width: 480px) {
    
}


/* ============================================
   누수탐지 교육 페이지
   ============================================ */
.edu-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.edu-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 340px;
    border-bottom: 1px solid var(--border);
}
.edu-block:first-child { border-top: 1px solid var(--border); }

.edu-block-img {
    overflow: hidden;
    background: #eef1f5;
}
.edu-block-img img,
.edu-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.edu-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c8d0dc;
    min-height: 300px;
}
.edu-block--reverse .edu-block-img { order: 2; }
.edu-block--reverse .edu-block-body { order: 1; }

.edu-block-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 60px;
    background: #fff;
}
.edu-block--reverse .edu-block-body {
    background: #f7f9fc;
}

.edu-block-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #e8ecf3;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -.03em;
}
.edu-block-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0 0 20px;
    letter-spacing: -.02em;
    word-break: keep-all;
}
.edu-block-desc {
    font-size: .95rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin: 0;
    word-break: keep-all;
}

.edu-summary {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 72px 0 64px;
}
.edu-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 28px;
    padding-left: 14px;
    border-left: 3px solid var(--primary-dark);
    letter-spacing: -.01em;
}

.edu-schedule {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.edu-schedule-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 18px;
    border: 1px solid var(--border);
    background: #f7f9fc;
}
.edu-schedule-day {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: .02em;
}
.edu-schedule-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: -.01em;
}

@media (max-width: 900px) {
    .edu-block { grid-template-columns: 1fr; min-height: auto; }
    .edu-block-img { aspect-ratio: 16 / 9; }
    .edu-block--reverse .edu-block-img { order: 0; }
    .edu-block--reverse .edu-block-body { order: 0; }
    .edu-block-body { padding: 36px 32px; }
    .edu-block-num { font-size: 2.5rem; }

    .edu-summary { gap: 40px; padding: 52px 0 48px; }
    .edu-schedule { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .edu-blocks { margin-bottom: 0; }
    .edu-block-body { padding: 28px 20px; }
    .edu-block-title { font-size: 1.15rem; }
    .edu-summary { padding: 40px 0 36px; gap: 28px; }
    .edu-schedule { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 480px) {
    .edu-block-body {
        padding: 28px 20px;
    }
    .edu-block-desc {
        font-size: .85rem;
        line-height: 1.8;
    }

    .edu-schedule-label {
        font-size: 1rem;
    }

    .edu-summary-title {
        font-size: 1.2rem;
    }
}


/* ============================================
   일차별 교육 일정 - 주차별 상세 스케줄
   ============================================ */
.edu-week {
    margin-bottom: 20px;
}
.edu-week-label {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-dark);
    padding: 10px 16px;
    margin-bottom: 10px;
    letter-spacing: .15em;
}
.edu-week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.edu-day-card {
    border: 1px solid var(--border);
    background: #f7f9fc;
    padding: 16px 14px 14px;
}
.edu-day-num {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.edu-day-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 10px;
    word-break: keep-all;
    min-height: 2.5em;
}
.edu-day-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edu-day-list li {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.75;
    padding-left: 10px;
    position: relative;
}
.edu-day-list li::before {
    content: '·';
    position: absolute;
    left: 1px;
    color: var(--primary-dark);
    font-weight: 700;
}
.edu-day-list li span {
    color: var(--accent);
    font-size: .8rem;
}

@media (max-width: 900px) {
    .edu-week-days { grid-template-columns: repeat(3, 1fr); }
    .edu-day-list li {
        font-size: .8rem;
    }
    .edu-day-list li span {
        font-size: .7rem;
    }
}
@media (max-width: 600px) {
    .edu-week-days { grid-template-columns: repeat(2, 1fr); }
    .edu-day-title { min-height: auto; }
}
@media (max-width: 390px) {
    .edu-week-days { grid-template-columns: 1fr; }
}

/* ============================================
   실습장 소개 페이지
   ============================================ */
.facility-intro {
    margin: 0 0 42px;
}
.facility-intro-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.45;
    letter-spacing: -.03em;
    margin: 0 0 16px;
    word-break: keep-all;
}
.facility-intro-desc {
    font-size: .98rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin: 0;
    word-break: keep-all;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 72px;
}
.facility-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.facility-card:hover {
    border-color: var(--text-dark);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
    transform: translateY(0);
}
.facility-card-img {
    aspect-ratio: 9 / 13;
    overflow: hidden;
    background: #eef1f5;
}
.facility-card-img img,
.facility-card-img .edu-img-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.facility-card-img img {
    transition: transform .35s ease;
}
.facility-card:hover .facility-card-img img {
    transform: scale(1.01);
}
.facility-card-body {
    padding: 22px 22px 24px;
}
.facility-card-num {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1;
}
.facility-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    word-break: keep-all;
}
.facility-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.facility-feature-list li {
    position: relative;
    padding-left: 13px;
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.55;
    word-break: keep-all;
}
.facility-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-dark);
}

@media (max-width: 900px) {
    .facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding-bottom: 56px;
    }
    .facility-intro {
        margin-bottom: 34px;
    }
    .facility-intro-title {
        font-size: 1.4rem;
    }
}
@media (max-width: 600px) {
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 44px;
    }
    .facility-intro {
        margin-bottom: 28px;
    }
    .facility-intro-title {
        font-size: 1.22rem;
    }
    .facility-intro-desc {
        font-size: .88rem;
        line-height: 1.8;
    }
    .facility-card-body {
        padding: 20px;
    }
}
