/* =========================================
   1. RESET & BASE (초기화 및 기본 설정)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-x: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    color: #374151; /* 기본 텍스트 색상 지정 */
}

/* =========================================
   2. LAYOUT (레이아웃 구조)
   ========================================= */
/* 메인 콘텐츠 래퍼 */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe, #eff6ff);
    z-index: 1;
}

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

/* 메인 섹션 스타일 */
#main {
    padding: 6em 0 2em 0;
    position: relative;
    z-index: 2;
}

section .inner {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
}

/* =========================================
   3. HEADER / NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #dbeafe;
}

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

/* 로고 */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.02);
}

/* 네비게이션 */
nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav > a {
    position: relative;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav > a:hover,
nav > a.active {
    color: #1e3a8a;
}

nav > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #1e3a8a, #1e40af);
    transition: width 0.3s ease;
}

nav > a:hover::after,
nav > a.active::after {
    width: 100%;
}

/* 드롭다운 메뉴 */
.nav-item-with-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-item-with-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 192px;
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item-with-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #eff6ff;
    color: #1e3a8a;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
    color: #1e3a8a;
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #dbeafe;
    padding: 16px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: #eff6ff;
    color: #1e3a8a;
}

.mobile-submenu {
    padding-left: 16px;
    margin-top: 4px;
}

.mobile-submenu a {
    font-size: 0.875rem;
    color: #6b7280;
}

/* =========================================
   4. GALLERY COMPONENTS (사진 크기 축소 버전)
   ========================================= */
.entry {
    display: inline-block;
    width: 100%;
}

.entry-theme-photo {
    /* 전체 컨테이너 너비도 살짝 줄여서 오밀조밀하게 */
    max-width: 700px; 
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 2em 0;
    text-align: center; /* 내부 요소 중앙 정렬 */
}

/* 사진 래퍼 */
.photo-wrapper {
    margin: 0 0 15px 0; /* 사진과 아래 설명 사이 간격 줄임 */
    width: 100%;
    display: flex;
    justify-content: center;
}

.photo-image {
    display: block;
    width: auto;      /* 가로를 꽉 채우지 않고 비율에 맞게 */
    max-width: 100%;  /* 화면 넘어가지 않게 제한 */
    
    /* [핵심] 높이를 400px로 제한 (기존 550px -> 400px) */
    height: auto;
    max-height: 400px; 
    
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 하단 정보 박스 스타일 (슬림 버전 유지) */
.entry-theme-photo-footer {
    display: inline-block; /* 내용만큼만 너비 차지 */
    padding: 10px 24px;
    background: #f8fafc;
    border-radius: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin-top: 5px;
}

/* 하단 텍스트 스타일 */
.footer-info {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    
    font-size: 0.9rem;    /* 글자 크기 적당히 작게 */
    color: #475569;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.footer-titles {
    color: #1e293b;
    font-weight: 500;
}

.footer-date {
    color: #94a3b8;
    font-size: 0.85rem;
    position: relative;
    padding-left: 12px;
}

.footer-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background-color: #cbd5e1;
}

/* Swiper 컨테이너 */
.swiper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}
/* =========================================
   5. NEWS SECTION COMPONENTS
   ========================================= */
#news {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 5;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: bold;
    background: linear-gradient(to right, #1e3a8a, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: #6b7280;
    max-width: 672px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 뉴스 카드 등 나머지 뉴스 스타일은 유지 */
.news-container { max-width: 896px; margin: 0 auto; position: relative; }
.news-wrapper { position: relative; overflow: hidden; }
.news-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.news-card:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.news-card.hidden { display: none; }
.news-image-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.news-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent); z-index: 10; }
.news-image { width: 100%; height: 100%; object-fit: cover; }
.news-info { padding: 24px; }
.news-date, .news-location { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; margin-bottom: 8px; }
.news-date { color: #1e3a8a; }
.news-location { color: #6b7280; margin-bottom: 12px; }
.news-date svg, .news-location svg { width: 16px; height: 16px; }
.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #1e3a8a, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.4;
}
.news-description { color: #6b7280; line-height: 1.6; }
.nav-button {
    position: absolute; top: 33.333%; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.9);
    border: 1px solid #93c5fd; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; z-index: 20;
}
.nav-button:hover { background: white; border-color: #2563eb; }
.nav-button svg { width: 24px; height: 24px; color: #1e3a8a; }
.nav-button-prev { left: 16px; }
.nav-button-next { right: 16px; }
.dots-container { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot { height: 8px; border-radius: 9999px; transition: all 0.3s ease; cursor: pointer; }
.dot.active { width: 32px; background: linear-gradient(to right, #1e3a8a, #1e40af); }
.dot.inactive { width: 8px; background: #d1d5db; }
.dot.inactive:hover { background: #93c5fd; }

/* =========================================
   6. BACKGROUND DECORATION
   ========================================= */
.background-decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(64px); opacity: 0.2; animation: blob 7s infinite; }
.blob-1 { top: 80px; right: 25%; width: 256px; height: 256px; background-color: #bfdbfe; }
.blob-2 { top: 160px; left: 33.333%; width: 288px; height: 288px}

 footer {
    background: linear-gradient(to bottom right, #111827, #172554, #1e3a8a);
    border-top: 1px solid #f3f4f6; /* 아주 연한 구분선 */
    padding: 24px 0; /* 상하 여백 축소 */
    margin-top: auto;
    z-index: 10;
    text-align: center;
}

.footer-pattern { display: none; } /* 패턴 제거 */

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-title {
    margin-bottom: 8px;
    font-size: 1.1rem; /* 제목 크기 대폭 축소 */
    font-weight: 700;
    color: #1e3a8a; /* 단색 블루 */
    background: none;
    -webkit-text-fill-color: initial;
}

.footer-address {
    color: #6b7280; /* 회색 */
    margin-bottom: 4px;
    line-height: 1.5;
    font-size: 0.8rem; /* 주소 폰트 축소 */
}

.footer-copyright {
    color: #9ca3af; /* 연한 회색 */
    font-size: 0.75rem; /* 카피라이트 폰트 축소 */
    margin-top: 12px;
}



/* ========== 반응형 (모바일) ========== */
@media (max-width: 768px) {
    
    /* [핵심 수정] 데스크탑 메뉴(긴 줄)를 숨깁니다 */
    nav {
        display: none;
    }

    /* [핵심 수정] 햄버거 버튼을 화면에 표시합니다 */
    .mobile-menu-button {
        display: block; /* 기존 none에서 block으로 변경 */
        padding: 4px;
    }

    /* 헤더 높이 및 여백 조정 */
    .header-inner {
        height: 60px;
        padding: 0 12px;
    }

    /* 로고 위치 초기화 (PC용 음수 마진 제거) */
    .logo {
        margin-left: 0;
    }

    /* 로고 이미지 크기 모바일에 맞게 축소 */
    .logo-image {
        height: 40px;
        width: auto;
    }
    

}