/**
 * main.css - 홈페이지 공통 스타일
 */

/* ============================================
   CSS 변수 재정의 (병원 테마)
   ============================================ */
:root {
    /* ── Clean Scientific Theme ── */
    --primary:        #002D62;   /* scientific blue */
    --primary-dark:   #005BA3;
    --primary-light:  #E6F3FF;
    --secondary:      #F6E290;   /* mint accent */
    --accent:         #00BFB3;
    --text-dark:      #0A2540;
    --text-mid:       #4A5568;
    --text-light:     #8898A8;
    --bg-light:       #F4F8FB;
    --bg-section:     #EEF5FB;
    --border:         #eee;
    --white:          #FFFFFF;
    --shadow-sm:      0 2px 8px rgba(0,0,0,.07);
    --shadow-md:      0 4px 20px rgba(0,0,0,.11);
    --shadow-lg:      0 8px 40px rgba(0,0,0,.15);
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      20px;
    --header-height:  75px;
    --transition:     .25s ease;
}

/* ============================================
   전역 리셋 / 기본
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
    margin: 0;
    font-family: 'Inter', "Pretendard Variable", 'Pretendard', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.section-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   공통 버튼
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 400;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--text-dark);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-mid);
    border: 2px solid var(--text-mid);
}
.btn-outline:hover {
    background: var(--text-mid);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ============================================
   헤더
   ============================================ */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    /* 콘텐츠를 pill 영역 안으로 제한 — ::before 의 left/right 와 동기화 */
    padding: 15px max(20px, calc(50% - 700px)) 0;
    transition: padding .85s ease-in-out;
}

/* pill 배경 레이어 — left/right 직접 애니메이션으로 양옆 stretching */
.main-header::before {
    content: '';
    position: absolute;
    top: 15px;
    left:  max(20px, calc(50% - 700px));  /* 뷰포트 > 1448px → 중앙 1400px 고정 */
    right: max(20px, calc(50% - 700px));  /* 뷰포트 ≤ 1448px → 최소 20px 여백   */
    height: var(--header-height);
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
    z-index: 0;
    transition: top           .85s ease-in-out,
                left          .85s ease-in-out,
                right         .85s ease-in-out,
                border-radius .85s ease-in-out,
                box-shadow    .85s ease;
}
.main-header.scrolled {
    padding: 0;
}
.main-header.scrolled::before {
    top: 0; left: 0; right: 0;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    position: relative;
    z-index: 1; /* ::before 배경 위에 렌더링 */
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-logo img { height: 35px; width: auto; }
.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.logo-white { display: none; }

/* 데스크톱 네비 — header-inner 기준 정가운데 절대 위치 */
.nav-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--white);
    border-radius: 5px;
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(245,140,111,.1); }
.nav-link.active { color: var(--white); background: rgba(245,140,111,.1); font-weight: 600;}

.nav-arrow {
    font-size: .65rem;
    transition: transform var(--transition);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* ── 메가 메뉴 ── */
.mega-menu {
    position: absolute;
    /* 비스크롤: pill 하단 = top:12px + header-height, 좌우 = ::before 와 동일 */
    top:   calc(10px + var(--header-height));
    left:  max(20px, calc(50% - 700px));
    right: max(20px, calc(50% - 700px));
    background: var(--primary);
    border-radius: 0 0 5px 5px;
    padding: 32px 0 28px;
    z-index: 900;
    /* 초기 숨김 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity      .25s ease,
                transform    .25s ease,
                top          .85s ease-in-out,
                left         .85s ease-in-out,
                right        .85s ease-in-out,
                border-radius .85s ease-in-out;
}
/* 스크롤 후: 전체 너비 bar 하단에 맞춤 */
.main-header.scrolled .mega-menu {
    top:          var(--header-height);
    left:         0;
    right:        0;
    border-radius: 0;
}
/* 열림 상태 */
.main-header.mega-open .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
}
.mega-col {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.mega-col:last-child { border-right: none; }

.mega-col-title {
    display: block;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    transition: color .18s;
}
.mega-col-title:hover { color: var(--white); }
.mega-col-list { list-style: none; margin: 0; padding: 0; }
.mega-col-list li + li { margin-top: 2px; }

.mega-link {
    display: block;
    padding: 5px 4px;
    font-size: .85rem;
    font-weight: 400;
    color: rgba(255,255,255,.9);
    border-radius: 4px;
    transition: color .18s, background .18s, padding-left .18s;
}
.mega-link:hover,
.mega-link.active {
    color: var(--white);
    background: rgba(255,255,255,.12);
    padding-left: 10px;
}

/* 호버 시 nav-link 활성 표시 */
.nav-item.mega-active .nav-link {
    color: var(--white);
}

/* 헤더 CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.275rem;
    font-weight: 700;
    color: var(--primary);
    transition: border-color var(--transition);
}
.btn-phone:hover {color: var(--primary); }

.btn-consult {
    padding: 9px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 700;
    transition: background var(--transition);
}
.btn-consult:hover { background: var(--primary-dark); }

/* 햄버거 버튼 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    margin-left: auto;
}
.hamburger-btn span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 슬라이드 메뉴 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1001;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 1002;
    overflow-y: auto;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.open { right: 0; }

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    border-bottom: 1px solid var(--border);
    background-color: var(--primary);
}
.mobile-nav-logo { height: 32px; }
.mobile-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.mobile-nav-close {
    font-size: 1.6rem;
    color: var(--white);
    line-height: 1;
    border: 1px solid var(--text-light);
    border-radius: 3px;
}

.mobile-nav-list { padding: 8px 0; flex: 1; }
.mobile-nav-item { border-bottom: 1px solid var(--border); }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    transition: color var(--transition);
}
@media (hover: hover) {
    .mobile-nav-link:hover { color: var(--primary); }
}
.mobile-nav-link.active { color: var(--primary); }
.mobile-nav-toggle .fa-chevron-down { transition: transform var(--transition); }
.mobile-nav-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-light);
    transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.mobile-sub-link {
    display: block;
    padding: 11px 20px 11px 36px;
    font-size: .82rem;
    color: var(--text-mid);
}
.mobile-sub-link:hover { color: var(--primary); }
.mobile-sub-link.active { color: var(--primary); font-weight: 500; }

.mobile-nav-cta {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 700;
}
.mobile-cta-consult {
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    width: 100%;
}

/* ============================================
   페이지 배너 (브레드크럼)
   ============================================ */
.page-banner {
    /*margin-top: var(--header-height);*/
    position: relative;
    background: none;
    color: var(--white);
    padding: 120px 0 40px;
    overflow: hidden;
}
/* 그라디언트 레이어 (opacity 0.9) */
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}
/* 배경 이미지 레이어 (opacity 0.3) */
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/common/sub_visu_bg.jpg') center center / cover no-repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}
.page-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.page-banner-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.breadcrumb { margin-top: 4px;}
.breadcrumb-list { display: flex; align-items: center; gap: 6px; }
.breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.breadcrumb-link {    
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    transition: color var(--transition);
}
.breadcrumb-link:hover { color: var(--white); }
.breadcrumb-item.current span { font-size: .82rem; color: var(--white); font-weight: 600; }
.breadcrumb-sep { color: rgba(255,255,255,.5); font-size: .7rem; }

/* ============================================
   서브페이지 공통 레이아웃
   ============================================ */
.subpage-content {
    padding: 30px 0 80px;
}
.subpage-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.subpage-title{
    text-align: center;
    font-size: 1.8rem;
    margin: 25px 0 35px 0;
}

/* 서브 네비게이션 */
.sub-nav {
    margin: 20px 0 40px 0;
    border-bottom: 1px solid var(--border);
}
.sub-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}
.sub-nav-link {
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-mid);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}
.sub-nav-link:hover { color: var(--primary); }
.sub-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 커스텀 드롭다운 (기본 숨김) */
.sub-nav-dropdown { display: none; }

@media (max-width: 767px) {
    .sub-nav { margin-bottom: 24px; border-bottom: none; }
    .sub-nav-list { display: none; }
    .sub-nav-dropdown {
        display: block;
        position: relative;
        padding-left: 20px;
        padding-right: 20px;
    }
    .sub-nav-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        font-size: .85rem;
        font-weight: 400;
        font-family: inherit;
        color: var(--text-dark);
        background: #fff;
        border: 1px solid var(--border);
        cursor: pointer;
        transition: background var(--transition);
    }
    .sub-nav-dropdown-trigger:hover { background: var(--bg-light); }
    .sub-nav-dropdown-arrow {
        flex-shrink: 0;
        transition: transform .25s ease;
    }
    .sub-nav-dropdown.open .sub-nav-dropdown-arrow {
        transform: rotate(180deg);
    }
    .sub-nav-dropdown-list {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: var(--white);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 200;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
    }
    .sub-nav-dropdown.open .sub-nav-dropdown-list {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        margin-left: 20px;
        margin-right: 20px;
    }
    .sub-nav-dropdown-item {
        display: block;
        padding: 10px 16px;
        font-size: .85rem;
        color: var(--text-mid);
        border-bottom: 1px solid var(--border);
        transition: background var(--transition), color var(--transition);
    }
    .sub-nav-dropdown-item:last-child { border-bottom: none; }
    .sub-nav-dropdown-item:hover { background: var(--bg-light); color: var(--primary); }
    .sub-nav-dropdown-item.active {
        color: var(--primary);
        font-weight: 500;
        background: var(--bg-light);
    }
}

/* 콘텐츠 준비중 */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}
.coming-soon i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
}
.coming-soon h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 8px;
}

/* ============================================
   공지사항
   ============================================ */

/* 카테고리 탭 */
.notice-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.notice-tab {
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.notice-tab:hover { border-color: var(--primary); color: var(--primary); }
.notice-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* 카테고리 뱃지 */
.notice-cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}
.notice-cat-notice     { background: #e8f0fe; color: #1a6eb5; }
.notice-cat-health_info{ background: #e6f9f0; color: #1a7a4a; }
.notice-cat-event      { background: #fff3e0; color: #c66b00; }

/* 목록 테이블 */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.notice-table thead th {
    padding: 15px 14px;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    background: #fff;
}
.notice-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.notice-table tbody tr:hover { background: #f5f8ff; }
.notice-table tbody td { padding: 14px; vertical-align: middle; }
.notice-title-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition);
}
.notice-title-link:hover { color: var(--primary); }
.notice-date, .notice-views { font-size: .82rem; color: var(--text-light); text-align: center; }
.notice-row-pinned { background: #f8fafc; }
.notice-row-pinned:hover { background: #fff5e0 !important; }
.notice-pin-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #b03a2e;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 3px;
}

/* 빈 목록 */
.notice-empty {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}
.notice-empty i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 16px; }

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--text-mid);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* 상세 페이지 */
.notice-detail-head {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--text-mid);
    margin-bottom: 32px;
}
.notice-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 12px 0 10px;
    line-height: 1.4;
}
.notice-detail-meta {
    display: flex;
    gap: 20px;
    font-size: .82rem;
    color: var(--text-light);
}
.notice-detail-meta i { margin-right: 4px; }
.notice-detail-body {
    line-height: 1.85;
    font-size: .95rem;
    color: var(--text-dark);
    min-height: 200px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.notice-detail-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Quill 에디터 정렬 클래스 — 프론트엔드 렌더링용 */
.notice-detail-body .ql-align-center  { text-align: center; }
.notice-detail-body .ql-align-right   { text-align: right; }
.notice-detail-body .ql-align-justify { text-align: justify; }
.notice-detail-body .ql-indent-1 { padding-left: 3em; }
.notice-detail-body .ql-indent-2 { padding-left: 6em; }
/* img는 전역 display:block 리셋 때문에 text-align이 적용 안됨 → inline-block으로 override */
.notice-detail-body .ql-align-center img,
.notice-detail-body .ql-align-right  img { display: inline-block; }

/* 이전/다음 글 */
.notice-nav { margin: 0 0 32px; }
.notice-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-dark);
    transition: background var(--transition);
}
.notice-nav-item:hover { background: #f5f8ff; }
.notice-nav-empty {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
    color: var(--text-light);
}
.notice-nav-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    min-width: 60px;
}
.notice-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   FAQ 섹션
   ============================================ */
.faq-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question[aria-expanded="true"] { background: var(--bg-light); }

.faq-q-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: .82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-q-text { flex: 1; line-height: 1.5; }

.faq-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: .85rem;
    transition: transform .3s ease;
}
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: flex;
    gap: 16px;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    background: #f8faff;
}
.faq-answer[hidden] { display: none; }

.faq-a-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-mid, #e8f0fb);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-a-text {
    flex: 1;
    font-size: .92rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.faq-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}
.faq-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: .4;
}

/* ============================================
   섹션 공통
   ============================================ */
.section { padding: 100px 0; }
.section:first-child { padding-top: 0; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-kicker {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}
.section-desc {
    font-size: .98rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}
.section-more {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   홈 히어로
   ============================================ */
.section-hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 885px;
    padding: 0;
}
.hero-swiper { width: 100%; height: 100%; }
.hero-swiper .swiper-wrapper { height: 100%; }
.hero-slide { position: relative; overflow: hidden; width: 100%; height: 100%; }
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.swiper-slide-active .slide-bg { transform: scale(1); }

.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.6) 100%);
}
.slide-content {
    position: absolute;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    color: var(--white);
    padding: 0 24px;
    padding-top: calc(var(--header-height) + 16px);
}
.slide-kicker {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
    background: rgba(255,255,255,.15);
    padding: 6px 18px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}
.slide-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    margin-top: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.slide-subtitle {
    font-size: clamp(0.925rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.9);
    margin-bottom: 36px;
    line-height: 1.7;
    letter-spacing: -0.03em;
    font-weight: 300;
}
.slide-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.slide-actions .btn-outline {
    color: var(--white);
    border-color: var(--white);
}
.slide-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* 히어로 커스텀 컨트롤 바 */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 10;
    white-space: nowrap;
}
.hero-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: .85rem;
    padding: 4px 6px;
    line-height: 1;
    transition: color .2s;
}
.hero-ctrl-btn:hover { color: var(--white); }
.hero-ctrl-current,
.hero-ctrl-total {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    min-width: 22px;
    text-align: center;
}
.hero-ctrl-current { color: var(--white); }
.hero-ctrl-total   { color: rgba(255,255,255,.45); }
.hero-ctrl-track {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    overflow: hidden;
}
.hero-ctrl-fill {
    height: 100%;
    width: 0;
    background: var(--white);
    border-radius: 2px;
    will-change: width;
}

.hero-tag{
    background:rgba(255,255,255,.15);
    color:#fff; 
    padding:5px;
    border-radius: 5px;
}

/* ============================================
   진료 빠른 안내 바
   ============================================ */
.section-quick-info {
    padding: 0;
    background: var(--accent);
    color: var(--white);
}
.quick-info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    divide-x: 1px solid rgba(255,255,255,.2);
}
.quick-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    border-right: 1px solid rgba(255,255,255,.2);
}
.quick-info-item:last-child { border-right: none; }
.quick-info-item i {
    font-size: 1.5rem;
    opacity: .8;
    flex-shrink: 0;
}
.quick-info-item strong {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .75;
}
.quick-info-item span,
.quick-info-item a {
    font-size: .9rem;
    font-weight: 600;
    color: var(--white);
}

/* ============================================
   진료과목 카드 슬라이더 섹션
   ============================================ */
.section-dept-cards { background: var(--bg-light); position: relative; z-index: 0; }

/* 슬라이더 래퍼 (네비 버튼 포지셔닝 기준) */
.dept-swiper-wrap {
    position: relative;
    padding: 12px 48px 16px; /* 상하 그림자 여백 + 좌우 버튼 공간 */
}

/* Swiper overflow visible → hover 짤림/그림자 클리핑 방지 */
.dept-cards-swiper { overflow: visible; }

/* 개별 카드 */
.dept-bg-card {
    display: block;
    position: relative;
    height: 400px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease;
}
.dept-bg-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 65%, rgba(0,0,0,.88) 100%);
    transition: background .35s ease;
}
.dept-bg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(5px);
}
.dept-bg-card:hover::after {
    background: linear-gradient(180deg, rgba(0,26,77,.25) 20%, rgba(0,26,77,.80) 70%, rgba(0,26,77,.95) 100%);
    backdrop-filter: blur(5px);
}

/* 카드 내부 콘텐츠 */
.dept-bg-card-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 26px;
}

.dept-bg-en {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    margin-bottom: 7px;
    display: block;
}

.dept-bg-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
    margin-top: 15px;
}

.dept-bg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid transparent;
    padding-top: 0;
    /* 기본: 숨김 — 아래에서 위로 올라오는 모션 */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height .55s cubic-bezier(.4,0,.2,1),
                opacity .5s cubic-bezier(.4,0,.2,1) .08s,
                transform .5s cubic-bezier(.4,0,.2,1) .08s,
                padding-top .55s cubic-bezier(.4,0,.2,1),
                border-top-color .4s ease .08s;
}
.dept-bg-card:hover .dept-bg-list {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 14px;
    border-top-color: rgba(255,255,255,.2);
}
.dept-bg-list li {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    padding-left: 12px;
    position: relative;
}
.dept-bg-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,.55);
    border-radius: 50%;
}

/* 진료과목 슬라이더 네비게이션 버튼 */
.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.swiper-nav-btn:hover {
    background: rgba(255, 255, 255, .5);
    color: #000;
    transform: translateY(-50%) scale(1.08);
}
.dept-swiper-prev { left: 0; }
.dept-swiper-next { right: 0; }

/* ============================================
   시원의 약속 — 스크롤 확장 섹션
   ============================================ */

/* 전체 높이를 300vh로 설정해 스크롤 여유 확보 */
.section-promise-scroll {
    height: 200vh;
    background: #fff;
}

/* sticky 패널: 뷰포트에 고정 */
.promise-sticky {
    position: sticky;
    top: 0; /* 상하 중앙 정렬 */
    height: 100vh;
    overflow: hidden;
}

/* 이미지 래퍼 */
.promise-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 이미지: 기본은 작게 (1단계) */
.promise-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.72);
    border-radius: 24px;
    transition: transform 1s cubic-bezier(.4,0,.2,1),
                border-radius 1s cubic-bezier(.4,0,.2,1);
}

/* 2단계: 이미지 전체 확장 */
.promise-img-wrap.stage-2 .promise-img,
.promise-img-wrap.stage-3 .promise-img {
    transform: scale(1);
    border-radius: 0;
}

/* 오버레이: 기본 투명 */
.promise-overlay {
    position: absolute;
    inset: 0;
    background: rgba(235, 137, 110, 0.7);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* 2단계: 오버레이 등장 */
.promise-img-wrap.stage-2 .promise-overlay,
.promise-img-wrap.stage-3 .promise-overlay {
    opacity: 1;
}

/* 텍스트 콘텐츠: 기본 숨김 */
.promise-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc(50% - 640px));
    right: max(32px, calc(50% - 640px));
    color: #fff;
    opacity: 0;
    transform: translateY(calc(-50% + 28px));
    transition: opacity 0.65s ease 0.15s,
                transform 0.65s cubic-bezier(.4,0,.2,1) 0.15s;
    pointer-events: none;
    z-index: 2;
}

/* 3단계: 텍스트 등장 */
.promise-img-wrap.stage-3 .promise-content {
    opacity: 1;
    transform: translateY(-50%);
}

.promise-kicker {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin: 0;
    display: block;
}

.promise-title {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 20px;
}

.promise-desc {
    font-size: clamp(.85rem, 1.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255,255,255,.85);
}

/* ============================================
   병원 특장점 — 원형 섹션
   ============================================ */
.section-why {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 140px;
}

/* 워터마크 텍스트 */
.why-watermark {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -30%);
    font-size: clamp(100px, 25vw, 280px);
    font-weight: 900;
    letter-spacing: .05em;
    color: var(--primary);
    opacity: .1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* 원형 컨테이너 */
.why-circles {
    display: flex;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
    width: 100%;
    animation-delay: var(--delay, 0s);
}

/* 공통 원형 — section-inner 너비를 4등분 */
.why-circle {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    transition: transform .3s ease;
    position: relative;
    overflow: hidden;
}
.why-circle:hover { transform: scale(1.05); z-index: 2; }

/* 내부 blob 패턴 */
.why-circle::before {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -15%;
    width: 75%;
    height: 75%;
    background: rgba(255,255,255,.18);
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    pointer-events: none;
}
.why-circle::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 45%;
    height: 45%;
    background: rgba(255,255,255,.12);
    border-radius: 38% 62% 54% 46% / 44% 60% 40% 56%;
    pointer-events: none;
}

/* 투명도 변형 (크기는 동일) */
.why-circle--1 { background: var(--accent); opacity: 1;   z-index: 4; }
.why-circle--2 { background: var(--secondary); opacity: 1; z-index: 3; }
.why-circle--3 { background: var(--primary-dark); opacity: 1;  z-index: 2; }
.why-circle--4 { background: var(--primary); opacity: 1; z-index: 1; }

/* 2, 4번째: blob 패턴을 좌측 하단으로 반전 */
.why-circle--2::before,
.why-circle--4::before {
    bottom: -15%;
    right: auto;
    left: -15%;
    border-radius: 38% 62% 54% 46% / 44% 60% 40% 56%;
}
.why-circle--2::after,
.why-circle--4::after {
    bottom: 5%;
    right: auto;
    left: 5%;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
}

/* 원형 내부 텍스트 */
.why-circle-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}
.why-circle-desc {
    font-size: 1rem;
    color: rgba(255,255,255,1);
    text-align: center;
    line-height: 1.6;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.why-circle:hover .why-circle-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   의료진 미리보기
   ============================================ */
.section-doctors-preview { background: var(--bg-section); }
.doctors-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    justify-content: center;
}
.doctor-preview-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.doctor-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.doctor-preview-photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.doctor-preview-info { padding: 20px; }
.doctor-preview-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.doctor-preview-title {
    font-size: .8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.doctor-preview-spec {
    font-size: .78rem;
    color: var(--text-light);
    line-height: 1.7;
}
.doctor-preview-spec li::before { content: '· '; }

/* ============================================
   병원 둘러보기 갤러리 섹션
   ============================================ */
.section-gallery {
    position: relative;
    overflow: hidden;
}

/* 블러 배경 이미지 */
.section-gallery::before {
    content: '';
    position: absolute;
    inset: -20px; /* blur 가장자리 잘림 방지 */
    background-image: url('../images/home/home_gallery_bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 0;
}

/* 오버레이 (primary-dark 컬러) */
.section-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 60, 0.8);
    z-index: 1;
}

/* 내부 콘텐츠가 오버레이 위에 오도록 */
.section-gallery .section-inner {
    position: relative;
    z-index: 2;
}

.gallery-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: center;
}

/* 왼쪽 텍스트 영역 */
.gallery-kicker {
    font-size: .78rem;
    letter-spacing: .12em;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.gallery-kicker strong {
    color: rgba(255,255,255,.85);
    font-weight: 700;
}
.gallery-title {
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}
.gallery-desc {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    line-height: 1.8;
    margin-bottom: 28px;
}
.gallery-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    margin-bottom: 48px;
}
.gallery-more-arrow:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.7);
    color: var(--white);
}

/* 원형 아이콘 버튼 */
.gallery-icon-links {
    display: flex;
    gap: 24px;
}
.gallery-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.gallery-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,.8);
    transition: background var(--transition), transform var(--transition);
}
.gallery-icon-btn:hover .gallery-icon-circle {
    background: rgba(255,255,255,.22);
    transform: translateY(-4px);
}
.gallery-icon-label {
    font-size: .88rem;
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

/* 오른쪽 이미지 카드 */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.gallery-swiper { width: 100%; }
.gallery-swiper .swiper-slide {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}
.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.gallery-swiper .swiper-slide:hover img { transform: scale(1.04); }

/* 이미지 없을 때 플레이스홀더 */
.gallery-slide-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
    font-size: 3rem;
}
.gallery-slide-noimg img { display: none; }
.gallery-slide-noimg::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* 캡션 바 */
.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    padding: 18px 20px 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}
.gallery-slide-floor {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -.03em;
}
.gallery-slide-info { flex: 1; min-width: 0; }
.gallery-slide-info strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}
.gallery-slide-info p {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* 캡션 바 내 네비게이션 */
.gallery-nav {
    position: absolute;
    bottom: 18px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.gallery-nav .swiper-nav-btn {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}
.gallery-nav .swiper-nav-btn:hover {
    background: var(--primary);
    transform: scale(1.08);
}

/* 반응형 */
@media (max-width: 900px) {
    .gallery-wrap { grid-template-columns: 1fr; gap: 36px; }
    .gallery-title { font-size: 1.8rem; }

    /* gallery-info: 텍스트 좌 / 아이콘 우 2열 배치 */
    .gallery-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto;
        align-items: center;
        column-gap: 24px;
    }
    .gallery-slide-floor {
        font-size: 1.3rem;
    }

    .gallery-kicker      { grid-column: 1; grid-row: 1; }
    .gallery-title       { grid-column: 1; grid-row: 2; }
    .gallery-desc        { grid-column: 1; grid-row: 3; margin-bottom: 0; }
    .gallery-more-arrow  { grid-column: 1; grid-row: 4; margin-bottom: 0; margin-top: 16px; align-self: start; }
    .gallery-icon-links  { grid-column: 2; grid-row: 1 / 5; align-self: center; flex-direction: column; gap: 16px; }
}

@media (max-width: 767px) {
    .gallery-slide-floor {
        font-size: 1.2rem;
    }

    .gallery-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .gallery-icon-label {
        font-size: .8rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide-floor {
        display: none;
    }

    .gallery-slide-caption {
        padding: 10px;
    }

    .gallery-slide-info p {
        font-size: .75rem;
    }

    .gallery-nav {
        gap: 3px;
    }

    .gallery-nav .swiper-nav-btn {
        width: 25px;
        height: 25px;
        font-size: .85rem;
    }

    .gallery-title { font-size: 1.4rem; }
}

/* ============================================
   후기 미리보기
   ============================================ */
.reviews-preview-swiper { padding-bottom: 40px !important; }
.review-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.review-card-stars {
    color: #f59e0b;
    font-size: .9rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.review-card-content {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 20px;
}
.review-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
}
.review-card-author { font-weight: 700; color: var(--text-dark); }
.review-card-dept {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 600;
    font-size: .76rem;
}
.reviews-pagination { bottom: 0 !important; }
.reviews-pagination .swiper-pagination-bullet-active { background: var(--primary); }

/* ============================================
   오시는길 섹션 (홈)
   ============================================ */
.section-location-home {
    background: #111827;
    padding: 80px 0 0 0;
    position: relative;
    z-index: 0;
}

.location-home-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 480px;
    overflow: hidden;
}

/* 지도 영역 */
.location-home-map {
    position: relative;
    overflow: hidden;
    height: 100%;
}
.location-home-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 카카오 roughmap 컨테이너 fill */
.location-home-map .root_daum_roughmap,
.location-home-map .root_daum_roughmap_landing {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
.location-home-map .root_daum_roughmap > div,
.location-home-map .root_daum_roughmap_landing > div {
    width: 100% !important;
    height: 100% !important;
}
.location-home-map .root_daum_roughmap iframe,
.location-home-map .root_daum_roughmap_landing iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* 정보 영역 */
.location-home-info {
    background: #111827;
    padding: 52px 0 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.location-home-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.location-home-addr {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.location-home-addr li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
}
.location-home-addr li i {
    color: #fff;
    margin-top: 3px;
    flex-shrink: 0;
}

/* 지도 버튼 */
.location-home-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.location-home-note {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    margin: 0;
}
.location-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,.15);
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.location-map-btn:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.3);
    color: var(--white);
}
.location-map-btn img {
    width: auto;
    height: 30px;
    object-fit: contain;
}

/* 전화번호 */
.location-home-phone {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
}
.location-phone-label {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}
.location-phone-number {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: .02em;
    transition: color var(--transition);
}
.location-phone-number:hover { color: var(--primary); }

/* 반응형 */
@media (max-width: 1023px) {
    .location-home-wrap { grid-template-columns: 1fr; height: auto; }
    .location-home-map { height: 320px; }
    .location-home-info { padding: 40px 0; }
}
@media (max-width: 767px) {
    .location-home-map { height: 220px; }
    .location-home-info { padding: 32px 0; gap: 20px; }
    .location-home-title { font-size: 1.5rem; }
    .location-home-btns { gap: 8px; }
    .section-location-home { padding-bottom: 0 !important;}
}
@media (max-width: 767px) {
    .location-map-btn {
        gap: 5px;
        padding: 5px 10px;
        font-size: .7rem;
    }
    .location-map-btn img {
        height: 25px;
    }
}

/* ============================================
   CTA 섹션
   ============================================ */
.section-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0;
}
.cta-box {
    text-align: center;
    color: var(--white);
}
.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-desc {
    font-size: 1rem;
    opacity: .85;
    margin-bottom: 40px;
    line-height: 1.75;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.cta-actions .btn-primary:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}
.cta-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,.7);
}
.cta-actions .btn-outline:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

/* ============================================
   플로팅 퀵메뉴
   ============================================ */
.quick-menu {
    position: fixed;
    right: 24px;
    bottom: 136px;
    z-index: 900;
    width: 76px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    background: var(--primary);
}

/* 펼쳐지는 아이템 영역 */
.quick-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4,0,.2,1);
}
.quick-menu:hover .quick-menu-items {
    max-height: 400px;
}

/* 개별 아이템 링크/버튼 */
.quick-menu-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 8px;
    color: rgba(255,255,255,.92);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255,255,255,.15);
    transition: background .2s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    text-align: center;
}
.quick-menu-item-link:last-child { border-bottom: none; }
.quick-menu-item-link:hover { background: rgba(255,255,255,.15); color: var(--white); }
.quick-menu-item-link i { font-size: 1.4rem; }
.quick-menu-item-link img { width: 30px;}

/* 항상 보이는 트리거 */
.quick-menu-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 8px;
    color: var(--white);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .02em;
    background: #E74C3C;
    cursor: pointer;
    user-select: none;
}
.quick-menu-trigger i { font-size: 1.3rem; }

/* 모바일 하단 고정 CTA */
.mobile-fixed-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: transparent;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.mobile-cta-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 4px 5px 4px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-mid);
    transition: color var(--transition);
    border: none;
    background: none;
    font-family: inherit;
}
.mobile-cta-btn i { font-size: 1.3rem; }
.mobile-cta-btn img { height: 25px; }
.mobile-cta-btn--phone { color: #fff; background: var(--primary);}
.mobile-cta-btn--insta { background: #e1306c; color: #fff; }
.mobile-cta-btn--kakao { color: #fff; background: #1a1a1a; }

/* 맨 위로 */
.back-to-top {
    position: fixed;
    right: 40px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 901;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================
   푸터
   ============================================ */
.main-footer {
    background: #111827;
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
    font-size: .88rem;
}
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { flex: 0 0 auto; }
.footer-links { flex: 1; display: flex; justify-content: center; }
.footer-links-inner { display: flex; flex-direction: column; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul a:hover {color: var(--white);}
.footer-contact { flex: 0 0 auto; margin-left: auto; }
.footer-logo-link { display: inline-block; margin-bottom: 12px; }
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}
.footer-tagline {
    font-size: .82rem;
    opacity: .6;
    margin: 0;
}

/* 진료시간 / 연락처 공통 */
.footer-section-title {
    font-size: .925rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .9;
}

.footer-hours-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-hours-list li,
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    line-height: 1.5;
    color: rgba(255,255,255,.65);
}
.footer-hours-list i,
.footer-contact-list i {
    color: var(--primary-light, var(--primary));
    width: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 전화번호 강조 */
.footer-phone-item a {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    transition: opacity var(--transition);
}
.footer-phone-item a:hover { opacity: .8; }
.footer-phone-item i { margin-top: 3px; }

/* 카카오톡 링크 */
.footer-contact-list a {
    color: rgba(255,255,255,.65);
    transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.footer-legal-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}
.footer-legal-info span::after {
    content: '|';
    margin-left: 12px;
    opacity: .4;
}
.footer-legal-info span:last-child::after { display: none; }
.footer-copyright-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.footer-copyright { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-policy-links a {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    transition: color var(--transition);
}
.footer-policy-links a:hover { color: var(--white); }

/* ============================================
   상담 모달
   ============================================ */
.consultation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.consultation-modal.open { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; font-weight: 800; }
.modal-close {
    color: var(--text-light);
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text-dark); }
.modal-body { padding: 24px 28px 28px; }

.modal-contact-info { margin-bottom: 20px; text-align: center; }
.modal-contact-label { font-size: .78rem; color: var(--text-light); display: block; margin-bottom: 4px; }
.modal-contact-phone {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.modal-contact-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.modal-contact-desc { font-size: .8rem; color: var(--text-light); }

/* 모달 폼 */
.modal-consultation-form .form-group { margin-bottom: 12px; }
.modal-consultation-form input,
.modal-consultation-form select,
.modal-consultation-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color var(--transition);
}
.modal-consultation-form input:focus,
.modal-consultation-form select:focus,
.modal-consultation-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.phone-input-group input { flex: 1; }
.phone-input-group span { color: var(--text-light); font-weight: 700; }
.privacy-agreement { font-size: .8rem; color: var(--text-light); }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.checkbox-label input { width: auto; }
.checkbox-label a { color: var(--primary); text-decoration: underline; }
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    margin-top: 8px;
    transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); }

/* ============================================
   개인정보 모달
   ============================================ */
.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.privacy-modal.open { display: flex; }
.privacy-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.privacy-modal-header h2 { font-size: 1.05rem; font-weight: 700; }
.privacy-modal-close { font-size: 1.4rem; color: var(--text-light); }
.privacy-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    font-size: .82rem;
    color: var(--text-mid);
    line-height: 1.75;
    flex: 1;
}
.privacy-modal-confirm {
    margin: 12px 24px 20px;
    padding: 11px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    width: calc(100% - 48px);
}

/* ============================================
   404 에러 페이지
   ============================================ */
.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) 24px 80px;
}
.error-page-inner { text-align: center; }
.error-icon { font-size: 4rem; color: var(--border); margin-bottom: 16px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 12px; }
.error-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.error-desc { color: var(--text-light); margin-bottom: 36px; }
.error-actions { display: flex; gap: 14px; justify-content: center; }

/* ============================================
   오시는길 페이지
   ============================================ */
.location-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.map-placeholder {
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.location-info { padding: 20px 0; }
.location-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.location-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .92rem;
    color: var(--text-mid);
}
.location-info i { color: var(--primary); width: 16px; flex-shrink: 0; margin-top: 2px; }

/* ============================================
   개인정보처리방침 페이지
   ============================================ */
.privacy-content { max-width: 760px; }
.privacy-content h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 28px; }
.privacy-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; color: var(--primary); }
.privacy-content p { font-size: .88rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 10px; }
.privacy-date { color: var(--text-light); font-size: .8rem; margin-top: 32px; }

/* ============================================
   온라인 상담 페이지
   ============================================ */
.consultation-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.consultation-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.consultation-info p { color: var(--text-light); font-size: .9rem; margin-bottom: 24px; }
.consult-hours { display: flex; flex-direction: column; gap: 10px; }
.consult-hours li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--text-mid);
}
.consult-hours i { color: var(--primary); width: 16px; }

/* ============================================
   반응형 - 태블릿
   ============================================ */
@media (max-width: 1170px) {
    .header-cta { display: flex; } /* search icon stays visible on all sizes */
}
@media (max-width: 1023px) {
    :root { --header-height: 60px; }

    /* 모바일/태블릿: 처음부터 전체 너비 고정, pill 효과 없음 */
    .main-header { padding: 0; }
    .main-header::before {
        top: 0; left: 0; right: 0;
        border-radius: 0;
        box-shadow: var(--shadow-sm);
        transition: none;
    }
    .header-inner { max-width: 100%; }

    .nav-desktop, .header-cta .btn-consult { display: none; }
    .hamburger-btn { display: flex; margin-left: 10px; }
    .header-cta { margin-left: auto; }

    .quick-info-list { grid-template-columns: repeat(2, 1fr); }
    .dept-swiper-prev { left: 0; }
    .dept-swiper-next { right: 0; }
    .why-circles { gap: 12px; }
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-contact { margin-left: 0; }
    .location-wrap { grid-template-columns: 1fr; }
    .consultation-page-wrap { grid-template-columns: 1fr; }
    .quick-menu { display: none; }
    .mobile-fixed-cta { display: flex; }
    .back-to-top { bottom: 80px; right: 20px;}
}

/* ============================================
   반응형 - 모바일
   ============================================ */
@media (max-width: 640px) {
    .subpage-title {
        font-size: 1.35rem !important;
        margin: 22px 0 10px !important;
    }

    .notice-date,
    .notice-views { display: none; }
    .notice-table thead th:nth-child(3),
    .notice-table thead th:nth-child(4) { display: none; }

    .notice-table {
        font-size: .8rem;
    }

    .notice-pin-badge {
        padding: 3px 7px;
        font-size: .65rem;
    }

    .faq-list {
        margin-top: 15px !important;
    }

    .faq-question {
        font-size: 0.85rem;;
    }

    .faq-a-text {
        font-size: .8rem;
    }
}

@media (max-width: 767px) {
    .section { padding: 56px 0; }
    .section-hero { padding: 0; }
    .section-quick-info { padding: 20px 0; }
    .section-title { font-size: 2rem;}

    /* 히어로 모바일 이미지 (없으면 home.css 폴백 색상 사용) */
    .slide-bg-1 { background-image: url('../images/hero/hero01_mo.jpg') !important; }
    .slide-bg-2 { background-image: url('../images/hero/hero02_mo.jpg') !important; }
    .slide-bg-3 { background-image: url('../images/hero/hero03_mo.jpg') !important; }

    /* 모바일: 스크롤 구간 축소 */
    .section-promise-scroll { height: 200vh; }
    .promise-sticky { top: 5vh; height: 85vh; }
    .page-banner { padding: 70px 0 30px; }
    .page-banner-title { font-size: 1.4rem; }

    .quick-info-list { grid-template-columns: 1fr; }
    .quick-info-item { padding: 15px 5px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .quick-info-item:last-child { border-bottom: none; }

    .dept-bg-card { height: 340px; }
    .dept-swiper-prev { left: 0; }
    .dept-swiper-next { right: 0; }
    .why-circles { flex-wrap: wrap; gap: 12px; margin-top: 50px;}
    .why-circle { flex: 0 0 calc(50% - 6px); }
    .why-circle-label { font-size: .95rem; }
    .why-circle-desc { opacity: 1; transform: translateY(0); font-size: .7rem; }
    .why-watermark {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -30%);
        font-size: clamp(100px, 25vw, 280px);
    }

    .slide-actions { flex-direction: column; align-items: center; }
    .cta-actions { flex-direction: column; align-items: center; }

    .header-logo img {
        height: 30px;
        width: auto;
    }

    .footer-copyright-row { flex-direction: column; align-items: center; gap: 0;}

    .subpage-content { padding: 20px 0 60px; }
    .doctors-preview-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 15px;
    }

    .footer-logo {
        height: 30px;
        filter: brightness(0) invert(1);
        opacity: .8;
    }

    .breadcrumb { text-align: center; }
    .breadcrumb-list { justify-content: center; }
    .breadcrumb-link {
        font-size: .7rem;
    }
    .breadcrumb-item.current span {
        font-size: .7rem;
    }

    .section-hero {
        position: relative;
        height: 80vh;
        padding: 0;
    }
    .section-title { font-size: 1.6rem; }
    .section-desc {font-size: .9rem;}
    .why-watermark {
        top: 30%;
    }
    .why-circles { gap: 8px; }
    .why-circle { flex: 0 0 calc(50% - 4px); }
    .doctors-preview-grid { grid-template-columns: 1fr; }
    .error-code { font-size: 4rem; }
    .quick-info-item span, .quick-info-item a {
        font-size: .85rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   접근성
   ============================================ */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================
   Product Search — Button & Modal
   ============================================ */
.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(244, 248, 251, .5);
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.btn-search:hover { background: var(--bg-light); color: var(--primary); }
.btn-search i { font-size: 1rem; pointer-events: none; }

/* overlay */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.search-modal.open { display: block; }

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, .52);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

/* box */
.search-modal-box {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 680px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,45,98,.18);
    overflow: hidden;
    animation: searchSlideDown .2s cubic-bezier(.22,.68,0,1.2);
}
@keyframes searchSlideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* input row */
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.search-input-wrap .si-icon { color: var(--primary); font-size: 1.05rem; flex-shrink: 0; }
.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: transparent;
}
.search-input-wrap input::placeholder { color: #bbb; }
.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}
.search-close-btn:hover { background: var(--bg-light); color: var(--text-dark); }

/* results */
.search-results { max-height: 420px; overflow-y: auto; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f4f4f4;
    transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused { background: var(--bg-light); }

.search-result-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--bg-section);
}
.search-result-thumb-ph {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d8e4;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-brand {
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}
.search-result-name {
    font-size: .93rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-sub {
    font-size: .78rem;
    color: var(--text-mid, #7a8a9a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.search-result-arrow { color: #ccc; font-size: .8rem; flex-shrink: 0; }

.search-hint,
.search-empty,
.search-loading {
    padding: 36px 20px;
    text-align: center;
    color: #aaa;
    font-size: .88rem;
    line-height: 1.6;
}
.search-hint i, .search-empty i { display: block; font-size: 2rem; margin-bottom: 10px; color: #dde4ed; }

.search-footer {
    padding: 11px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.search-footer a {
    font-size: .8rem;
    color: var(--primary);
    font-weight: 600;
}
.search-footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .search-modal-box {
        top: 62px;
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
    }
    @keyframes searchSlideDown {
        from { opacity: 0; transform: translateY(-14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 1023px) {
    .btn-search { width: 30px; height: 30px; }
    .btn-search i { font-size: .85rem; }
}

/* ── Fade-up scroll animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .9s ease, transform .9s ease;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}
.fade-up[data-delay="1"] { transition-delay: .15s; }
.fade-up[data-delay="2"] { transition-delay: .30s; }
.fade-up[data-delay="3"] { transition-delay: .45s; }
.fade-up[data-delay="4"] { transition-delay: .60s; }
.fade-up[data-delay="5"] { transition-delay: .75s; }

/* ── Hero slide content ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.swiper-slide-active .slide-kicker  { animation: heroFadeUp .8s ease .15s both; }
.swiper-slide-active .slide-title   { animation: heroFadeUp .8s ease .30s both; }
.swiper-slide-active .slide-subtitle{ animation: heroFadeUp .8s ease .45s both; }
.swiper-slide-active .slide-actions { animation: heroFadeUp .8s ease .60s both; }
