/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0f4c81;
    --secondary-color: #1e88e5;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 25px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Card Spacing */
    --card-padding: 40px 20px;
    --card-gap: 16px;
    
    /* Typography */
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    
    /* Line Heights */
    --line-height-tight: 1.4;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
}

.page_loader{
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: 999999;
	top: 0;
	left: 0;
	background: rgba( 255, 255, 255, 0.7 );
	cursor: wait;
	display: none;	
}

.page_loader .box{
    width: 2rem;
    height: 2rem;
    top: 50%;
    left: 50%;
    margin-top: -1rem;
    margin-left: -1rem;
    text-align: center;
    position: absolute;
    z-index: 100;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ⚠ body 만으로는 가로 넘침이 안 잡힌다 — html 에도 있어야 한다(2026-09-01 실측).
   원인은 모바일 슬라이드 메뉴(.nav-menu)다. 닫힌 상태를 `right: -100%` 로 화면
   바깥에 세워 두는데, position: fixed 라도 그만큼 문서 폭이 늘어난다.
   그 결과 레이아웃 폭이 405px 가 되고 실제로 보이는 390px 와 어긋나, 화면 가운데
   정렬한 것들이 오른쪽으로 밀려 보였다(메인 팝업에서 드러났다).

   ⚠ 이 사이트에는 position: sticky 가 한 곳도 없어 안전하다. sticky 를 새로
     쓰게 되면 이 규칙과 충돌하는지 먼저 확인할 것.
   ⚠ 메뉴를 transform 으로 밀어도 넘침은 그대로다(같은 날 확인). 클램프가 답이다. */
@media (max-width: 992px) {
    html { overflow-x: hidden; }
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */

/* 헤더만 본문(.container 1200px)보다 넓다. 메뉴가 한 줄에 들어가게 하기 위함이다.
   상단바와 네비가 같은 폭이어야 우측 끝이 맞는다 — 한쪽만 바꾸지 말 것. */
.header .container {
    /* 메뉴 항목이 늘어 1400px 으로는 넓은 화면에서도 빡빡했다. 머리글만 넓힌다.
       본문 .container(1200px)는 그대로다. */
    max-width: 1600px;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
    color: var(--text-light);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a {
    color: var(--text-dark);
    font-size: 13px;
    transition: var(--transition);
}

.header-actions a:hover {
    color: var(--primary-color);
}

/* 로그인 후 사용자 정보 */
.header-actions .user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.header-actions .user-profile i {
    font-size: 16px;
    color: var(--primary-color);
}

.header-actions .user-profile:hover {
    background: #e3f2fd;
    color: var(--primary-color);
}

.navbar {
    padding: 10px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* 모바일 전용 요소는 PC에서 숨김 */
.mobile-user-section,
.mobile-login-section {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
}


.nav-menu > li {
    position: relative;
}

/* PC에서 mobile-menu-items가 있으면 flex로 표시 (wrapper 역할) */
.mobile-menu-items {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    display: inline-block;
    white-space: nowrap;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* 드롭다운 메뉴 */
.has-dropdown {
    position: relative;
}

.has-dropdown::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.has-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.has-dropdown > a:hover::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* 진료예약 버튼 강조 */
.nav-menu .btn-booking {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    vertical-align: middle;
}

.nav-menu .btn-booking::after {
    display: none;
}

.nav-menu .btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    position: relative;
    height: 600px;
    margin-top: 120px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-desc {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-family: 'Noto Serif KR', serif;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   Clinic Section
   ======================================== */
.clinic-section {
    padding: 100px 0;
    background: var(--white);
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
}

.clinic-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    text-align: center;
    transition: var(--transition);
    border: 2px solid #f0f0f0;
}

.clinic-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.clinic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.clinic-image {
    width: 100%;
    height: 200px;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clinic-card:hover .clinic-image img {
    transform: scale(1.05);
}

.clinic-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.clinic-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.clinic-features {
    text-align: left;
    margin: 20px 0;
}

.clinic-features li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.clinic-features i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 12px;
}

.clinic-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    font-size: 15px;
}

.clinic-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.clinic-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   Director Section
   ======================================== */
.director-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.director-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-md);
}

.director-image {
    flex-shrink: 0;
}

.director-image img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.image-placeholder {
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.director-text {
    flex: 1;
}

.director-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.director-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
    font-family: 'Noto Serif KR', serif;
}

.director-message {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.director-name {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.director-name strong {
    color: var(--primary-color);
    font-size: 20px;
}

.director-credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.director-credentials li {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--text-light);
}

.director-credentials i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 16px;
}

/* ========================================
   Review Section
   ======================================== */
.review-section {
    padding: 100px 0;
    background: var(--white);
}

.review-slider {
    position: relative;
    padding: 20px 0 40px;
    margin-bottom: 20px;
    overflow: hidden;
}

.review-track {
    display: flex;
    gap: 30px;
    padding: 10px 0;
    animation: scroll 60s linear infinite;
    width: fit-content;
}

.review-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    flex: 0 0 400px;
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.review-category {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

.review-rating {
    color: var(--accent-color);
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;   /* 보여줄 줄 수 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.7;
}



.review-more {
    text-align: center;
    margin-top: 40px;
}

.review-more .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.review-more .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   Consult Section
   ======================================== */
.consult-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.consult-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.consult-info {
    color: var(--white);
}

.consult-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Noto Serif KR', serif;
}

.consult-desc {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
}

.consult-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.9;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 18px;
    font-weight: 600;
}

.consult-form {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ========================================
   Location Section
   ======================================== */
.location-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.phone-number {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.schedule-table {
    width: 100%;
}

.schedule-table tr {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    font-size: 15px;
}

.schedule-table td:first-child {
    font-weight: 500;
}

.schedule-table .holiday {
    color: #e74c3c;
}

/* ========================================
   Popup Modals
   ======================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: block;
}

.popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    height: 600px;
    overflow: hidden;
}

.popup-modal.active {
    display: block;
}

/* PC: 나란히 배치 */
.popup-modal#noticePopup {
    transform: translate(calc(-50% - 210px), -50%);
}

.popup-modal#eventPopup {
    transform: translate(calc(-50% + 210px), -50%);
}

.popup-modal#noticePopup.active,
.popup-modal#eventPopup.active {
    animation: slideDownNotice 0.4s ease forwards;
}

@keyframes slideDownNotice {
    from {
        opacity: 0;
        top: 40%;
    }
    to {
        opacity: 1;
        top: 50%;
    }
}

.popup-header {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.popup-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.popup-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.popup-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.popup-body {
    height: calc(600px - 56px - 66px);
    overflow: hidden;
}

.popup-banner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.popup-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popup Banner Slider */
.popup-banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.popup-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.popup-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* 팝업 이미지에 링크가 걸린 경우. a 가 슬라이드를 꽉 채워야 이미지 전체가 눌린다.
   ⚠ 슬라이드는 .active 일 때만 pointer-events 가 살아난다 — 뒤에 숨은 배너는 안 눌린다. */
.popup-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.popup-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.popup-banner-prev,
.popup-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-banner-prev:hover,
.popup-banner-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.popup-banner-prev {
    left: 15px;
}

.popup-banner-next {
    right: 15px;
}

.popup-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.popup-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.popup-banner-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}


.popup-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.popup-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.popup-checkbox span {
    font-size: 13px;
    color: #666;
}

.btn-popup-close {
    background: #333;
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-popup-close:hover {
    background: #555;
}

/* 암 회복관리 랜딩 수동 팝업 (520 × 640) */
.cancer-promo {
    /* 카드 한 장의 폭. PC 는 두 장이 나란히 서므로 화면 폭을 둘로 나눈 값이
       상한이 된다. 폰(≤900px)에서는 아래 미디어쿼리가 한 장 기준으로 다시 잡는다.
       ⚠ 카드 장수를 바꾸면 `/ 3` 과 아래 gap 여유값(104px)을 함께 고칠 것.
         104px = 좌우 패딩 16×2 + 카드 사이 gap 18×2 + 여유 36. */
    --promo-card-w: min(420px, calc((100vw - 104px) / 2), calc((100dvh - 150px) * .8125));

    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

/* 카드·점·하단바를 묶는 상자. 닫기(X)는 이 상자의 오른쪽 위에 붙는다. */
.cancer-promo__stage {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 100%;
    flex-direction: column;
    gap: 12px;
}

/* 카드가 놓이는 줄. PC 는 가로로 둘 다 보이고, 폰은 옆으로 넘긴다(아래 미디어쿼리). */
.cancer-promo__track {
    display: flex;
    gap: 18px;
}

.cancer-promo.is-open {
    visibility: visible;
    opacity: 1;
}

.cancer-promo__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(8, 22, 33, .72);
    backdrop-filter: blur(3px);
    cursor: default;
}

/* 카드 한 장. 2026-09-01 하단바(오늘 하루 보지 않기·닫기)를 카드 밖으로 빼면서
   `grid-template-rows: minmax(0,1fr) 58px` 를 걷어냈다 — 이제 사진 한 칸뿐이다.
   ⚠ 비율 13/16 은 유지한다. 두 카드의 높이가 같아야 나란히 섰을 때 어긋나지 않는다. */
.cancer-promo__dialog {
    position: relative;
    /* ⚠ grid 를 유지한다. 안의 `.cancer-promo__visual` 은 자기 높이가 없다
       (사진과 글이 전부 absolute 다). 행을 안 잡아 주면 높이가 0 이 되어
       카드가 흰 상자로만 남는다 — 2026-09-01 실제로 그렇게 비어 보였다. */
    display: grid;
    /* ⚠ 두 행이다 — 사진 + 카드별 하단바(오늘 하루 보지 않기·닫기).
       2026-09-01 하단바를 카드마다 두는 구조로 되돌렸다. 행을 하나로 줄이면
       하단바가 사진 위로 겹치거나 사진 높이가 0 이 된다. */
    grid-template-rows: minmax(0, 1fr) 58px;
    flex: 0 0 auto;
    width: var(--promo-card-w);
    aspect-ratio: 13 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
    transform: translateY(18px) scale(.98);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.cancer-promo__dialog + .cancer-promo__dialog { transition-delay: .06s; }

/* ⚠ 카드가 `display: grid` 라 `hidden` 속성만으로는 안 숨는다(기본값을 덮어쓴다).
   카드별 닫기(main.js)가 이 속성을 붙이므로 반드시 함께 있어야 한다. */
.cancer-promo__dialog[hidden] { display: none; }

.cancer-promo.is-open .cancer-promo__dialog {
    transform: translateY(0) scale(1);
}

.cancer-promo__visual {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    isolation: isolate;
}

.cancer-promo__visual::before,
.cancer-promo__visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    pointer-events: none;
}

.cancer-promo__visual::before {
    background: linear-gradient(180deg, rgba(13, 44, 67, .34) 0%, rgba(13, 44, 67, .08) 35%, rgba(10, 34, 52, .94) 100%);
}

.cancer-promo__visual::after {
    background: linear-gradient(90deg, rgba(8, 32, 49, .18), transparent 58%);
}

.cancer-promo__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
    transform: scale(1.015);
}

/* 교통사고 카드 사진 — 공용값(28%)은 차 앞부분만 잡혀 사람 팔만 걸렸다(2026-09-01).
   원본이 가로 2560px 인데 카드는 세로로 긴 13/16 이라 아주 좁은 띠만 보인다.
   사람은 원본 오른쪽에 있으므로 숫자를 올려야 그쪽이 들어온다 —
   55% 는 흰 차와 허리를 짚은 사람이 함께 잡히는 값이다.
   ⚠ 더 올리면(65%+) 차가 빠지고 사람만 남는다. 교통사고 안내라 차가 함께 보이는 편이 낫다.
   ⚠ 사진을 바꾸면 이 값은 의미가 없어진다. 새로 잡을 것. */
.cancer-promo__photo--ta { object-position: 55% center; }

/* 추석 카드 (2026-09-10). 공용 그라데이션은 파란색 계열이라(rgba(13,44,67))
   따뜻한 갈색 제품 사진 위에 얹으면 색이 탁해진다. 이 카드만 중성 흑갈색으로 덮는다.
   ⚠ 사진 가로가 820px 뿐이라 `object-position` 은 공용값(28%)을 그대로 쓴다 —
     큰 상자와 오른쪽 납작 상자가 함께 들어오는 값이다. 더 올리면 큰 상자가 잘린다. */
.cancer-promo__photo--chuseok { object-position: 28% center; }

.cancer-promo__dialog[data-promo-cookie="chuseokPromoHidden"] .cancer-promo__visual::before {
    background: linear-gradient(180deg, rgba(12, 10, 8, .30) 0%, rgba(12, 10, 8, .06) 35%, rgba(8, 7, 5, .94) 100%);
}

.cancer-promo__dialog[data-promo-cookie="chuseokPromoHidden"] .cancer-promo__visual::after {
    background: linear-gradient(90deg, rgba(10, 8, 6, .18), transparent 58%);
}

.cancer-promo__dialog[data-promo-cookie="chuseokPromoHidden"] .cancer-promo__eyebrow {
    color: #e4c374;
}

.cancer-promo__dialog[data-promo-cookie="chuseokPromoHidden"] .cancer-promo__title em {
    color: #e9cf92;
}

/* 추석 카드 제목은 다른 두 장보다 문구가 훨씬 길다(`추석맞이 경옥고·공진단 / 특별 이벤트 안내`).
   공용 크기(최대 42px)로는 넉 줄이 되어 로고까지 밀고 올라간다. 이 카드만 줄인다.
   ⚠ **뷰포트(vw)가 아니라 카드 폭 기준**이다. 공용 규칙이 `clamp(27px, 7.1vw, 42px)` 라
     카드가 좁아져도 글자가 안 줄어드는 문제가 있다(2026-09-10 1024px 에서 겪었다).
     `--promo-card-w` 에 매어 두면 카드가 줄면 글자도 같이 준다.
   계수 .08095 = 34 ÷ 420. 카드가 제 폭(420px)일 때 34px 이 되도록 맞춘 값이다.
   실측(2026-09-10, 라이브) — 카드 420px / 글상자 361px 일 때
     `추석맞이 경옥고·공진단` 335px, `특별 이벤트 안내` 280px. 둘 다 한 줄, 여유 26px.
   ⚠ **여기가 거의 한계다.** 첫 줄이 한 줄로 남는 상한이 약 36px 이라(335 × 36/34 ≈ 355)
     34px 위로는 여유가 6px 밖에 없다. 웹폰트가 안 뜨고 대체 글꼴로 그려지면 넘칠 수 있다.
     더 키우고 싶으면 문구를 줄이거나 `strong`/`em` 을 나누는 지점을 바꿀 것. */
.cancer-promo__dialog[data-promo-cookie="chuseokPromoHidden"] .cancer-promo__title {
    font-size: clamp(19px, calc(var(--promo-card-w) * .08095), 34px);
}

/* 교통사고 카드 제목 둘째 줄은 한 줄로 붙인다(2026-09-01 요청).
   ⚠ `word-break: keep-all` 로는 안 된다 — 가운뎃점(·)이 줄바꿈 기회로 잡혀서
     `치료·입원· / 회복관리` 로 갈라진다. 그래서 nowrap 이 필요하다.
   ⚠ 폭이 빠듯하다. 실측(2026-09-01) — 1440 에서 글 211px/여유 361px,
     390 에서 259px/308px 다. **문구를 늘리면 카드 밖으로 삐져나간다.**
     늘려야 하면 nowrap 을 빼거나 글자 크기를 함께 낮출 것. */
.cancer-promo__dialog[data-promo-cookie="accidentPromoHidden"] .cancer-promo__title em {
    /* 암 카드(1.18em)보다 한 단계 작다. 글자 수가 많아 같은 크기로는 카드를 넘친다 —
       실측(2026-09-01) 1.18em 에서 1440 기준 394px 로 여유(361px)를 33px 초과했다. */
    font-size: 1.02em;
    white-space: nowrap;
}

.cancer-promo__logo {
    position: absolute;
    top: clamp(22px, 5.2%, 32px);
    left: clamp(22px, 6.2%, 34px);
    width: clamp(142px, 35%, 174px);
    height: auto;
}

.cancer-promo__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(11, 37, 56, .3);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.cancer-promo__close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.cancer-promo__content {
    position: absolute;
    right: clamp(24px, 7%, 38px);
    bottom: clamp(25px, 6%, 38px);
    left: clamp(24px, 7%, 38px);
}

.cancer-promo__eyebrow {
    margin: 0 0 12px;
    color: #bad4e6;
    font-size: clamp(9px, 2.1vw, 12px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .16em;
}

.cancer-promo__title {
    margin: 0;
    color: #ffffff;
    font-family: "Noto Serif KR", serif;
    font-size: clamp(27px, 7.1vw, 42px);
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: -.035em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
    /* ⚠ 2026-09-01 추가. 없으면 `회복관리` 가 `회복 / 관리` 로 단어 중간에서 잘린다
       (교통사고 카드에서 실제로 그랬다). 한국어 제목에는 반드시 필요하다. */
    word-break: keep-all;
}

.cancer-promo__title strong,
.cancer-promo__title em {
    display: block;
}

.cancer-promo__title strong {
    font-weight: 500;
}

.cancer-promo__title em {
    margin-top: 2px;
    color: #f4d27a;
    font-size: 1.18em;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -.045em;
}

.cancer-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: clamp(18px, 4.5%, 26px);
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    line-height: 1.3;
    backdrop-filter: blur(7px);
}

.cancer-promo__cta svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 점 — 폰에서만 보인다. PC 는 두 장이 이미 다 보이므로 필요 없다. */
.cancer-promo__dots {
    display: none;
    gap: 8px;
    justify-content: center;
}

.cancer-promo__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.cancer-promo__dot.is-active {
    background: #ffffff;
    transform: scale(1.25);
}

.cancer-promo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: #ffffff;
}

.cancer-promo__today {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5d686f;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.cancer-promo__today input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1c4a6e;
}

.cancer-promo__footer-close {
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: #293943;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cancer-promo__close:focus-visible,
.cancer-promo__visual:focus-visible,
.cancer-promo__footer-close:focus-visible {
    outline: 2px solid #8fc4e8;
    outline-offset: -3px;
}

/* ── 폰·태블릿·좁은 노트북 — 카드를 한 장씩 옆으로 넘긴다(2026-09-01) ──────────────
   PC 처럼 나란히 두면 카드가 화면 폭을 장수만큼 나눠 가져 사진도 글씨도 작아진다.
   ⚠ 트랙 폭을 카드 한 장으로 묶어야 `overflow-x` 가 생긴다. 폭을 풀면 스크롤이 사라진다.
   ⚠ `scroll-snap-align: center` 와 트랙의 `scroll-snap-type` 은 한 쌍이다.
   ⚠ 스크롤바는 감춘다 — 점이 위치를 알려주는 역할을 대신한다.

   ⚠ 2026-09-10 기준점을 900 → 1327px 로 올렸다. **카드 장수와 묶인 값이다.**
     카드 3장이 제 폭(420px)으로 서려면 420×3 + gap 18×2 + 좌우 패딩 16×2 = 1328px 이 필요하다.
     그보다 좁은데 나란히 세우면 카드만 줄고 글자는 안 줄어 제목이 카드 밖으로 나간다
     (1024px 에서 `치료·입원·회복관리` 가 실제로 삐져나갔다 — 글자 크기가 vw 기준이라 그렇다).
     ⚠ 카드를 2장으로 되돌리면 이 값도 420×2+18+32 = **898px** 로 함께 내릴 것. */
@media (max-width: 1327px) {
    .cancer-promo { --promo-card-w: min(420px, calc(100vw - 32px), calc((100dvh - 150px) * .8125)); }

    .cancer-promo__track {
        width: var(--promo-card-w);
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cancer-promo__track::-webkit-scrollbar { display: none; }

    .cancer-promo__dialog { scroll-snap-align: center; }

    .cancer-promo__dots { display: flex; }
}

@media (max-width: 480px) {
    .cancer-promo { padding: 12px; }
    .cancer-promo__dialog {
        border-radius: 14px;
    }
    .cancer-promo__close { top: 14px; right: 14px; width: 34px; height: 34px; }
    .cancer-promo__footer { padding: 0 16px; }
    .cancer-promo__today { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .cancer-promo,
    .cancer-promo__dialog { transition: none; }
}

/* ========================================
   Hospital Banner
   ======================================== */
.hospital-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hospital-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company-info p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-policies {
    display: flex;
    gap: 20px;
}

.footer-policies a {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

.footer-policies a:hover {
    opacity: 1;
}

/* ========================================
   Floating Buttons
   ======================================== */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.phone-btn {
    background: #25d366;
}

.phone-btn:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

.kakao-btn {
    background: #FEE500;
    color: #3C1E1E;
}

.kakao-btn:hover {
    background: #FDD835;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.4);
}

.youtube-btn {
    background: #FF0000;
}

.youtube-btn:hover {
    background: #CC0000;
    transform: scale(1.1);
}

.top-btn {
    background: #7f8c8d;
    opacity: 0;
    visibility: hidden;
}

.top-btn.show {
    opacity: 1;
    visibility: visible;
}

.top-btn:hover {
    background: #34495e;
    transform: scale(1.1);
}

/* ========================================
   AOS Animation (Custom)
   ======================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .clinic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .director-content {
        gap: 40px;
        padding: 40px;
    }
    
    .consult-wrapper {
        gap: 40px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-top {
        display: none;
    }
    
    .navbar-content {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        position: fixed;
        top: 96px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 96px);
        background: var(--white);
        flex-direction: column;
        padding: 0;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    /* 모바일 메뉴 사용자 프로필 영역 */
    .mobile-user-section {
        display: block;
        padding: 25px 20px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .mobile-user-icon {
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
    
    .mobile-user-name {
        font-size: 16px;
        font-weight: 600;
    }
    
    .mobile-user-email {
        font-size: 13px;
        opacity: 0.9;
    }
    
    .mobile-user-actions {
        display: flex;
        gap: 10px;
    }
    
    .mobile-user-btn {
        flex: 1;
        padding: 8px 12px;
        background: rgba(255,255,255,0.2);
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        color: white;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
        transition: var(--transition);
    }
    
    .mobile-user-btn:hover {
        background: rgba(255,255,255,0.3);
    }
    
    /* 모바일 메뉴 로그인 전 영역 */
    .mobile-login-section {
        display: block;
        padding: 25px 20px;
        background: var(--bg-light);
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }
    
    .mobile-login-message {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 15px;
    }
    
    .mobile-login-actions {
        display: flex;
        gap: 10px;
    }
    
    .mobile-login-btn {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        transition: var(--transition);
    }
    
    .mobile-login-btn.primary {
        background: var(--primary-color);
        color: white;
    }
    
    .mobile-login-btn.secondary {
        background: white;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    /* 모바일 메뉴 아이템 영역 - flex-direction을 column으로 변경 */
    .mobile-menu-items {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .mobile-menu-items > li {
        display: list-item;
        margin-bottom: 0;
    }
    
    .mobile-menu-items > li > a {
        padding: 12px 15px;
        display: block;
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .mobile-menu-items > li > a:hover {
        background: var(--bg-light);
    }
    
    /* 진료예약 버튼은 hover 배경색 제외 */
    .mobile-menu-items > li > a.btn-booking:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 모바일에서 진료예약 버튼을 맨 위로 */
    
    .mobile-menu-items > li:last-child {
        order: -1;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-menu-items > li:last-child .btn-booking {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }
    
    /* 모바일 드롭다운 메뉴 */
    .nav-menu .has-dropdown > a {
        display: block;
        width: 100%;
    }
    
    /* 데스크톱 밑줄 효과 제거 (모바일에서) */
    .nav-menu .has-dropdown > a::after {
        display: none;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu .has-dropdown.open .dropdown-menu {
        max-height: 300px;
        padding: 10px 0 10px 20px;
        margin-top: 10px;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .nav-menu .dropdown-menu a::after {
        display: none;
    }
    
    .nav-menu .dropdown-menu a:hover {
        padding-left: 20px;
    }
    
    .hero-slider {
        height: 500px;
        margin-top: 80px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-desc {
        font-size: 16px;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-btn.prev {
        left: 15px;
    }
    
    .slider-btn.next {
        right: 15px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .director-content {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
    
    .image-placeholder {
        width: 100%;
        height: 300px;
    }
    
    .director-title {
        font-size: 28px;
    }
    
    .review-card {
        flex: 0 0 300px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    
    .consult-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .consult-title {
        font-size: 32px;
    }
    
    .consult-form {
        padding: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    /* Popup Mobile Styles */
    .popup-modal {
        width: 90%;
        max-width: 340px;
        height: 520px;
    }
    
    /* 모바일: 겹쳐서 배치 (z-index로 순서 조정) */
    .popup-modal#noticePopup {
        transform: translate(-50%, -50%);
        z-index: 9999;
    }
    
    .popup-modal#eventPopup {
        transform: translate(-50%, -50%);
        z-index: 10000;
    }
    
    .popup-modal#noticePopup.active,
    .popup-modal#eventPopup.active {
        animation: slideDownMobile 0.4s ease forwards;
    }
    
    @keyframes slideDownMobile {
        from {
            opacity: 0;
            top: 40%;
        }
        to {
            opacity: 1;
            top: 50%;
        }
    }
    
    .popup-header {
        padding: 14px 16px;
    }
    
    .popup-header h3 {
        font-size: 15px;
    }
    
    .popup-body {
        height: calc(520px - 50px - 58px);
    }
    
    .popup-banner-prev,
    .popup-banner-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .popup-banner-prev {
        left: 10px;
    }
    
    .popup-banner-next {
        right: 10px;
    }
    
    .popup-banner-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .popup-banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .popup-banner-dot.active {
        width: 20px;
    }
    
    .popup-footer {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .popup-checkbox {
        flex: 1 1 100%;
        margin-bottom: 4px;
    }
    
    .popup-checkbox span {
        font-size: 12px;
    }
    
    .btn-popup-close {
        flex: 1;
        font-size: 12px;
        padding: 7px 16px;
    }

    .footer-logo img {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .location-map {
        height: 400px;
        min-height: 400px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-column ul {
        gap: 8px;
    }
    
    .footer-column a {
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
    
    .footer-company-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-policies {
        gap: 15px;
    }
    
    .footer-policies a {
        font-size: 12px;
    }
    
    .floating-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ========================================
   Privacy Modal
   ======================================== */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.privacy-modal {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.privacy-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.privacy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.privacy-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.privacy-modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.privacy-modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-modal-body li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    list-style: disc;
}

.privacy-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.privacy-modal-body table th,
.privacy-modal-body table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    font-size: 14px;
    text-align: left;
}

.privacy-modal-body table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.privacy-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.privacy-modal-footer .btn {
    padding: 12px 40px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .privacy-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .privacy-modal-header {
        padding: 20px;
    }
    
    .privacy-modal-header h3 {
        font-size: 18px;
    }
    
    .privacy-modal-body {
        padding: 20px;
    }
    
    .privacy-modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .clinic-card {
        padding: 30px 20px;
    }
    
    .clinic-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .director-title {
        font-size: 24px;
    }
    
    .consult-title {
        font-size: 26px;
    }
    
    .consult-form {
        padding: 25px;
    }
    
    .map-placeholder {
        height: 300px;
    }
}

/* 메뉴 항목이 늘면 좁은 화면에서 로고와 붙는다. 한 줄을 지키려고 간격만 좁힌다.
   항목이 실제로 놓이는 줄은 .mobile-menu-items 다. 992px 이하는 햄버거 메뉴라 해당하지 않는다. */
@media (min-width: 993px) and (max-width: 1400px) {
    .nav-menu,
    .mobile-menu-items { gap: 26px; }
    .nav-menu a { font-size: 15px; }
}

@media (min-width: 993px) and (max-width: 1180px) {
    .nav-menu,
    .mobile-menu-items { gap: 14px; }
    .nav-menu a { font-size: 14px; }
}
