/* ─────────────────────────────────────────────
   homepage.css — Homepage Full-page Scroll, Hero, Sections
   ───────────────────────────────────────────── */

/* Homepage specific overrides */
.fp-wrapper .container { max-width: clamp(1400px, calc(400px + 52.083vw), 2400px) !important; }
.fp-wrapper {
    display: block;
}
.fullpage-container.homepage-container {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: block !important;
}

/* PC Floating Elements */
.floating-quick-menu {
    position: fixed; right: 25px; top: 50%;
    transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px;
    z-index: 990;
}
.floating-quick-item {
    width: 55px; height: 55px; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #444;
    font-size: 1.3rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s;
    cursor: pointer; border: 1px solid rgba(0,0,0,0.05); position: relative;
}
.floating-quick-item:hover { background: var(--main-brand); color: #fff; transform: translateX(-5px); }
.floating-quick-item .tooltip {
    position: absolute; right: 70px; background: rgba(0,0,0,0.8); color: #fff;
    padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: 0.3s; transform: translateX(10px);
}
.floating-quick-item:hover .tooltip { opacity: 1; transform: translateX(0); }

.left-indicator {
    position: fixed; left: 40px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 20px; z-index: 990;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.left-indicator.show { opacity: 1; pointer-events: auto; }
.indicator-dot { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.indicator-dot .line { width: 3px; height: 15px; background: #ddd; transition: 0.3s; border-radius: 3px; }
.indicator-dot .text {
    font-size: 0.9rem; font-weight: 700; color: #888; letter-spacing: 1px;
    opacity: 0; transform: translateX(-10px); transition: 0.3s;
}
.indicator-dot.active .line { height: 35px; background: var(--main-brand); }
.indicator-dot.active .text { opacity: 1; transform: translateX(0); color: var(--main-brand); }
.indicator-dot:hover .text { opacity: 1; transform: translateX(0); }

@media (max-width: 1200px) {
    .floating-quick-menu, .left-indicator { display: none !important; }
}

/* 1. Hero Section */
.hero-sec { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; align-items: center; }
.hero-swiper { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; }
.hero-slide { width: 100%; height: 100%; position: relative; }

/* Swiper Progress Bar Gauge */
.hero-swiper .swiper-pagination-progressbar { background: rgba(255,255,255,0.4); top: auto; bottom: 0; height: 6px; z-index: 15; }
.hero-swiper .swiper-pagination-progressbar-fill { background: var(--main-brand); }

/* Hero Layout — 3765b30 원본: justify-content:space-between / padding:0 40px / padding-top:100px */
.hero-layout {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: clamp(1400px, calc(400px + 52.083vw), 2400px); height: 100%; margin: 0 auto; padding: 0 40px;
    position: relative; z-index: 2; padding-top: 100px;
}
.hero-text {
    animation: fadeInUp 1s ease-out forwards; opacity: 0;
    flex: 1; min-width: 400px; z-index: 3; color: #333;
}

/* 라인 1: 상단 소제목 (eyebrow) — 원본 p: 1.4rem / 500 / -1px / #111 */
.hero-eyebrow {
    font-size: 1.4rem; font-weight: 500; letter-spacing: -1px;
    color: #333; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
    content: ''; display: inline-block; width: 28px; height: 2px;
    background: var(--main-brand); flex-shrink: 0;
}

/* 라인 2: 메인 제목 — 원본 h2: 3.8rem / GmarketSansBold / 1.25 / -1.5px / #111 / mb:25px */
.hero-main-title {
    font-family: 'GmarketSansBold'; font-size: 3.8rem; line-height: 1.25;
    margin: 0 0 25px 0; letter-spacing: -1.5px; color: inherit;
    word-break: keep-all;
}

/* 라인 3: 설명 문구 (신규) — 원본 없던 3번째 줄, 비율상 1.15rem */
.hero-desc {
    font-size: 1.15rem; font-weight: 400; color: #555;
    line-height: 1.65; letter-spacing: -0.5px; margin-bottom: 0;
    word-break: keep-all;
}

/* 레거시: Wagtail StreamField 방식 */
.hero-text h2, .hero-title-rich p {
    font-family: 'GmarketSansBold'; font-size: 3.8rem; line-height: 1.25;
    margin-bottom: 25px; letter-spacing: -1.5px; color: #333;
    word-break: keep-all;
}
.hero-title-rich p b, .hero-title-rich p strong { color: var(--main-brand); font-weight: inherit; }
.hero-text p, .hero-desc-rich p { font-size: 1.4rem; font-weight: 500; color: #333; line-height: 1.5; letter-spacing: -1px; }

/* 원본 hero-controls: margin-top: 40px */
.hero-controls {
    display: flex; align-items: center; gap: 15px; margin-top: 40px; border: none;
    padding: 8px 5px; border-radius: 30px; width: fit-content; background: transparent;
}

/* CTA 버튼 (신규 추가분) */
.hero-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 30px;
    padding: 13px 30px; border-radius: 50px;
    background: var(--main-brand); color: #fff;
    font-size: 1rem; font-weight: 700; letter-spacing: 0.5px;
    text-decoration: none; transition: 0.3s;
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}
.hero-cta-btn:hover { background: #e85a20; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,53,0.4); }

.cms-orange { color: var(--main-brand); }

/* Spacing & Alignment Utilities for CMS */
.mt-0 { margin-top: 0 !important; } .mt-5 { margin-top: 5px !important; } .mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; } .mt-20 { margin-top: 20px !important; } .mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; } .mt-50 { margin-top: 50px !important; } .mt-60 { margin-top: 60px !important; }
.mt-80 { margin-top: 80px !important; } .mt-100 { margin-top: 100px !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-5 { margin-bottom: 5px !important; } .mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; } .mb-20 { margin-bottom: 20px !important; } .mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; } .mb-50 { margin-bottom: 50px !important; } .mb-60 { margin-bottom: 60px !important; }
.mb-80 { margin-bottom: 80px !important; } .mb-100 { margin-bottom: 100px !important; }
.pt-0 { padding-top: 0 !important; } .pt-5 { padding-top: 5px !important; } .pt-10 { padding-top: 10px !important; }
.pt-20 { padding-top: 20px !important; } .pt-30 { padding-top: 30px !important; } .pt-40 { padding-top: 40px !important; }
.pt-50 { padding-top: 50px !important; }
.pb-0 { padding-bottom: 0 !important; } .pb-5 { padding-bottom: 5px !important; } .pb-10 { padding-bottom: 10px !important; }
.pb-20 { padding-bottom: 20px !important; } .pb-30 { padding-bottom: 30px !important; } .pb-40 { padding-bottom: 40px !important; }
.pb-50 { padding-bottom: 50px !important; }
.text-left { text-align: left !important; } .text-center { text-align: center !important; } .text-right { text-align: right !important; }
.w-full { width: 100% !important; } .inline-block { display: inline-block !important; }

/* Adjusted Image Size (Larger for PC) */
.hero-img-box {
    position: absolute; right: 0; top: 0; height: 100%; width: 55%; z-index: 1;
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
}
.hero-img-box > *,
.hero-img-box img,
.hero-img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    background-size: cover; background-position: center center;
}

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

/* Custom Hero Swiper Controls (원본: margin-top:40px) */
.hero-ctrl-btn {
    font-size: 1rem; color: #111; cursor: pointer; transition: 0.3s;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.hero-ctrl-btn:hover { color: var(--main-brand); }
.hero-fraction {
    font-size: 1.1rem; font-weight: 700; color: #111; letter-spacing: 2px;
    display: flex; align-items: center; gap: 8px; padding: 0 5px;
}
.hero-fraction span.current { color: var(--main-brand); }
.hero-fraction span.total { opacity: 0.5; font-size: 0.9rem; }
.hero-play-pause { font-size: 0.9rem; }

/* Scrolling pill-shaped Reservation Bar */
.bottom-reserve-bar {
    position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: clamp(1400px, calc(400px + 52.083vw), 2400px); padding: 20px 45px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
    border-radius: 60px; box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.reserve-phone-form { display: flex; align-items: center; gap: 20px; flex: 1.5; }
.reserve-phone-form h4 { font-size: 1.3rem; font-weight: 800; color: var(--main-brand); white-space: nowrap; }
.phone-input-wrap {
    display: flex; background: #fff; border: 1px solid #ddd;
    border-radius: 40px; overflow: hidden; flex: 1; height: 55px;
}
.phone-input-wrap input { flex: 1; border: none; padding: 0 25px; font-size: 1.15rem; outline: none; }
.phone-input-wrap button {
    background: var(--main-brand); color: #fff; border: none; padding: 0 35px;
    font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    white-space: nowrap; flex-shrink: 0;
}
.reserve-btn-wrap { display: flex; gap: 15px; flex: 1; justify-content: flex-end; }
.reserve-bar-btn {
    display: flex; align-items: center; gap: 12px; padding: 14px 28px;
    background: #fff; border: 1px solid #ddd; border-radius: 40px;
    font-size: 1.1rem; font-weight: 700; color: #111; transition: 0.3s; white-space: nowrap;
}
.reserve-bar-btn i { color: var(--main-brand); font-size: 1.3rem; }
.reserve-bar-btn:hover {
    border-color: var(--main-brand); background: var(--main-brand); color: #fff;
    box-shadow: 0 10px 20px rgba(234, 84, 0, 0.2);
}
.reserve-bar-btn:hover i { color: #fff; }

/* Scroll Down Icon */
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; animation: bounce 2s infinite; cursor: pointer; text-align: center; color: #111; opacity: 1;
}
.scroll-down span { font-size: 0.8rem; letter-spacing: 2px; font-weight: 700; display: block; margin-bottom: 5px; color: #111; }
.scroll-down i { font-size: 1.5rem; color: #111; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
}

/* 2. Section Common */
.content-sec { padding: 90px 0; background: #fff; }
.content-sec.gray { background: var(--bg-light-gray); }
.sec-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.sec-title {
    font-family: 'GmarketSansBold'; font-size: 2.6rem; color: #111;
    line-height: 1.3; letter-spacing: -1px;
}
.sec-title span { color: var(--main-brand); }
.sec-more {
    font-size: 0.9rem; font-weight: 700; color: #fff; background: var(--main-brand);
    padding: 8px 18px; border-radius: 30px; display: inline-flex; align-items: center; gap: 6px; transition: 0.3s;
}
.sec-more:hover { background: #111; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* 3. Quick Menu Grid */
.quick-list {
    display: grid; grid-template-columns: repeat(8, 1fr);
    background: #fff; border-radius: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden; margin-top: 50px;
}
.quick-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 54px 10px; border-right: 1px solid #eee; transition: 0.3s; text-align: center;
}
.quick-item:last-child { border-right: none; }
.quick-item i { font-size: 2.4rem; color: #444; margin-bottom: 20px; transition: 0.3s; }
.quick-item span { font-size: 1rem; font-weight: 700; color: #222; letter-spacing: -0.5px; transition: 0.3s; }
.quick-item:hover { background: var(--bg-light-orange); }
.quick-item:hover i { color: var(--main-brand); transform: translateY(-5px); }
.quick-item:hover span { color: var(--main-brand); }

/* Unified Search */
.unified-search-wrap { max-width: 1000px; margin: 0 auto; text-align: center; }
.unified-search-box {
    display: flex; align-items: center; background: #fff;
    border-radius: 40px; padding: 10px 20px 10px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); margin-top: 30px;
}
.unified-search-box input { flex: 1; border: none; font-size: 1.5rem; outline: none; background: transparent; }
.unified-search-box button {
    background: var(--main-brand); color: #fff; border: none;
    border-radius: 50%; width: 65px; height: 65px; flex-shrink: 0;
    font-size: 1.6rem; cursor: pointer; transition: 0.3s;
}
.unified-search-box button:hover { background: var(--main-dark); }
.dept-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; justify-content: center; }
.dept-tags a {
    padding: 9px 20px; background: #fff; border: 1px solid #ddd;
    border-radius: 30px; font-size: 0.95rem; font-weight: 600; transition: 0.3s; color: #555;
}
.dept-tags a:hover { border-color: var(--main-brand); color: #fff; background: var(--main-brand); }

/* 4. Board Card Section & Filters */
.board-header-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.board-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.board-filter button {
    padding: 8px 18px; border-radius: 30px; border: 1px solid #ddd;
    background: #fff; font-size: 0.95rem; font-weight: 700; color: #555;
    cursor: pointer; transition: 0.3s;
}
.board-filter button.active, .board-filter button:hover {
    background: var(--main-brand); color: #fff; border-color: var(--main-brand);
    box-shadow: 0 5px 15px rgba(234, 84, 0, 0.2);
}

/* Board / Health 카드 — v7: 썸네일 1:1, box-sizing 통일 */
.board-card, .story-card, .uniform-card {
    display: flex !important; flex-direction: row; align-items: stretch;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: 0.3s; cursor: pointer; color: inherit; text-decoration: none;
    border: 1px solid #f0f0f0;
    height: 100%;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}
.uniform-card .img,
.uniform-card .info,
.uniform-card .story-img,
.uniform-card .story-info { box-sizing: border-box; }
.uniform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(16,43,77,0.10);
    border-color: var(--navy-line);
}
/* 썸네일 — 항상 1:1 정방형 */
.uniform-card .img,
.uniform-card .story-img {
    aspect-ratio: 1 / 1;
    width: auto;
    height: 100%;
    flex-shrink: 0;
    background-size: cover; background-position: center;
    border-right: 1px solid #f0f0f0;
    overflow: hidden; position: relative;
}
.uniform-card .img img,
.uniform-card .story-img img { width: 100%; height: 100%; object-fit: cover; }
.uniform-card .info, .uniform-card .story-info {
    flex: 1 1 0%;                 /* flex-basis 0 → 컨테이너에 꽉 맞춤 */
    padding: 14px 20px;
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    min-width: 0;
    overflow: hidden;
}
.uniform-card h4 {
    font-size: 1rem; font-weight: 700; color: #222; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; line-height: 1.45;
    word-break: keep-all;          /* 한국어: 단어 단위 유지 */
    overflow-wrap: anywhere;       /* 긴 단어/문장은 자동 줄바꿈 fallback */
    transition: color 0.3s;
}
.uniform-card:hover h4 { color: var(--main-brand); }
.uniform-card .meta { display: flex; align-items: center; gap: 8px; }
.uniform-card .tag {
    background: var(--bg-light-orange); color: var(--main-brand);
    font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 10px;
}
.uniform-card .date { font-size: 0.8rem; color: #999; }

/* ── 건강정보 데스크탑: 1행 4열 vertical (썸네일 위, 텍스트 아래) ── */
@media (min-width: 769px) {
    .health-info-sec .uniform-card {
        flex-direction: column !important;
        align-items: stretch;
        height: auto !important;
    }
    .health-info-sec .uniform-card .img,
    .health-info-sec .uniform-card .story-img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important; min-width: 0 !important;
        aspect-ratio: 1 / 1;
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    .health-info-sec .uniform-card .info {
        padding: 16px 18px;
        justify-content: flex-start;
        gap: 10px;
    }
    .health-info-sec .uniform-card h4 {
        font-size: 1.02rem;
        -webkit-line-clamp: 2;
        min-height: 2.8em;
    }
    /* 건강정보 swiper / card-pager-wrap — auto 높이 (카드가 자체 사이즈) */
    .health-info-sec .card-pager-wrap {
        height: auto !important;
        min-height: 0 !important;
    }
    .health-info-sec .card-swiper,
    .health-info-sec .card-swiper .swiper-slide {
        height: auto !important;
    }
}

/* ── Card Pager (Swiper 래퍼 + 네비게이션) ────────────────────────────── */
.card-pager-wrap { position: relative; }
.card-pager-wrap[hidden] { display: none !important; }
.card-pager-wrap .swiper { padding-bottom: 10px; }
.card-pager-wrap .swiper-wrapper { box-sizing: border-box; }
/* 게시판/건강정보 카드 — 항상 선명 */
.card-pager-wrap .swiper-slide {
    opacity: 1 !important;
    filter: none !important;
    box-sizing: border-box;
}
.card-pager-wrap .swiper-slide-active,
.card-pager-wrap .swiper-slide-next,
.card-pager-wrap .swiper-slide-prev,
.card-pager-wrap .swiper-slide-duplicate-active {
    opacity: 1 !important;
    filter: none !important;
    transform: none;
}
.card-pager {
    display: flex; justify-content: center; align-items: center; gap: 18px;
    margin-top: 18px;
}
.pager-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--navy-line);
    color: var(--navy); font-size: 0.95rem;
    cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(16,43,77,0.08);
}
.pager-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-btn:disabled, .pager-btn.swiper-button-disabled {
    opacity: 0.35; cursor: default; pointer-events: none;
}
.pager-dots {
    display: flex; align-items: center; gap: 8px;
}
.pager-dots .swiper-pagination-bullet {
    width: 9px; height: 9px; background: var(--navy-line); opacity: 1;
    border-radius: 50%; transition: 0.2s; cursor: pointer;
    margin: 0;
}
.pager-dots .swiper-pagination-bullet-active {
    background: var(--main-brand); width: 26px; border-radius: 5px;
}

/* 6. Achievements + Stats — 메인 오렌지 + 로고 워터마크 */
.badge-sec {
    background: linear-gradient(135deg, var(--main-brand) 0%, var(--main-light) 100%);
    position: relative; padding: 100px 0 130px; color: #fff; text-align: center;
    overflow-x: clip; overflow-y: hidden;
}
.badge-subtitle { margin-bottom: 18px; }
.badge-title { margin-bottom: 18px; }
.badge-lead { margin-bottom: 50px; }   /* 제목→캐러셀 여유 */
.badge-sec::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.13) 2px, transparent 2px);
    background-size: 28px 28px;
    z-index: 0; pointer-events: none;
}
/* 로고 워터마크 — 뒤에 크게 옅게 */
.badge-watermark {
    position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
    width: 65vh; height: 65vh; max-width: 800px; max-height: 800px;
    opacity: 0.06; pointer-events: none; z-index: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.badge-watermark img {
    width: 200%; height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 로고를 흰색 실루엣으로 */
}
.badge-sec > .container { position: relative; z-index: 2; }
.badge-lead {
    font-size: 1.08rem; color: #fff; opacity: 0.92;
    margin-bottom: 40px; line-height: 1.75;
    word-break: keep-all;
}

/* ── badge-sec 안 stats inline row (큰 숫자 callouts) ────────────────────── */
.badge-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px; max-width: 1100px; margin: 0 auto 50px;
    position: relative; z-index: 2;
}
.badge-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 22px 16px 20px;
    backdrop-filter: blur(6px);
    text-align: center;
    transition: transform 0.25s, background 0.25s;
}
.badge-stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.13);
}
.badge-stat i {
    font-size: 1.3rem; color: #fff; opacity: 0.85;
    margin-bottom: 10px; display: inline-block;
}
.badge-stat__value {
    display: flex; align-items: baseline; gap: 4px;
    justify-content: center; margin-bottom: 6px;
}
.badge-stat__num {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    font-weight: 800; color: #fff;
    line-height: 1; letter-spacing: -1px;
}
.badge-stat__suffix {
    font-size: 0.95rem; font-weight: 700; color: #ffd9c2;
}
.badge-stat__label {
    font-size: 0.92rem; color: rgba(255,255,255,0.92);
    margin: 0; line-height: 1.4;
}

@media (max-width: 768px) {
    .badge-stats {
        grid-template-columns: repeat(2, 1fr); gap: 10px;
        margin-bottom: 28px;
    }
    .badge-stat { padding: 16px 10px 14px; }
    .badge-stat i { font-size: 1.05rem; margin-bottom: 6px; }
    .badge-stat__num { font-size: 1.5rem; }
    .badge-stat__label { font-size: 0.78rem; }
}
.badge-title, .badge-wrap, .badge-subtitle, p { position: relative; z-index: 1; }
.badge-subtitle { font-size: 1.4rem; font-weight: 500; margin-bottom: 15px; display: block; opacity: 0.95; }
.badge-title {
    font-family: 'GmarketSansBold'; font-size: 3rem; margin-bottom: 30px;
    letter-spacing: -1.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.badge-title span { color: #fff; font-weight: bold; }
.badge-wrap { position: relative; max-width: clamp(1400px, calc(400px + 52.083vw), 2400px); margin: 60px auto 0; padding: 0 60px; }

/* (옛 badge swiper 스타일 제거 — board/health swiper에 blur/scale 적용되던 버그 수정) */
/* Swiper-slide 기본 스타일은 Swiper 라이브러리 기본값 유지 (opacity 1, scale 1) */

/* Desktop Badge Card */
.badge-card {
    display: flex; align-items: center; text-align: left; padding: 35px 70px;
    background: #fff; border-radius: 9999px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: none; height: 100%; color: #222; position: relative;
}
.swiper-slide-active .badge-card {
    box-shadow: 0 25px 60px rgba(0,0,0,0.25); background: #fffcf8;
    border: 3px solid rgba(255,255,255,0.5);
}
.badge-card .text-wrap { flex: 1; z-index: 2; }
.badge-card h5 { font-size: 1.35rem; font-weight: 800; color: #111; margin-bottom: 10px; line-height: 1.4; word-break: keep-all; }
.badge-card p { font-size: 1.05rem; color: #555; word-break: keep-all; margin: 0; font-weight: 500; }
.badge-card .img-placeholder {
    width: 150px; height: 150px; margin: 0 0 0 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; z-index: 2; overflow: visible;
}
.badge-card .img-placeholder i { font-size: 5rem; color: var(--navy); opacity: 0.85; }
.badge-card .img-placeholder img,
.badge-card .img-placeholder .badge-circle-img {
    width: 150px; height: 150px;
    border-radius: 50%; object-fit: cover;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    border: 4px solid rgba(255,255,255,0.85);
}
.badge-card-subtitle {
    font-size: 1rem; color: #666; margin: 3px 0 8px;
    font-weight: 500; line-height: 1.4;
}
.badge-prev, .badge-next {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 50px; height: 50px; background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer; z-index: 10; color: #fff; font-size: 1.2rem; transition: 0.3s;
}
.badge-prev { left: 0; }
.badge-next { right: 0; }
.badge-prev:hover, .badge-next:hover { background: #fff; color: var(--main-brand); }

/* Badge Carousel Controls */
.badge-controls {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    margin-top: 30px; padding: 8px 5px; background: transparent;
    position: relative; z-index: 1;
}
.badge-ctrl-btn {
    font-size: 1rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: 0.3s;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.badge-ctrl-btn:hover { color: #fff; }
.badge-fraction {
    font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 2px;
    display: flex; align-items: center; gap: 8px; padding: 0 5px;
}
.badge-fraction span.current { color: #fff; }
.badge-fraction span.total { opacity: 0.5; font-size: 0.9rem; }

/* ========== Mobile Responsiveness ========== */
@media (max-width: 1200px) {
    /* 원본: padding-top:100px / 모바일은 column으로 */
    .hero-layout { padding-top: 100px; flex-direction: column; justify-content: flex-start; text-align: center; }
    .hero-text { flex: none; min-width: 100%; z-index: 3; position: relative; }
    .hero-eyebrow { justify-content: center; font-size: 1.15rem; }
    .hero-eyebrow::before { display: none; }
    .hero-main-title { font-size: 2.8rem; }
    .hero-controls { margin: 30px auto 0; }
    .hero-cta-btn { margin-top: 24px; }
    .hero-img-box { position: absolute; top: 15%; right: -5%; width: 110%; height: 80vh; height: 80dvh; z-index: 1; opacity: 0.85; }
    .hero-img {
        -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 65%);
        mask-image: radial-gradient(ellipse at center, black 40%, transparent 65%);
    }
    .hero-controls { margin: 30px auto 0; }
    .bottom-reserve-bar {
        position: absolute; bottom: 25px; left: 5%; width: 90%;
        border-radius: 40px; padding: 25px; flex-direction: column; gap: 15px;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15); margin-top: auto; transform: none;
    }
    .reserve-phone-form { width: 100%; justify-content: center; flex-direction: column; gap: 12px; }
    .reserve-phone-form h4 { font-size: 1.3rem; font-weight: 800; }
    .phone-input-wrap { width: 100%; height: 48px !important; padding: 3px 3px 3px 0 !important; }
    .phone-input-icon { width: 34px; height: 34px; margin: 0 2px 0 5px; font-size: 0.88rem; }
    .phone-input-wrap input { font-size: 0.92rem !important; padding: 0 12px !important; }
    .phone-input-wrap button { height: 42px; padding: 0 16px 0 18px !important; font-size: 0.88rem !important; gap: 6px; }
    .phone-input-wrap button i { font-size: 0.72rem; }
    .reserve-btn-wrap { justify-content: space-between; width: 100%; }
    .reserve-bar-btn {
        flex: 1; justify-content: center; align-items: center; border-radius: 25px;
        background: #fff; border: 1px solid #ddd; padding: 12px 10px; height: auto;
        display: flex; flex-direction: column; gap: 6px; font-size: 1rem; font-weight: 700;
    }
    .board-card-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .story-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .quick-list { grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
}

/* 모바일 전용 헤더: 기본 숨김 */
.sec-header--mobile { display: none; }

@media (max-width: 768px) {
    /* ── 검색 박스 ── */
    .unified-search-box { padding: 5px 10px 5px 20px; margin-top: 20px; }
    .unified-search-box input { font-size: 1rem; }
    .unified-search-box button { width: 45px; height: 45px; font-size: 1.2rem; }

    /* ── 히어로 하단 예약바 ── */
    .reserve-btn-wrap { flex-direction: row; gap: 10px; }
    .reserve-bar-btn { padding: 12px 10px; height: auto; font-size: 0.95rem; width: 100%; justify-content: center; margin: 0; }
    .reserve-bar-btn i { font-size: 1.6rem; }
    .bottom-reserve-bar { padding: 15px; border-radius: 20px; bottom: env(safe-area-inset-bottom, 15px); }
    /* 모바일 scroll-down은 아래쪽 v3 블록에서 처리 */

    /* ── 콘텐츠 섹션 공통: 상단 65px = 고정 헤더 높이만큼 확보 ── */
    .content-sec.fp-section { padding: 65px 0 20px; justify-content: center; }
    .sec-title { font-size: 1.8rem; margin-bottom: 10px; }
    .hero-text h2 { font-size: 2.2rem; }
    .hero-text p { font-size: 1.05rem; }
    .hero-main-title { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-desc { font-size: 1rem; }
    .hero-eyebrow { font-size: 1.05rem; }

    /* ── 섹션 헤더: PC 숨김 → 모바일 표시 ── */
    .sec-header--pc { display: none !important; }
    .sec-header--mobile {
        display: flex; flex-direction: column; align-items: center;
        text-align: center; margin-bottom: 20px; gap: 10px;
    }
    .sec-header--mobile .sec-title { margin: 0; }
    .mobile-filter-row {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    }

    /* ── 필터 & 더보기 버튼 ── */
    .board-filter button { padding: 5px 12px; font-size: 0.8rem; }
    .sec-more { padding: 5px 12px; font-size: 0.75rem; }

    /* ── 카드 그리드 → 1열 세로 배치 ── */
    .board-card-grid, .story-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* 모바일 통일 카드 — 정방형 썸네일 + 제목 2줄 여유 */
    .uniform-card { border-radius: 12px; height: 120px !important; }
    .uniform-card .img,
    .uniform-card .story-img {
        width: 120px !important;
        height: 120px !important;
        flex: 0 0 120px !important;
        aspect-ratio: unset !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .uniform-card .info,
    .uniform-card .story-info {
        padding: 14px 14px !important;
        gap: 6px !important;
    }
    .uniform-card h4 {
        font-size: 0.92rem !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2;
    }
    .uniform-card .tag { font-size: 0.7rem !important; padding: 2px 7px !important; }
    .uniform-card .date { font-size: 0.74rem !important; }
    /* card-pager-wrap 높이 (4행 × 120 + 3 gap × 12 = 516) */
    .board-main .card-pager-wrap,
    .health-info-sec .card-pager-wrap {
        height: 516px !important;
        min-height: 516px !important;
    }
    /* 모바일: Swiper 본래 layout 사용, margin-top만 균일하게 */
    .card-pager-wrap .swiper-slide { box-sizing: border-box; }

    /* 모바일 go-top: 숨김 (FAB 패널 안에 '맨위로'로 통합) */
    #goTopBtn { display: none !important; }

    /* ── 퀵메뉴 → 모바일 2열 4행 (위아래 길쭉하게) ── */
    .quick-list { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
    .quick-item { padding: 30px 8px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; }
    .quick-item:nth-child(2n) { border-right: none; }
    .quick-item:nth-child(n+7) { border-bottom: none; }
    .quick-item i { font-size: 1.7rem; margin-bottom: 14px; }
    .quick-item span { font-size: 0.86rem; }

    /* ── 모바일 불필요 설명 텍스트 숨김 ── */
    #section1 .sec-header > p { display: none !important; }
    .badge-sec > .container > p { display: none !important; }

    /* ── 뱃지 섹션 ── */
    .badge-sec { padding: 65px 0 40px; }
    .badge-subtitle { font-size: 0.95rem; margin-bottom: 8px; }
    .badge-title { font-size: 1.6rem; margin-bottom: 15px; letter-spacing: -1px; }
    .badge-sec > .container > p { font-size: 0.9rem !important; margin-bottom: 20px !important; line-height: 1.6 !important; }
    .badge-wrap { padding: 0; margin-top: 15px; }
    .badge-swiper-container { padding: 5px 0 20px; }
    .badge-card {
        flex-direction: column-reverse; text-align: center; padding: 25px 20px;
        min-height: auto; aspect-ratio: auto; justify-content: center; border-radius: 20px;
    }
    .badge-card h5 { font-size: 1rem; margin-bottom: 6px; }
    .badge-card p { font-size: 0.85rem; }
    .badge-card .img-placeholder { margin: 0 auto 12px auto; width: 80px; height: 80px; flex-shrink: 0; }
    .badge-card .img-placeholder i { font-size: 3rem; }
    .badge-card .img-placeholder img,
    .badge-card .img-placeholder .badge-circle-img { width: 80px; height: 80px; }
    .badge-prev, .badge-next { display: none; }
    .badge-controls { margin-top: 15px; }
}

/* ── FAB 배경 딤처리 ────────────────────────────────────────────────────────── */
body.fab-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 997;
    pointer-events: auto;
}

/* ── Mobile Speed Dial FAB ───────────────────────────────────────────────────
   PC(>1024px): 숨김 / 모바일·태블릿(≤1024px): 우하단 고정
   ────────────────────────────────────────────────────────────────────────── */
.mobile-fab { display: none; }

@media (max-width: 1024px) {
    .mobile-fab {
        position: fixed; right: 18px; bottom: 18px; z-index: 998;
        display: flex; flex-direction: column; align-items: flex-end;
        opacity: 1; pointer-events: auto;
        transition: bottom 0.3s;
    }
    .mobile-fab.fab-visible { opacity: 1; pointer-events: auto; }
    /* Hero(섹션 0)에선 예약바 위로 띄움 */
    .mobile-fab.on-hero { bottom: 200px; }
}

/* ── 패널 ────────────────────────────────────────────────────────────────── */
.mfab-panel {
    position: absolute; bottom: calc(100% + 14px); right: 0;
    width: 220px;
    background: #fff; border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.22);
    padding: 18px 14px 14px;
    opacity: 0; transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: bottom right;
}
.mobile-fab.open .mfab-panel {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.mfab-panel-title {
    font-size: 0.72rem; font-weight: 700; color: #bbb;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mfab-panel-grid {
    display: flex; flex-direction: column; gap: 6px;
}

.mfab-panel-item {
    display: flex; flex-direction: row; align-items: center; gap: 14px;
    padding: 15px 16px; border-radius: 14px;
    background: #f8f9fa; text-decoration: none;
    transition: background 0.18s;
}
.mfab-panel-item:active, .mfab-panel-item:hover { background: #fff0e8; }

.mfab-panel-item i {
    font-size: 1.35rem; color: var(--main-brand); flex-shrink: 0; width: 24px; text-align: center;
}
.mfab-panel-item span {
    font-size: 1rem; font-weight: 700; color: #222;
    line-height: 1.2; white-space: nowrap;
}

/* FAB 메인 버튼 */
.mobile-fab-btn {
    width: 64px; height: 64px; border-radius: 50%; border: none;
    background: var(--main-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: 0 6px 24px rgba(234,84,0,0.45);
    cursor: pointer; transition: background 0.25s, transform 0.25s;
    flex-shrink: 0; position: relative;
}
.mobile-fab-btn:active { transform: scale(0.93); }
.mobile-fab.open .mobile-fab-btn { background: #333; }

/* 열림/닫힘 아이콘 전환 */
.mfab-close { display: none; }
.mobile-fab.open .mfab-open  { display: none; }
.mobile-fab.open .mfab-close { display: block; }

/* ════════════════════════════════════════════════════════════
   홈 팝업 모달 — 접속 시 노출
   ════════════════════════════════════════════════════════════ */
.home-popup {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}
.home-popup[hidden] { display: flex !important; }
.home-popup.show { opacity: 1; visibility: visible; pointer-events: auto; }
.home-popup__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.home-popup__card {
    position: relative; z-index: 1;
    width: min(880px, 100%);
    max-height: 92vh;
    display: flex; flex-direction: column;
    animation: popupIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.home-popup__card--solo { width: min(560px, 100%); }
@keyframes popupIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.home-popup__close {
    position: absolute; top: -52px; right: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    transition: 0.2s;
}
.home-popup__close:hover { background: rgba(255,255,255,0.95); color: var(--navy); border-color: rgba(255,255,255,0.95); transform: rotate(90deg); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 상단 로고 ── */
.home-popup__brand {
    display: flex; justify-content: center;
    margin-bottom: 22px;
}
.home-popup__logo {
    height: 60px; width: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
}

/* ── 섹션 라벨 (NOTICE / NEWS) ── */
.home-popup__label {
    font-family: 'AstaSans', 'Pretendard', sans-serif;
    font-size: 0.9rem; font-weight: 700;
    color: #fff;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── 본문 그리드 (좌 NOTICE, 우 NEWS+배너) ── */
.home-popup__body {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 18px;
    flex: 1;
    min-height: 0;
}
.home-popup__card--solo .home-popup__body { grid-template-columns: 1fr; }
.home-popup__col { display: flex; flex-direction: column; min-width: 0; }
.home-popup__col--news { gap: 14px; height: 100%; min-height: 0; }
.home-popup__news { flex-shrink: 0; }

/* ── NOTICE 큰 캐러셀 ── */
.home-popup__main {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.home-popup-swiper, .home-popup-news-swiper { width: 100%; height: 100%; }
.home-popup-swiper .swiper-slide,
.home-popup-news-swiper .swiper-slide { display: block; }
.home-popup-swiper .swiper-slide a,
.home-popup-news-swiper .swiper-slide a { display: block; width: 100%; height: 100%; }
.home-popup-swiper img,
.home-popup-news-swiper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-popup__fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-soft); color: #aab2bf; font-size: 2.5rem;
}

/* ── NEWS 캐러셀 슬롯 + 고정 배너 스택 ── */
.home-popup__news { display: flex; flex-direction: column; min-width: 0; }
.home-popup__news-slot {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}
.home-popup__fixed {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 0;
}
.home-popup__banner {
    display: block;
    position: relative;
    width: 100%; height: 100%;
    min-height: 0;
    background: var(--bg-light-gray);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    transition: transform 0.25s, box-shadow 0.25s;
}
.home-popup__banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.home-popup__banner > img,
.home-popup__banner > .home-popup__fallback {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.home-popup__banner img { object-fit: cover; display: block; }

/* ── 페이지네이션 dots (NOTICE / NEWS 공통) ── */
.home-popup-dots {
    position: absolute; bottom: 14px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
    z-index: 5;
}
.home-popup-dots .swiper-pagination-bullet {
    width: 7px; height: 7px;
    background: rgba(255,255,255,0.55);
    border-radius: 4px;
    opacity: 1;
    transition: width 0.3s ease, background 0.3s ease;
}
.home-popup-dots .swiper-pagination-bullet-active {
    background: #fff; width: 24px;
}
.home-popup-dots--news .swiper-pagination-bullet { width: 6px; height: 6px; }
.home-popup-dots--news .swiper-pagination-bullet-active { width: 18px; }

/* ── prev/next 화살표 (NOTICE / NEWS 공통) ── */
.home-popup-prev, .home-popup-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: 0.25s;
    opacity: 0;
}
.home-popup__main:hover .home-popup-prev,
.home-popup__main:hover .home-popup-next,
.home-popup__news-slot:hover .home-popup-prev,
.home-popup__news-slot:hover .home-popup-next { opacity: 1; }
.home-popup-prev { left: 12px; }
.home-popup-next { right: 12px; }
.home-popup__news-slot .home-popup-prev,
.home-popup__news-slot .home-popup-next { width: 34px; height: 34px; font-size: 0.85rem; }
.home-popup__news-slot .home-popup-prev { left: 8px; }
.home-popup__news-slot .home-popup-next { right: 8px; }
.home-popup-prev:hover, .home-popup-next:hover {
    background: rgba(255,255,255,0.95); color: var(--navy);
    border-color: rgba(255,255,255,0.95);
}

/* ── 하단 ── */
.home-popup__foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px 0;
    margin-top: 6px;
}
.home-popup__hide-today {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; color: rgba(255,255,255,0.9); cursor: pointer;
}
.home-popup__hide-today input { width: 16px; height: 16px; accent-color: var(--main-brand); }
.home-popup__btn {
    padding: 0;
    background: transparent; color: rgba(255,255,255,0.9);
    border: none;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: 0.2s;
    letter-spacing: 0.02em;
}
.home-popup__btn:hover { color: #fff; }

@media (max-width: 768px) {
    .home-popup { padding: 64px 14px 18px; align-items: flex-start; }
    .home-popup__close { top: 12px; right: 12px; }
    .home-popup__card { max-height: calc(100dvh - 84px); width: 100%; }
    .home-popup__brand { margin-bottom: 14px; flex-shrink: 0; }
    .home-popup__logo { height: 44px; }
    .home-popup__body {
        grid-template-columns: 1fr;
        gap: 16px;
        overflow-y: auto;
        min-height: 0;
        flex: 1;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px;
    }
    .home-popup__col--news { gap: 14px; height: auto; min-height: 0; }
    .home-popup__news { flex-shrink: 1; }
    .home-popup__news-slot { aspect-ratio: 16 / 9; }
    .home-popup__fixed { grid-template-rows: auto; grid-template-columns: 1fr 1fr; min-height: 0; }
    .home-popup__banner { aspect-ratio: 16 / 9; height: auto; }
    /* 모바일에선 banner가 자기 aspect-ratio로 높이 결정 — 데스크탑의 absolute 트릭 해제 */
    .home-popup__banner > img,
    .home-popup__banner > .home-popup__fallback {
        position: static;
        inset: auto;
    }
    .home-popup__foot { padding: 12px 4px 0; flex-shrink: 0; }
    .home-popup__hide-today { font-size: 0.8rem; }
    .home-popup-prev, .home-popup-next { display: none; }
}

/* ════════════════════════════════════════════════════════════
   v2 Redesign — 하이브리드 스크롤 / Navy 보조 / 신규 섹션
   ════════════════════════════════════════════════════════════ */

/* 좌측 indicator 다시 활성 — 풀페이지 스크롤로 복귀 */
.left-indicator { display: flex; }

/* 풀페이지 스크롤 복원: 모든 fp-section은 100vh */
.fp-section {
    min-height: 100vh; min-height: 100dvh;
    height: 100vh; height: 100dvh;
    overflow: hidden;
}

/* 섹션 헤더 — 중앙 정렬 변형 (신규 섹션용) */
.sec-header.sec-header--center {
    display: block;
    text-align: center;
    margin-bottom: 50px;
}
.sec-eyebrow {
    display: inline-block;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 3px;
    color: var(--navy); text-transform: uppercase;
    padding: 6px 16px; background: var(--navy-soft);
    border-radius: 30px; margin-bottom: 14px;
}
.sec-desc {
    font-size: 1.1rem; color: #666; margin-top: 15px;
    line-height: 1.7; max-width: 720px; margin-left: auto; margin-right: auto;
    word-break: keep-all;
}

/* ──────────────────────────────────────────
   Hero — v2 비주얼 리프레시 (큰 화면 채우기)
   ────────────────────────────────────────── */

/* 타이포: clamp — 큰 모니터에서도 과하지 않게 (max 4.4rem) */
.hero-main-title {
    font-size: clamp(2.2rem, 3.6vw, 4.4rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 24px !important;
}
.hero-desc {
    font-size: clamp(1.02rem, 1.3vw, 1.38rem) !important;
    line-height: 1.6 !important;
    margin-top: 4px;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-eyebrow::before { display: none; } /* 기존 오렌지 라인 제거 → navy 배지로 교체 */
.hero-eyebrow__badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(16,43,77,0.08);
    color: var(--navy); border-radius: 30px;
    font-size: clamp(0.78rem, 0.9vw, 0.95rem);
    font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero 이미지 영역 확대 — 큰 화면에서 비어보임 해소 */
.hero-img-box {
    width: 60% !important;
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%) !important;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%) !important;
}
@media (min-width: 1600px) {
    .hero-img-box { width: 65% !important; }
    .hero-text { max-width: 720px; }
}
@media (min-width: 2000px) {
    .hero-img-box { width: 68% !important; }
}

/* Hero 액센트 — 큰 제목 위 가로 짧은 주황 포인트 라인 (점·선·세로바 제거) */
.hero-text { position: relative; }
.hero-text::before, .hero-text::after { display: none; } /* 기존 vertical line + dot 제거 */
.hero-main-title {
    position: relative;
    padding-top: 22px;
}
.hero-main-title::before {
    content: ''; display: block;
    width: 56px; height: 4px;
    background: var(--main-brand); border-radius: 2px;
    margin-bottom: 22px;
}

/* Hero 워터마크 데코 — 큰 화면 빈 공간 채움 (오른쪽 하단 fade) */
.hero-sec { position: relative; overflow: hidden; }
.hero-sec::after {
    content: '';
    position: absolute;
    right: -8%; bottom: -12%;
    width: 70vh; height: 70vh; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle at center,
        rgba(234, 84, 0, 0.08) 0%,
        rgba(16, 43, 77, 0.04) 35%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ──────────────────────────────────────────
   Hero 빠른예약 바 — v3: 더 크고 또렷, 얇은 주황 테두리, 가로 포인트 라인
   ────────────────────────────────────────── */
.bottom-reserve-bar {
    bottom: 130px !important;  /* 위로 — scroll-down 잘 보이게 */
    width: 94% !important;
    max-width: 1320px !important;
    padding: 10px 22px !important;
    border-radius: 9999px !important;  /* pill — 원통형 */
    background: #fff !important;
    border: 1.5px solid var(--main-brand) !important;
    border-top-width: 1.5px !important;
    box-shadow: 0 24px 56px rgba(16,43,77,0.18) !important;
    backdrop-filter: none !important;
    gap: 18px !important;
}
.reserve-phone-form { flex: 1.7 !important; gap: 14px !important; align-items: center !important; }
.reserve-phone-form h4 {
    display: inline-flex !important; align-items: center !important; gap: 10px !important;
    font-size: 1.05rem !important; font-weight: 800 !important;
    color: var(--navy) !important;
    white-space: nowrap; padding: 0 !important; margin: 0 !important;
    letter-spacing: -0.4px;
}
/* 가로 포인트 라인 (h4 옆) — 깔끔한 주황 액센트 */
.reserve-phone-form h4::before {
    content: ''; display: inline-block;
    width: 28px; height: 3px;
    background: var(--main-brand); border-radius: 2px;
    flex-shrink: 0;
}
.phone-input-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
    flex: 1;
    height: 48px !important;
    padding: 3px 3px 3px 0 !important;
    border-radius: 9999px !important;       /* pill */
    border: 1px solid #e4e8f0 !important;
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 6px 14px rgba(16,43,77,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-wrap:focus-within {
    border-color: var(--main-brand) !important;
    box-shadow:
        0 0 0 3px rgba(234,84,0,0.12),
        0 8px 18px rgba(16,43,77,0.08);
}
.phone-input-icon {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 4px 0 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3ec 0%, #ffe2d0 100%);
    color: var(--main-brand);
    font-size: 0.88rem;
}
.phone-input-wrap input {
    flex: 1; min-width: 0;
    height: 100%;
    border: none !important; outline: none !important;
    background: transparent;
    font-size: 0.98rem !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0 14px !important;
    color: var(--navy);
}
.phone-input-wrap input::placeholder {
    color: #b4bdcb;
    font-weight: 500;
    letter-spacing: 0;
}
.phone-input-wrap button {
    flex-shrink: 0;
    display: inline-flex !important; align-items: center; justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px 0 20px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--main-brand) 0%, var(--main-dark) 100%) !important;
    border: none !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 12px rgba(234,84,0,0.28);
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.phone-input-wrap button i {
    font-size: 0.74rem;
    transition: transform 0.25s ease;
}
.phone-input-wrap button:hover {
    background: linear-gradient(135deg, #f96512 0%, var(--main-brand) 100%) !important;
    box-shadow: 0 8px 18px rgba(234,84,0,0.38);
    transform: translateY(-1px);
}
.phone-input-wrap button:hover i { transform: translateX(3px); }
.phone-input-wrap button:active { transform: translateY(0); }
.phone-input-wrap button:disabled { opacity: 0.75; cursor: default; }

.reserve-btn-wrap { gap: 10px !important; flex: 1 !important; }
.reserve-bar-btn {
    flex: 1; justify-content: center; align-items: center; gap: 8px !important;
    padding: 0 18px !important;
    border-radius: 9999px !important;  /* pill */
    border: 1px solid var(--navy-line) !important;
    background: #fff;
    font-size: 0.95rem !important; font-weight: 800;
    color: var(--navy) !important;
    transition: 0.22s;
    height: 48px; min-height: 0;
}
.reserve-bar-btn i {
    color: var(--main-brand) !important; font-size: 1.05rem !important;
}
.reserve-bar-btn:hover {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(16,43,77,0.28) !important;
    transform: translateY(-2px);
}
.reserve-bar-btn:hover i { color: #fff !important; }

/* 모바일 — pill 유지 + 컴팩트 */
@media (max-width: 1200px) {
    .bottom-reserve-bar {
        position: static !important;
        transform: none !important;
        flex-direction: column !important; gap: 8px !important;
        padding: 11px 13px !important;
        border-radius: 22px !important;
        width: 92% !important;
        margin: 22px auto 0 !important;
        border: 1.5px solid var(--main-brand) !important;
    }
    .reserve-phone-form {
        width: 100%; flex-direction: column !important; gap: 6px !important;
        align-items: stretch !important;
    }
    .reserve-phone-form h4 {
        font-size: 0.88rem !important;
        align-self: flex-start;
        margin: 0 !important;
        gap: 8px !important;
    }
    .reserve-phone-form h4::before {
        width: 22px; height: 2px;
    }
    .phone-input-wrap {
        height: 42px !important;
        padding: 3px 3px 3px 0 !important;
        border-radius: 9999px !important;
        width: 100%;
    }
    .phone-input-icon {
        width: 28px; height: 28px;
        margin: 0 2px 0 4px;
        font-size: 0.76rem;
    }
    .phone-input-wrap input {
        font-size: 0.88rem !important;
        padding: 0 11px !important;
        min-width: 0; flex: 1;
    }
    .phone-input-wrap button {
        height: 36px;
        padding: 0 13px 0 15px !important;
        font-size: 0.8rem !important;
        gap: 5px;
        border-radius: 9999px !important;
    }
    .phone-input-wrap button i { font-size: 0.66rem; }
    .reserve-btn-wrap {
        width: 100%; gap: 8px !important;
        flex-direction: row !important;
    }
    .reserve-bar-btn {
        flex: 1; flex-direction: row !important;
        padding: 0 10px !important;
        font-size: 0.82rem !important;
        gap: 6px !important;
        border-radius: 9999px !important;
        height: 38px; min-height: 0;
    }
    .reserve-bar-btn i { font-size: 0.92rem !important; }
}

/* Quick Menu — hover 시 navy 액센트 */
.quick-item:hover { background: var(--navy-soft); }
.quick-item:hover i { color: var(--navy); transform: translateY(-5px); }
.quick-item:hover span { color: var(--navy); }

/* ──────────────────────────────────────────
   Hero 모바일 — 텍스트 상단 중앙 / 이미지 아래 3:2 원형 그라데이션
   (Swiper의 fade 효과와 충돌 없이 absolute 포지셔닝으로 배치)
   ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .hero-sec {
        height: 100vh !important; min-height: 100vh !important; min-height: 100dvh !important;
        overflow: hidden !important;
        display: block !important;
        padding-top: 0 !important;
        background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
        position: relative;
    }
    .hero-sec::after { display: none; }

    /* Swiper 구조 유지 (fade 작동) */
    .hero-swiper {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important; height: 100% !important;
    }
    .hero-swiper .swiper-wrapper { align-items: stretch; height: 100% !important; }
    .hero-swiper .swiper-slide {
        background: transparent !important;
        height: 100% !important;
        position: relative !important;
        display: block !important;
    }

    /* 텍스트 — 상단 중앙 (헤더 아래 90px 시작) */
    .hero-layout {
        position: absolute !important;
        top: 92px !important; left: 0 !important; right: 0 !important;
        width: 100% !important; height: auto !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 0 22px !important;
        max-width: none !important;
        z-index: 3;
    }
    .hero-text {
        flex: none !important; width: 100% !important; min-width: 0 !important;
        position: static !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    .hero-text::before, .hero-text::after { display: none !important; }
    .hero-main-title::before { margin-left: auto; margin-right: auto; }
    .hero-eyebrow { justify-content: center !important; }

    /* 이미지 — 텍스트 아래, 3:2 비율, 상하 강한 fade (radial + linear 조합) */
    .hero-img-box {
        position: absolute !important;
        top: 38% !important; left: 0 !important; right: 0 !important;
        width: 100% !important; height: auto !important;
        aspect-ratio: 3 / 2 !important;
        margin: 0 !important;
        opacity: 1 !important;
        z-index: 1;
        /* 이중 마스크: radial(좌우 부드러운 fade) ∩ linear(상하 강한 fade) */
        -webkit-mask-image:
            radial-gradient(ellipse 95% 100% at center,
                black 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.2) 75%, transparent 95%),
            linear-gradient(to bottom,
                transparent 0%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.7) 22%,
                black 38%, black 62%,
                rgba(0,0,0,0.7) 78%, rgba(0,0,0,0.15) 92%, transparent 100%) !important;
        mask-image:
            radial-gradient(ellipse 95% 100% at center,
                black 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.2) 75%, transparent 95%),
            linear-gradient(to bottom,
                transparent 0%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.7) 22%,
                black 38%, black 62%,
                rgba(0,0,0,0.7) 78%, rgba(0,0,0,0.15) 92%, transparent 100%) !important;
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
    .hero-img-box .hero-img,
    .hero-img-box img {
        position: absolute !important; inset: 0;
        width: 100% !important; height: 100% !important;
        -webkit-mask-image: none !important; mask-image: none !important;
    }
    .hero-controls {
        margin: 14px auto 0 !important;
        justify-content: center !important;
    }
    .hero-cta-btn { margin-top: 16px !important; }

    /* 빠른예약 바 — 하단 absolute (퀵메뉴 strip 포함) */
    .bottom-reserve-bar {
        position: absolute !important;
        bottom: 14px !important;
        left: 50% !important; transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        gap: 7px !important;
    }

    /* Scroll-down — 모바일: 위젯 위쪽 노출, 작게 + bounce 애니메이션 유지 */
    .scroll-down {
        display: block !important;
        position: absolute !important;
        bottom: 270px !important;    /* 위젯 위로 */
        left: 50% !important;
        opacity: 0.75;
        z-index: 4;
        animation: bounce 2s infinite !important;
    }
    .scroll-down span { font-size: 0.68rem !important; letter-spacing: 1.6px !important; margin-bottom: 2px !important; }
    .scroll-down i { font-size: 1.05rem !important; }
}

/* ──────────────────────────────────────────
   Reserve Quick Strip — 모바일 전용 (데스크탑 노출 X)
   ────────────────────────────────────────── */
.reserve-quick-strip { display: none !important; }
@media (max-width: 1200px) {
    .reserve-quick-strip {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
        padding-top: 8px;
        margin-top: 0;
        border-top: 1px solid var(--navy-line);
    }
    .reserve-quick-strip a {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 4px;
        padding: 7px 4px;
        border-radius: 10px;
        background: var(--navy-soft);
        color: var(--navy);
        text-align: center;
        text-decoration: none;
        transition: background 0.2s, color 0.2s, transform 0.2s;
        font-weight: 700;
    }
    .reserve-quick-strip a:active,
    .reserve-quick-strip a:hover {
        background: var(--main-brand); color: #fff;
        transform: translateY(-1px);
    }
    .reserve-quick-strip a i {
        font-size: 1rem;
        color: var(--main-brand);
        transition: color 0.2s;
    }
    .reserve-quick-strip a:hover i,
    .reserve-quick-strip a:active i { color: #fff; }
    .reserve-quick-strip a span {
        font-size: 0.72rem;
        letter-spacing: -0.3px;
        white-space: nowrap;
    }

    /* Hero에선 FAB 완전 숨김 (퀵메뉴는 위젯에 들어가있음) */
    .mobile-fab.on-hero {
        opacity: 0 !important; pointer-events: none !important;
        visibility: hidden !important;
    }
}
@media (max-width: 380px) {
    .reserve-quick-strip a { padding: 6px 3px; gap: 3px; }
    .reserve-quick-strip a span { font-size: 0.68rem; }
    .reserve-quick-strip a i { font-size: 0.94rem; }
}

/* ──────────────────────────────────────────
   Badge Carousel v4 — 컬러 테마 카드 캐러셀
   ────────────────────────────────────────── */
.badge-carousel-wrap {
    position: relative;
    max-width: 1280px;
    margin: 56px auto 0;        /* 제목과 캐러셀 사이 여유 */
    padding: 0 80px;
    overflow: visible;
}
.badge-carousel {
    padding: 40px 0 110px;      /* 위·아래 충분히 — 인디케이터 공간 확보 */
    overflow: visible !important;
}
/* 슬라이드: 양옆 작은 + 블러, 가운데 active 더 크게 (opacity 1) */
.badge-carousel .swiper-slide {
    height: auto !important;
    opacity: 1 !important;
    filter: blur(4px);
    transform: scale(0.75);
    transition: filter 0.55s ease, transform 0.55s ease;
}
.badge-carousel .swiper-slide-active {
    filter: blur(0) !important;
    transform: scale(1.18) !important;     /* 가운데 부각 — 더 크게 */
    z-index: 10;
}
.badge-carousel .swiper-slide-prev,
.badge-carousel .swiper-slide-next {
    filter: blur(2.5px);
    transform: scale(0.82);
    z-index: 5;
}
/* 데스크탑: 명함 비율 (3:2) + 큰 라운드 + 위아래 넉넉한 패딩 */
.badge-color-card {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    aspect-ratio: 3 / 2;
    height: auto;
    padding: 40px 26px;        /* 위아래 여유 */
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 18px 44px rgba(0,0,0,0.18);
    transition: box-shadow 0.4s;
}
.swiper-slide-active .badge-color-card {
    box-shadow: 0 30px 64px rgba(0,0,0,0.3);
}
.badge-color-card__icon {
    width: 78px; height: 78px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.85);
    flex-shrink: 0;
    overflow: hidden;
}
.badge-color-card__icon i { font-size: 2rem; }
.badge-color-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.badge-color-card h5 {
    font-size: 1.05rem; font-weight: 800;
    margin: 0; line-height: 1.4;
    word-break: keep-all;
}
.badge-color-card__sub {
    font-size: 0.85rem; margin: 0;
    line-height: 1.5; opacity: 0.92;
    word-break: keep-all;
}

/* ── 테마별 배경/글자색 ────────────────────────────────────────────── */
.badge-color-card.theme-white        { background: #fff;                color: var(--navy); }
.badge-color-card.theme-white .badge-color-card__icon i { color: var(--main-brand); }

.badge-color-card.theme-orange       { background: var(--main-brand);   color: #fff; }
.badge-color-card.theme-orange .badge-color-card__icon { background: rgba(255,255,255,0.95); }
.badge-color-card.theme-orange .badge-color-card__icon i { color: var(--main-brand); }

.badge-color-card.theme-light-orange { background: var(--main-light);   color: #fff; }
.badge-color-card.theme-light-orange .badge-color-card__icon { background: rgba(255,255,255,0.95); }
.badge-color-card.theme-light-orange .badge-color-card__icon i { color: var(--main-dark); }

.badge-color-card.theme-navy         { background: var(--navy);         color: #fff; }
.badge-color-card.theme-navy .badge-color-card__icon { background: rgba(255,255,255,0.95); }
.badge-color-card.theme-navy .badge-color-card__icon i { color: var(--navy); }

.badge-color-card.theme-navy-soft    { background: var(--navy-soft);    color: var(--navy); }
.badge-color-card.theme-navy-soft .badge-color-card__icon { background: #fff; }
.badge-color-card.theme-navy-soft .badge-color-card__icon i { color: var(--navy); }

.badge-color-card.theme-beige        { background: #f5ede5;             color: var(--navy); }
.badge-color-card.theme-beige .badge-color-card__icon { background: #fff; }
.badge-color-card.theme-beige .badge-color-card__icon i { color: var(--main-brand); }

/* ── 세련된 캐러셀 컨트롤 ────────────────────────────────────────────── */
.badge-carousel-prev, .badge-carousel-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.32);
    color: #fff; font-size: 0.95rem; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    z-index: 20; transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.badge-carousel-prev { left: 12px; }
.badge-carousel-next { right: 12px; }
.badge-carousel-prev:hover, .badge-carousel-next:hover {
    background: rgba(255,255,255,0.42);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.badge-carousel-prev:active, .badge-carousel-next:active {
    transform: translateY(-50%) scale(0.98);
}

/* 캐러셀 인디케이터 — 현재 번호 + 진행 라인 + 총 개수 */
.badge-carousel-indicator {
    position: absolute; left: 0; right: 0; bottom: 42px;
    display: flex; align-items: center; justify-content: center;
    gap: 18px;
    z-index: 15;
}
.bci-num {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 1px;
    min-width: 28px; text-align: center;
    transition: color 0.3s;
}
.bci-num.is-current {
    color: #fff;
    font-size: 1.18rem;
}
.bci-bar {
    position: relative;
    width: clamp(180px, 28vw, 320px);
    height: 3px;
    background: rgba(255,255,255,0.22);
    border-radius: 4px;
    overflow: hidden;
}
.bci-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: #fff;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .badge-carousel-wrap { padding: 0 50px; }
}
@media (max-width: 768px) {
    .badge-carousel-wrap { padding: 0 30px; margin-top: 22px; }
    .badge-carousel-prev, .badge-carousel-next { display: none; }
    /* 모바일: 2:3 portrait — 위아래로 길게, 안 겹침, 블러만 + 넉넉한 위아래 패딩 */
    .badge-color-card {
        aspect-ratio: 2 / 3;
        height: auto;
        padding: 52px 22px;
        gap: 22px;
        border-radius: 24px;
    }
    .badge-color-card__icon { width: 64px; height: 64px; }
    .badge-color-card__icon i { font-size: 1.6rem; }
    .badge-color-card h5 { font-size: 1rem; }
    .badge-color-card__sub { font-size: 0.82rem; }
    .bci-bar { width: clamp(140px, 50vw, 220px); }
    .bci-num { font-size: 0.82rem; }
    .bci-num.is-current { font-size: 1rem; }
}

/* ──────────────────────────────────────────
   (옛 Badge Grid 스타일은 더 이상 사용 안 함)
   ────────────────────────────────────────── */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 40px auto 0;
    position: relative; z-index: 2;
}
.badge-card-v3 {
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    padding: 26px 18px 22px;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}
.badge-card-v3:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}
.badge-card-v3__icon {
    width: 76px; height: 76px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-light-orange) 0%, #fff 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.badge-card-v3__icon i { font-size: 2.2rem; color: var(--main-brand); }
.badge-card-v3__icon img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}
.badge-card-v3__text { width: 100%; }
.badge-card-v3 h5 {
    font-size: 1.02rem; font-weight: 800; color: var(--navy);
    margin: 0 0 6px; line-height: 1.4;
    word-break: keep-all;
}
.badge-card-v3__sub {
    font-size: 0.82rem; color: #555; margin: 0;
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .badge-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .badge-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
    .badge-card-v3 { padding: 16px 10px 14px; gap: 8px; border-radius: 14px; }
    .badge-card-v3__icon { width: 56px; height: 56px; }
    .badge-card-v3__icon i { font-size: 1.5rem; }
    .badge-card-v3 h5 { font-size: 0.88rem; }
    .badge-card-v3__sub { font-size: 0.72rem; }
}

/* Badge section 모바일 여백 축소 */
@media (max-width: 768px) {
    .badge-sec {
        padding: 40px 0 50px !important;
    }
    .badge-subtitle { font-size: 0.78rem !important; margin-bottom: 6px !important; }
    .badge-title { font-size: 1.4rem !important; margin-bottom: 10px !important; }
    .badge-lead {
        font-size: 0.85rem !important;
        margin-bottom: 18px !important;
        line-height: 1.5 !important;
    }
    .badge-stats { margin-bottom: 22px; gap: 8px; }
    .badge-stat { padding: 12px 8px; }
    .badge-stat i { font-size: 0.95rem; margin-bottom: 4px; }
    .badge-stat__num { font-size: 1.35rem; }
    .badge-stat__label { font-size: 0.72rem; }
}

/* ──────────────────────────────────────────
   3. 진료센터 / 특화센터 Showcase (신규)
   ────────────────────────────────────────── */
.specialty-sec { background: #fff; padding: 110px 0; }
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.specialty-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #eef0f4;
    border-radius: 20px; overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    text-decoration: none; color: inherit;
    position: relative;
}
.specialty-card:hover {
    transform: translateY(-8px);
    border-color: var(--navy-line);
    box-shadow: 0 25px 50px rgba(16,43,77,0.12);
}
.specialty-card__media {
    aspect-ratio: 16 / 10; width: 100%; overflow: hidden;
    background: linear-gradient(135deg, var(--navy-soft) 0%, #fff 100%);
    display: flex; align-items: center; justify-content: center;
}
.specialty-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.specialty-card:hover .specialty-card__media img { transform: scale(1.05); }
.specialty-card__icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: #fff; box-shadow: 0 8px 24px rgba(16,43,77,0.08);
    display: flex; align-items: center; justify-content: center;
}
.specialty-card__icon i {
    font-size: 2.6rem;
    color: var(--navy);
}
.specialty-card:hover .specialty-card__icon {
    background: var(--main-brand);
    box-shadow: 0 8px 24px rgba(234,84,0,0.25);
}
.specialty-card:hover .specialty-card__icon i { color: #fff; }
.specialty-card__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.specialty-card__name {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.35rem; font-weight: 800; color: var(--navy);
    letter-spacing: -0.5px; margin-bottom: 10px;
}
.specialty-card__desc {
    font-size: 0.98rem; color: #555; line-height: 1.6;
    word-break: keep-all; margin-bottom: 18px; flex: 1;
}
.specialty-card__arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy-soft); color: var(--navy);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    align-self: flex-start;
}
.specialty-card:hover .specialty-card__arrow {
    background: var(--main-brand); color: #fff; transform: translateX(4px);
}
.specialty-card--static { cursor: default; }
.specialty-card--static:hover { transform: none; box-shadow: none; border-color: #eef0f4; }
.specialty-card--static:hover .specialty-card__media img { transform: none; }

@media (max-width: 1024px) {
    .specialty-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .specialty-sec { padding: 80px 0; }
}
@media (max-width: 640px) {
    .specialty-grid { grid-template-columns: 1fr; gap: 16px; }
    .specialty-sec { padding: 60px 0; }
    .specialty-card__body { padding: 20px 22px 22px; }
    .specialty-card__name { font-size: 1.2rem; }
}

/* ──────────────────────────────────────────
   4. 통계·실적 카운터 (신규)
   ────────────────────────────────────────── */
.stats-sec { padding: 110px 0; }
.stats-groups {
    display: flex; flex-direction: column; gap: 56px;
}
.stat-group__head {
    display: flex; align-items: baseline; gap: 18px;
    padding-bottom: 16px; margin-bottom: 28px;
    border-bottom: 2px solid var(--navy-soft);
}
.stat-group__title {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.5rem; font-weight: 800; color: var(--navy);
    letter-spacing: -0.5px;
    position: relative; padding-left: 18px;
}
.stat-group__title::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 26px; background: var(--main-brand); border-radius: 4px;
}
.stat-group__subtitle { font-size: 0.95rem; color: #777; }
.stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
    background: #fff; border: 1px solid #eef0f4;
    border-radius: 18px; padding: 32px 28px;
    text-align: left; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative; overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute; inset: auto -30px -30px auto;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, var(--navy-soft) 0%, transparent 70%);
    z-index: 0;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy-line);
    box-shadow: 0 16px 32px rgba(16,43,77,0.08);
}
.stat-card__icon {
    position: relative; z-index: 1;
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--navy-soft); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.stat-card__icon i { font-size: 1.4rem; }
.stat-card__value {
    position: relative; z-index: 1;
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 8px;
}
.stat-num {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 2.6rem; font-weight: 800; color: var(--navy);
    line-height: 1; letter-spacing: -1.5px;
}
.stat-suffix {
    font-size: 1.1rem; font-weight: 700; color: var(--main-brand);
}
.stat-card__label {
    position: relative; z-index: 1;
    font-size: 1rem; color: #555; font-weight: 500;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .stats-sec { padding: 80px 0; }
    .stats-groups { gap: 44px; }
}
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 24px 20px; }
    .stat-num { font-size: 2rem; }
    .stat-group__title { font-size: 1.25rem; }
    .stats-sec { padding: 60px 0; }
}
@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   섹션 헤더 inline 컨트롤 (제목 옆 카테고리·페이지네이션·더보기)
   ────────────────────────────────────────── */
.sec-header--inline {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16px; margin-bottom: 24px;
    flex-wrap: wrap;
}
.sec-header__title { display: flex; flex-direction: column; }
.sec-controls {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.inline-pager {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--navy-line);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(16,43,77,0.05);
}
.inline-pager[hidden] { display: none !important; }
.inline-pager .pager-btn {
    width: 30px; height: 30px;
    background: transparent; border: none;
    color: var(--navy); font-size: 0.78rem;
    cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.inline-pager .pager-btn:hover { background: var(--navy); color: #fff; }
.inline-pager .pager-btn.swiper-button-disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.inline-pager .pager-dots {
    display: flex; align-items: center; gap: 6px; padding: 0 4px;
}
.inline-pager .swiper-pagination-bullet {
    width: 7px; height: 7px;
    background: var(--navy-line); opacity: 1;
    border-radius: 50%; transition: 0.2s; cursor: pointer; margin: 0;
}
.inline-pager .swiper-pagination-bullet-active {
    background: var(--main-brand); width: 22px; border-radius: 4px;
}

/* ──────────────────────────────────────────
   페이지 단위 CSS Grid — 각 swiper-slide가 하나의 완성된 page-grid
   (Swiper Grid 모듈 X, Swiper는 단순 페이지네이션만)
   ────────────────────────────────────────── */
.page-grid {
    display: grid;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    align-content: stretch;
}
/* 병원소식·공지사항 — 데스크탑: 2열 × 3행 (페이지당 6장 행순) */
.page-grid--board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 18px;
    padding: 10px;             /* board-card box-shadow 잘림 방지 */
}
/* 건강정보 — 데스크탑: 4열 × 1행 (페이지당 4장) */
.page-grid--health {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 10px;
    padding: 10px;
}
.page-grid .board-card,
.page-grid .uniform-card { min-width: 0; min-height: 0; height: auto; }

/* 모바일 — 단일 컬럼, 페이지당 4장씩 스택 */
@media (max-width: 768px) {
    .page-grid--board,
    .page-grid--health {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(120px, 1fr));
        gap: 12px;
        padding: 6px;
    }
}

/* ──────────────────────────────────────────
   게시판 3분할 v6 — 명시적 동일 높이, 깔끔한 정렬
   ────────────────────────────────────────── */
.board-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    container-type: inline-size;    /* container-query 활성 */
}
.board-main { min-width: 0; min-height: 0; }
/* 보드 메인 높이 = aside 배너 정방형 높이와 동일 */
.board-main .card-pager-wrap {
    height: calc((100cqw - 24px) / 3);
    min-height: 400px;
    max-height: 620px;
}
.card-pager-wrap .swiper { height: 100% !important; padding-bottom: 0 !important; }

.board-aside-banner {
    aspect-ratio: 1 / 1;            /* 정방형 강제 */
    width: 100%;
    height: auto;
    background: var(--bg-light-gray);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--navy-line);
    display: block;
    align-self: start;              /* 그리드 stretch 무시 */
}
.aside-banner-swiper, .aside-banner-swiper .swiper-wrapper { height: 100% !important; }
.aside-banner-placeholder {
    min-height: 100%;
    padding: 40px 20px;
}
.aside-banner-swiper { width: 100%; height: 100%; }
.aside-banner-swiper .swiper-slide {
    display: block; width: 100%; height: 100%;
}
.aside-banner-swiper .swiper-slide a { display: block; width: 100%; height: 100%; }
.aside-banner-swiper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aside-banner-fallback,
.aside-banner-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: #aab2bf; background: var(--navy-soft);
}
.aside-banner-placeholder i { font-size: 3rem; }
.aside-banner-placeholder p { margin: 0; font-weight: 700; color: var(--navy); }
.aside-banner-placeholder span { font-size: 0.82rem; color: #8a96a8; }
.aside-banner-dots {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 5;
}
.aside-banner-dots .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.7); opacity: 1;
}
.aside-banner-dots .swiper-pagination-bullet-active {
    background: var(--main-brand); width: 22px; border-radius: 4px;
}
@media (max-width: 1024px) {
    .board-layout { grid-template-columns: 1fr; gap: 18px; }
    .board-aside-banner { display: none; }
}
@media (max-width: 768px) {
    .board-main .card-pager-wrap { height: clamp(540px, calc(100vh - 180px), 620px); }
}

/* ──────────────────────────────────────────
   5. 게시판 섹션 — 일반 스크롤 보정 + sec-eyebrow
   ────────────────────────────────────────── */
.board-news-sec, .health-info-sec { padding: 100px 0; }
.health-info-sec .card-pager-wrap {
    height: clamp(420px, calc(100vh - 250px), 580px);
    display: block;
}
.health-info-sec .card-swiper { height: 100% !important; padding-bottom: 0 !important; }
@media (max-width: 768px) {
    .health-info-sec .card-pager-wrap { height: clamp(540px, calc(100vh - 180px), 620px); }
}
.board-news-sec .sec-eyebrow,
.health-info-sec .sec-eyebrow { margin-bottom: 10px; }
.board-empty {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 60px 30px; background: #fafbfc;
    border: 1px dashed var(--navy-line); border-radius: 16px;
    color: #888;
}
.board-empty i { font-size: 2.4rem; color: var(--navy-line); }
.board-empty p { font-size: 0.98rem; margin: 0; }

@media (max-width: 1024px) {
    .board-news-sec, .health-info-sec { padding: 70px 0; }
}
@media (max-width: 768px) {
    .board-news-sec, .health-info-sec { padding: 55px 0; }
}

/* ──────────────────────────────────────────
   Quick Menu 섹션 (qmenu-sec) — 일반 스크롤
   ────────────────────────────────────────── */
.qmenu-sec { padding: 100px 0; }
@media (max-width: 768px) {
    .qmenu-sec { padding: 55px 0; }
}

/* ──────────────────────────────────────────
   모바일 — 컨텐츠 좌우 패딩 + 섹션 끝 여백
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    /* 컨테이너 좌우 살짝 늘림 (16px → 22px) */
    .container { padding: 0 22px !important; }
    /* fp-section 콘텐츠가 화면 끝에 너무 붙지 않게 상하 보강 */
    .content-sec.fp-section,
    .qmenu-sec.fp-section,
    .specialty-sec.fp-section,
    .board-news-sec.fp-section,
    .health-info-sec.fp-section {
        padding-top: 78px !important;
        padding-bottom: 40px !important;
    }
    .badge-sec.fp-section {
        padding-top: 68px !important;
        padding-bottom: 48px !important;
    }
    /* 카드 그리드 하단에 살짝 여유 */
    .board-card-grid, .story-grid, .specialty-grid {
        padding-bottom: 8px;
    }
    .sec-header--center { margin-bottom: 28px !important; }
}
@media (max-width: 420px) {
    .container { padding: 0 20px !important; }
}

/* ════════════════════════════════════════════════════════════
   모바일 — 콘텐츠 시원하게 (가독성 우선)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 컨테이너 좌우 조금 더 */
    .container { padding: 0 24px !important; }

    /* 섹션 헤더 — 제목/eyebrow 간격 + 아래 마진 여유 */
    .sec-header { margin-bottom: 26px !important; }
    .sec-header--mobile { gap: 12px !important; }
    .sec-title { font-size: 1.7rem !important; line-height: 1.35 !important; letter-spacing: -0.8px; }
    .sec-eyebrow { margin-bottom: 8px !important; padding: 5px 12px !important; }
    .sec-desc { line-height: 1.7 !important; margin-top: 12px !important; }

    /* 카드 내부 패딩 시원하게 (board / health 가로형 모바일) */
    .uniform-card .info,
    .uniform-card .story-info { padding: 14px 18px !important; gap: 10px !important; }
    .uniform-card h4 { font-size: 0.96rem !important; line-height: 1.5 !important; }
    .uniform-card .tag { font-size: 0.74rem !important; padding: 3px 10px !important; }
    .uniform-card .date { font-size: 0.78rem !important; }

    /* 진료센터 카드 — 텍스트 가독성 */
    .specialty-card__body { padding: 22px 22px 22px !important; }
    .specialty-card__name { font-size: 1.12rem !important; margin-bottom: 12px !important; }
    .specialty-card__desc { font-size: 0.92rem !important; line-height: 1.65 !important; margin-bottom: 14px !important; }

    /* 빠른예약 위젯 — 시원하게 */
    .bottom-reserve-bar { padding: 18px 18px !important; gap: 14px !important; }
    .reserve-phone-form h4 { font-size: 1.04rem !important; }
    .phone-input-wrap input { padding: 0 20px !important; }
    .reserve-quick-strip a { padding: 12px 4px !important; gap: 6px !important; }
    .reserve-quick-strip a span { font-size: 0.78rem !important; line-height: 1.3 !important; }

    /* 푸터 본문 가독성 */
    .footer-section .footer-contact h3 { font-size: 1.05rem !important; }
    .footer-section .footer-contact p.desc { font-size: 0.92rem !important; line-height: 1.7 !important; }
    .footer-section .footer-address p { font-size: 0.85rem !important; line-height: 1.7 !important; }

    /* Badge stats — 가독성 */
    .badge-stat__label { font-size: 0.78rem !important; line-height: 1.5 !important; margin-top: 4px !important; }
    .badge-stat__num { font-size: 1.5rem !important; }

    /* Badge card — 위아래 더 시원하게 (앞 단계 보강) */
    .badge-color-card h5 { line-height: 1.45 !important; }
    .badge-color-card__sub { line-height: 1.65 !important; }
}

