@charset "UTF-8";
/* 글꼴은 관리자 > 디자인 설정에 따라 fragments/header.html 에서 불러옵니다. */

:root {
    /* ===== 기본 색상: 관리자 > 홈페이지 디자인 에서 바꾸면 아래 값이 덮어써집니다 ===== */
    --brand-blue: #1D4ED8;        /* 메인 색 (버튼·강조·로고 뒷부분) */
    --brand-sky: #0284C7;         /* 보조 색 (로고 앞부분·포인트) */
    --accent-yellow: #F59E0B;     /* 강조 색 (노란 배지·보조 버튼) */
    --footer-bg: #0F172A;         /* 푸터 배경 */
    --radius: 12px;               /* 카드 모서리 둥글기 */
    --font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

    /* ===== 위 기본 색에서 자동으로 계산되는 색 (직접 수정할 필요 없음) ===== */
    --brand-blue-dark: color-mix(in srgb, var(--brand-blue) 62%, #000);
    --brand-blue-deep: color-mix(in srgb, var(--brand-blue) 40%, #000);
    --brand-sky-medium: color-mix(in srgb, var(--brand-sky) 60%, #fff);
    --brand-sky-border: color-mix(in srgb, var(--brand-sky) 25%, #fff);
    --brand-sky-light: color-mix(in srgb, var(--brand-sky) 12%, #fff);
    --brand-sky-soft: color-mix(in srgb, var(--brand-sky) 5%, #fff);
    --brand-blue-banner: color-mix(in srgb, var(--brand-blue) 6%, #fff);
    --accent-yellow-hover: color-mix(in srgb, var(--accent-yellow) 82%, #000);
    --accent-yellow-light: color-mix(in srgb, var(--accent-yellow) 18%, #fff);
    --accent-yellow-border: color-mix(in srgb, var(--accent-yellow) 40%, #fff);
    --accent-yellow-soft: color-mix(in srgb, var(--accent-yellow) 7%, #fff);
    --accent-yellow-dark: color-mix(in srgb, var(--accent-yellow) 70%, #000);

    --dark: #111827;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F9FAFB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 125px; /* 고정 네비게이션 높이 보정 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ========================================================
   스크롤 인터랙션 애니메이션 (Reveal on Scroll)
   ======================================================== */
.fade-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* ========================================================
   Header & GNB Navigation Bar
   ======================================================== */
.brand-top-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
}
.brand-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-custom {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo-icon-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-yellow) 25%, transparent);
    border: 2px solid var(--accent-yellow);
}
.logo-cross-symbol {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--brand-sky);
    line-height: 1;
}
.logo-b-symbol {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--brand-blue);
    line-height: 1;
    margin-left: 6px;
    margin-top: 2px;
}

.logo-text-group {
    display: flex;
    align-items: baseline;
    gap: 3px;
    letter-spacing: -0.5px;
}
.logo-text-drban {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--brand-sky);
}
.logo-tag-vertical {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    writing-mode: vertical-rl;
    line-height: 1;
    margin: 0 1px;
}
.logo-text-pain {
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--brand-blue);
}
.logo-dept-subtag {
    font-size: 0.8rem;
    background: var(--accent-yellow-light);
    color: var(--accent-yellow-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid var(--accent-yellow-border);
}

.top-action-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-action-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--brand-blue);
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--brand-sky-soft);
    border: 1.5px solid var(--brand-sky-light);
    transition: all 0.2s;
}
.top-action-tel:hover {
    background: var(--brand-sky-light);
    border-color: var(--brand-sky);
}

.gnb-header {
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 900;
}
.gnb-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
.gnb-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.gnb-item {
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    padding: 16px 22px;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gnb-item:hover {
    color: var(--brand-blue);
}
.gnb-item.active {
    color: var(--brand-blue) !important;
    font-weight: 800 !important;
}
.gnb-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3.5px;
    background-color: var(--brand-blue);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}
.gnb-item:hover::after {
    width: 60%;
}
.gnb-item.active::after {
    width: 100% !important;
    background-color: var(--brand-blue);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #0F172A;
    cursor: pointer;
}

/* ========================================================
   1. Main Hero Visual (첫 화면에 딱 맞게 100vh 꽉 채움)
   ======================================================== */
.main-hero-banner {
    position: relative;
    height: calc(100vh - 126px);
    height: calc(100dvh - 126px);
    min-height: 560px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-sky) 6%, transparent) 0%, color-mix(in srgb, var(--brand-sky-light) 55%, transparent) 45%, rgba(255, 255, 255, 0.95) 75%, #FFFFFF 100%);
    z-index: 1;
}
.hero-typography-box {
    position: relative;
    z-index: 3;
    margin-left: auto;
    max-width: 660px;
    text-align: right;
    padding: 40px 0;
}
.hero-sub-text {
    font-size: 1.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-highlight-badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #0F172A;
    font-size: 2.6rem;
    font-weight: 900;
    padding: 4px 20px;
    border-radius: 6px;
    letter-spacing: -1px;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-yellow) 35%, transparent);
}
.hero-highlight-suffix {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0F172A;
    vertical-align: middle;
}
.hero-main-hospital-name {
    font-size: 3.1rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.hero-name-drban { color: var(--brand-sky); }
.hero-name-pain { color: var(--brand-blue); }

.hero-action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-primary {
    background-color: var(--accent-yellow);
    color: #0F172A;
    font-weight: 800;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-yellow) 35%, transparent);
}
.btn-primary:hover {
    background-color: var(--accent-yellow-hover);
    color: #0F172A;
    transform: translateY(-2px);
}
.btn-blue {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-blue) 30%, transparent);
}
.btn-blue:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-blue);
    color: var(--brand-blue);
}
.btn-outline:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
}

/* 하단 스크롤 유도 인디케이터 (SCROLL DOWN) */
.hero-scroll-guide {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--brand-blue);
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-scroll-guide:hover {
    transform: translateX(-50%) translateY(4px);
    opacity: 0.85;
}
.scroll-mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--brand-blue);
    border-radius: var(--radius);
    position: relative;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.scroll-wheel-dot {
    width: 4px;
    height: 7px;
    background-color: var(--brand-blue);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 1.8s infinite ease-in-out;
}
.scroll-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--brand-blue-dark);
}
.scroll-arrow-down {
    font-size: 0.82rem;
    color: var(--brand-blue);
    animation: bounceDown 1.8s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(9px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ========================================================
   모던 미니멀 섹션 타이틀 (첨부된 ejros.net 스타일 1:1 매칭)
   ======================================================== */
.ej-section-title-wrap {
    text-align: center;
    margin-bottom: 55px;
}
.ej-section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.ej-section-divider {
    width: 44px;
    height: 2px;
    background-color: var(--brand-sky);
    margin: 16px auto 0;
    border-radius: 2px;
}
.ej-section-subtitle {
    margin-top: 14px;
    font-size: 1.05rem;
    color: #6B7280;
    font-weight: 400;
}

/* ========================================================
   2. 진료안내 (ejros.net 라인 아이콘 원형 그리드 스타일)
   ======================================================== */
.section-clinic-clean {
    padding: 95px 0 100px;
    background-color: #FFFFFF;
}
.ej-clinic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    row-gap: 55px;
    margin-bottom: 50px;
}
.ej-clinic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.ej-clinic-item:hover {
    transform: translateY(-6px);
}
.ej-clinic-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1.5px solid #1E293B;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #0F172A;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.ej-clinic-item:hover .ej-clinic-icon-circle {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
    color: #FFFFFF;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-blue) 25%, transparent);
}
.ej-clinic-item-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}
.ej-clinic-item-desc {
    font-size: 0.92rem;
    color: #4B5563;
    line-height: 1.7;
    word-break: keep-all;
    max-width: 260px;
}

/* ========================================================
   3. 중간 소프트 블루 배너 (첨부 사진 매칭)
   ======================================================== */
.ej-blue-banner {
    background-color: var(--brand-blue-banner);
    border-top: 1px solid var(--brand-sky-border);
    border-bottom: 1px solid var(--brand-sky-border);
    padding: 60px 20px;
    text-align: center;
}
.ej-blue-banner h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.ej-blue-banner p {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.85;
    max-width: 820px;
    margin: 0 auto;
}

/* ========================================================
   4. 병원 소개 (첨부 사진 1:1 매칭: 서술문 + 3개 사진 카드)
   ======================================================== */
.section-about-clean {
    padding: 95px 0 105px;
    background-color: #FFFFFF;
}
.ej-about-intro-text {
    max-width: 900px;
    margin: 0 auto 65px;
    text-align: center;
    font-size: 1.02rem;
    color: #374151;
    line-height: 1.9;
}
.ej-about-intro-text p {
    margin-bottom: 18px;
}
.ej-about-intro-text strong {
    color: var(--brand-blue-dark);
    font-weight: 800;
}

.ej-about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.ej-about-card {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.ej-about-card:hover {
    transform: translateY(-6px);
}
.ej-about-img-box {
    width: 100%;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}
.ej-about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ej-about-card:hover .ej-about-img-box img {
    transform: scale(1.04);
}
.ej-about-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}
.ej-about-card-desc {
    font-size: 0.93rem;
    color: #4B5563;
    line-height: 1.7;
}

/* ========================================================
   5. 진료시간 안내 (#hours-section - 유선전화 중심 심플 구성)
   ======================================================== */
.section-hours-reservation {
    padding: 95px 0 105px;
    background: linear-gradient(180deg, var(--brand-sky-soft) 0%, var(--brand-sky-light) 100%);
    border-top: 1px solid var(--brand-sky-border);
    border-bottom: 1px solid var(--brand-sky-border);
}
.hours-res-card-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    align-items: stretch;
}
.hours-info-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-sky) 8%, transparent);
    border: 1px solid var(--gray-200);
}
.hours-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hours-card-title i {
    color: var(--brand-sky);
}
.hours-table-clean {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.hours-table-clean tr {
    border-bottom: 1px solid var(--gray-200);
}
.hours-table-clean th {
    padding: 15px 10px;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 800;
    color: #374151;
    width: 35%;
}
.hours-table-clean td {
    padding: 15px 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #111827;
}
.hours-table-clean td.highlight {
    color: var(--brand-blue);
    font-weight: 800;
}
.sat-no-lunch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-yellow-light);
    color: var(--accent-yellow-dark);
    border: 1px solid var(--accent-yellow-border);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 6px;
}

.reservation-action-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-sky) 8%, transparent);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.res-card-top h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 8px;
}
.res-card-top p {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 24px;
}
.res-big-phone-box {
    background: var(--brand-sky-soft);
    border: 1px solid var(--brand-sky-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}
.res-phone-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 6px;
}
.res-big-phone-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-blue);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.res-phone-circle-yellow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent-yellow) 35%, transparent);
}
.res-big-fax {
    font-size: 1.05rem;
    color: #6B7280;
    font-weight: 700;
    margin-top: 8px;
}
.res-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-res-call {
    background: var(--brand-blue);
    color: #FFFFFF;
    font-size: 1.12rem;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-blue) 25%, transparent);
    transition: all 0.2s;
}
.btn-res-call:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-blue) 35%, transparent);
}

/* ========================================================
   6. 오시는 길 & 주차 (#location-section)
   ======================================================== */
.section-location-clean {
    padding: 95px 0 105px;
    background-color: #FFFFFF;
}
.location-clean-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}
.location-details-box {
    background: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.loc-item {
    margin-bottom: 22px;
}
.loc-item h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-blue-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.loc-item h4 i { color: var(--brand-sky); }
.loc-item p {
    font-size: 1.02rem;
    color: #4B5563;
    line-height: 1.65;
}
.map-embed-box {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid #FFFFFF;
    height: 400px;
    background: #E2E8F0;
    position: relative;
}
.map-custom-overlay-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--accent-yellow);
    z-index: 10;
    pointer-events: none;
}
.map-custom-overlay-marker i {
    color: var(--accent-yellow);
    font-size: 1.3rem;
}
.map-custom-overlay-marker strong {
    font-size: 1.05rem;
    color: #0F172A;
}

/* ========================================================
   7. 병원 둘러보기 갤러리 (깨끗하고 안락한 인테리어 사진들)
   ======================================================== */
.section-interior-clean {
    padding: 90px 0 100px;
    background-color: var(--gray-100);
}
.interior-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.interior-photo-item {
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s;
}
.interior-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.interior-photo-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.interior-photo-caption {
    padding: 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: #1E293B;
}

/* ========================================================
   8. 푸터 & 비급여/서류 모달 레이어 & 숨겨진 관리자 로그인 링크
   ======================================================== */
.footer-clean-band {
    background-color: var(--footer-bg);
    color: #CBD5E1;
    border-top: 3px solid var(--brand-sky);
    padding: 42px 0;
    font-size: 0.92rem;
}
.footer-modal-links {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-modal-btn {
    background: none;
    border: none;
    color: var(--brand-sky-medium);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-modal-btn:hover {
    color: #FFFFFF;
}
.footer-clean-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.6fr;
    gap: 20px;
    align-items: center;
}
.footer-clean-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
}
.footer-clean-logo .logo-b {
    color: var(--accent-yellow);
}
.footer-clean-biz {
    font-size: 0.95rem;
    color: #94A3B8;
}
.footer-clean-address {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94A3B8;
}

/* 푸터 내부에 눈에 띄지 않게 조용히 숨겨진 관리자 로그인 링크 */
.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: 14px;
    opacity: 0.55;
    transition: all 0.2s;
    vertical-align: middle;
}
.footer-admin-link:hover {
    color: #94A3B8;
    opacity: 1;
}

/* Modal Windows */
.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.custom-modal-backdrop.active {
    display: flex;
}
.custom-modal-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    border: 1px solid var(--gray-200);
}
.custom-modal-header {
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
    color: #FFFFFF;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.custom-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
}
.custom-modal-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
}
.custom-modal-body {
    padding: 28px;
}

/* 우측 플로팅 바 (사용자 요청으로 제거 완료) */
.floating-side-quick {
    display: none !important;
}

.main-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.main-popup-box {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.popup-close-x {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #94A3B8;
    cursor: pointer;
    z-index: 10;
}
.popup-close-x:hover { color: #0F172A; }
.popup-header-art {
    background: linear-gradient(135deg, var(--brand-sky-soft), var(--brand-sky-light));
    padding: 28px 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--brand-sky-border);
}
.popup-hospital-badge {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 6px;
}
.popup-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0F172A;
}
.popup-body-content {
    padding: 24px;
    text-align: center;
}
.popup-calendar-mini {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--gray-200);
}
.popup-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 0.85rem;
    text-align: center;
}
.popup-cal-day-header {
    font-weight: 700;
    color: #64748B;
    padding-bottom: 6px;
}
.popup-cal-day-header.sun { color: #EF4444; }
.popup-cal-cell {
    padding: 6px 0;
    color: #334155;
    font-weight: 600;
}
.popup-cal-cell.closed {
    background-color: #FEE2E2;
    color: #DC2626;
    border-radius: 50%;
    font-weight: 800;
}
.popup-notice-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.65;
    margin-bottom: 8px;
}
.popup-footer-bar {
    display: flex;
    background: #F8FAFC;
    border-top: 1px solid var(--gray-200);
}
.popup-footer-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: background-color 0.2s;
}
.popup-footer-btn:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}
.popup-footer-btn:first-child {
    border-right: 1px solid var(--gray-200);
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 1024px) {
    .main-hero-banner {
        height: auto;
        min-height: 520px;
    }
    .ej-clinic-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
    .ej-about-card-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hours-res-card-grid {
        grid-template-columns: 1fr;
    }
    .location-clean-grid {
        grid-template-columns: 1fr;
    }
    .interior-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-clean-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-clean-logo {
        justify-content: center;
    }
    .footer-modal-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-hero-banner {
        height: auto;
        min-height: 480px;
    }
    .gnb-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .gnb-menu.active {
        display: flex;
    }
    .gnb-menu .gnb-item {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 6px;
    }
    .gnb-menu .gnb-item.active {
        background-color: var(--brand-blue-banner);
        color: var(--brand-blue) !important;
        border-left: 4px solid var(--brand-blue);
    }
    .gnb-menu .gnb-item.active::after {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .ej-clinic-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
    .interior-gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-highlight-badge, .hero-highlight-suffix, .hero-main-hospital-name {
        font-size: 2rem;
    }
    .hero-sub-text {
        font-size: 1.3rem;
    }
    .brand-logo-custom {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .top-action-tel {
        display: none;
    }
    .hero-scroll-guide {
        display: none;
    }
}

/* ==========================================================================
   관리자 편집형 콘텐츠 보조 스타일 (진료안내 링크, 사진 없는 카드, 휴진 달력)
   ========================================================================== */
.hero-desc-line {
    font-size: 1.15rem;
    color: #334155;
    margin-bottom: 24px;
    font-weight: 600;
}
.clinic-card-link {
    display: inline-block;
    margin-top: 4px;
    border: none;
    background: none;
    padding: 0;
    color: var(--brand-blue);
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}
.ej-about-img-box.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-sky-soft) 0%, var(--brand-sky-light) 100%);
}
.ej-about-img-box.no-image i {
    font-size: 3rem;
    color: var(--brand-sky-medium);
}
.popup-cal-month {
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 10px;
    font-size: 0.98rem;
}
.popup-cal-day-header.sat,
.popup-cal-cell.sat { color: #2563EB; }
.popup-cal-cell.sun { color: #EF4444; }
.popup-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.popup-cal-cell.closed {
    border-radius: var(--radius);
    color: #DC2626;
}
.popup-cal-closed-label {
    font-size: 0.66rem;
    line-height: 1;
    margin-top: 2px;
}
/* 메인 팝업 여러 개: PC는 나란히, 휴대폰은 위아래로 */
.main-popup-overlay { overflow-y: auto; padding: 24px 16px; box-sizing: border-box; align-items: flex-start; }
.main-popup-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: auto;
}
.main-popup-stack .main-popup-box { flex: 0 1 420px; }

/* 메인 팝업: 공지 글 / 공지사항 게시글 */
.popup-text-body {
    white-space: pre-line;
    text-align: left;
    font-size: 0.98rem;
    color: #1E293B;
    line-height: 1.7;
    max-height: 45vh;
    overflow-y: auto;
    margin-bottom: 14px;
}
.popup-more-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
}
.popup-more-link:hover { text-decoration: underline; }
.popup-image-only img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
@media (max-width: 768px) {
    .hero-main-hospital-name {
        font-size: 1.65rem;
    }
}

/* ==========================================================================
   공지사항 (메인 최근 공지 + 공지사항 목록/상세 페이지)
   ========================================================================== */
.notice-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #F1F5F9;
    color: #475569;
    flex-shrink: 0;
}
.notice-tag.pinned {
    background: var(--accent-yellow);
    color: #0F172A;
}

/* 메인: 최근 공지 */
.section-notice-home {
    padding: 70px 0;
    background: #FFFFFF;
}
.notice-home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 2px solid #111827;
    padding-bottom: 14px;
}
.notice-home-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}
.notice-home-more {
    font-size: 0.92rem;
    font-weight: 700;
    color: #64748B;
    text-decoration: none;
}
.notice-home-more:hover { color: var(--brand-blue); }
.notice-home-more i { font-size: 0.75rem; margin-left: 2px; }
.notice-home-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.notice-home-list li { border-bottom: 1px solid var(--gray-200); }
.notice-home-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 6px;
    text-decoration: none;
    color: #1E293B;
}
.notice-home-list a:hover .notice-home-item-title {
    color: var(--brand-blue);
    text-decoration: underline;
}
.notice-home-item-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-home-date {
    color: #94A3B8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 서브 페이지 공통 */
.sub-page-hero {
    background: linear-gradient(180deg, var(--brand-sky-soft) 0%, #F8FAFC 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 56px 0 48px;
    text-align: center;
}
.sub-page-hero h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}
.sub-page-hero p {
    color: #64748B;
    font-size: 1rem;
}
.sub-page-section {
    padding: 56px 0 90px;
    min-height: 45vh;
}
.notice-container { max-width: 980px; }

/* 공지 목록 */
.notice-board {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid #111827;
}
.notice-board li { border-bottom: 1px solid var(--gray-200); }
.notice-board a,
.notice-board-head {
    display: grid;
    grid-template-columns: 80px 1fr 120px 70px;
    align-items: center;
    gap: 12px;
    padding: 18px 12px;
    text-decoration: none;
    color: #1E293B;
}
.notice-board-head {
    background: #F8FAFC;
    font-weight: 700;
    font-size: 0.92rem;
    color: #475569;
    padding: 14px 12px;
}
.notice-board li.is-pinned { background: var(--accent-yellow-soft); }
.notice-board a:hover .nb-title {
    color: var(--brand-blue);
    text-decoration: underline;
}
.nb-no, .nb-date, .nb-views {
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}
.nb-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.notice-board-empty {
    text-align: center;
    padding: 60px 0;
    color: #94A3B8;
}
.notice-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.notice-pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}
.notice-pagination a.current {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

/* 공지 상세 */
.notice-detail { border-top: 2px solid #111827; }
.notice-detail-head {
    padding: 28px 8px 22px;
    border-bottom: 1px solid var(--gray-200);
}
.notice-detail-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 10px 0 12px;
    line-height: 1.4;
    word-break: keep-all;
}
.notice-detail-meta {
    display: flex;
    gap: 18px;
    color: #64748B;
    font-size: 0.9rem;
}
.notice-detail-body {
    padding: 36px 8px 48px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    white-space: pre-line;
    min-height: 220px;
    border-bottom: 1px solid var(--gray-200);
}
.notice-detail-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 768px) {
    .section-notice-home { padding: 50px 0; }
    .notice-home-title { font-size: 1.35rem; }
    .notice-home-list a { gap: 10px; padding: 16px 2px; }
    .notice-home-date { font-size: 0.82rem; }
    .sub-page-hero { padding: 40px 0 34px; }
    .sub-page-hero h1 { font-size: 1.7rem; }
    .sub-page-section { padding: 36px 0 60px; }
    .notice-board-head { display: none; }
    .notice-board a {
        grid-template-columns: 52px 1fr;
        grid-template-areas: "no title" "no meta";
        row-gap: 4px;
        padding: 16px 4px;
    }
    .notice-board .nb-no { grid-area: no; text-align: left; }
    .notice-board .nb-title { grid-area: title; white-space: normal; }
    .notice-board .nb-date { grid-area: meta; text-align: left; font-size: 0.82rem; }
    .notice-board .nb-views { display: none; }
    .notice-detail-head h2 { font-size: 1.3rem; }
    .notice-detail-body { font-size: 1rem; padding: 28px 4px 36px; }
    .notice-detail-actions .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   관리자 편집형: 로고 이미지, 진료시간표 색상, 안내 팝업 서식
   ========================================================================== */
.brand-logo-image.with-text { max-width: 140px; }
.brand-logo-image {
    display: block;
    height: 48px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
}
.hours-table-clean td.hours-red { color: #DC2626; font-weight: 800; }
.hours-table-clean td.hours-gray { color: #4B5563; }
.hours-badge { display: inline-flex; margin-top: 14px; }
.hours-notes {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 14px;
    line-height: 1.6;
}
.rich-text h4 {
    font-size: 1.15rem;
    color: var(--brand-blue-dark);
    margin: 22px 0 10px;
}
.rich-text h4:first-child { margin-top: 0; }
.rich-text p,
.rich-text li {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.7;
}
.rich-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.rich-text li {
    position: relative;
    padding-left: 14px;
}
.rich-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #94A3B8;
}
.rich-text p { margin-bottom: 10px; }
.rich-text p.note {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 16px;
}

/* 모바일 헤더: 로고 한 줄 유지, 빈 메뉴 띠 제거 */
@media (max-width: 768px) {
    .brand-logo-custom {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .logo-icon-badge { width: 36px; height: 36px; }
    .logo-b-symbol { font-size: 1.6rem; }
    .logo-cross-symbol { font-size: 0.85rem; top: 2px; left: 3px; }
    .logo-text-drban { font-size: 1.3rem; }
    .logo-text-pain { font-size: 1.35rem; }
    .logo-tag-vertical { font-size: 0.6rem; }
    .brand-logo-image { height: 36px; max-width: 230px; }
    .brand-top-bar { padding: 10px 0; }
    .gnb-header {
        border-bottom: none;
        box-shadow: none;
    }
    .gnb-navbar {
        height: 0;
        position: relative;
    }
    .gnb-menu { top: 0; }
    /* 모바일 헤더는 로고 줄만 있어 낮음 (스크립트가 실제 높이로 다시 맞춤) */
    html { scroll-padding-top: 66px; }
}
.footer-ext-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.footer-ext-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    color: #CBD5E1;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.footer-ext-links a:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* 첫 화면 글자 위치 (관리자 > 디자인) */
.hero-align-left .hero-typography-box { margin-left: 0; margin-right: auto; text-align: left; }
.hero-align-left .hero-action-btns { justify-content: flex-start; }
.hero-align-center .hero-typography-box { margin-left: auto; margin-right: auto; text-align: center; }
.hero-align-center .hero-action-btns { justify-content: center; }
.hero-align-left .hero-gradient-overlay {
    background: linear-gradient(270deg, color-mix(in srgb, var(--brand-sky) 6%, transparent) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.95) 75%, #FFFFFF 100%);
}
.hero-align-center .hero-gradient-overlay {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.4) 100%);
}

/* ==========================================================================
   편집기로 꾸미는 로고·첫 화면 문구 (관리자 > 문구·사진)
   - 글자 크기는 em 단위라 아래 기준 크기만 바꾸면 휴대폰에서 전체가 같이 줄어듭니다.
   ========================================================================== */
.logo-rich {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--dark);
    line-height: 1.1;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 3px;
}
.hero-rich {
    font-size: 1rem;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.5px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.hero-rich > div,
.hero-rich > p { margin: 0 0 0.45em; }
.hero-rich > div:last-child,
.hero-rich > p:last-child { margin-bottom: 0.9em; }

/* [강조 배지] 버튼: 강조 색 배경 */
.hl-badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #0F172A;
    padding: 0.05em 0.35em;
    border-radius: 6px;
    line-height: 1.25;
}
/* [세로 작은 글자] 버튼: 간판식 세로 표기 */
.v-tag {
    font-size: 0.38em;
    font-weight: 700;
    color: #475569;
    writing-mode: vertical-rl;
    line-height: 1;
    margin: 0 1px;
    align-self: center;
}
@media (max-width: 768px) {
    .logo-rich { font-size: 1.3rem; }
    .hero-rich { font-size: 0.6rem; }
}

/* ==========================================================================
   관리자 > 디자인 > 영역별 모양 (body 의 class 로 적용)
   ========================================================================== */
@media (min-width: 1025px) {
    /* 첫 화면 높이 */
    .hero-h-large .main-hero-banner { height: calc(75vh - 60px); height: calc(75dvh - 60px); min-height: 480px; }
    .hero-h-medium .main-hero-banner { height: calc(55vh - 40px); height: calc(55dvh - 40px); min-height: 400px; }

    /* 한 줄 개수 */
    .cols-clinic-2 .ej-clinic-grid { grid-template-columns: repeat(2, 1fr); }
    .cols-clinic-3 .ej-clinic-grid { grid-template-columns: repeat(3, 1fr); }
    .cols-clinic-5 .ej-clinic-grid { grid-template-columns: repeat(5, 1fr); column-gap: 20px; }
    .cols-about-2 .ej-about-card-grid { grid-template-columns: repeat(2, 1fr); }
    .cols-about-4 .ej-about-card-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .cols-gallery-2 .interior-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .cols-gallery-4 .interior-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .cols-gallery-4 .interior-photo-item img { height: 200px; }
}

/* 첫 화면 사진 위 흰색 덮개 */
.hero-ov-none .hero-gradient-overlay { display: none; }
.hero-ov-light .hero-gradient-overlay { opacity: 0.55; }
.hero-ov-strong .hero-gradient-overlay::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.45); }

/* 카드 모양 */
.card-border .ej-about-img-box,
.card-border .interior-photo-item,
.card-border .hours-info-card,
.card-border .reservation-action-card,
.card-border .ej-clinic-icon-circle,
.card-border .pb-card,
.card-border .consult-form { box-shadow: none; }
.card-flat .ej-about-img-box,
.card-flat .interior-photo-item,
.card-flat .hours-info-card,
.card-flat .reservation-action-card,
.card-flat .ej-clinic-icon-circle,
.card-flat .pb-card,
.card-flat .consult-form { box-shadow: none; border-color: transparent; }
.card-flat .pb-card,
.card-flat .consult-form { background: var(--gray-100); }

/* 진료안내 카드 사진 (아이콘 대신) */
.ej-clinic-photo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    background: var(--gray-100);
}
.ej-clinic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ej-clinic-item:hover .ej-clinic-photo img { transform: scale(1.04); }
.card-border .ej-clinic-photo,
.card-flat .ej-clinic-photo { box-shadow: none; }
.card-flat .ej-clinic-photo { border-color: transparent; }

/* 오시는 길: 지도 버튼, 교통·주차 안내 */
.loc-map-buttons { display: flex; gap: 12px; margin-top: 20px; }
.loc-map-buttons .btn { flex: 1; }

/* 안내 팝업·페이지 글 안의 링크 */
.rich-text a { color: var(--brand-blue); font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   빠른 메뉴 (관리자 > 디자인 > 빠른 메뉴)
   ========================================================================== */
.quick-menu {
    position: fixed;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quick-right { right: 18px; }
.quick-left { left: 18px; }
.quick-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: #FFFFFF;
    color: var(--brand-blue);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.quick-btn span { font-size: 0.62rem; font-weight: 700; color: #334155; line-height: 1; }
.quick-btn:hover { transform: translateY(-2px); }
.quick-btn.q-phone { background: var(--brand-blue); border-color: var(--brand-blue); color: #FFFFFF; }
.quick-btn.q-phone span { color: #FFFFFF; }
.quick-btn.q-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.quick-btn.q-kakao span { color: #191919; }
.quick-btn.q-booking { background: #03C75A; border-color: #03C75A; color: #FFFFFF; }
.quick-btn.q-booking span { color: #FFFFFF; }
.quick-btn.q-top { opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.quick-btn.q-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 768px) {
    .quick-menu { bottom: 14px; gap: 6px; }
    .quick-right { right: 12px; }
    .quick-left { left: 12px; }
    .quick-btn { width: 48px; height: 48px; font-size: 1rem; }
    .quick-btn span { display: none; }
}

/* ==========================================================================
   온라인 상담 신청 (관리자 > 문구·사진 > 온라인 상담 신청)
   ========================================================================== */
.section-consult {
    padding: 90px 0 100px;
    background: var(--gray-100);
}
.consult-form {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.consult-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.92rem; color: #1E293B; }
.consult-field.full { grid-column: 1 / -1; }
.consult-field em,
.consult-agree em { color: #DC2626; font-style: normal; }
.consult-field input,
.consult-field select,
.consult-field textarea {
    font: inherit;
    font-weight: 500;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111827;
    width: 100%;
}
.consult-field input:focus,
.consult-field select:focus,
.consult-field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--brand-blue) 30%, transparent);
    border-color: var(--brand-blue);
}
.consult-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consult-privacy {
    margin-top: 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #475569;
    max-height: 150px;
    overflow: auto;
}
.consult-privacy strong { display: block; margin-bottom: 6px; color: #1E293B; }
.consult-agree { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.consult-agree input { width: 18px; height: 18px; flex-shrink: 0; }
.consult-result { min-height: 1.4em; margin: 14px 0 0; font-weight: 700; white-space: pre-line; }
.consult-result.ok { color: #047857; }
.consult-result.err { color: #DC2626; }
.consult-submit { width: 100%; margin-top: 10px; }
.consult-submit[disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 768px) {
    .section-consult { padding: 60px 0 70px; }
    .consult-grid { grid-template-columns: 1fr; }
    .consult-form { padding: 22px 18px; }
}

/* ==========================================================================
   직접 만든 페이지 블록 (관리자 > 페이지 만들기)
   ========================================================================== */
.section-custom { padding-top: 90px; }
.section-custom > .container .ej-section-title-wrap { margin-bottom: 0; }
.pb-block { padding: 56px 0; }
.pb-bg-light { background: var(--gray-100); }
.pb-bg-brand { background: var(--brand-blue-banner); border-top: 1px solid var(--brand-sky-border); border-bottom: 1px solid var(--brand-sky-border); }
.page-blocks { min-height: 40vh; }
.page-empty { padding: 80px 20px; text-align: center; color: #94A3B8; }
.pb-title { font-size: 1.6rem; font-weight: 800; color: #111827; margin-bottom: 16px; letter-spacing: -0.4px; line-height: 1.35; }
.pb-center { text-align: center; }
.pb-body.pb-center { max-width: 760px; margin: 0 auto 28px; }
.pb-body.rich-text p,
.pb-body.rich-text li { font-size: 1.02rem; color: #374151; line-height: 1.85; }
.pb-text { max-width: 860px; margin: 0 auto; }
.pb-button { margin-top: 18px; }
.pb-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pb-image-text.is-right .pb-image { order: 2; }
.pb-image img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.pb-cards,
.pb-gallery { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.pb-cards.pb-cols-2,
.pb-gallery.pb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pb-cards.pb-cols-4,
.pb-gallery.pb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pb-card {
    background: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.pb-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--brand-blue);
    background: var(--brand-sky-light);
}
.pb-card h4 { font-size: 1.15rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.pb-card p { color: #4B5563; font-size: 0.93rem; line-height: 1.7; white-space: pre-line; }
.pb-photo { margin: 0; background: #FFFFFF; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.pb-photo img { width: 100%; height: 240px; object-fit: cover; }
.pb-photo figcaption { padding: 12px 14px; text-align: center; font-weight: 700; color: #1E293B; }
.pb-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pb-faq-item { background: #FFFFFF; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.pb-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 700; font-size: 1.02rem; color: #111827; }
.pb-faq-item summary::-webkit-details-marker { display: none; }
.pb-faq-item summary i { margin-left: auto; color: #94A3B8; transition: transform 0.2s ease; }
.pb-faq-item[open] summary i { transform: rotate(180deg); }
.pb-faq-q {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}
.pb-faq-a { padding: 0 20px 18px 60px; }
.pb-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pb-cta .pb-title { margin-bottom: 6px; }
.pb-cta .pb-body p { margin-bottom: 0; }
.pb-cta-button { background: var(--brand-blue); color: #FFFFFF; }
.pb-cta-button:hover { background: var(--brand-blue-dark); }
.sub-page-hero.has-image { position: relative; background-size: cover; background-position: center; padding: 90px 0 80px; }
.sub-page-hero.has-image::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.78); }
.sub-page-hero.has-image .container { position: relative; }
@media (max-width: 1024px) {
    .pb-cards.pb-cols-4,
    .pb-gallery.pb-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pb-image-text { gap: 28px; }
}
@media (max-width: 768px) {
    .section-custom { padding-top: 56px; }
    .pb-block { padding: 40px 0; }
    .pb-title { font-size: 1.35rem; }
    .pb-image-text { grid-template-columns: 1fr; }
    .pb-image-text.is-right .pb-image { order: 0; }
    .pb-cards,
    .pb-gallery,
    .pb-cards.pb-cols-2,
    .pb-gallery.pb-cols-2,
    .pb-cards.pb-cols-4,
    .pb-gallery.pb-cols-4 { grid-template-columns: 1fr; }
    .pb-faq-a { padding-left: 20px; }
    .pb-cta { flex-direction: column; text-align: center; }
}
