/* 단비 요양원 - 메인 스타일시트 */

/* 기본 리셋 및 변수 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 색상 변수 */
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-color: #fff;
    
    /* 폰트 */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* 간격 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* 반응형 브레이크포인트 */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* 기본 스타일 */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    overflow-x: hidden;
}

/* 헤더 스타일 */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* 헤더 내부 컨테이너는 고정 너비 유지 */
.header .container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-md) 0;
    min-height: 90px;
    gap: var(--spacing-xl);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: var(--spacing-lg);
    pointer-events: auto;
}

/* 로고 링크 포커스 테두리 제거 */
.logo a:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.logo {
    pointer-events: auto;
}

.no-mega-menu {
    pointer-events: auto;
}

.no-mega-menu:hover ~ .main-nav .mega-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* 로고 이미지 포커스 테두리 제거 */
.logo-img:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 홈 버튼 스타일 */
.home-button {
    margin-left: var(--spacing-lg);
    z-index: 1002;
}

.home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: auto;
    height: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-link:hover {
    color: #764ba2;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.home-icon {
    font-size: 26px;
    transition: all 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 순수 CSS 집 모양 아이콘 */
.home-icon.fas {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
}

.home-icon.fas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* 지붕 */
        linear-gradient(135deg, transparent 30%, currentColor 30%, currentColor 70%, transparent 70%),
        /* 집 몸체 */
        linear-gradient(to bottom, currentColor 0%, currentColor 100%);
    background-size: 100% 40%, 60% 60%;
    background-position: 0 0, 50% 40%;
    background-repeat: no-repeat;
}

.home-icon.fas::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.home-link:hover .home-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
}

.home-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.home-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.8);
}

.home-link:hover .home-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    min-width: fit-content;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--light-color);
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
}

/* 메가메뉴 패널 */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    margin-top: -1px;
}

.mega-panel.hidden {
    display: none;
}

/* 호버 시 메가메뉴 표시 (데스크톱만) */
@media (min-width: 769px) {
    .main-nav:hover .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* 메가메뉴 패널 자체에 호버 시 유지 */
    .mega-panel:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--spacing-md);
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.mega-column {
    min-width: 160px;
    padding: 0 var(--spacing-xs);
}

.mega-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-xs);
    border-radius: 4px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
    position: relative;
}

.mega-title a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    line-height: 1.3;
    overflow: visible;
}

.mega-title a::before {
    display: none;
}

.mega-title a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.mega-title a:hover::before {
    display: none;
}

.mega-links {
    list-style: none;
}

.mega-item {
    margin-bottom: var(--spacing-xs);
}

.mega-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-xs);
    display: block;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    overflow: visible;
}

.mega-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.mega-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-link:hover::before {
    width: 100%;
}

.mega-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--text-light);
    padding: var(--spacing-sm);
}

.mega-close:hover {
    color: var(--text-color);
}

/* 페이지 헤더 스타일은 page_header.php에서 관리 */

.breadcrumb-nav {
    margin-top: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    align-items: center;
    background: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    border: 2px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breadcrumb-item {
    color: var(--text-color);
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: var(--spacing-sm);
    color: var(--text-light);
}

.breadcrumb-item.current {
    color: var(--dark-color);
    font-weight: 500;
}

.breadcrumb-item a {
    text-decoration: none;
    color: inherit;
}

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

.breadcrumb-item.home-item a {
    font-size: 16px;
    text-decoration: none;
    color: var(--text-color);
}

.breadcrumb-item.home-item a:hover {
    color: var(--primary-color);
}

/* 메인 콘텐츠 */
.main-content {
    min-height: calc(100vh - 200px);
    overflow: visible;
}

.content-wrapper {
    display: block;
    padding: var(--spacing-xl) 0;
    margin-top: -20px;
    margin-left: 320px;
    margin-right: var(--spacing-md);
}

/* 2025 모던 사이드바 디자인 */
.sidebar {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    height: fit-content;
    position: fixed;
    top: 250px;
    left: 50px;
    width: 280px;
    box-shadow: none;
    border: none;
    overflow: visible;
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: none;
}


.sidebar:hover {
    transform: none;
    box-shadow: none;
}

.sidebar-header {
    background: linear-gradient(to bottom, #2d5a27 0%, #3a6b2f 20%, #4a7c59 40%, #6b9b73 60%, #8db896 80%, rgba(141, 184, 150, 0.1) 100%);
    padding: 20px 20px 100px 20px;
    margin: 0;
    border-radius: 32px 32px 24px 24px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(45, 90, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    z-index: 2001;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(45, 90, 39, 0.1) 20%,
        rgba(45, 90, 39, 0.05) 40%,
        rgba(45, 90, 39, 0.02) 60%,
        rgba(255, 255, 255, 0.02) 80%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes clickPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@keyframes smoothSlide {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(6px) translateY(-2px);
    }
}

.sidebar-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    animation: none;
    text-transform: uppercase;
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

@keyframes textGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.toggle-icon {
    width: 18px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.toggle-icon::before {
    top: -6px;
}

.toggle-icon::after {
    top: 6px;
}

.sidebar-content {
    display: block;
    padding: 0 0 0 0;
    background: transparent;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    margin: -30px 20px 0 20px;
    position: relative;
    z-index: 10001;
    border: none;
    backdrop-filter: none;
    width: calc(100% - 40px);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 0 0 8px 0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    background: white;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1003;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(168, 85, 247, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.sidebar-item:hover {
    transform: translateX(6px) translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
    background: white;
}

.sidebar-item:hover::before {
    opacity: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    letter-spacing: 0.5px;
    background: white;
    border: none;
    margin: 0;
    z-index: 1;
    overflow: hidden;
    text-transform: capitalize;
    cursor: pointer;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.sidebar-link:hover::before {
    left: 100%;
}


.sidebar-link:hover {
    color: #374151;
    font-weight: 500;
    background: white;
    transform: translateX(2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link.active {
    background: white;
    color: #ff6b35;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transform: translateX(6px) translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    text-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: smoothSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #ff6b35;
    border-radius: 0 2px 2px 0;
    z-index: 3;
    display: block;
}

.sidebar-link.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sidebar-link:focus {
    outline: none;
    animation: clickPulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:active {
    transform: scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}




.sidebar-contact {
    border-top: 1px solid #e5e7eb;
    padding: 20px 0 0 0;
    margin: 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.contact-icon {
    font-size: 18px;
    margin: 0;
}

/* 콘텐츠 영역 */
.content-area {
    background: var(--bg-color);
    border-radius: 8px;
    padding: var(--spacing-xl);
    width: 100%;
    max-width: none;
}

.content-area.full-width {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* 페이지 헤더 (중복 제거됨) */

/* 중복 제거됨 */

.page-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.5;
}

/* 카드 컴포넌트 */
.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.card-body {
    line-height: 1.6;
}

/* 테이블 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: bold;
    color: var(--primary-color);
}

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

/* 버튼 */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* 푸터 */
.footer {
    background: var(--dark-color);
    color: var(--bg-color);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-info {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--bg-color);
}

.footer-details p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    color: var(--bg-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--bg-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.family-links {
    list-style: none;
}

.family-links li {
    margin-bottom: var(--spacing-sm);
}

.family-links a {
    color: var(--bg-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.family-links a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.footer-policy {
    display: flex;
    gap: var(--spacing-lg);
}

.policy-link {
    color: var(--bg-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.policy-link:hover {
    opacity: 1;
}

/* 유틸리티 클래스 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .mega-grid {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .mega-column {
        min-width: 140px;
    }
    
    .content-wrapper {
        margin-left: 300px;
        margin-right: var(--spacing-sm);
    }
    
    /* 헤더는 항상 고정 너비 유지 */
    .header .container {
        max-width: 1200px !important;
    }
}

@media (max-width: 992px) {
    .mega-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .mega-column {
        min-width: 130px;
    }
    
    .content-wrapper {
        margin-left: 260px;
        margin-right: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    /* 헤더는 항상 고정 너비 유지 */
    .header .container {
        max-width: 1200px !important;
    }
}

/* 태블릿 반응형 */
@media (max-width: 992px) and (min-width: 769px) {
    .logo a {
        margin-right: var(--spacing-md);
    }
    
    .main-nav {
        margin-left: var(--spacing-sm);
    }
    
    .nav-link {
        font-size: 13px;
        padding: var(--spacing-sm) var(--spacing-md);
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .nav-list {
        gap: var(--spacing-sm);
    }
    
    .mega-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
        max-width: 200px;
    }
    
    .logo a {
        margin-right: var(--spacing-sm);
    }
    
    .home-button {
        margin-left: var(--spacing-sm);
    }
    
    .home-link {
        padding: 8px 10px;
    }
    
    .home-icon {
        font-size: 24px;
    }
    
    /* 헤더는 항상 고정 너비 유지 */
    .header .container {
        max-width: 1200px !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: var(--spacing-md);
        margin-left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .nav-link {
        padding: var(--spacing-lg);
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
        transition: width 0.3s ease;
        border-radius: 2px;
    }
    
    .page-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .nav-link:hover {
        transform: translateY(-1px);
    }
    
    .nav-link:hover::before {
        width: 100%;
    }
    
    .nav-link.active::before {
        width: 100%;
    }
    
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .mega-column {
        min-width: 100px;
    }
    
    .content-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: var(--spacing-lg) 0;
    }
    
    .sidebar {
        position: static;
        margin-bottom: var(--spacing-lg);
        border-radius: 16px;
        box-shadow: none;
    }
    
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
    
    .sidebar-toggle {
        display: block;
        padding: 6px;
    }
    
    .toggle-icon {
        width: 16px;
    }
    
    .sidebar-content {
        display: none;
        padding: 0;
    }
    
    .sidebar-content.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .sidebar-link {
        padding: 12px 14px;
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .contact-btn {
        padding: 12px;
        font-size: 16px;
        width: 45px;
        height: 45px;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 소형 모바일 반응형 */
@media (max-width: 480px) {
    .sidebar {
        border-radius: 12px;
        margin-bottom: var(--spacing-md);
    }
    
    .sidebar-header {
        padding: 16px 12px;
    }
    
    .sidebar-title {
        font-size: 14px;
    }
    
    .sidebar-toggle {
        padding: 4px;
    }
    
    .toggle-icon {
        width: 14px;
        height: 1.5px;
    }
    
    .toggle-icon::before,
    .toggle-icon::after {
        height: 1.5px;
    }
    
    .sidebar-content {
        padding: 0;
    }
    
    .sidebar-link {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .contact-btn {
        padding: 10px;
        font-size: 14px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .contact-icon {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-policy {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }
    
    .mega-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: var(--spacing-md) 0;
    }
    
    /* 중복 제거됨 */
    
    .card {
        padding: var(--spacing-md);
    }
    
    .table {
        font-size: var(--font-size-sm);
    }
    
    .table th,
    .table td {
        padding: var(--spacing-sm);
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 스타일 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 스크린 리더 전용 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 공통 페이지 레이아웃 스타일 ===== */

/* 페이지 헤더 (중복 제거됨) */

/* 중복 제거됨 */

.page-description {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 섹션 공통 스타일 */
.section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* 카드 레이아웃 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.card {
    background: var(--light-color);
    border-radius: 8px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: block;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
}

/* 테이블 스타일 */
.table-container {
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: var(--spacing-lg);
    text-align: center;
    font-weight: bold;
    font-size: var(--font-size-sm);
}

.data-table td {
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:nth-child(even) {
    background: var(--light-color);
}

.data-table tr:hover {
    background: rgba(44, 90, 160, 0.05);
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* FAQ 스타일 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: background 0.3s ease;
    background: var(--bg-color);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question h3 {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.faq-toggle {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    display: none;
    background: var(--light-color);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 프로세스 스텝 */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.step-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -var(--spacing-xl);
    width: 2px;
    background: var(--border-color);
}

.step-item:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: var(--spacing-sm);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.step-details {
    list-style: none;
    padding: 0;
}

.step-details li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.step-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 하이라이트 박스 */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: 12px;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.highlight-box h3 {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.highlight-box p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

/* 반응형 디자인 추가 */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: var(--spacing-lg) 0;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        box-shadow: none;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        cursor: pointer;
        padding: 8px;
        transition: all 0.2s ease;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
    }
    
    .sidebar-toggle:hover {
        background: #e2e8f0;
    }
    
    .page-header {
        padding: 70px 0 50px 0;
    }
    
    /* 중복 제거됨 */
    
    .page-description {
        font-size: var(--font-size-base);
    }
    
    .section {
        padding: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-item::after {
        display: none;
    }
    
    .step-number {
        align-self: center;
    }
}

/* 푸터 스타일 */
.footer {
    background: #f8f9fa;
    margin-top: var(--spacing-xxl);
}

.footer-container {
    display: flex;
    min-height: 500px;
    max-width: 100%;
    overflow: hidden;
}

/* 왼쪽 지도 영역 */
.footer-map {
    flex: 0 0 65%;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f1f3f4, #e8eaed);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4285f4;
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-icon {
    font-size: 18px;
}

.marker-text {
    white-space: nowrap;
}

.map-scale {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 오른쪽 정보 영역 */
.footer-info {
    flex: 0 0 35%;
    background: #f8f9fa;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}


.footer-header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #4285f4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.footer-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.view-more-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background: #3367d6;
}

.footer-details {
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.info-content p {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.address-box {
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
}

.address-box p {
    color: #1976d2;
    font-weight: 500;
    margin: 0;
}

.warning-text {
    color: #d32f2f !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
}

/* 푸터 하단 */
.footer-bottom {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 15px;
}

.footer-copyright p {
    font-size: 14px;
    margin: 5px 0;
    color: #bdc3c7;
}

.footer-policy {
    text-align: center;
}

.policy-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #4285f4;
}

/* 반응형 푸터 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-map {
        flex: none;
        height: 300px;
    }
    
    .footer-info {
        flex: none;
        padding: 30px 20px;
    }
    
    .footer-subtitle {
        font-size: 20px;
    }
    
    .info-item {
        margin-bottom: 20px;
    }
    
    .footer-info::before {
        font-size: 150px;
        right: -15px;
    }
}
