/* ======================================================================
   [01] DESIGN TOKENS & BASE
   ====================================================================== */

@font-face {
    font-family: 'GyeonggiTitle';
    src: url('../fonts/woff/Title_Light.woff') format('woff'),
        url('../fonts/Title_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'GyeonggiTitle';
    src: url('../fonts/woff/Title_Medium.woff') format('woff'),
        url('../fonts/Title_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

:root {
    /* Designer Tokens: Ocean Blue Medical Theme */
    --accent-green: #00B1C3;
    --accent-green-light: #7FB3E0;
    --accent-green-dark: #3A7BBD;
    --accent-green-soft: #EBF3FA;
    --text-main: #2a2a2a;
    --text-muted: #616161;
    --bg-base: #FFFFFF;
    --bg-offset: #F7FAF7;
    --border-color: #D8E8DA;

    /* Typography Tokens */
    --font-sans: 'GyeonggiTitle', -apple-system, sans-serif;
    --font-heading: 'GyeonggiTitle', sans-serif;

    /* Layout Tokens */
    --container-xl: 1440px;
    /* --section-padding: 160px; */
    /* --radius-sharp: 0px; */
    /* --radius-soft: 8px; */

    /* Motion tokens */
    --ease-out-quartic: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-premium: all 0.8s var(--ease-out-quartic);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Managed by JS for smoother control if needed */
    font-size: 18px;
    /* 기본 16px에서 18px로 증가 - 전체 rem 단위 폰트 크기 증가 */
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    word-break: keep-all;
    /* 한글 단어 단위 줄바꿈 */
}

/* Custom cursor disabled - using default cursor */

/* Custom Selection Color (Designer Touch) */
::selection {
    background: var(--accent-green);
    color: white;
}


/* ------------------------------------------------------------ */
/* -- Scroll Progress */
/* ------------------------------------------------------------ */

/* ------------------------------------------------------------ */
/* -- Scroll Progress
/* ------------------------------------------------------------ */
/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green-dark), var(--accent-green-light));
    z-index: 2000;
    width: 0%;
}


/* ------------------------------------------------------------ */
/* -- Typography */
/* ------------------------------------------------------------ */
/* Typography System */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.display-title {
    font-size: clamp(4rem, 12vw, 8.5rem);
    text-transform: uppercase;
}

.split-line {
    display: block;
    overflow: hidden;
}

.split-line>span {
    display: block;
    transform: translateY(120%);
    animation: split-in 1.1s var(--ease-out-expo) forwards;
}

.split-line:nth-child(2)>span {
    animation-delay: 0.12s;
}

.split-line:nth-child(3)>span {
    animation-delay: 0.24s;
}

.split-line:nth-child(4)>span {
    animation-delay: 0.36s;
}

@keyframes split-in {
    0% {
        transform: translateY(120%);
    }

    100% {
        transform: translateY(0%);
    }
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-green);
    display: block;
    margin-bottom: 1.5rem;
}


/* ======================================================================
   [02] HEADER & NAVIGATION
   ====================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: var(--bg-base);
    /* 상시 흰색 배경 */
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-premium);
}

/**
 * Header - Responsive Adjustments (Desktop Edge)
 */
@media (max-width: 1800px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 15px 8px;
        font-size: 24px;
    }

    /* Hide text in right nav links, keeping only icons */
    .right-nav li a span {
        display: none;
    }

    .right-nav .nav-icon {
        margin-right: 0;
    }
}



.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.container.nav-wrap {
    max-width: 100%;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    padding: 10px 0;
    margin-right: 30px;
}

.brand-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}



.nav-menu-wrap {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: clamp(20px, 4vw, 60px);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 3.5rem);
    list-style: none;
}

.main-nav {
    margin-left: auto;
}

.right-nav {
    gap: 14px;
}

.nav-icon {
    height: 22px;
    width: auto;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.nav-links a {
    text-decoration: none !important;
    font-weight: lighter;
    font-size: 26px;
    color: var(--text-muted);
    /* 기본 다크 텍스트 */
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}


.nav-links a.active {
    color: var(--accent-green) !important;
    font-weight: normal;
}

.nav-links a:hover {
    color: var(--text-main);
}




/* ------------------------------------------------------------ */
/* -- Mobile Menu Button */
/* ------------------------------------------------------------ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    /* 흰색 배경에 보이도록 수정 */
    transition: all 0.3s ease;
}



.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}



@media screen and (max-width: 1500px) {
    .brand-logo-img {
        height: 60px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu-wrap {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 80px 20px 40px;
        z-index: 999;
    }

    .nav-menu-wrap.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav {
        margin-left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .right-nav li {
        border-bottom: none !important;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: var(--text-main) !important;
    }

    .nav-links a.nav-highlight {
        color: var(--accent-green) !important;
    }

    .right-nav {
        flex-direction: row;
        width: 200px;
        margin: 0;
        border: none;
    }

}

/* ======================================================================
   [03] HERO SECTION
   ====================================================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-ment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}

.hero-ment-title {
    font-size: 130px;
    font-weight: 700;
    color: #fff;
    opacity: 0.7;
}

.hero-ment-sub {
    font-size: 30px;
    text-align: center;
    font-weight: 300;
    color: #fff;
    opacity: 0.7;
}

@media (max-width: 1400px) {
    .hero-ment-title {
        font-size: 5rem;
    }

    .hero-ment-sub {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-ment-title {
        font-size: 3rem;
    }

    .hero-ment-sub {
        font-size: 1rem;
    }

    .hero {
        height: auto;
        aspect-ratio: 16 / 9;
        margin-top: 80px;
    }

    .hero-bg-video {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero-bg-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Hero Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Hero Background Video */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    padding-top: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content.reveal {
    transform: none;
}

.hero-content.reveal.active {
    transform: none;
}

/* Hero Tag */
.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

.hero-tag-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tag-hospital {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

/* Hero Main Title */
.hero-main-title {
    font-family: 'GyeonggiTitle', sans-serif;
    font-size: 150px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 180px;
    margin-bottom: 40px;
    letter-spacing: 5.2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-main-title .accent-text {
    color: #9ECCA1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-weight: 400;
    white-space: nowrap;
    margin-bottom: 80px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
}

.scroll-text-en {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.scroll-arrow {
    margin-top: 10px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* Cleaned up unused image wrap styles */


/* ------------------------------------------------------------ */
/* -- Decorative Elements */
/* ------------------------------------------------------------ */
/* Decorative Background Elements */
.deco-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    filter: blur(1px);
}

.deco-plus {
    width: 40px;
    height: 40px;
    background:
        linear-gradient(90deg, transparent 45%, var(--accent-green) 45%, var(--accent-green) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, var(--accent-green) 45%, var(--accent-green) 55%, transparent 55%);
}

.deco-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.float-slow {
    animation: float 15s infinite linear;
}

.float-mid {
    animation: float 10s infinite linear;
}


/* ======================================================================
   [04] GLOBAL LAYOUT & REVEAL ANIMATIONS
   ====================================================================== */

section {
    padding: var(--section-padding) 0;
    position: relative;
    /* For deco elements */
    overflow: hidden;
}

#about,
#services {
    padding: calc(var(--section-padding) * 0.85) 0;
}

#branches,
#doctor {
    padding: calc(var(--section-padding) * 1.05) 0;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.grid-col-left {
    grid-column: 1 / 8;
}

.grid-col-right {
    grid-column: 8 / 13;
}

/* Clinics/Services List Aesthetic */
.clinic-list {
    margin-top: 4rem;
}

.clinic-item {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    transition: var(--transition-premium);
    cursor: pointer;
    position: relative;
}

.clinic-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.clinic-item:hover {
    padding-left: 2rem;
    background-color: var(--bg-offset);
}

.clinic-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.clinic-item .arrow {
    font-size: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-premium);
}

.clinic-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ------------------------------------------------------------ */
/* -- Reveal & Motion System */
/* ------------------------------------------------------------ */

:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
    --ease-momentum: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-p-slow: all 1.2s var(--ease-out-expo);
    --transition-p-mid: all 0.8s var(--ease-out-expo);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-p-slow);
    filter: blur(5px);
    pointer-events: none;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-down {
    transform: translateY(-50px);
}

.reveal-left {
    transform: translateX(50px);
}

.reveal-right {
    transform: translateX(-50px);
}

.reveal-zoom {
    transform: scale(0.95);
}

.reveal-blur {
    filter: blur(15px);
    transform: translateY(0);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

/* Stagger Logic (CSS Side) */
.stagger-wrap>* {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-p-mid);
}

.stagger-wrap.active>* {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions */
.clinic-item {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    display: block;
    transition: var(--transition-p-mid);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clinic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-green-soft);
    transform: translateX(-100%);
    transition: var(--transition-p-mid);
    z-index: -1;
}

.clinic-item:hover {
    padding-left: 3rem;
    color: var(--text-main);
}

.clinic-item:hover::before {
    transform: translateX(0);
}

.clinic-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.clinic-item .arrow {
    font-size: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-p-mid);
}

.clinic-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Clinic Accordion */
.clinic-header {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    width: 100%;
}

.clinic-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem 2.5rem;
    padding: 0;
    margin-left: 100px;
}

.clinic-sub-list span {
    font-size: 1.1rem;
    color: var(--text-sub);
    white-space: nowrap;
}

.clinic-sub-list span::before {
    content: '· ';
    color: var(--accent-green);
}

.clinic-item.expanded .clinic-sub-list,
.clinic-item:hover .clinic-sub-list {
    max-height: 200px;
    padding-top: 1.5rem;
}

.clinic-item.expanded .arrow,
.clinic-item:hover .arrow {
    opacity: 1;
    transform: rotate(45deg);
}

/* Button & Link Effects */
.btn-solid-green,
.btn-editorial-reservation {
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease, box-shadow 0.3s ease;
}

.btn-solid-green:hover,
.btn-editorial-reservation:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 194, 142, 0.3);
}

.detail-card-wrap {
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.detail-card-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

/* Image Hover Z-axis momentum */
.philosophy-img-placeholder img,
.doctor-profile-img-box img,
.detail-card-img-box img {
    transition: transform 1.5s var(--ease-out-expo);
}

.philosophy-img-placeholder:hover img,
.doctor-profile-img-box:hover img,
.detail-card-img-box:hover img {
    transform: scale(1.08);
}


/* ======================================================================
   [05] FOOTER
   ====================================================================== */

.site-footer {
    padding: 60px 0;
    background-color: #4a4a4a;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    width: 280px;
    height: auto;
    margin-bottom: 5px;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 비급여 진료비 안내 모달 오픈 링크 */
.pricing-guide-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.pricing-guide-link:hover {
    opacity: 0.7;
}

/* ------------------------------------------------------------ */
/* -- Pricing Guide Modal */
/* ------------------------------------------------------------ */
.pricing-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.pricing-modal-content {
    background-color: #fcfcfc;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.pricing-modal.show .pricing-modal-content {
    transform: scale(1);
}

.pricing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.pricing-modal-header h2 {
    font-size: 24px;
    font-weight: normal;
    color: var(--text-main);
    margin: 0;
}

.pricing-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.pricing-modal-close:hover {
    color: #00B1C3;
}

.pricing-modal-body {
    padding: 20px 30px 30px;
    overflow-y: auto;
    background-color: #fff;
}

.pricing-section {
    margin-bottom: 36px;
}

.pricing-section:last-child {
    margin-bottom: 0;
}

.pricing-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.pricing-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.pricing-date {
    font-size: 13px;
    color: #888;
}

.pricing-modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #333;
}

.pricing-table thead th {
    background-color: #4ecdc4;
    color: #fff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #3dbdb5;
}

.pricing-table tbody td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}

.pricing-table tbody tr.row-gray td {
    background-color: #f4f4f4;
}

.pricing-table tbody td:first-child {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .pricing-modal-body {
        padding: 16px 12px 20px;
    }
    .pricing-table {
        font-size: 13px;
    }
    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 8px 6px;
    }
    .pricing-section-header h3 {
        font-size: 17px;
    }
    .pricing-date {
        font-size: 11px;
    }
}


/* ------------------------------------------------------------ */
/* -- Footer — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px;
    }

    .footer-logo-text {
        font-size: 1.1rem;
    }

    .footer-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact {
        grid-column: span 12;
    }
}


/* ------------------------------------------------------------ */
/* -- Legacy Responsive — 1200px */
/* ------------------------------------------------------------ */

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .display-title {
        font-size: 5rem;
    }

    .hero {
        background-attachment: scroll;
        /* Better for mobile performance */
    }
}


/* ------------------------------------------------------------ */
/* -- Hero & Philosophy Overrides */
/* ------------------------------------------------------------ */


/* Hero Section Refinement */
.hero-text .section-label {
    color: #fff;
    opacity: 0.8;
}

.hero-text h1 {
    color: #fff;
}

.hero-text p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 2.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
}

/* About Section (Philosophy) */
.philosophy-grid-right {
    padding-top: 50px;
}

.philosophy-img-placeholder {
    background: var(--bg-offset);
    height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.philosophy-border-quote {
    padding-left: 2rem;
    border-left: 2px solid var(--accent-green);
    font-weight: 500;
}


/* ======================================================================
   [06] MAP PIN MARKERS
   ====================================================================== */
/* 1. Map pin container */
.map-pin {
    position: absolute;
    /* 지도 위에 둥둥 뜸 */
    transform: translate(-50%, -100%);
    /* 좌표의 기준점을 핀의 '뾰족한 끝'으로 맞춤 */
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    z-index: 10;
}

/* 2. 마커 이미지 설정 */
.pin-img {
    width: 40px;
    /* 마커 크기 (적절히 조절) */
    display: block;
    margin: 0 auto;
    transition: 0.3s;
}

/* 3. [상태 변화] active 클래스가 있을 때 */
/* (1) 평소엔 켜진(on) 마커 숨김 */
.pin-img.on {
    display: none;
}

/* (2) active면 꺼진(off) 마커 숨기고, 켜진(on) 마커 보여줌 + 확대 */
.map-pin.active .pin-img.off {
    display: none;
}

.map-pin.active .pin-img.on {
    display: block;
    transform: scale(2);
    /* 1.2배 커짐 */
    margin-bottom: 40px;
    animation: markerAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.map-pin.active {
    z-index: 20;
    /* 활성화된 핀이 제일 위로 올라오게 */
}

.pin-img.off {
    /* position: absolute; */
    /* margin-top: 10px; */
}


/* 4. [이름표] 마커 밑에 뜨는 박스 */
.pin-label {
    display: none;
    /* 평소엔 숨김 */
    background-color: #00b0c1;
    /* 청록색 배경 */
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: lighter;
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    /* 줄바꿈 방지 */
}

/* active일 때만 이름표 등장 */
.map-pin.active .pin-label {
    display: block;
    position: absolute;
    top: 100%;
    /* 마커 이미지의 바로 밑바닥(100% 지점)에서 시작 */
    left: 50%;
    /* 가로 중앙 */
    transform: translateX(-50%);
    /* 정확한 중앙 정렬 */
    animation: fadeInUp 0.3s;
    /* 살짝 떠오르는 애니메이션 */
}

/* 애니메이션 효과 (선택사항) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        /* ★중요: 앞의 -50%가 가로 정렬을 유지해줍니다 ★ */
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        /* ★중요: 여기도 -50% 유지 ★ */
        transform: translate(-50%, 0);
    }
}

/* 1. 마커 전용 애니메이션 정의 (새로 추가) */
/* 커지면서(scale) + 위로 올라옴(translateY) */
@keyframes markerAppear {
    from {
        opacity: 0;
        /* 시작: 투명하고, 약간 아래에 있고, 원래 크기 */
        transform: translateY(15px) scale(1);
    }

    to {
        opacity: 1;
        /* 끝: 선명하고, 제자리에 오고, 1.2배 커짐 */
        transform: translateY(0) scale(2);
    }
}


/* ======================================================================
   [07] BRANCH INTRODUCTION SECTION
   ====================================================================== */

.branches-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.branches-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.branches-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.branches-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 112, 96, 0.7) 0%, rgba(70, 90, 75, 0.75) 100%);
}

.branches-section .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------ */
/* -- Branch Header */
/* ------------------------------------------------------------ */
.branches-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 100px;
}

.branches-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: #00b0c1;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.branches-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 70px;
    font-size: 70px;
    font-weight: normal;
    color: #333;
}

.branches-title-icon {
    object-fit: contain;
    width: 570px;
}

.branches-title-accent {
    padding-bottom: 20px;
}


/* ------------------------------------------------------------ */
/* -- Branch Card & Map */
/* ------------------------------------------------------------ */

.branches-main-card {
    /* position: relative; */
    background: transparent;
    border: none;
    border-radius: 20px;
    overflow: visible;
}

/* Map Area */
.branches-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* 내용물을 위에서 아래로 쌓음 */
    height: 100%;
    /* 부모 높이를 꽉 채우게 설정 (중요!) */
    /* 기존 스타일 유지... */
}

.branches-image {
    position: relative;
    width: 100%;
}

/* 이미지 위에 겹쳐질 내용물 상자 */
.card-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 내용물 여백 (이미지 디자인에 맞춰 조절하세요) */
    padding: 20px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 25px;
    /* 1~4번 사이 간격 */
    /* ★ 핵심: 자식들을 왼쪽(start)으로 정렬 ★ */
    align-items: flex-start;
}


/* --- 세부 요소 스타일 --- */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 25px;
}

.header-title {
    font-size: 30px;
    font-weight: normal;
    color: #222;
    letter-spacing: 1px;
}

.card-photo img {
    width: 100%;
    border-radius: 15px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.info-row:last-child {
    transform: translateY(-10px) !important;
}

.info-icon {
    margin-top: 3px;
}

.info-text {
    font-weight: lighter;
    font-size: 24px;
    color: #222;
    line-height: 1.4;

}


.branches-map-area {
    display: flex;
    gap: 50px;
    height: 665px;
    /* isolation: isolate; */
}


.branches-map {
    position: relative;
    /* ★핵심★: 자식(버튼)이 나를 기준으로 위치를 잡게 함 */
}

.floating-btns {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: stretch;
    /* 모든 자식의 높이를 동일하게 맞춤 */
    gap: 15px;
    /* 버튼 사이 간격 줄임 */
    width: 95%;
    /* 좌우 여백 확보 */
    z-index: 10;
}

/* 개별 버튼과 가운데 그룹 공통 설정 */
.floating-btns>a,
.floating-btns .center-btn-group {
    flex: 1;
    /* 1:1:1 비율로 정확히 배분 */
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* 텍스트가 넘쳐도 영역 유지 */
}

/* 4. 개별 버튼 스타일 */
/* 버튼 자체 스타일 */
.floating-btns .map-btn {
    width: 100%;
    /* 부모 너비에 꽉 차게 */
    height: 60px;
    /* 높이 고정 (원하는 대로 조절) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #888;
    font-size: 30px;
    /* 글자 크기 적절히 조절 */
    font-weight: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* 한 줄 유지 */
    padding: 0 10px;
}

/* 활성화 버튼 */
.floating-btns .map-btn.active {
    background: #00b0c1;
    color: #fff;
}

/* 가운데 날짜 텍스트 그룹 */
.center-btn-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* 가운데 버튼 아래 날짜 텍스트 */
.open-date {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    /* 모바일 고려하여 크기 축소 */
    color: #00b0c1;
    margin-top: 8px;
    text-align: center;
    word-break: keep-all;
    font-weight: 400;
}

.shadow-effect {
    -webkit-filter: drop-shadow(0 0px 20px rgba(160, 160, 160, 0.3));
    width: 100%;
    display: block;
}


.map-btn {
    flex: 1;
    /* 두 버튼의 너비를 동일하게 */
    text-align: center;
    align-items: center;
    /* 세로 중앙 정렬 (필수!) */
    justify-content: center;
    /* 가로 중앙 정렬 (필수!) */
    height: 70px;
    border-radius: 30px;
    /* 아주 둥근 모서리 */
    text-decoration: none;
    /* 링크 밑줄 제거 */
    /* font-weight: bold; */
    font-size: 30px;
    transition: all 0.3s ease;
    /* [중요] 글자 높이 초기화 */
    line-height: 1;
    gap: 4px;
    padding-right: 10px;
    cursor: pointer;
}


/* ------------------------------------------------------------ */
/* -- Branches — Responsive 1400px */
/* ------------------------------------------------------------ */
@media (max-width: 1400px) {
    .branches-map-area {
        flex-direction: column;
        height: auto;
        /* 고정 높이 1500px 대신 내용물에 맞게 조절 */
        gap: 50px;
        /* 지도와 카드 사이 간격 */
        align-items: center;
        /* 중앙 정렬 */
    }

}


.branches-info-btn {
    display: flex;
    /* 가로로 나열 */
    gap: 26px;
    /* 버튼 사이 간격 */
    margin-top: 20px;
    position: bottom;
    margin-top: auto;
}


/* 왼쪽: 테두리 버튼 */
.btn-come {
    display: flex;
    border: 1.5px solid #00b0c1;
    color: #00b0c1;
    background-color: #fff;
}


/* 오른쪽: 색상이 채워진 버튼 */
.btn-homepage {
    display: flex;
    background-color: #00b0c1;
    color: #fff;
    border: 1.5px solid #00b0c1;
}


/* 마우스 올렸을 때 피드백 */
.map-btn:hover {
    opacity: 0.8;
}


/* ------------------------------------------------------------ */
/* -- Branch Markers */
/* ------------------------------------------------------------ */
.branch-marker {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.marker-label {
    background: linear-gradient(135deg, #5a9a6e 0%, #4a8a5e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(90, 154, 110, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.branch-marker.active .marker-label {
    opacity: 1;
    transform: translateY(0);
}

.marker-icon {
    width: auto;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 기본 상태: inactive 보임, active 숨김 */
.branch-marker .marker-active {
    display: none;
}

.branch-marker .marker-inactive {
    display: block;
}

/* active 상태: active 보임, inactive 숨김 */
.branch-marker.active .marker-active {
    display: block;
}

.branch-marker.active .marker-inactive {
    display: none;
}

/* 호버 시에도 active 이미지 표시 */
.branch-marker:hover .marker-active {
    display: block;
}

.branch-marker:hover .marker-inactive {
    display: none;
}

.branch-marker:hover .marker-label {
    opacity: 1;
    transform: translateY(0);
}


.branch-image-box {
    height: 240px;
    overflow: hidden;
}

.branch-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-image-box:hover img {
    transform: scale(1.05);
}

.branch-detail-box {
    padding: 30px;
}

.branch-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.branch-detail-logo {
    height: 50px;
    width: auto;
}

.branch-detail-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.branch-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.branch-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.branch-info-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.branch-detail-buttons {
    display: flex;
    gap: 12px;
}

.btn-branch-primary {
    flex: 1;
    padding: 14px 20px;
    background: var(--accent-green);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-branch-primary:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
}

.btn-branch-secondary {
    flex: 1;
    padding: 14px 20px;
    background: white;
    color: var(--text-main);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}

.btn-branch-secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}


/* ------------------------------------------------------------ */
/* -- Branch Footer Text */
/* ------------------------------------------------------------ */
.branches-footer-text {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.branches-footer-text .highlight-text {
    color: white;
    font-weight: 700;
}

/* Tabs */
.branches-tabs-wrapper {
    text-align: center;
}

.branches-tabs {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 5px;
}

.branch-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.branch-tab .tab-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.branch-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.branch-tab.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #5a9a6e 0%, #7ec8a3 50%, #5a9a6e 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.branch-tab.active .tab-icon {
    filter: none;
}

/* 기본 컨테이너 설정 */
.banner-container {
    position: relative;
    display: block;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    margin-top: 200px;
}

/* 왼쪽 텍스트 영역 */
.info-box {
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.philosophy-text {
    color: #00bcd4;
    font-weight: lighter;
    font-size: 24px;
    margin-bottom: 10px;
}

/* 로고와 타이틀을 나란히 배치하는 설정 */
.title-group {
    display: flex;
    align-items: flex-start;
    /* 로고를 첫 줄 텍스트 높이에 맞춤 */
    gap: 15px;
    /* 로고와 글자 사이 간격 */
    margin-bottom: 25px;
}

.title-logo {
    width: 138px;
    /* 마크 크기 */
    height: auto;
    margin-top: 5px;
    /* 텍스트와 높이 밸런스 조정 */
}

.main-title {
    display: flex;
    align-items: center;
    font-size: 64px;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: lighter;
}

.main-title-span {
    margin-left: 18px;
}

.highlight {
    color: #000000;
    font-weight: bold;
}

.highlight2 {
    color: #00bcd4;
    font-weight: 600;
}

.highlight3 {
    color: #414141;
    font-weight: 400;
}

.sub-description {
    font-size: 30px;
    line-height: 1.6;
    color: #666;
    font-weight: lighter;
}

/* 오른쪽 이미지 영역 */
.image-box {
    position: absolute;
    /* 레이아웃 흐름에서 제외 */
    right: -200px;
    /* 오른쪽 끝에 붙임 */
    bottom: 0px;
    /* 바닥에 붙임 */
    z-index: 1;
    /* 글자보다 아래에 배치 */
    width: 50%;
    /* 적당한 너비 설정 */
    pointer-events: none;
    /* 이미지가 글자 클릭을 방해하지 않게 설정 */
}

.image-box img {
    max-width: 1078px;
    height: auto;
}

.mobile-only {
    display: none;
}

/* --- 모바일 대응 (반응형) --- */
@media (max-width: 1400px) {

    .mobile-only {
        display: block;
    }

    .info-box {
        padding-bottom: 0px;
    }

    .main-title {
        flex-direction: column;
    }

    .main-title-span {
        margin-top: 20px;
    }

    .banner-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-top: 80px;
    }


    .image-box {
        position: relative;
        left: 50%;
        bottom: 0px;
        z-index: 1;
        width: 50%;
        pointer-events: none;
        margin-top: 50px;
        /* 이미지 상단 여백 */
        justify-content: center;
        transform: translate(-50%, -10%);
        margin-right: 270px;
    }

    .main-title {
        font-size: 60px;
    }

    .sub-description {
        font-size: 18px;
    }



    .image-box img {
        max-width: 500px;
        height: auto;
        display: block;
    }


    .branches-info-btn {
        display: flex;
        /* 가로로 나열 */
        gap: 26px;
        /* 버튼 사이 간격 */
        margin-top: 20px;
        position: bottom;
        margin-top: 30px;
    }

    .branches-title-icon {
        width: 500px;
    }

    .branches-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 70px;
        font-size: 50px;
        font-weight: normal;
        color: #333;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 40px;
    }

    .header-title {
        font-size: 20px;
        font-weight: normal;
        color: #222;
        letter-spacing: 1px;
    }

    .info-text {
        font-weight: lighter;
        font-size: 20px;
        color: #222;
        line-height: 1.4;
    }

    .card-photo img {
        width: 100%;
        border-radius: 15px;
    }

    .shadow-effect {
        -webkit-filter: drop-shadow(0 0px 20px rgba(160, 160, 160, 0.3));
        width: 100%;
        display: block;
        height: 400px;
        visibility: hidden
    }

    /* 이미지 위에 겹쳐질 내용물 상자 */
    .card-content-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* 내용물 여백 (이미지 디자인에 맞춰 조절하세요) */
        padding: 16px 16px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* 1~4번 사이 간격 */
        /* ★ 핵심: 자식들을 왼쪽(start)으로 정렬 ★ */
        align-items: flex-start;
    }

    .map-btn {
        flex: 1;
        text-align: center;
        align-items: center;
        justify-content: center;
        height: 70px;
        border-radius: 30px;
        text-decoration: none;
        /* font-weight: bold; */
        font-size: 20px;
        transition: all 0.3s ease;
        line-height: 1;
        gap: 4px;
        padding-right: 10px;
        cursor: pointer;
    }

    .branches-info-btn {
        display: flex;
        gap: 26px;
        margin-top: 0px;
        position: bottom;
        margin-top: 15px;
    }

    .branches-title-icon {
        display: none;
    }

    .branches-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
        font-size: 40px;
        font-weight: normal;
        color: #333;
    }

    /* 1. 세로 배열로 변경 및 높이 제한 해제 */
    .branches-map-area {
        flex-direction: column;
        height: auto;
        /* 고정 높이 1500px 대신 내용물에 맞게 조절 */
        gap: 30px;
        /* 지도와 카드 사이 간격 */
        align-items: center;
        /* 중앙 정렬 */
    }

    /* 2. 지도 영역 너비 조정 */
    .branches-map {
        width: 100%;
        max-width: 700px;
        /* 너무 커지지 않게 제한 */
        margin: 0 auto;
    }

    .branches-map-img {
        width: 100%;
        /* max-width 대신 width 100%로 유동성 확보 */
        height: auto;
    }


    .open-date {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        /* 모바일 고려하여 크기 축소 */
        color: #00b0c1;
        margin-top: 8px;
        text-align: center;
        word-break: keep-all;
        font-weight: 400;
    }


    /* 4. 개별 버튼 스타일 */
    .floating-btns .map-btn {
        flex: 1;
        /* 3등분 */
        background: #fff;
        text-align: center;
        border-radius: 50px;
        text-decoration: none;
        color: #888;
        height: 30px;
        font-weight: lighter;
        font-size: 18px;
    }


    .pin-label {
        display: none;
        /* 평소엔 숨김 */
        background-color: #00b0c1;
        /* 청록색 배경 */
        color: white;
        padding: 8px 15px;
        border-radius: 30px;
        font-size: 16px;
        font-weight: lighter;
        margin-top: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        /* 줄바꿈 방지 */
    }

    .pin-img {
        width: 30px;
        /* 마커 크기 (적절히 조절) */
        display: block;
        margin: 0 auto;
        transition: 0.3s;
    }

    .map-pin.active .pin-img.on {
        display: block;
        transform: scale(2);
        /* 1.2배 커짐 */
        margin-bottom: 30px;
        animation: markerAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

}

.branch-marker .icon-sphere img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.branch-marker.active .icon-sphere img {
    width: 38px;
    height: 38px;
}

.branch-marker .indicator-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--accent-green);
    display: none;
}

.branch-marker.active .indicator-arrow {
    display: block;
}

.detail-card-wrap {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.detail-card-img-box {
    height: 250px;
    overflow: hidden;
}

.detail-card-img-box img {
    transition: opacity 0.5s ease, transform 0.8s var(--ease-out-expo);
}

.detail-card-img-box img.is-switching {
    opacity: 0;
    transform: scale(1.03);
}

.detail-card-body {
    padding: 35px;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-card-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hospital-main-label {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.branch-accent-label {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-left: 8px;
}

.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-info-row.start {
    align-items: flex-start;
}

.icon-bg-circle {
    width: 36px;
    height: 36px;
    background: #EDF6EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-bold-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.text-muted-address {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-action-group {
    display: flex;
    gap: 12px;
}

.btn-solid-green {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--accent-green);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-solid-green:hover {
    background: var(--accent-green-dark);
}

.btn-bordered-gray {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}

.btn-bordered-gray:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tabs-bottom-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.tabs-pill-bg {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    gap: 5px;
}


/* ======================================================================
   [08] SERVICES / ABOUT SECTION
   ====================================================================== */

.clinic-section-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.clinic-ordinal {
    font-weight: 900;
    color: var(--border-color);
    font-size: 1.5rem;
}


/* ------------------------------------------------------------ */
/* -- Doctor Section — Editorial */
/* ------------------------------------------------------------ */

.doctor-profile-img-box {
    background: var(--bg-offset);
    height: 700px;
    width: 100%;
    overflow: hidden;
}

.doctor-editorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-name-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.doctor-spec-label {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 800;
    margin-bottom: 3rem;
}

.doctor-career-bullets {
    list-style: none;
    line-height: 2.2;
    font-weight: 600;
}


/* Location Map Styles */
.location-section {
    border-top: 1px solid var(--border-color);
}

.location-title {
    font-size: 44px;
}

.location-hospital-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-address-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.location-phone-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-green);
}

.map-placeholder-container {
    background: var(--bg-offset);
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.map-placeholder-text {
    font-weight: 700;
    color: var(--text-muted);
}

/* Floating Elements */
.floating-ui-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
}

.btn-editorial-reservation {
    background: var(--text-main);
    color: white;
    padding: 1.5rem 3rem;
    font-weight: 800;
    text-decoration: none;
    display: block;
    letter-spacing: 0.1em;
}


/* ======================================================================
   [09] DOCTORS SECTION
   ====================================================================== */

.doctors-section {
    position: relative;
    padding: 100px 0 0;
    overflow: hidden;
    min-height: 900px;
    /* 고정 높이 대신 최소 높이 적용하여 유동적으로 늘어남 */
    margin-top: 100px;
}


.doctors-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.doctors-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.doctors-section .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 3000px;
    width: 100%;
}


/* ------------------------------------------------------------ */
/* -- Doctors Header */
/* ------------------------------------------------------------ */

.doctors-header {
    position: relative;
    text-align: center;
    top: -50px;
}

.doctors-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--accent-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.doctors-title {
    font-size: 70px;
    font-weight: lighter;
    color: var(--text-main);
}

.doctors-title .text-accent {
    font-weight: normal;
}


/* ------------------------------------------------------------ */
/* -- Doctors Slider */
/* ------------------------------------------------------------ */

.doctors-slider {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    position: relative;
    /* absolute 해제하여 상단 헤더와 자연스럽게 떨어짐 */
    margin-top: auto;
    /* 상단 요소와 일정한 간격 유지하며 바닥으로 붙음 */
    max-width: 3000px;
    width: 100%;
}

.slider-arrow {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 320px;
    z-index: 10;
    opacity: 0;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 0, 0, 0.2);
}

.slider-arrow img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.7;
}


/* ------------------------------------------------------------ */
/* -- Doctor Content & Info */
/* ------------------------------------------------------------ */

.doctor-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1400px;
    width: 100%;
    margin: 50px auto 0;
}

.doctor-image {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 464px;
    height: 610px;
    border-radius: 80px;
    background-color: #EDF1F3;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* 이미지는 바닥에 붙도록 유지 */
    overflow: hidden;
}

.doctor-image img {
    height: 550px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.doctor-image img.slide-out-left {
    opacity: 0;
    transform: translateX(-50px);
}

.doctor-image img.slide-out-right {
    opacity: 0;
    transform: translateX(50px);
}

.doctor-image img.slide-in-left {
    animation: slideInFromRight 0.4s ease forwards;
}

.doctor-image img.slide-in-right {
    animation: slideInFromLeft 0.4s ease forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ------------------------------------------------------------ */
/* -- Doctor Background Fade Animation */
/* ------------------------------------------------------------ */

.doctors-bg-img.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctors-bg-img.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ------------------------------------------------------------ */
/* -- Doctor Info Panel */
/* ------------------------------------------------------------ */

.doctor-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.doctor-info.slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
}

.doctor-info.slide-out-right {
    opacity: 0;
    transform: translateX(30px);
}

.doctor-info.slide-in-left {
    animation: infoSlideInFromRight 0.4s ease forwards;
}

.doctor-info.slide-in-right {
    animation: infoSlideInFromLeft 0.4s ease forwards;
}

@keyframes infoSlideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes infoSlideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doctor-specialty {
    display: block;
    font-size: 30px;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.doctor-name {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 15px;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
}

.doctor-position {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 30px;
}


/* ------------------------------------------------------------ */
/* -- Doctor Career Grid */
/* ------------------------------------------------------------ */

.doctor-career-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 60px;
    justify-content: start;
}

.doctor-career-list {
    list-style: none;
}

.doctor-career-list li {
    font-size: 24px;
    padding-bottom: 3px;
    color: var(--text-muted);
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
    font-weight: lighter;
}

.doctor-career-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
}

.doctor-career-list li.career-divider {
    height: 1px;
    background: var(--border-color);
    padding: 0;
    margin: 10px 0;
}

.doctor-career-list li.career-bold {
    font-weight: 500;
    color: var(--text-main);
}

.doctor-career-list li.career-divider::before {
    display: none;
}


@media (max-width: 1400px) {
    .doctors-section {
        height: auto;
        min-height: 1500px;
        padding-bottom: 40px;
        margin-top: 50px;
    }

    .doctors-slider {
        position: relative;
        align-items: center;
    }

    .doctor-content {
        flex-direction: column;
        margin-top: 0px;
    }

    .doctor-image {
        height: 450px;
    }

    .doctor-image img {
        height: 400px;
    }

    .doctor-info {
        padding-bottom: 40px;
    }

    .slider-arrow {
        margin: 0;
    }

    .doctor-career-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 700px;
        margin: auto;
    }

    .doctor-career-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .doctors-slider {
        flex-direction: column;
        gap: 20px;
    }

    .doctors-title {
        font-size: 40px !important;
    }

    .slider-arrow {
        position: relative;
        width: 50px;
        height: 50px;
    }

    .slider-prev,
    .slider-next {
        order: 2;
    }

    .doctor-content {
        order: 1;
    }

    .doctor-info {
        padding-bottom: 30px;
    }

    .doctor-info-card {
        padding: 25px;
    }

    .doctor-name {
        font-size: 1.8rem;
    }

    .doctor-career-grid {
        font-size: 16px;
    }
}


/* ======================================================================
   [10] TREATMENT SECTION
   ====================================================================== */

.treatment-section {
    padding: 100px 0;
    background: var(--bg-base);
    position: relative;
}

.treatment-background {
    position: absolute;
}

.treatment-header {
    position: relative;
    margin-bottom: 90px;
}

.treatment-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--accent-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.treatment-subtitle {
    font-size: 24px;
    font-weight: lighter;
    color: var(--text-main);
    margin-bottom: 15px;
}

.treatment-title {
    font-size: 60px;
    font-weight: lighter;
    color: var(--text-main);
    line-height: 1.3;
}

.treatment-title .text-accent {
    font-weight: normal;
}

.treatment-arrow-decor {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 400px;
    height: auto;
}


/* ------------------------------------------------------------ */
/* -- Treatment Grid — Zigzag Layout */
/* ------------------------------------------------------------ */

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.treatment-card {
    position: relative;
}


.treatment-card-image {
    position: relative;
    overflow: hidden;
    height: 340px;
    width: 320px;
    margin-bottom: 40px;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.treatment-card-image img {
    width: 100%;
    height: 340px;
    width: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.treatment-card:hover .treatment-card-image img {
    transform: scale(1.05);
}

.treatment-card-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
    font-weight: normal;
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 5px solid var(--accent-green);
}

.treatment-card-desc {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: lighter;
    line-height: 1.6;
}


/* ------------------------------------------------------------ */
/* -- Treatment — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 320px);
        justify-content: center;
        gap: 60px 40px;
        /* 세로 60px, 가로 40px 간격 */
    }

    .treatment-title {
        font-size: 60px;
    }

    .treatment-arrow-decor {
        max-width: 300px;
        z-index: -1;
    }

    .treatment-card-content {
        width: 320px;
    }

    .treatment-card-image {
        margin-bottom: 20px;
    }

    .treatment-card-title {
        font-size: 26px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .treatment-card-desc {
        font-size: 18px;
        line-height: 1.5;
        word-break: keep-all;
    }
}

@media (max-width: 768px) {
    .treatment-section {
        padding: 80px 0;
    }

    .treatment-title {
        font-size: 2rem;
    }

    .treatment-header {
        position: relative;
        margin-bottom: 40px;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        /* 카드들을 가운데 정렬 */
        gap: 40px;
    }

    .treatment-arrow-decor {
        display: none;
    }

    .treatment-card {
        width: 100%;
        max-width: 320px;
        /* 기존 너비 유지하며 중앙으로 오게 함 */
    }

    .treatment-card-content {
        width: 100%;
    }

    .treatment-card-image {
        width: 100%;
        height: 220px;
        /* 전체 카드 너비에 맞추고 높이 조절 */
    }

    .treatment-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* ======================================================================
   [11] CLINIC SECTION
   ====================================================================== */

.clinic-section {
    position: relative;
    padding: 240px 0 200px;
    min-height: 1300px;
    /* Fix the section height to stabilize the background image */
    overflow: hidden;
}

.clinic-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.clinic-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.clinic-section .container {
    position: relative;
    padding: 160px 0;
    z-index: 1;
}


/* ------------------------------------------------------------ */
/* -- Clinic Header */
/* ------------------------------------------------------------ */

.clinic-header {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clinic-header-icon {
    margin-bottom: 25px;
}

.clinic-header-icon img {
    width: 80px;
    height: auto;
}

.clinic-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--bg-base);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.clinic-title {
    font-size: 70px;
    font-weight: lighter;
    color: white;
    line-height: 1.2;
}

.clinic-title .text-accent {
    font-weight: normal;
}


/* ------------------------------------------------------------ */
/* -- Clinic Tabs */
/* ------------------------------------------------------------ */

.clinic-tabs {
    display: flex;
    justify-content: space-between;
    /* Spread items to fill width */
    margin-bottom: 90px;
    /* Increased margin */
    max-width: 1400px;
    /* Updated max-width */
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    /* Allows wrapping for smaller screens */
}

.clinic-tab {
    position: relative;
    width: 320px;
    /* Fixed width for 4 items in 1400px */
    height: 320px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    /* Added to help centering */
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Allow 120% image to show */
}

.clinic-tab .tab-img {
    width: 120%;
    /* Keep user's desired size */
    height: 120%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    position: absolute;
    /* Position relative to .clinic-tab */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Perfectly center the 120% image */
}

.clinic-tab .tab-img-active {
    opacity: 0;
}

.clinic-tab .tab-img-inactive {
    opacity: 1;
}

.clinic-tab.active .tab-img-active {
    opacity: 1;
}

.clinic-tab.active .tab-img-inactive {
    opacity: 0;
}


/* ------------------------------------------------------------ */
/* -- Clinic Arrow Indicator */
/* ------------------------------------------------------------ */

.clinic-arrow-indicator {
    position: relative;
    height: 40px;
    margin-bottom: 90px;
}

.clinic-arrow-indicator img {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: auto;
    transition: left 0.3s ease;
}


/* ------------------------------------------------------------ */
/* -- Clinic Detail Panel */
/* ------------------------------------------------------------ */

.clinic-detail {
    max-width: 1400px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 40px;
    word-break: break-all;
}

.clinic-detail-card {
    background: white;
    border-radius: 40px;
    padding: 40px 50px;
    display: flex;
    gap: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    /* Align to top to wrap content tightly */
    min-height: auto;
    /* Remove fixed/min height to allow shrinking */
}

.clinic-detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-top {
    margin-bottom: 25px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 20px;
}

.blue-plus {
    color: #00BCD4;
    font-weight: 800;
    margin-right: 8px;
    font-size: 1.8rem;
}

.treatment-list-title {
    font-size: 40px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.clinic-detail-desc {
    font-size: 26px;
    color: #666;
    line-height: 1.6;
}

.clinic-treatment-list {
    flex: 1;
}

.treatment-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 30px;
}

.treatment-tag {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 30px;
    color: #444;
    font-weight: 500;
}

.check-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.clinic-detail-right {
    width: 480px;
    flex-shrink: 0;
}

.clinic-detail-image {
    width: 100%;
    height: 480px;
    /* Stable fixed height for the image */
    border-radius: 20px;
    overflow: hidden;
}

.clinic-detail-image img {
    width: 100%;
    height: 480px;
    /* Match container to prevent stretching */
    object-fit: cover;
}


/* ------------------------------------------------------------ */
/* -- Clinic Scrolling Ticker */
/* ------------------------------------------------------------ */

.clinic-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
    /* Changed to transparent to blend with background if needed */
    padding: 20px 0;
    z-index: 1;
    margin-top: -20px;
    /* Slight overlap with the background if desired, or set to 0 */
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: tickerLoop 30s linear infinite;
}

.ticker-wrapper span {
    font-size: 100px;
    /* Large text as in image */
    font-weight: lighter;
    /* Light blue transparent color */
    color: rgba(0, 188, 212, 0.15);
    padding-right: 50px;
    letter-spacing: 5px;
}

.ticker-wrapper span strong {
    font-weight: normal;
    /* Bold for SEOUL BARUN */
}

@keyframes tickerLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ------------------------------------------------------------ */
/* -- Clinic Utilities                                       -- */
/* ------------------------------------------------------------ */

.clinic-detail-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 1;
}

.clinic-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.clinic-image-label .label-en {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.clinic-image-label .label-ko {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
}



/* ------------------------------------------------------------ */
/* -- Clinic Responsive                                      -- */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {
    .clinic-title {
        font-size: 60px;
    }

    .clinic-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto 90px;
        gap: 30px 0;
    }

    .clinic-tab {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .clinic-detail-card {
        display: grid;
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    /* Target Image between Desc and List */
    .detail-top {
        grid-row: 1;
        margin-bottom: 0px;
    }

    .clinic-detail-right {
        grid-row: 2;
        width: 100%;
    }

    .clinic-treatment-list {
        grid-row: 3;
    }

    .clinic-detail-image {
        height: 350px;
    }


    .treatment-tags {
        gap: 15px;
        padding-top: 20px;
    }

    .ticker-wrapper {
        animation: tickerLoop 10s linear infinite;
    }

}


@media (max-width: 768px) {

    .clinic-section .container {
        padding: 40px 0px;
    }

    .clinic-title {
        font-size: 40px;
    }

    .clinic-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }


    .clinic-detail-card {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .check-icon {
        width: 20px;
        height: 20px;
    }

    .treatment-tags {
        gap: 15px;
    }

    .treatment-tag {
        font-size: 18px;
        gap: 10px;
    }

    .clinic-detail-desc {
        font-size: 1rem;
    }

    .treatment-list-title {
        font-size: 1.6rem;
    }

    .clinic-arrow-indicator {
        margin-bottom: 40px;
    }

    .ticker-wrapper {
        animation: tickerLoop 5s linear infinite;
    }

    .ticker-wrapper span {
        font-size: 60px !important;
    }
}


/* ======================================================================
   [12] NON-SURGICAL TREATMENT SECTION
   ====================================================================== */

.nonsurgical-section {
    padding: 100px 0;
    background-size: cover;
    position: relative;
}

.nonsurgical-section-white {
    background: white;
}

.nonsurgical-section-gray {
    background-color: #EDF1F3;
}

#nonsurgical {
    padding-bottom: 0;
}

#nonsurgical .nonsurgical-title {
    margin-bottom: 0;
}

#nonsurgical .nonsurgical-content {
    background-color: #EDF1F3;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px calc(50vw - 50%);
    margin-bottom: 0;
}

.nonsurgical-header {
    text-align: center;
    margin-bottom: 60px;
}

.nonsurgical-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--accent-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.nonsurgical-title {
    font-size: 70px;
    font-weight: lighter;
    color: var(--text-main);
    margin-bottom: 100px;
}

.nonsurgical-title .text-accent {
    font-weight: normal;
}

.nonsurgical-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.nonsurgical-content-reverse {
    flex-direction: row-reverse;
}

.nonsurgical-left {
    flex: 1;
}

.nonsurgical-right {
    flex: 1;
}

.mobile-visible-benefits {
    display: none;
}

.nonsurgical-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nonsurgical-item-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nonsurgical-item-title {
    font-size: 52px;
    font-weight: normal;
    color: var(--text-main);
}

.nonsurgical-item-desc {
    font-size: 24px;
    font-weight: lighter;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.nonsurgical-benefits {
    padding: 30px 0;
}

.benefits-title {
    font-size: 34px;
    font-weight: normal;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 30px;
    color: var(--text-main);
    font-weight: lighter;
    margin-bottom: 15px;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefit-checkbox {
    position: relative;
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: inline-block;
}

.benefit-checkbox .checkbox-box {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.nonsurgical-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.nonsurgical-image img {
    width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 1400px) {
    .nonsurgical-content {
        flex-direction: column;
        gap: 40px;
    }


    .nonsurgical-title {
        font-size: 60px;
    }


    .nonsurgical-left,
    .nonsurgical-right {
        width: 100%;
        order: unset;
    }

    /* 이미지가 왼쪽에 있는 섹션(Shockwave, Prolo)은 모바일에서 텍스트 먼저 나오게 순서 조정 */
    .nonsurgical-section-white .nonsurgical-right {
        order: 1;
        /* 텍스트 */
    }

    .nonsurgical-section-white .nonsurgical-left {
        order: 2;
        /* 이미지 */
    }

    .nonsurgical-section-white .mobile-visible-benefits {
        order: 3;
        /* 장점 */
    }

    /* 이미지가 오른쪽에 있는 섹션(Nerve Block, Ultrasound) 순서 */
    .nonsurgical-section:not(.nonsurgical-section-white) .nonsurgical-left {
        order: 1;
        /* 텍스트 */
    }

    .nonsurgical-section:not(.nonsurgical-section-white) .nonsurgical-right {
        order: 2;
        /* 이미지 */
    }

    .nonsurgical-section:not(.nonsurgical-section-white) .mobile-visible-benefits {
        order: 3;
        /* 장점 */
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-visible-benefits {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .nonsurgical-image {
        margin-bottom: 20px;
    }
}


@media (max-width: 768px) {

    .benefits-list li {
        font-size: 20px;
    }

    .nonsurgical-section {
        padding: 50px 0 80px 0;
    }

    .nonsurgical-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .nonsurgical-item-title {
        font-size: 30px;
    }

    .nonsurgical-benefits {
        padding: 0px;
    }

    .benefits-title {
        font-size: 26px;
    }
}


/* ======================================================================
   [13] MANUAL THERAPY SECTION
   ====================================================================== */

.manual-therapy-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: #ffffff;
}

.manual-therapy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/doctor-group-photo.png') no-repeat center top;
    background-size: 100% auto;
    pointer-events: none;
}

.manual-therapy-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 120px;
}

.manual-therapy-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--accent-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.manual-therapy-title {
    font-size: 70px;
    font-weight: lighter;
    color: var(--text-main);
    margin-bottom: 100px;
}

.manual-therapy-title .text-accent {
    font-weight: normal;
}


/* ------------------------------------------------------------ */
/* -- Manual Therapy — Intro Block */
/* ------------------------------------------------------------ */

.manual-therapy-intro {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
    position: relative;
}


.intro-title {
    font-size: 52px;
    font-weight: normal;
    color: var(--text-main);
    margin-bottom: 30px;
}

.intro-title .text-accent {
    font-weight: normal;
}

.intro-desc {
    font-size: 30px;
    font-weight: lighter;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    word-break: keep-all;
}


/* ------------------------------------------------------------ */
/* -- Manual Therapy — 3-Step Process */
/* ------------------------------------------------------------ */

.manual-therapy-process {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    margin-bottom: 120px;
    padding: 0 20px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 320px;
}

.process-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-label {
    font-size: 36px;
    color: #333;
    font-weight: normal;
    line-height: 1.4;
    text-align: center;
}

.process-arrow {
    padding-top: 140px;
}

.process-arrow img {
    width: 90px;
    height: auto;
}


/* ------------------------------------------------------------ */
/* -- Manual Therapy — Program Cards */
/* ------------------------------------------------------------ */

.manual-therapy-programs {
    padding-top: 100px;
}

.programs-title {
    font-size: 52px;
    font-weight: normal;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 80px;
}

.programs-title .text-accent {
    color: #00B1C3;
    font-weight: normal;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.program-card {
    background: #fff;
}

.program-card-img {
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 30px;
}

.program-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.program-card-title {
    font-size: 24px;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-card-title .bar {
    color: #00B1C3;
    font-weight: bold;
}

.program-card-desc {
    font-size: 22px;
    font-weight: lighter;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}


/* ------------------------------------------------------------ */
/* -- Manual Therapy — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1200px) {
    .manual-therapy-process {
        gap: 20px;
    }

    .process-icon {
        width: 220px;
        height: 220px;
    }

    .intro-desc {
        font-size: 30px;
    }


}

@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manual-therapy-section {
        padding: 40px 0;
    }

    .manual-therapy-process {
        gap: 30px;
    }

    .manual-therapy-title {
        font-size: 60px;
    }


    .process-arrow {
        display: none;
    }
}

@media (max-width: 768px) {

    .manual-therapy-intro {
        margin-bottom: 0px;
    }


    .manual-therapy-title {
        font-size: 40px;
        margin-bottom: 30px;
    }


    .intro-title {
        font-size: 30px;
    }

    .manual-therapy-process {
        flex-wrap: wrap;
        gap: 40px;
        margin-bottom: 30px;
    }

    .process-icon {
        width: 200px;
        height: 200px;
    }

    .process-label {
        font-size: 24px;
    }

    .process-step {
        gap: 10px;
    }


    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .programs-title {
        font-size: 36px;
        text-align: center;
    }

    .program-image {
        height: 180px;
    }

    .intro-desc {
        font-size: 20px;
    }
}


/* ======================================================================
   [14] PAIN SYMPTOMS SECTION
   ====================================================================== */

.pain-symptoms-section {
    padding: 50px 0;
    background: #ffffff;
}

.pain-symptoms-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pain-symptoms-line {
    width: 1px;
    height: 60px;
    background: #333333;
    margin-bottom: 30px;
}

.pain-symptoms-quote {
    font-size: 60px;
    font-weight: lighter;
    text-align: center;
    color: #333333;
    letter-spacing: -0.02em;
    margin: 40px 0;
}

.pain-symptoms-quote .text-accent {
    color: var(--accent-green);
    font-weight: normal;
}

.pain-symptoms-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.pain-symptom-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-symptom-item.image {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    background-color: #00808a;
    /* Base dark teal color from design */
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.pain-symptom-item.image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.pain-symptom-item.desc {
    background: #ffffff;
    padding: 40px;
    display: flex;
    align-items: center;
}

.symptom-text-box {
    width: 100%;
    margin: 0 auto;
}

.symptom-title {
    font-size: 50px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.symptom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 22px;
    font-size: 30px;
    color: #444444;
    line-height: 1.6;
    font-weight: 300;
}

.symptom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 35px;
    height: 35px;
    background: url('../images/check-box.png') no-repeat center center;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(58%) sepia(82%) rotate(135deg) brightness(95%) contrast(85%);
    /* Adjust to look like the blue/cyan checkbox */
}


/* ------------------------------------------------------------ */
/* -- Pain Symptoms — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {
    .pain-symptoms-content {
        grid-template-columns: 1fr;
    }

    .pain-symptom-item.image {
        min-height: 300px;
    }

    .pain-symptom-item.desc {
        padding: 40px 30px;
    }


    /* Row 1: 이미지(1) -> 설명(2) - 순서 유지 */
    .pain-symptom-item:nth-child(1) {
        order: 1;
    }

    .pain-symptom-item:nth-child(2) {
        order: 2;
    }

    /* Row 2: 설명(3) -> 이미지(4) - 이미지 먼저 */
    .pain-symptom-item:nth-child(3) {
        order: 4;
    }

    .pain-symptom-item:nth-child(4) {
        order: 3;
    }

    /* Row 3: 이미지(5) -> 설명(6) - 순서 유지 */
    .pain-symptom-item:nth-child(5) {
        order: 5;
    }

    .pain-symptom-item:nth-child(6) {
        order: 6;
    }

    /* Row 4: 설명(7) -> 이미지(8) - 이미지 먼저 */
    .pain-symptom-item:nth-child(7) {
        order: 8;
    }

    .pain-symptom-item:nth-child(8) {
        order: 7;
    }
}

@media (max-width: 768px) {
    .pain-symptoms-section {
        padding: 60px 0;
    }

    .pain-symptoms-header {
        margin-bottom: 40px;
    }

    .pain-symptoms-line {
        height: 40px;
        margin-bottom: 20px;
    }

    .pain-symptoms-quote {
        font-size: 1.5rem;
        padding: 0 15px;
        line-height: 1.6;
    }

    .pain-symptoms-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pain-symptom-item {
        width: 100%;
    }

    .pain-symptom-item.image {
        min-height: 180px;
    }

    .pain-symptom-item.desc {
        padding: 20px 10px;
    }

    .symptom-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .symptom-list li {
        font-size: 20px;
        padding-left: 30px;
        margin-bottom: 10px;
        word-break: break-all;
    }

    .symptom-list li::before {
        width: 24px;
        height: 24px;
        top: 10px;
    }

}


/* ======================================================================
   [15] THERAPY FACILITIES SECTION
   ====================================================================== */

.therapy-facilities-section {
    position: relative;
    padding-top: 200px;
    padding-bottom: 100px;
    overflow: hidden;
}

.therapy-facilities-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/도수치료시설-bg.png') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

.therapy-facilities-header {
    text-align: left;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.therapy-facilities-title {
    font-size: 60px;
    font-weight: lighter;
    color: #333333;
}

.therapy-facilities-title .title-sub {
    display: block;
}

.therapy-facilities-title .text-accent {
    font-weight: normal;
    color: #00B1C3;

}

.therapy-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.facility-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.facility-card img {
    width: 420px;
    height: 480px;
    object-fit: contain;
    display: block;
}


/* ------------------------------------------------------------ */
/* -- Facilities — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {

    .therapy-facilities-section {
        padding: 80px 0;
    }

    .therapy-facilities-grid {
        grid-template-columns: 1fr;
        gap: 100px;
        margin-top: 50px;
    }


    .therapy-facilities-title {
        font-size: 60px;
        text-align: center;
    }

    .facility-card img {
        width: auto;
        height: 400px;
    }

}

@media (max-width: 768px) {
    .therapy-facilities-section {
        padding: 0 0 80px 0;
    }

    .therapy-facilities-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .therapy-facilities-title {
        font-size: 1.8rem;
    }

    .therapy-facilities-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }

    .facility-card img {
        width: auto;
        height: 350px;
    }
}


/* ======================================================================
   [16] GALLERY SECTION
   ====================================================================== */

.gallery-section {
    padding: 100px 0;
    background: #ffffff;
}

.gallery-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: var(--accent-green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gallery-title {
    font-size: 70px;
    font-weight: lighter;
    color: var(--text-main);
}

.gallery-title .text-accent {
    font-weight: normal;
}

.gallery-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.gallery-viewport {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 60px;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    align-items: center;
    padding: 120px 0;
}

.gallery-item {
    flex: 0 0 1000px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    opacity: 0.8;
    transform: scale(0.5);
    filter: blur(1px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item.item-main {
    opacity: 1;
    transform: scale(1.2);
    z-index: 5;
    filter: blur(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #eeeeee;
    background-color: #FFFFFF;
    color: var(--accent-green);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-btn:hover {
    background: var(--accent-green);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}


.gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 50px;
    padding: 0 40px;
}

.thumb-item {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ------------------------------------------------------------ */
/* -- Gallery — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {

    .gallery-item {
        flex: 0 0 700px;
    }

    .gallery-slider {
        padding: 0 80px;
    }

    .gallery-prev {
        left: 5%;
    }

    .gallery-next {
        right: 5%;
    }

    .gallery-side {
        width: 120px;
    }

    .gallery-title {
        font-size: 60px;
        margin-bottom: 40px;
    }

    .gallery-viewport {
        padding: 0;
    }


    .gallery-slider-wrap {
        padding: 0 10px;
        margin-top: 0px;
    }
}

@media (max-width: 768px) {

    .gallery-header {
        text-align: center;
        margin-bottom: 0px;
    }

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-label {
        font-size: 16px;
    }

    .gallery-title {
        font-size: 40px !important;
        margin-bottom: 0px !important;
    }

    .gallery-slider-wrap {
        padding: 0 10px;
        margin-top: 0px;
    }

    .gallery-viewport {
        padding: 20px 0;
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    .gallery-item {
        flex: 0 0 340px;
        /* 모바일에 맞게 너비 축소 */
        border-radius: 15px;
    }

    /* 이전/다음 버튼 모바일 위치 및 크기 */
    .gallery-btn {
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .gallery-btn svg {
        width: 20px;
        height: 20px;
    }

    .gallery-prev {
        left: 25px;
    }

    .gallery-next {
        right: 25px;
    }

    /* 썸네일 */
    .gallery-thumbs {
        gap: 8px;
        margin-top: 10px;
        padding: 0 10px;
    }

    .thumb-item {
        width: 70px;
        border-radius: 6px;
    }

    .gallery-side {
        display: none;
    }

    .gallery-track {
        padding: 40px 0;
    }
}


/* ======================================================================
   [17] MEDICAL INFO SECTION
   ====================================================================== */

.medical-info-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #eff7f8;
}

.medical-info-bg {
    display: none;
    /* Hide image background in favor of solid color matching the design */
}

.medical-info-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.medical-info-label {
    display: block;
    font-size: 24px;
    font-weight: lighter;
    color: #4CBCC7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.medical-info-title {
    font-size: 70px;
    font-weight: normal;
    color: #333;
    margin-bottom: 120px;
}


/* ------------------------------------------------------------ */
/* -- Schedule Layout */
/* ------------------------------------------------------------ */
/* Schedule Layout */
.schedule-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
    gap: 20px;
    z-index: 10;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 44px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1;
}

.schedule-header-icon img {
    width: 64px;
    align-items: center;
    height: 64px;
    display: block;
}

.schedule-title {
    font-size: 44px;
    font-weight: lighter;
    color: #333;
}

.schedule-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.doctor-row {
    display: flex;
    align-items: center;
    padding: 25px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.doctor-row.header-row {
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
    /* Header underline */
    margin-bottom: 10px;
}

.doctor-info-cell {
    width: 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* 오른쪽 정렬 */
    padding-right: 30px;
    margin-right: 0;
    border-right: 1px solid #ddd;
    /* 세로선 */
    text-align: right;
}

.doctor-info-cell.empty {
    border-right-color: transparent;
}

.doctor-info-cell .doctor-specialty {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.doctor-info-cell .doctor-name {
    font-size: 34px;
    font-weight: 800;
    color: #333;
}

.day-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

/* 요일 헤더 서클 스타일 */
.day-label {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #E1F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.head.sun .day-label {
    color: #D9534F;
    /* 일요일 빨간색 */
}

.head.sat .day-label {
    color: #4A90D9;
    /* 토요일 파란색 */
}

/* 진료 / 휴진 상태 텍스트 */
.day-cell .status {
    font-size: 28px;
    font-weight: 700;
    color: #1A4789;
}

.day-cell .status.off {
    color: #E25555;
}

/* 야간 진료 뱃지 */
.night-badge {
    background-color: #6F72B6;
    color: white;
    font-size: 14px;
    padding: 2px 14px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 5px;
}

/* 진료일정 테이블 래퍼 */
.schedule-table-wrapper {
    flex: 1;
}

/* 진료시간 박스 */
.clinic-hours-box {
    flex: 0 0 30%;
    padding-top: 10px;
    width: 100%;
    flex-grow: 1;
}

.clinic-hours-title {
    font-size: 24px;
    font-weight: normal;
    color: #4CBCC7;
    margin-bottom: 20px;
}

.clinic-hours-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hours-days {
    font-size: 30px;
    color: #333;
    font-weight: lighter;
}

.hours-time {
    font-size: 30px;
    font-weight: normal;
    color: #333;
}

.hours-time.red-text {
    color: #E25555;
}

.clinic-hours-notice {
    margin-top: 20px;
    font-size: 30px;
    font-weight: normal;
    color: #333;
}


/* ------------------------------------------------------------ */
/* -- Location (오시는길) */
/* ------------------------------------------------------------ */

/* 상단 타이틀 영역 (로고 + 글자 중앙 맞춤) */

.location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.location-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 44px;
    font-weight: normal;
    color: #333;
    line-height: 1;
}


/* 로고 이미지 미세 조정 */
.location-icon {
    width: 64px;
    height: 64px;
    display: block;
}



/* 컨텐츠 레이아웃 (가로 배치) */
.location-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.location-map-wrapper {
    flex: 0 0 800px;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.location-map {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.location-map img {
    width: 800px;
}


/* 네이버 지도 버튼 (지도 너비에 맞춤) */
.naver-map-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00B1C3;
    color: #fff;
    padding: 20px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
}

.naver-map-btn:hover {
    background-color: #008fa0;
}

/* 우측 상세 정보 영역 */
.location-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 24px;
    font-weight: 500;
    color: #00B1C3;
    letter-spacing: -0.5px;
}

.detail-text {
    font-size: 30px;
    color: #111;
    line-height: 1.5;
    font-weight: 400;
    word-break: keep-all;
}

.detail-text strong {
    font-weight: 600;
}

.detail-text.phone {
    font-size: 1.4rem;
    color: var(--accent-green);
    font-weight: 700;
}

/* ------------------------------------------------------------ */
/* -- Clinic Hours */
/* ------------------------------------------------------------ */

.clinic-hours {
    margin-top: 10px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hours-row {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.hours-day {
    width: 70px;
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
}

.hours-dot {
    width: 24px;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
}

.hours-day-end {
    width: 70px;
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
}

.hours-time {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 18px;
    letter-spacing: 0.02em;
}

.hours-row.weekend .hours-day,
.hours-row.weekend .hours-dot,
.hours-row.weekend .hours-day-end,
.hours-row.weekend .hours-time {
    color: #e25555;
}


/* ------------------------------------------------------------ */
/* -- Medical Info — Responsive */
/* ------------------------------------------------------------ */

@media (max-width: 1400px) {
    .medical-info-section {
        padding: 80px 0;
    }

    .medical-info-header {
        margin-bottom: 50px;
    }

    .medical-info-title {
        font-size: 60px;
        margin-bottom: 100px;
    }

    .schedule-section,
    .location-info {
        gap: 20px;
        margin-bottom: 80px;
        padding: 0;
    }


    .schedule-title {
        font-size: 40px;
    }

    .schedule-header-icon img,
    .location-icon {
        width: 50px;
        height: 50px;
    }

    /* 핵심: 세로 배치 */
    .schedule-body,
    .location-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .schedule-table-wrapper,
    .clinic-hours-box,
    .location-map-wrapper,
    .location-details {
        width: 100%;
        flex: none;
    }

    .location-details {
        gap: 20px;
    }

    .clinic-hours-title,
    .detail-label {
        font-size: 24px;
        color: #00B1C3;
        font-weight: 600;
    }

    .hours-list {
        gap: 20px;
    }

    .hours-item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .hours-days {
        font-size: 28px;
        font-weight: lighter;
    }

    .hours-time {
        font-size: 28px;
        font-weight: normal;
    }

    .clinic-hours-notice {
        font-size: 26px;
        font-weight: normal;
    }

    .detail-text {
        font-size: 26px;
        font-weight: normal;
        line-height: 1.5;
    }

    .location-title {
        font-size: 40px;
    }

    .schedule-image,
    .location-map img {
        width: 100%;
        height: auto;
        display: block;
    }

    .naver-map-btn {
        padding: 18px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {


    .medical-info-section {
        padding: 0px;
    }

    .clinic-hours-list,
    .clinic-hours-list .hours-days,
    .clinic-hours-list .hours-time,
    .clinic-hours-notice,
    .location-details .detail-label,
    .location-details .detail-text {
        font-size: 18px;
    }

    .hours-days {
        font-size: 28px;
        font-weight: lighter;
        width: 90px;
    }

    .medical-info-title {
        font-size: 40px;
        margin-bottom: 10px;
    }



    .schedule-title {
        font-size: 30px;
    }

    .location-title {
        font-size: 30px;
    }
}

/* ======================================================================
   [18] EQUIPMENT SECTION
   ====================================================================== */

.equipment-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.equipment-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.equipment-bg-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 112, 96, 0.95) 0%, rgba(70, 90, 75, 0.98) 100%);
}

.equipment-section .container {
    position: relative;
    z-index: 1;
}

.equipment-header {
    text-align: center;
    margin-bottom: 60px;
}

.equipment-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.equipment-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.equipment-title .text-accent {
    color: var(--accent-green-light);
}

.equipment-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.equipment-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.equipment-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.equipment-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.equipment-image {
    height: 220px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-info {
    padding: 25px;
    text-align: center;
}

.equipment-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.equipment-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
    .equipment-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equipment-section {
        padding: 80px 0;
    }

    .equipment-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .equipment-title {
        font-size: 2rem;
    }

    .equipment-image {
        height: 180px;
    }


}


/* [Legacy Location Section Removed to fix conflicts] */


/* ======================================================================
   [19] GLOBAL RESPONSIVE BREAKPOINTS
   ====================================================================== */

/**
 * 1800px - Header Adjustment
 */
@media (max-width: 1800px) {

    /* Hide text in right nav links, keeping only icons */
    .right-nav li a span {
        display: none;
    }

    .right-nav .nav-icon {
        margin-right: 0;
    }
}


@media (max-width: 1400px) {


    /* ------------------------------------------------------------ */
    /* -- Container */
    /* ------------------------------------------------------------ */
    .container {
        padding: 0 1rem;
    }


    /* ------------------------------------------------------------ */
    /* -- Header & Navigation */
    /* ------------------------------------------------------------ */




    /* ------------------------------------------------------------ */
    /* -- Hero Section */
    /* ------------------------------------------------------------ */

    .hero-main-title {
        font-size: 3rem;
        line-height: 1.3;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .hero-scroll-indicator span {
        font-size: 0.8rem;
    }


    /* Map markers 모바일 */
    .marker-label {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .marker-icon {
        height: 40px;
    }

    .branches-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .branch-tab {
        width: 100%;
        padding: 12px 15px;
    }


    /* ------------------------------------------------------------ */
    /* -- Philosophy / Services */
    /* ------------------------------------------------------------ */


    .philosophy-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .philosophy-text {
        padding-right: 0;
        text-align: center;
    }

    .philosophy-title {
        font-size: 1.7rem;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .philosophy-title span {
        text-align: center;
    }

    .philosophy-logo {
        width: 50px;
        height: 50px;
    }

    .philosophy-desc {
        font-size: 1rem;
        text-align: center;
    }

    .philosophy-image {
        justify-content: center;
    }

    .philosophy-image img {
        max-width: 90%;
        height: auto;
    }


    /* ------------------------------------------------------------ */
    /* -- Doctors Section */
    /* ------------------------------------------------------------ */



    .doctors-header {
        margin-bottom: 30px;
    }

    .doctors-title {
        font-size: 60px;
    }

    .doctors-slider {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: relative;
        padding: 0 30px;
    }

    .slider-arrow {
        position: absolute;
        top: 540px;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: none;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .slider-arrow img {
        width: 16px;
        height: auto;
    }

    .doctor-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .doctor-image {
        width: 100%;
        height: 450px;
        display: flex;
        justify-content: center;
    }

    .doctor-image img {
        width: 300px;
        margin: 0 auto;
        display: block;
    }

    .doctor-info {
        width: 100%;
        padding: 20px 15px;
        margin-bottom: 0;
        align-self: auto;
    }

    .doctor-info .doctor-specialty {
        font-size: 0.95rem;
        text-align: center;
        color: var(--accent-green);
        margin-bottom: 8px;
    }

    .doctor-info .doctor-name {
        font-size: 1.7rem;
        text-align: center;
        justify-content: center;
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
        color: var(--text-main);
    }

    .doctor-position {
        font-size: 1.1rem;
        color: var(--text-muted);
    }

    .doctor-career-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;

    }

    .doctor-career-list {
        padding-left: 0;
    }

    .doctor-career-list li {
        line-height: 1.6;
        font-size: 18px;
        text-align: left;
    }

    .career-divider {
        margin: 10px 0;
    }

    .doctors-slider {
        position: relative;
        padding: 0;
    }

    .slider-arrow img {
        width: 16px;
    }


    /* ------------------------------------------------------------ */
    /* -- Gallery Section */
    /* ------------------------------------------------------------ */

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-title {
        font-size: 60px;
    }

    .gallery-slider {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-main {
        width: 100%;
    }

    .gallery-side {
        display: none;
    }



}


@media (max-width: 768px) {
    .doctors-header {
        margin-bottom: 0px;
    }

    .doctors-section {
        min-height: 1000px;
        padding-bottom: 0px;
        margin-top: 30px;
    }

}