/* --- 기본 설정 --- */
html {
    scroll-behavior: smooth; /* [신규] 부드러운 스크롤 효과 */
    
    /* [신규] 스크롤 시 고정 헤더가 내용을 가리지 않도록 상단 여백 확보 */
    /* 1400px 이상(데스크탑): 120px */
    scroll-padding-top: 120px; 
}

/* [신규] 태블릿/모바일에서는 헤더 높이가 유동적이므로 padding-top 변경 */
@media (max-width: 1400px) {
    html {
        /* 3단 헤더 높이(약 220px) + 여유공간 */
        scroll-padding-top: 240px; 
    }
}
@media (max-width: 768px) {
    html {
        /* 햄버거 헤더 높이(약 90px) + 여유공간 */
        scroll-padding-top: 110px; 
    }
}
body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    margin: 0;
    color: #3f2c26; /* 기본 글자색 변경 */
    background-color: #fbfaf7; /* 모든 페이지 배경색 통일 */
    overflow-x: hidden; /* 가로 스크롤 방지 */
/* --- [신규] 제목 폰트를 명조체(Noto Serif KR)로 변경 --- */
h1, h2, h3, h4, h5, h6,
.review-header h2,
.slide-text h2,
.identity-left .highlight,
.irb-left h2,
.mvc-title {
    font-family: 'Noto Serif KR', serif; /* 명조체를 우선 적용 */
}
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

/* --- [공통] 헤더 --- */
header {
    /* background-color: rgba(237, 225, 219, 0.8); <-- 기존 배경색 삭제 */
    /* backdrop-filter: blur(8px); <-- 블러 효과도 일단 제거 (필요시 복구) */
    padding: 0;
    position: fixed; /* [수정] sticky -> fixed 로 변경 */
    top: 0;
    left: 0; /* [추가] fixed 포지셔닝을 위해 left 추가 */
    width: 100%; /* [추가] fixed 포지셔닝을 위해 width 추가 */
    z-index: 1000;
    height: 120px;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease; /* 배경색 전환 효과 추가 */
    
    /* [신규] 기본 상태는 투명 */
    background-color: transparent;
}

/* [신규] 헤더에 마우스 올리면 반투명 배경 적용 */
header:hover {
    background-color: rgba(237, 225, 219, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #3f2c26; /* 기본 글자색으로 */
/* [추가] Hover 시 로고 전환: 어두운 로고 보이기, 흰색 로고 숨기기 */
    & h1 img.logo-dark {
        display: block;
    }
    & h1 img.logo-white {
        display: none;
    }
}

/* [추가] Hover 시 하위 요소들 색상 변경 */
header:hover .language-switcher,
header:hover .language-switcher a,
header:hover nav ul li {
    color: #3f2c26; /* 기본 글자색으로 */
}

/* [추가] Hover 시 구분선 색상 변경 */
header:hover .language-switcher a:not(:last-child)::after {
    background-color: #ccc; /* 원래 구분선 색상 */
}

/* [추가] Hover 시 nav 링크 기본 색상 (hover 전) */
header:hover nav a {
     color: #3f2c26;
}
/* [추가] Hover 시 nav 링크에 마우스 올렸을 때 색상 (강조색) */
header:hover nav a:hover {
     color: #F37021;
}

/* [추가] Hover 시 활성 언어는 계속 흰색 유지 (덮어쓰기 방지) */
header:hover .language-switcher a.active {
    color: #fff !important;
}

/* 헤더 숨김 효과 (기존과 동일) */
.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

header h1 {
    margin: 0;
    z-index: 1001;
}

header h1 img {
    height: auto;
    max-height: 100px;
    width: auto;
    display: block; /* 이미지 정렬 기준 */
    transition: opacity 0.4s ease; /* 부드러운 전환 효과 */
}

/* [신규] 기본 상태: 흰색 로고 보이기, 어두운 로고 숨기기 */
header h1 img.logo-dark {
    display: none; /* 어두운 로고 숨김 */
}
header h1 img.logo-white {
    display: block; /* 흰색 로고 보임 */
}

/* [신규] 모바일 로고 크기 조정 (기존과 동일하게 적용) */
@media (max-width: 768px) {
    header h1 img {
        max-height: 60px;
    }
}
/* [신규] 태블릿 로고 크기 조정 (기존과 동일하게 적용) */
@media (max-width: 1400px) {
    header h1 img {
        max-height: 80px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.language-switcher {
    font-size: 13px;
    color: #fff; /* [수정] 기본 흰색 */
    transition: color 0.4s ease; /* [추가] 색상 전환 효과 */
}

.language-switcher a {
    color: #fff;
    transition: color 0.4s ease;
    padding: 0 8px;
    position: relative;
}

.language-switcher a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5); /* [수정] 반투명 흰색 */
    transition: background-color 0.4s ease; /* [추가] 색상 전환 효과 */
}
.language-switcher a.active {
    font-weight: bold;
    color: #fff !important;
}

header nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
}

header nav a {
    transition: color 0.4s ease;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 45px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

header nav ul li:first-child {
    margin-left: 0;
}

header nav a:hover {
    color: #F37021;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #3f2c26;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- 헤더 드롭다운 메뉴 --- */
header nav ul li.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(237, 231, 219, 0.9);
    backdrop-filter: blur(10px);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid rgba(63, 44, 38, 0.1);
}

.dropdown-content li {
    padding: 12px 16px;
    display: block;
    margin: 0;
    text-align: center;
}

.dropdown-content li a {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* --- [메인] 이미지 슬라이더 --- */
.slider-section {
    width: 100%;
    overflow: hidden;
    margin-top: 0px;
}
.slider-container {
    width: 100%;
    position: relative;
}
.slider-wrapper {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}
.slide {
    width: 33.333%;
    position: relative;
}
.slide img {
    width: 100%;
    display: block;
    height: 100vh;
    object-fit: cover;
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.slide-text h2 {
    font-size: 48px;
    margin-bottom: 15px;
}
.slide-text p {
    font-size: 18px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 60px;
    border-radius: 6px;
}

/* --- 아이덴티티 섹션 --- */
.identity-section {
    padding: 120px 0;
}

.identity-container {
    display: flex;
    align-items: center;
    gap: 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.identity-left {
    flex: 2;
    text-align: left;
}

.identity-left .highlight {
    color: #F37021;
    font-size: 46px;
    font-weight: 900;
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.identity-left .highlight.visible {
    opacity: 1;
    transform: translateY(0);
}

.identity-left p {
    font-size: 28px;
    line-height: 1.7;
    font-weight: 500;
}

.identity-right {
    flex: 2;
    text-align: left;
    counter-reset: commitment-counter;
}

.identity-right p {
    font-size: 28px;
    line-height: 1.8;
    color: #3f2c26;
    position: relative;
    padding-left: 40px;
}

.identity-right p::before {
    counter-increment: commitment-counter;
    content: counter(commitment-counter);
    position: absolute;
    left: 0;
    top: 5px;
    color: #F37021;
    font-size: 28px;
    font-weight: bold;
    background-color: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
}

.identity-right .commitment {
    margin-bottom: 1.8em;
}

/* --- 임상시험기관 섹션 --- */
.irb-section {
    padding: 100px 0;
}

.irb-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.irb-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.irb-left h2 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 40px;
    line-height: 1.4;
}

.irb-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.irb-logo-grid img:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
}
.irb-logo-grid img:nth-child(2),
.irb-logo-grid img:nth-child(3) {
    width: 100%;
}


.irb-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.irb-certificate {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* --- [공통] 푸터 --- */
footer {
    background-color: #3f2c26;
    color: #ede7db;
    padding: 50px 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-container {
    max-width: 1400px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info .copyright {
    font-size: 12px;
    color: #b1a89b;
    margin-top: 20px;
}

/* --- 의료진 소개 페이지 --- */
.main-content {
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.doctor-list {
    max-width: 1200px; 
    margin: 0 auto;
}

.doctor-profile-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    background-color: #fdfdfd;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.doctor-profile-card:last-child {
    margin-bottom: 0;
}

.doctor-photo {
    flex: 1 1 400px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.doctor-photo.visible {
    opacity: 1;
    transform: translateY(0);
}

.doctor-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.doctor-history {
    flex: 1 1 550px;
    max-width: 550px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.doctor-history.visible {
    opacity: 1;
    transform: translateY(0);
}

.doctor-history h3 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #ede7db;
    padding-bottom: 20px;
}

.doctor-history h3 span {
    font-size: 20px;
    font-weight: 500;
    color: #555;
    margin-left: 10px;
}

.doctor-history ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.doctor-history li {
    font-size: 17px;
    line-height: 2.2;
    position: relative;
    padding-left: 20px;
}

.doctor-history li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F37021;
    font-weight: bold;
}

.doctor-history li.separator {
    height: 1px;
    background-color: #ede7db;
    margin: 20px 0;
    padding-left: 0;
    list-style-type: none;
}

.doctor-history li.separator::before {
    content: none;
}


/* --- 병원 둘러보기 페이지 --- */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* --- 오시는 길 페이지 --- */
.opening-hours {
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fdfdfd; /* 흰색 계열 배경 */
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); /* 그림자 효과 */
}

.opening-hours h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.opening-hours p {
    font-size: 18px;
    line-height: 1.8;
    margin: 8px 0;
}

.opening-hours .break-time {
    font-weight: 500;
}

.opening-hours .note {
    font-size: 15px;
    color: #888;
}

.opening-hours .saturday-hours {
    text-align: center;
}

.opening-hours .saturday-hours p {
    position: relative;
    display: inline-block;
    margin: 8px 0;
}

.opening-hours .saturday-hours .note {
    display: inline-block;
    padding-left: 15px;
    white-space: nowrap;
}


.opening-hours .notice {
    font-size: 15px;
    color: #888;
    margin-top: 20px;
    line-height: 1.5; 
}

.location-details {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-wrapper {
    flex: 6; 
}

.map-embed {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.map-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s ease;
}
.map-links a:hover {
    background-color: #e9e9e9;
}


.directions-wrapper {
    flex: 4;
}

.direction-item {
    margin-bottom: 30px;
}

.direction-item:last-child {
    margin-bottom: 0;
}

.direction-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ede7db;
}

.heading-icon {
    width: 24px;
    height: 24px;
}

.direction-item p {
    font-size: 16px;
    line-height: 1.8;
    margin: 5px 0;
}

.direction-item .main-route {
    font-weight: bold;
}
.direction-item .parking-address {
    font-weight: 500;
}


.subway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.subway-icon.line-7 {
    background-color: #697F00;
}

.bus-routes p {
    margin: 10px 0;
}

.bus-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin-right: 20px;
    font-size: 17px;
}

.bus-number img {
    width: 20px;
    height: 20px;
}

.parking-photo {
    margin-top: 25px;
    text-align: center;
}

.parking-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 병원 소개 페이지 --- */
header.transparent {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/oeunjungclinic.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    clip-path: inset(0 0 0 0);
}

.intro-splash.off {
    clip-path: inset(50% 0 50% 0);
    pointer-events: none;
}

.intro-text {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    transition: opacity 0.4s ease-out;
}

.intro-splash.off .intro-text {
    opacity: 0;
}

.intro-text h1 {
    font-size: 6vw;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInFromBottom 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.intro-text .since-text {
    font-size: 2vw;
    font-weight: 300;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInFromBottom 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

@keyframes fadeInFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-main {
    position: relative;
    z-index: 10;
    padding-top: 0;
}

.story-sequence-container {
    position: relative;
    width: 100%;
    top: 100px;
    height: 100vh;
    z-index: 11;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.story-text {
    position: absolute;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    visibility: hidden;
}

.story-text.visible {
    opacity: 1;
    visibility: visible;
}

#story-text-1 {
    font-size: 10vw;
    font-weight: 700;
}
#story-text-2 {
    font-size: 2.5vw;
    margin-top: 13vw;
}
#story-text-3 {
    font-size: 4vw;
}

#story-text-4, #story-text-5, #story-text-6, #story-text-7 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

#story-text-4 {
    font-size: 8vw;
    font-weight: 700;
    transform: translateY(-8vw);
}
#story-text-5 {
    font-size: 3vw;
    transform: translateY(2vw);
}
#story-text-6 {
    font-size: 1.8vw;
    transform: translateY(7vw);
    font-weight: 300;
}
#story-text-7 {
    font-size: 2.5vw;
    transform: translateY(11vw);
    font-weight: 500;
}

.story-bg-new {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/osundosunclinic.jpg');
    background-size: cover;
    background-position: center top;
    z-index: -1;
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.story-bg-new.visible {
    clip-path: inset(0 0 0 0);
}

.story-bg-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.story-bg-new.visible::before {
    opacity: 1;
}

/* --- MVC 섹션 --- */
.mvc-section {
    position: relative;
    z-index: 12;
    padding: 50px 0;
    overflow: hidden;
}

.mvc-item {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; 
    gap: 40px;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 0px;
}

.mvc-item:last-child {
    margin-bottom: 0;
}

.mvc-title-wrapper {
    flex: 1;
    position: relative;
}
.mvc-content-wrapper {
    flex: 3;
}

.mvc-title {
    font-size: 3.5vw;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
    transform: translateY(20px);
}

.mvc-title.visible {
    opacity: 1;
    transform: translateY(0);
}


.mvc-title span {
    display: block;
    font-size: 1.5vw;
    color: #333;
    margin-bottom: 0px;
}

.mvc-content {
    font-size: 32px;
    line-height: 1.8;
    color: #3f2c26;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.3s;
}
.mvc-content.visible {
    opacity: 1;
    transform: translateY(0);
}
.dotted {
    position: relative;
    display: inline-block;
}
.dotted::after {
    content: '·';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    font-size: 2em;
    font-weight: bold;
    color: #F37021;
}


/* --- 논문 및 학회 페이지 --- */
.papers-container {
    max-width: 1000px;
}

.papers-section {
    margin-bottom: 80px;
}

.papers-section:last-child {
    margin-bottom: 0;
}

.papers-section h3 {
    font-size: 28px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 2px solid #dcd5c9;
    margin-bottom: 30px;
}

.papers-list {
    list-style: none;
    padding-left: 0;
    counter-reset: paper-counter;
}

.paper-item {
    padding-left: 40px;
    position: relative;
    margin-bottom: 40px;
}

.paper-item::before {
    counter-increment: paper-counter;
    content: counter(paper-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #F37021;
}

.paper-title {
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.paper-title:hover {
    color: #F37021;
    text-decoration: underline;
}

.citation {
    font-size: 16px;
    color: #7a6a63;
    margin-top: 8px;
    font-style: italic;
}

.preparation-notice {
    font-size: 18px;
    color: #7a6a63;
    text-align: center;
    padding: 40px 0;
}

/* --- 기타 학술활동 섹션 --- */
.activity-item {
    background-color: #f7f2ea;
    padding: 30px;
    border-radius: 10px;
}

.activity-header {
    margin-bottom: 25px;
}

.activity-header h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.activity-header .activity-date {
    font-size: 16px;
    color: #7a6a63;
    margin: 0;
}

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: stretch;
}

.activity-gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 임상시험 페이지 --- */
.trials-section {
    max-width: 1400px; /* 최대 폭 1400px로 제한 */
    margin: 0 auto 80px auto; /* 상하 0, 좌우 auto, 하 80px */
}

.trials-section h3 {
    font-size: 28px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 2px solid #dcd5c9;
    margin-bottom: 40px;
}

.trial-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.trial-item {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.trial-text {
    flex: 1 1 50%;
}

.trial-poster {
    flex: 1 1 50%;
}

.trial-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 10px;
}

.trial-subtitle {
    font-size: 16px;
    font-style: italic;
    color: #7a6a63;
    margin-top: 0;
    margin-bottom: 20px;
}

.trial-protocol {
    font-size: 16px;
    font-weight: 500;
    color: #3f2c26;
    background-color: #f7f2ea;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 25px;
}

.institutions-list {
    list-style: none;
    padding-left: 0;
    font-size: 17px;
    line-height: 2;
}

.institutions-list li {
    position: relative;
    padding-left: 15px;
}

.institutions-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F37021;
}

/* 첫 번째 li 항목(제목)에서는 점과 여백 제거 */
.institutions-list li:first-child::before {
    content: none;
}

.institutions-list li:first-child {
    padding-left: 0;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- 이미지 모달(팝업) 스타일 --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* --- 진료안내 - 진료시간표 --- */
.hours-table {
    width: 100%;
    max-width: 500px; /* 표의 최대 너비. 좁으면 늘리세요. */
    margin: 20px auto;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    padding: 12px 15px;
    font-size: 18px;
    line-height: 1.8;
    border-bottom: 1px solid #e0d9ce; /* 구분선 */
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
    border-bottom: none; /* 마지막 줄은 구분선 없음 */
}

.hours-table th {
    text-align: justify; /* 왼쪽 칸(제목)은 우측 정렬 */
    text-align-last: justify;
    font-weight: 700;
    width: 25%; /* 제목 칸 너비 */
}

.hours-table td {
    text-align: left; /* 오른쪽 칸(시간)은 좌측 정렬 */
}

/* (점심시간x) 스타일은 기존 .note 클래스를 재활용합니다 */
.hours-table .note {
    font-size: 15px;
    color: #888;
    margin-left: 10px;
    display: inline-block;
}

/* --- 영문 페이지 진료시간표 너비 조정 --- */
html[lang="en"] .hours-table th {
    width: 35%;
text-align: left;
text-align-last: auto;
}

/* --- [신규] 임상시험 모집 안내 스타일 --- */
.trial-recruitment {
    font-size: 17px;
    font-weight: 600;
    color: #F37021; /* 강조색 */
    background-color: #fdfaf5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 20px; /* 위 목록과의 간격 */
    border: 1px solid #fdecdf; /* 옅은 테두리 */
}

/* --- 모바일/태블릿 언어 스위처 --- */
.language-switcher-mobile {
    display: none; 
}
/* ------------------------------ */
/* --- 태블릿 반응형 (1400px 이하) --- */
/* ------------------------------ */

@media (max-width: 1400px) {

    /* 1. 헤더 높이 리셋 및 패딩 조절 */
    header {
        height: auto;
        padding: 10px 0 0px 0; /* 상단 패딩 10px, 하단 패딩 20px */
    }

    .header-container {
        flex-wrap: wrap; /* 2줄 구조로 변경 */
        position: relative; /* nav 메뉴의 absolute 포지셔닝 기준점 */
        justify-content: flex-start; /* 로고를 좌측에 붙임 */
    }

    /* 2. [첫 번째 줄] 언어 스위처 */
    .header-right {
        order: 1;
        width: 100%; 
        display: block; 
        margin-bottom: -15px; 
    }

    .language-switcher {
        float: right; /* 오른쪽으로 띄움 */
    }

    /* 3. [두 번째 줄] 로고 */
    header h1 {
        order: 2; /* 2순위 */
    }

    header h1 img {
        max-height: 80px; /* 로고 최대 높이 80px */
    }

    header nav {
        order: 3; /* 3순위 */
        
        position: absolute;
        left: 55%;
        width: max-content;

        top: 45px; 
        transform: translate(-50%, -50%);
    }

    header nav ul li {
        font-size: 16px;
        margin-left: 20px; /* 메뉴 간 간격 */
    }

    /* 5. 햄버거 메뉴 및 모바일 스위처는 이 뷰에서 숨김 */
    .hamburger-menu {
        display: none;
    }
    
    .language-switcher-mobile {
        display: none; 
    }
}
/* ------------------------------ */
/* --- 반응형 디자인 (모바일 최적화) --- */
/* ------------------------------ */

/* PC에서는 모바일 전용 줄바꿈 숨기기 */
.br-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* 모바일에서만 br-mobile 보이기 */
    .br-mobile {
        display: block;
    }

    /* --- [공통] 헤더 (모바일) --- */
    header {
        height: auto;
        padding: 15px;
    }
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    header h1 {
        order: 1;
        max-width: 60%;
    }
    header h1 img {
        max-height: 60px;
    }
    .hamburger-menu {
        display: block;
        order: 2;
    }
    .hamburger-menu.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    header nav {
        position: static;
        transform: none;
        width: 100%;
        order: 3;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(237, 231, 219, 0.95);
        margin-top: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    header nav ul li {
        display: block;
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(63, 44, 38, 0.1);
    }
    .header-right {
        display: none;
    }
    header nav ul li.dropdown {
        padding-bottom: 15;
        margin-bottom: 0;
    }
    .dropdown > a {
        width: 100%;
        display: block;
    }
    .dropdown-content {
        display: none;
        position: static;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        border: none;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown-content li {
        background-color: rgba(63, 44, 38, 0.05);
    }

    /* --- [메인] 이미지 슬라이더 (모바일) --- */
    .slide-text {
        width: 85%; /* 텍스트 영역이 너무 넓지 않게 조절 */
    }
    .slide-text h2 {
        font-size: 32px; /* 데스크톱 48px -> 32px로 수정 */
        margin-bottom: 10px;
    }
    .slide-text p {
        font-size: 16px; /* 데스크톱 18px -> 16px로 수정 */
    }

    /* --- 아이덴티티 섹션 (모바일) --- */
    .identity-section {
        padding: 60px 0;
    }
    .identity-container {
        flex-direction: column;
        gap: 40px;
    }
    .identity-left, .identity-right {
        text-align: center;
    }
    .identity-right p {
        padding-left: 0;
        text-align: center;
    }
    .identity-right p::before {
        display: none;
    }
    .identity-left p, .identity-right p {
        font-size: 22px;
    }
     .identity-left .highlight {
        font-size: 32px;
    }

    /* --- 임상시험기관 섹션 (모바일) --- */
    .irb-container {
        flex-direction: column;
    }
    .irb-right {
        order: 1;
        margin-bottom: 40px;
        display: none; /* 모바일에서 사진 영역 숨기기 */
    }
    .irb-left {
        order: 2;
    }

    /* --- 병원 소개 페이지 (모바일) --- */
    .intro-text h1 { font-size: 10vw; }
    .intro-text .since-text { font-size: 4vw; }
    .story-text { width: 90%; }
    #story-text-1 { font-size: 18vw !important; }
    #story-text-2 { font-size: 5vw !important; margin-top: 30vw !important; }
    #story-text-4 { font-size: 12vw !important; white-space: nowrap; transform: translateY(-10vw) !important; }
    #story-text-5 { font-size: 5vw !important; white-space: nowrap; transform: translateY(2vw) !important; }
    #story-text-6 { font-size: 4vw !important; white-space: nowrap; transform: translateY(8vw) !important; }
    #story-text-7 { font-size: 5vw !important; white-space: nowrap; transform: translateY(14vw) !important; }
    .mvc-item {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        margin-bottom: 0px;
    }
    .mvc-title-wrapper { text-align: center; }
    .mvc-content-wrapper { text-align: center; }
    .mvc-title, .mvc-title span { font-size: 24px; white-space: normal; }
    .mvc-title span { font-size: 16px; }
    .mvc-content { font-size: 18px; }
    .dotted::after { bottom: 2px; }

    /* --- 의료진 소개 페이지 (모바일) --- */
    .doctor-profile-card {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
    .doctor-photo {
        flex-basis: auto;
        width: 80%;
        max-width: 300px;
    }
    .doctor-history {
        flex-basis: auto;
        width: 100%;
    }
    .doctor-history h3 { font-size: 22px; }
    .doctor-history li { font-size: 15px; }

    /* --- 오시는 길 페이지 (모바일) --- */
    .location-details { flex-direction: column; }
    .directions-wrapper, .map-wrapper { flex: auto; }
    
    /* --- 논문 페이지 (모바일) --- */
    .activity-gallery { grid-template-columns: 1fr; }
    .activity-gallery img { height: auto; }

    /* --- [공통] 푸터 (모바일) --- */
    .footer-container {
        flex-direction: column; /* 가로(flex) 배치를 세로(column)로 변경 */
        gap: 30px; /* 로고와 정보 사이의 간격 */
    }

    .footer-logo {
        order: 1; /* 로고가 먼저 오도록 순서 지정 (기본값이라 사실 필요없지만 명시적) */
    }

    .footer-info {
        order: 2; /* 정보가 두 번째로 오도록 순서 지정 */
        text-align: center; /* 정보 텍스트를 오른쪽 정렬에서 중앙 정렬로 변경 */
    }

    /* --- 임상시험 페이지 (모바일) --- */
    .trial-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .trial-text {
        order: 1; /* 텍스트가 위로 */
    }

    .trial-poster {
        order: 2; /* 이미지가 아래로 */
    }

    .poster-image {
        cursor: default; /* 모바일에선 클릭 커서 제거 */
    }

    .poster-image:hover {
        transform: none; /* 모바일에선 호버 효과 제거 */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    /* --- 진료안내 - 진료시간표 (모바일) --- */
    .hours-table {
        max-width: 100%;
        border-top: 1px solid #e0d9ce; /* 맨 위에 구분선 추가 */
    }
    
    .hours-table tbody, 
    .hours-table tr, 
    .hours-table th, 
    .hours-table td {
        display: block; /* 핵심: 표의 모든 요소를 블록으로 변경 */
        width: 100% !important; /* 너비 100% 강제 */
        text-align: center; /* 모바일에선 중앙 정렬 */
        padding: 8px 0;
        border: none; /* 모든 내부 테두리 제거 */
    }

    .hours-table th {
        font-size: 17px;
        font-weight: 700;
        padding-top: 15px; /* 항목(요일) 위에 여백 */
        text-align: center !important;
        text-align-last: auto !important;
    }

    .hours-table td {
        font-size: 17px;
        padding-bottom: 15px; /* 시간 아래에 여백 */
        border-bottom: 1px solid #e0d9ce; /* 각 항목을 구분하는 선 */
    }

    .hours-table tr:last-child td {
        border-bottom: none; /* 마지막 항목은 선 없음 */
    }

    .hours-table .note {
        display: block; /* (점심시간x)를 다음 줄로 내림 */
        margin-left: 0;
        margin-top: 5px;
    }

    /* 3. 모바일 햄버거 뷰 (768px 이하) 스타일 */
    .language-switcher-mobile {
        /* li태그 기본 스타일을 초기화하고 중앙 정렬 */
        margin-left: 0; 
        padding: 15px 0; /* 다른 li 항목과 동일한 상하 여백 */
        text-align: center;
        background-color: rgba(63, 44, 38, 0.03); /* 메뉴와 살짝 구분되는 배경 */
        border-top: 1px solid rgba(63, 44, 38, 0.1); /* 구분선 */
    }

    .language-switcher-mobile a {
        font-size: 14px;
        font-weight: 400;
        color: #777; /* 회색 글씨 */
        padding: 0 10px;
    }

    .language-switcher-mobile a.active {
        font-weight: 700;
        color: #F37021; /* 활성 언어는 강조색으로 */
    }

    .language-switcher-mobile a:not(:last-child)::after {
        height: 12px;
        background-color: #ddd;
    }
}

/* --- [신규] 푸터 상단 정보 바 (밝은 버전) --- */
.pre-footer {
    background-color: #ede7db; /* [수정] 더 옅은 중간 톤 배경 */
    color: #3f2c26; /* [수정] 기본 텍스트를 어두운 색으로 */
    padding: 50px 0;
}

.info-bar-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
}

.info-col {
    flex: 1;
    min-width: 0;
}

.info-col h3 {
    font-size: 20px;
    font-weight: 700;
    color: #3f2c26; /* [수정] 제목 색상 */
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #F37021; /* 강조색 */
}

/* 1. 진료시간 (좌측) */
.info-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.info-hours-table th,
.info-hours-table td {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid rgba(63, 44, 38, 0.15); /* [수정] 옅은 경계선 */
}
.info-hours-table th {
    font-weight: 600;
    color: #3f2c26; /* [수정] */
    width: 35%; 
    white-space: nowrap; 
}
.info-hours-table td {
    padding-left: 10px;
}
.info-hours-table tr:last-child th,
.info-hours-table tr:last-child td {
    border-bottom: none;
}
.info-hours-table .note {
    font-size: 0.9em;
    color: #7a6a63; /* [수정] 중간 톤 텍스트 */
}

/* 2. 문의전화 (중앙) */
.info-col.contact {
    text-align: center;
    flex-grow: 1.2; 
}
.phone-number {
    font-size: 36px;
    font-weight: 700;
    color: #3f2c26; /* [수정] */
    margin: 20px 0 15px 0;
}
.slogan {
    font-size: 15px;
    color: #3f2c26; /* [수정] */
    margin: 0;
}

/* 3. 소셜 링크 (우측) */
.info-col.links {
    text-align: right;
}
.info-col.links .slogan {
    margin-bottom: 25px;
}
.sns-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.sns-link {
    font-size: 14px;
    font-weight: bold;
    color: #3f2c26; /* [수정] */
    border: 2px solid #3f2c26; /* [수정] */
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.sns-link:hover {
    background-color: #F37021;
    border-color: #F37021;
    color: #fff;
}

/* --- [신규] 푸터 상단 정보 바 (모바일) --- */
@media (max-width: 960px) {
    /* (내용 동일) */
    .info-bar-grid {
        gap: 20px;
    }
    .info-hours-table th {
        width: 40%;
    }
    .phone-number {
        font-size: 30px;
    }
    .sns-link {
        padding: 8px 20px;
    }
}


@media (max-width: 768px) {
    /* (내용 동일) */
    .pre-footer {
        padding: 40px 0;
    }
    .info-bar-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .info-col.contact,
    .info-col.links {
        text-align: center;
    }

    .info-hours-table th {
        text-align: left; 
        width: 30%;
    }
    .info-hours-table td {
        text-align: left; 
        padding-left: 0;
    }

    .sns-links {
        justify-content: center;
    }
}

/* --- [신규/수정] 치료후기 섹션 (Marquee 애니메이션) --- */

/* 스크롤 애니메이션 정의 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    /* * -50%로 이동시킵니다. (후기 10개 x 2세트 = 총 20개일 때)
     * (380px * 10개 = 3800px) 
     * -3800px 만큼 이동합니다. 
     */
    100% {
        /* (카드너비 350px + 갭 30px) * 후기개수 10개 = 3800px */
        transform: translateX(calc(-480px * 10)); 
    }
}

/* --- [신규 추가] 모바일용 스크롤 애니메이션 --- */
@keyframes scrollLeftMobile {
    0% {
        transform: translateX(0);
    }
    /* (카드너비 300px + 갭 30px) * 후기개수 10개 = 3300px */
    100% {
        transform: translateX(calc(-330px * 10)); 
    }
}

.review-section {
    padding: 100px 0;
    background-color: #fbfaf7;
}
.review-header {
    text-align: center;
    margin-bottom: 60px;
}

.review-header h2 .highlight {
    color: #F37021;
}
.review-header p {
    font-size: 18px;
    color: #7a6a63;
}

/* [신규] Marquee 래퍼 */
.review-marquee {
    width: 100%;
    overflow: hidden; /* 영역을 벗어나는 트랙을 숨김 */
    /* 마우스 호버 시 애니메이션 멈춤 */
    cursor: default;
}

/* [신규] 후기 아이콘 스타일 */
.review-icon {
    height: 80px; /* 아이콘 높이 (조절 가능) */
    width: auto;
    margin-bottom: 10px; /* 아이콘과 제목 사이 간격 */
}

/* [신규] h2 스타일 (삭제했던 내용 복원) */
.review-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #3f2c26;
}
/* [신규] Marquee 트랙 (실제 움직이는 부분) */
.review-track {
    display: flex;
    gap: 30px; /* 카드 사이 간격 */
    
    /* (카드너비 350px + 갭 30px) * 총 카드 개수 (10개 x 2세트 = 20개) */
    width: calc(480px * 20); 

    /* 애니메이션 적용: 60초 동안, 균일한 속도(linear), 무한반복(infinite) */
    animation: scrollLeft 60s linear infinite;
}

/* 마우스를 올리면 애니메이션 멈춤 */
.review-marquee:hover .review-track {
    animation-play-state: paused;
}

/* [수정] review-card (너비 고정) */
.review-card {
    width: 450px; /* 카드의 너비를 350px로 고정 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px; 
    box-sizing: border-box; 
}
.review-card-content {
    font-size: 16px;
    line-height: 1.4;
    color: #3f2c26;
    flex-grow: 1;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8; /* 8줄로 제한. (높이 250px에 맞춰 조절) */
}
.review-card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ede7db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.review-author {
    font-weight: bold;
    color: #3f2c26;
}
.review-source {
    color: #7a6a63;
    font-weight: 500;
}

/* 후기 더보기 버튼 (기존과 동일) */
.review-more-button {
    text-align: center;
    margin-top: 60px;
}
.review-more-button a {
    background-color: #3f2c26;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.review-more-button a:hover {
    background-color: #F37021;
}

/* --- [수정] Marquee 모바일 --- */
@media (max-width: 768px) {
    .review-section {
        padding: 60px 0;
    }
    .review-icon {
        height: 30px;
    }
    .review-header h2 {
        font-size: 30px;
    }

    /* [신규] 모바일에서 Marquee 트랙 설정 변경 */
    .review-track {
        /* (카드너비 300px + 갭 30px) * 총 카드 개수 (10개 x 2세트 = 20개) */
        width: calc(330px * 20); 
        
        /* [수정] 모바일용 애니메이션(scrollLeftMobile)을 30초 속도로 적용 */
        animation: scrollLeftMobile 30s linear infinite;
    }
}
/* --- [신규] 페이지 헤더 --- */
.page-header {
    height: 300px; /* 헤더 높이 (조절 가능) */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-top: 0px; /* 고정 헤더 높이만큼 위로 올려 겹치게 함 (데스크탑 기준) */
    padding-top: 0px; /* 올린 만큼 내부 패딩으로 채움 */
    box-sizing: border-box;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

/* --- [신규] 이동 경로 (Breadcrumb) --- */
.breadcrumb {
    background-color: #f6f3ed; /* 수정된 body 배경색보다 살짝 짙게 */
    padding: 15px 0;
    font-size: 14px;
    color: #7a6a63; /* 중간톤 브라운 */
    border-bottom: 1px solid #ede7db; /* 구분선 */
}

.breadcrumb a {
    color: #7a6a63;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #F37021; /* 강조색 */
}

.breadcrumb span {
    font-weight: 600;
    color: #3f2c26; /* 현재 페이지는 진하게 */
}

/* --- [신규] 페이지 헤더 및 Breadcrumb (모바일) --- */
@media (max-width: 1400px) {
    /* 태블릿 헤더 높이 계산 (복잡하므로 일단 고정값 사용) */
    .page-header {
        margin-top: 0px; /* 3단 헤더 높이만큼 (대략) */
        padding-top: 0px; 
        height: 350px; /* 태블릿에서는 높이 살짝 늘림 */
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 200px; /* 모바일 헤더 높이 */
        margin-top: 0px; /* 모바일 헤더 높이만큼 (대략) */
        padding-top: 0px;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .breadcrumb {
        font-size: 13px;
    }
}

/* --- [신규] Breadcrumb 드롭다운 --- */
.breadcrumb .dropdown-container {
    position: relative; /* 드롭다운 기준점 */
    display: inline-block; /* 다른 텍스트와 어울리도록 */
    padding-bottom: 10px; /* [추가] 마우스 이동 위한 공간 확보 (hover 유지) */
    margin-bottom: -10px; /* [추가] 늘어난 높이만큼 주변 요소와의 간격 보정 */
}

.breadcrumb .dropdown-menu {
    display: none; /* 평소엔 숨김 */
    position: absolute;
    left: 0;
    top: 100%; /* 링크 바로 아래 */
    background-color: #f6f3ed; /* 배경색 */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    margin-top: 0px; /* 링크와의 간격 */
    border-radius: 8px;
    border: 1px solid #ede7db;
}

.breadcrumb .dropdown-menu li {
    padding: 10px 15px;
}

.breadcrumb .dropdown-menu li a {
    color: #3f2c26; /* 기본 텍스트 색상 */
    font-size: 14px;
    white-space: nowrap;
}

.breadcrumb .dropdown-menu li a:hover {
    color: #F37021; /* 강조색 */
}

/* 컨테이너에 hover하면 드롭다운 표시 */
.breadcrumb .dropdown-container:hover .dropdown-menu {
    display: block;
}


        /* 추가된 스타일: 금액 표와 제목 스타일 */
        .price-section h3 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            border-left: 5px solid var(--main-color); /* 예시로 메인 색상 사용 */
            padding-left: 10px;
            max-width: 600px;
    margin-left: auto;
    margin-right: auto;
        }

        .price-table, .document-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 2rem;
            font-family: 'Pretendard Variable', sans-serif;
            font-size: 1rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .price-table th, .price-table td,
        .document-table th, .document-table td {
            border: 1px solid #ddd;
            padding: 12px 15px;
            text-align: left;
        }

        .price-table th {
            background-color: #f8f8f8;
            font-weight: 600;
            width: 30%;
        }
        
        .price-table.treatment-table th:first-child,
        .price-table.treatment-table td:first-child {
            width: auto; /* 치료명은 자동으로 크기 조정 */
        }
        
        /* 치료 표 헤더 스타일 조정 */
        .price-table.treatment-table thead th {
            text-align: center;
            background-color: var(--main-color);
            color: #555;
            font-weight: 700;
        }
        
        .price-table.treatment-table tbody th {
            background-color: #f8f8f8;
            font-weight: 500;
            text-align: left;
        }

        .price-table.treatment-table tbody td {
            text-align: center;
        }

        .note-list {
            list-style: none;
            padding: 0;
            margin-top: -1rem;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .note-list li {
            font-size: 0.9rem;
            color: #555;
            margin-bottom: 5px;
            padding-left: 15px;
            position: relative;
        }

        .note-list li::before {
            content: "•";
            color: var(--main-color);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }
/* 인사말 페이지 전용 스타일 */
        .greeting-section {
            padding: 40px 0;
            max-width: 1400px; /* 좌우 폭 1400px */
            margin: 0 auto;
            text-align: left;
        }
        
        /* 페이지 내 중앙 제목 */
        .greeting-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 40px;
            color: #333;
            padding-top: 20px;
        }

        /* 사진과 텍스트를 감싸는 컨테이너 */
        .greeting-wrap {
            display: flex;
            gap: 40px;
            align-items: flex-start; /* 상단 정렬 */
        }

        /* [수정] 클래스 이름 변경: .doctor-photo -> .greeting-photo */
        .greeting-photo {
            flex-shrink: 0; 
            width: 350px; /* 데스크톱 사진 너비 */
            height: 450px; /* 데스크톱 사진 높이 */
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            background-color: #f0f0f0; 
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            color: #666;
            text-align: center;
        }
        /* [수정] 클래스 이름 변경 */
        .greeting-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top; /* [이 부분 추가!] 이미지를 상단 기준으로 정렬 */
            display: block;
            aspect-ratio: auto; /* 외부 style.css의 1 / 1 설정을 무시하고 원래 비율로 복원 */
            border-radius: 8px; /* 부모 컨테이너와 동일하게 둥근 모서리 적용 */
            box-shadow: none; /* 외부 style.css의 그림자 제거 (필요하다면) */
        } 

        /* [수정] 클래스 이름 변경: .greeting-content -> .greeting-text */
        .greeting-text {
            flex-grow: 1;
            font-size: 1.2rem;
            line-height: 1.8;
            color: #333;
            font-family: 'Pretendard Variable', sans-serif;
        }
        /* [수정] 클래스 이름 변경 */
        .greeting-text p {
            margin-bottom: 1.5rem;
        }
        
        /* [수정] 클래스 이름 변경 */
        .greeting-text .initial-line {
            font-family: 'Noto Serif KR', serif;
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--main-color, #555); 
            margin-bottom: 2rem;
            display: block;
        }
        /* [수정] 클래스 이름 변경 */
        .greeting-text strong {
            font-weight: 600;
            color: #1a1a1a;
        }
        .greeting-signature {
            margin-top: 4rem;
            font-size: 1.2rem;
            font-weight: 600;
            text-align: right;
        }

        /* 반응형 디자인 */
        @media (max-width: 768px) {
            .greeting-title {
                font-size: 2rem;
            }
            .greeting-wrap {
                flex-direction: column; 
                gap: 20px;
            }
            /* [수정] 클래스 이름 변경 */
            .greeting-photo {
                width: 80%; /* 모바일에서 중앙 정렬을 위해 너비 조정 */
                max-width: 350px;
                height: 300px; 
                margin: 0 auto; /* 중앙 정렬 추가 */
            }

        .greeting-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top; /* [이 부분 추가!] 이미지를 상단 기준으로 정렬 */
            display: block;
            aspect-ratio: auto; /* 외부 style.css의 1 / 1 설정을 무시하고 원래 비율로 복원 */
            border-radius: 8px; /* 부모 컨테이너와 동일하게 둥근 모서리 적용 */
            box-shadow: none; /* 외부 style.css의 그림자 제거 (필요하다면) */
        } 
            .greeting-text {
                font-size: 1rem;
            }
            /* [수정] 클래스 이름 변경 */
            .greeting-text .initial-line {
                font-size: 1.3rem;
            }
            .greeting-signature {
                text-align: center;
            }
        }
/* --- [신규] 스크롤 시 헤더 스타일 --- */
        header.header-scrolled {
            background-color: rgba(237, 225, 219, 0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #3f2c26; /* 기본 글자색 */
        }
        
        /* 스크롤 시 로고 전환 */
        header.header-scrolled h1 img.logo-dark {
            display: block;
        }
        header.header-scrolled h1 img.logo-white {
            display: none;
        }

        /* 스크롤 시 언어 스위처 등 색상 변경 */
        header.header-scrolled .language-switcher,
        header.header-scrolled .language-switcher a,
        header.header-scrolled nav ul li {
            color: #3f2c26;
        }

        /* 스크롤 시 구분선 색상 */
        header.header-scrolled .language-switcher a:not(:last-child)::after {
            background-color: #ccc;
        }

        /* 스크롤 시 nav 링크 색상 */
        header.header-scrolled nav a {
             color: #3f2c26;
        }
        header.header-scrolled nav a:hover {
             color: #F37021;
        }
        
        /* 스크롤 시 활성 언어는 계속 흰색 유지 (덮어쓰기 방지) */
        header.header-scrolled .language-switcher a.active {
            color: #fff !important;
        }

/* --- [신규 추가] 비디오 전체 너비/높이 스타일 --- */
.video-container-fullwidth {
    width: 100vw; 
    position: relative;
    margin-top: 0px; 
    padding-top: 0px; 
    box-sizing: border-box;
    height: 100vh;
    overflow: hidden; 
}

.video-container-fullwidth .top-video {
    position: absolute; /* 절대 위치 */
    top: 0;
    left: 0;
    width: 100%; /* 부모 섹션 너비 꽉 채움 */
    height: 100%; /* 부모 섹션 높이 꽉 채움 */
    object-fit: cover; /* 비디오가 잘리더라도 비율을 유지하며 컨테이너 꽉 채움 */
    z-index: 1;
}
/* --- [신규] 서브페이지 본문 텍스트 스타일 --- */
.main-content .container p,
.main-content .container li {
    font-size: 1.15rem; /* 16px -> 약 18.4px로 폰트 크기 증가 */
    line-height: 1.8; /* 넉넉한 줄 간격 */
}

/* --- [신규] 서브페이지 h3 제목 스타일 --- */
.main-content .container h3 {
    font-size: 1.75rem; /* 약 28px 크기 */
    font-weight: 800;   /* 기존 700(bold)보다 더 굵게 */
    margin-top: 3rem;   /* 위 섹션과의 여백 */
    margin-bottom: 1.5rem; /* 아래 본문과의 여백 */
}

/* --- [수정] 본문 한자 강조 스타일 --- */
.highlight-hanja {
    color: #F37021;
    font-weight: 700; 
    background-color: #ede7db; 
    padding: 0 4px; 
    border-radius: 3px; 
    font-family: 'Noto Serif KR', serif; /* 이 줄을 추가해 주세요 */
}
/* --- [신규 추가] 비디오 섹션 반응형 디자인 --- */
@media (max-width: 1400px) {
    .video-container-fullwidth {
        margin-top: 0px; 
        padding-top: 0px; 
        /* [수정 3] 높이를 150px 줄입니다. */
        height: 80vh; 
    }
}

@media (max-width: 768px) {
    .video-container-fullwidth {
        margin-top: 0px; 
        padding-top: 0px;
        /* [수정 4] 높이를 150px 줄입니다. */
        height: 50vh; 
    }
}

/* --- [수정] 메인 콘텐츠 상단 여백 보정 --- */
.main-content {
    /* 비디오 섹션 아래에 콘텐츠가 바로 붙도록, 
       기존에 constitution.html에서 padding-top: 0으로 설정했으므로 큰 수정은 필요 없습니다. */
    position: relative; /* 비디오 위에 z-index 설정에 도움 */
    z-index: 10;
}
/* --- [신규] 다이어트 페이지 2단 이미지 갤러리 --- */
.image-gallery-2col {
    display: flex;
    justify-content: center; /* 이미지들을 중앙에 배치 */
    gap: 30px; /* 이미지 사이의 간격 */
    flex-wrap: wrap; /* 화면이 좁아지면 줄바꿈 */
    max-width: 1400px; /* 최대 너비 제한 */
    margin: 0 auto; /* 중앙 정렬 */
}

.image-gallery-2col .image-item {
    flex: 1 1 400px; /* 기본 400px, 공간이 있으면 늘어남 */
    max-width: 600px; /* 각 이미지의 최대 너비 */
}

.image-gallery-2col .image-item img {
    width: 100%; /* 부모 요소 너비에 맞춤 */
    height: auto;
    border-radius: 8px; /* 모서리 둥글게 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 그림자 효과 */
}

/* 모바일 (768px 이하)에서는 1단으로 쌓이도록 함 */
@media (max-width: 768px) {
    .image-gallery-2col {
        gap: 20px;
    }
    
    .image-gallery-2col .image-item {
        flex: 1 1 100%; /* 화면 너비 100% 사용 */
        max-width: 100%;
    }
}
