/* ==========================================================================
   윤봄방문케어센터 - 프리미엄 반응형 CSS 디자인 시스템
   ========================================================================== */

/* 1. 디자인 토큰 (CSS Variables) */
:root {
    /* 대표 컬러: 따뜻한 봄햇살 피치코랄 & 신뢰의 세이지그린 */
    --primary: #FF8E72;
    --primary-hover: #E27256;
    --primary-light: #FFF0EC;
    --secondary: #5B8266;
    --secondary-hover: #486951;
    --secondary-light: #F1F7F3;
    --accent: #ECA82C;
    --accent-light: #FEF7EA;
    
    /* 피드백 컬러 */
    --danger: #E05A47;
    --success: #3E8E41;
    
    /* 텍스트 & 배경 컬러 */
    --text-main: #2D312E;
    --text-muted: #626A66;
    --text-light: #8E9894;
    --bg-base: #FAF9F6; /* 안락한 아이보리 톤 */
    --bg-white: #FFFFFF;
    --bg-light: #F6F5F2;
    
    /* 테두리 & 그림자 */
    --border-color: #E6E4DF;
    --border-light: #F0EEEA;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(45, 49, 46, 0.06);
    --shadow-lg: 0 16px 40px rgba(255, 142, 114, 0.12);
    
    /* 트랜지션 & 곡률 */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    
    /* 헤더 높이 */
    --header-height: 80px;
    --header-shrink-height: 70px;
}

/* 2. 초기화 및 웹표준 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    color: inherit;
    outline: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 3. 공통 레이아웃 & 유틸리티 */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.font-bold { font-weight: 700; }

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* 4. 헤더 (GNB) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 228, 223, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.header.shrink {
    height: var(--header-shrink-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
}

.logo-text {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
}

.logo-text .sub-text {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.gnb-wrap {
    height: 100%;
}

.gnb-depth1 {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 28px;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-item > a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    padding: 10px 4px;
    position: relative;
}

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

.menu-item:hover > a {
    color: var(--primary);
}

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

/* GNB 서브 드롭다운 */
.gnb-depth2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 180px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-item:hover .gnb-depth2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.gnb-depth2 li a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
}

.gnb-depth2 li a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-tel {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.btn-tel:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 142, 114, 0.3);
}

.btn-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition);
}

/* 5. 모바일 드로어 */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.btn-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu > li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 1.05rem;
}

.mobile-menu .sub-menu {
    background-color: var(--bg-light);
    display: none;
    padding: 8px 0;
}

.mobile-menu .sub-menu a {
    display: block;
    padding: 12px 36px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.btn-drawer-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 6. 메인 컨테이너 */
.container {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* 7. Hero Section */
.hero-section {
    position: relative;
    height: 580px;
    background-size: cover;
    background-position: right 20%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-content {
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--secondary-light);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary);
    font-weight: 700;
}

.hero-title .brand-name {
    font-weight: 700;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(255, 142, 114, 0.2);
}

.btn-primary-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 142, 114, 0.35);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
}

.btn-secondary-cta:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* 8. 퀵메뉴 */
.quick-menu-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 60px;
}

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

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(230, 228, 223, 0.3);
}

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

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-coral .quick-icon { background-color: var(--primary-light); color: var(--primary); }
.card-sage .quick-icon { background-color: var(--secondary-light); color: var(--secondary); }
.card-beige .quick-icon { background-color: var(--accent-light); color: var(--accent); }

.quick-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-coral .quick-link { color: var(--primary); }
.card-sage .quick-link { color: var(--secondary); }
.card-beige .quick-link { color: var(--accent); }

/* 9. 센터소개 (인사말) */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.ceo-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
}

.ceo-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: var(--text-muted);
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.ceo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.about-greeting {
    margin-top: 24px;
}

.greeting-highlight {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.greeting-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

.ceo-signature {
    text-align: right;
    font-size: 1.1rem;
    color: var(--text-main);
}

.ceo-signature strong {
    font-size: 1.25rem;
    color: var(--text-main);
}

/* 10. 서비스 안내 */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-detail-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition);
}

.service-detail-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-content {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-detail-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.4rem;
}

.bg-coral { background-color: var(--primary); }
.bg-sage { background-color: var(--secondary); }
.bg-beige { background-color: var(--accent); }

.service-detail-card .card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.service-detail-card .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-list li i {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* 11. 요금 안내 */
.charge-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.charge-tables {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.table-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-card-header {
    background-color: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.table-card-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.premium-table th, .premium-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.premium-table th {
    background-color: #FAFAF9;
    color: var(--text-muted);
    font-weight: 700;
}

.premium-table tbody tr:hover {
    background-color: var(--bg-light);
}

.table-notice {
    padding: 18px 24px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.table-notice p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-notice p i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 12. 등급 신청 가이드 */
.guide-section {
    padding: 100px 0;
    background-color: var(--secondary-light);
}

.guide-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 60px;
}

.step-card {
    background-color: var(--bg-white);
    padding: 36px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    position: relative;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 24px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-arrow {
    color: var(--secondary);
    opacity: 0.5;
}

/* 등급대행 배너 */
.apply-free-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #FFB2A0 100%);
    border-radius: var(--radius-md);
    padding: 45px 50px;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.banner-text .badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.banner-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.banner-text p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-white);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.btn-banner-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 13. FAQ 아코디언 */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-accordion-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.faq-question .q-icon {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.faq-question .q-text {
    flex: 1;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 30px 24px 62px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

/* 14. 위치 및 상담 신청 */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}

.side-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.map-desc, .form-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.map-container {
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.map-info-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
}

.map-info-box p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info-box p i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* 프리미엄 폼 */
.form-side {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group .required {
    color: var(--danger);
}

.premium-form input[type="text"],
.premium-form input[type="tel"],
.premium-form textarea,
.premium-form select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
}

.premium-form input:focus,
.premium-form textarea:focus,
.premium-form select:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-agree {
    margin-top: 6px;
}

/* 커스텀 체크박스 */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.88rem;
    user-select: none;
    gap: 8px;
    color: var(--text-muted);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--border-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 15px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(255, 142, 114, 0.2);
}

.btn-form-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 142, 114, 0.35);
}

/* 15. 푸터 */
.footer {
    background-color: #242725;
    color: #C3C7C4;
    padding: 60px 0 40px;
    font-size: 0.9rem;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF !important;
    margin-bottom: 8px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(255, 142, 114, 0.2);
    color: var(--primary);
}

.footer-logo .logo-text {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: baseline;
}

.footer-logo .sub-text {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary) !important;
    margin-left: 6px;
}

.footer-desc {
    font-size: 0.85rem;
    color: #8E9490;
}

.footer-contact-box {
    display: flex;
    gap: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card .icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card .label {
    display: block;
    font-size: 0.75rem;
    color: #8E9490;
}

.contact-card .val {
    font-weight: 700;
    color: var(--bg-white);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.info-list li {
    font-size: 0.85rem;
    color: #E2E8F0; /* 더 밝은 그레이로 가시성 상향 */
}

.info-list li strong {
    color: #F8FAFC; /* 센터명 등 강조 항목을 선명한 백색 톤으로 수정 */
}

.copyright {
    font-size: 0.78rem;
    color: #717773;
    margin-top: 12px;
}

.footer-etc {
    display: flex;
    gap: 16px;
}

.footer-etc a {
    font-size: 0.8rem;
    color: #9DA39F;
}

.footer-etc a:hover {
    color: var(--bg-white);
}

.btn-privacy {
    color: var(--primary) !important;
    font-weight: 700;
}

/* 16. 탑 이동 버튼 */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

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

.btn-scroll-top:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 142, 114, 0.3);
}

/* 17. 스크롤 인터랙션 유틸 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 18. 반응형 미디어 쿼리 */
@media (max-width: 1024px) {
    .gnb-wrap, .header-right .btn-tel {
        display: none;
    }
    
    .btn-menu-toggle {
        display: flex;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-menu-section {
        margin-top: -30px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ceo-photo-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .guide-steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-banner-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px !important;
    }
    
    p, .greeting-body, .desc, .sub-section p, .intro-text {
        font-size: 0.98rem !important;
        line-height: 1.75 !important;
    }
    
    .footer-desc, .footer-info p, .info-list li, .footer-info span, .footer-info strong {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }

    .hero-section {
        height: auto;
        padding: 80px 0 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-cta, .btn-secondary-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-side {
        padding: 24px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px 20px 48px;
    }
}

/* 19. 서브페이지 공통 스타일 */
.sub-visual {
    background-color: var(--secondary-light);
    background-image: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.sub-visual-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-visual .sub-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.sub-content-wrap {
    background-color: var(--bg-white);
    padding: 20px 0 80px 0;
    min-height: 500px;
    display: flow-root; /* float 클리어로 푸터 겹침 해결 */
}

/* 그누보드 순수 게시판 및 기본 코어 페이지 가로 정렬 */
.sub-content-wrap > :not(.sub-page-container) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.sub-section {
    padding: 40px 0;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 60px 0;
}

@media (max-width: 768px) {
    .sub-visual {
        padding: 40px 0;
    }
    .sub-visual .sub-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   추가 보완: 메인 히어로 배경 줌아웃 애니메이션 & 관리자 대시보드 스타일
   ========================================================================== */

/* 1. 메인 히어로 배경 줌아웃 효과 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right 20%;
    transform-origin: right 20%;
    z-index: 1;
    animation: zoomOutBg 10s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-inner {
    position: relative;
    z-index: 2; /* 텍스트 및 버튼이 배경 줌아웃 레이어 위에 노출되도록 강제 */
}

@keyframes zoomOutBg {
    0% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1.0);
    }
}

/* 2. 관리자 대시보드 전용 스타일 */
.admin-dashboard-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 20px;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.admin-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* KPI 통계 카드 Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-icon.blue { background-color: rgba(54, 162, 235, 0.1); color: #36a2eb; }
.kpi-icon.green { background-color: rgba(75, 192, 192, 0.1); color: #4bc0c0; }
.kpi-icon.orange { background-color: rgba(255, 159, 64, 0.1); color: #ff9f40; }
.kpi-icon.purple { background-color: rgba(153, 102, 255, 0.1); color: #9966ff; }

.kpi-info .kpi-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.kpi-info .kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 2단 레이아웃 (테이블 & 배너 설정) */
.admin-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.admin-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 24px;
}

/* 테이블 디자인 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    background-color: #fafaf9;
    font-weight: 700;
    color: var(--text-muted);
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

/* 배너 매니저 내부 UI */
.banner-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.banner-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.banner-thumb-wrap {
    height: 120px;
    overflow: hidden;
    position: relative;
}

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

.banner-item-info {
    padding: 12px;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.banner-status-tag {
    font-size: 0.75rem;
    padding: 2px 6px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 700;
    display: none;
}

.banner-item.active .banner-status-tag {
    display: inline-block;
}

.btn-apply-banner {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
}

.btn-apply-banner:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 991px) {
    .admin-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* 서브페이지 및 게시판 하단 푸터 겹침 오류 강제 해결 */
body {
    display: block !important;
}

.container {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.sub-content-wrap {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.footer {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
}
