/* 아카이브 공통 스타일 */

/* 서브타이틀 숨김 */
.submenu_current_title { display: none; }

/* Hero Section (풀스크린 이미지와 타이틀) */
.hero-section { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 0; z-index: 9999; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out; will-change: transform, opacity; }

/* Hero section이 보이는 동안 본문 스크롤 막기 */
body.hero-active { overflow: hidden; height: 100vh; position: fixed; width: 100%; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background-image: url('/resources/view/archive/images/hero-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; }
.hero-background::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; margin-top: 200px; }
.hero-title { font-size: 5rem; font-weight: 700; color: #ffffff; margin: 0 0 0 0; letter-spacing: -0.05em; line-height: 1.2; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); animation: fadeInUp 0.8s ease-out; }

/* Hero Divider */
.hero-divider { width: 1px; height: 150px; background: #ffffff; margin: 40px auto; box-shadow: 0 0 5px rgb(0 0 0 / 50%); }

/* 스크롤 인디케이터 */
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 0; animation: bounce 2s infinite; }
.scroll-text { font-size: 0.9rem; color: #ffffff; font-weight: 400; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); letter-spacing: 0.1em; }
.scroll-arrow { font-size: 1.5rem; color: #ffffff; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); animation: scrollDown 1.5s infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scrollDown { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.5; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 페이지 제목 섹션 */
.page-title-section { display: flex; justify-content: space-between; margin: 100px 0 30px 0; border-bottom: 1px solid #adadad; padding-bottom: 30px; opacity: 0; transform: translateY(-30px); animation: fadeInUp 0.4s ease-out forwards; }
.page-title-section .page-title { opacity: 0; transform: translateY(-20px); animation: fadeInUp 0.4s ease-out 0.1s forwards; }
.page-title-section .location { opacity: 0; transform: translateY(-20px); animation: fadeInUp 0.4s ease-out 0.15s forwards; }

/* 메인 컨텐츠 애니메이션 */
#main.container { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease-out 0.6s forwards; }
.page-title-section.scroll-title {padding: 40px 0 20px 0; margin-bottom: 40px; text-align: left; }
.page-title { font-size: 3.4rem; font-weight: 600; color: #000; letter-spacing: -0.05em; line-height: 1.2; }

/* 브레드크럼 네비게이션 스타일 (가로 배치) */
.page-title-section.scroll-title .location { display: block !important; text-align: left; padding: 0; margin: 0; flex-shrink: 0; }
.page-title-section.scroll-title .location .current_location { justify-content: flex-start; }

/* 검색 섹션 */
.search-section { margin-bottom: 40px; padding: 35px 35px 15px 35px; background: #fff; border:1px solid #adadad; border-radius: 4px; }
.search-form-wrapper { display: flex; flex-direction: column; gap: 15px; }
.search-type-selector { display: flex; align-items: center; gap: 20px; padding-bottom: 15px; margin-bottom: 5px; }
.search-type-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #666; cursor: pointer; transition: color 0.3s ease; }
.search-type-label:hover { color: #333; }
.search-type-label input[type="radio"] { margin: 0; cursor: pointer; accent-color: var(--color); }
.search-input-wrapper { display: flex; gap: 0; align-items: stretch; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; background: #fff; }
.search-input { flex: 1; border: none; border-radius: 0; padding: 12px 16px; font-size: 0.95rem !important; transition: all 0.3s ease; outline: none; background: transparent; }
.search-input:focus { outline: none; }
.search-input::placeholder { color: #999; }
.search-input-wrapper:focus-within { border-color: var(--color); }
.search-btn { display: flex; margin: 5px; align-items: center; justify-content: center; padding: 12px 20px; background: var(--color); color: #ffffff; border: none; border-radius: 3px; cursor: pointer; font-size: 1rem; transition: all 0.3s ease; min-width: 50px; }
.search-btn:hover { background: var(--secondary-color); }
.search-btn:active { transform: scale(0.98); }

/* 필터 섹션 */
.filter-section-wrapper { margin-top: 20px; width: 100%; }
.detail-search-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: #ffffff; color: #333; border: 1px solid #adadad; border-radius: 4px; font-size: 0.9rem; font-weight: 400; cursor: pointer; transition: all 0.3s ease; margin-bottom: 0; }
.detail-search-btn:hover { background: #f8f9fa; border-color: #6c757d; transform: translateY(-1px); }
.detail-search-btn .toggle-icon { font-size: 0.9rem; transition: transform 0.3s ease; }
.detail-search-btn.collapsed .toggle-icon { transform: rotate(180deg); }
.filter-section { padding: 30px; padding-bottom: 30px; border: 1px solid #adadad; border-radius: 4px; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease; max-height: 2000px; opacity: 1; margin-top: 0; width: 100%; margin-bottom: 30px; }
.filter-section.collapsed { max-height: 0; opacity: 0; margin-bottom: 0; padding: 0 30px; border: none; }
.filter-group { margin-bottom: 30px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title { font-size: 1.1rem; font-weight: 600; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; transition: color 0.3s ease; }
.filter-group-title:hover { color: var(--color); }
.filter-group-title .toggle-icon { font-size: 0.9rem; transition: transform 0.3s ease; color: #666; margin-left: 10px; }
.filter-group-title:hover .toggle-icon { color: var(--color); }
.filter-group-title.collapsed .toggle-icon { transform: rotate(-90deg); }
.filter-group-title:not(.collapsed) .toggle-icon { transform: rotate(0deg); }
.filter-group-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease; max-height: 1000px; opacity: 1; margin-bottom: 0; }
.filter-group-content.collapsed { max-height: 0; opacity: 0; margin-bottom: 0; padding: 0; }
.filter-options { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-select { background: #ffffff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 15px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; min-width: 140px; outline: none; }
.filter-select:hover { border-color: var(--color); }
.filter-select:focus { border-color: var(--color); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
.filter-category-list { display: flex; flex-wrap: wrap; }
.filter-category-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; color: #555; }
.filter-category-item input[type="checkbox"] { margin: 0; cursor: pointer; position: absolute; opacity: 0; width: 0; height: 0; }
.filter-category-item span { display: inline-block; padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px; background: #ffffff; transition: all 0.3s ease; min-width: 80px; text-align: center; }
.filter-category-item input[type="checkbox"]:checked + span { background: var(--color); color: #ffffff; border-color: var(--color); }
.filter-category-item:hover span { border-color: var(--color); }
.filter-category-item:hover { color: var(--color); }

/* 리스트 헤더 섹션 */
.list-header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px;}
.filter-confirm-section { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; width: 50%; }
.filter-confirm-title { font-size: 1rem; font-weight: 600; color: #333; margin: 0; }
.reset-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: #454545; color: #ffffff; border: 1px solid #454545; border-radius: 4px; font-size: 0.9rem; font-weight: 400; cursor: pointer; transition: all 0.3s ease; }
.reset-btn:hover { background: #5a6268; transform: translateY(-1px); }
.list-info-section { display: flex; align-items: center; gap: 20px; }
.total-count-info { font-size: 1rem; color: #333; }
.total-count-info strong { color: #333; }
.sort-section { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 0.95rem; color: #555; }
.sort-select { background: #ffffff; border: 1px solid #ddd; border-radius: 4px; padding: 8px 12px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; outline: none; }
.sort-select:hover { border-color: var(--color); }
.sort-select:focus { border-color: var(--color); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }

/* 갤러리 컨테이너 */
.events-container { margin-bottom: 50px; }
.events-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 50px; }
.festival-gallery-item { cursor: pointer; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.festival-gallery-item:hover { transform: translateY(-3px); }
.festival-image-wrapper { position: relative; width: 100%; padding-top: 75%; overflow: hidden; background: #f5f5f5; }
.festival-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.festival-gallery-item:hover .festival-image { transform: scale(1.05); }
.festival-status-badge {color: #fff; position: absolute; background: #000; top: 12px; right: 12px; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; z-index: 1; }
.festival-status-badge.status-ongoing { background: #28a745; color: #ffffff; }
.festival-status-badge.status-scheduled { background: #ffc107; color: #000000; }
.festival-status-badge.status-completed { background: #6c757d; color: #ffffff; }
.festival-status-badge.status-cancelled { background: #dc3545; color: #ffffff; }
.festival-content { padding: 20px 0; flex: 1; display: flex; flex-direction: column; }
.festival-category { font-size: 1rem; color: #b5a182; margin-bottom: 8px; font-weight: 500; }
.festival-title { font-size: 1.5rem; font-weight: 600; color: #333; margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.festival-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; font-size: 1rem; color: #a1a1a1; }
.festival-year { font-weight: 500; color: #888; }
.festival-date { color: #a1a1a1; display: flex; align-items: center; gap: 4px; }
.festival-date:before { content: '\f073'; font-family: 'Font Awesome 5 Free'; font-weight: 400; font-size: 0.75rem; color: #a1a1a1; }
.festival-location { font-size: 1rem; color: #a1a1a1; display: flex; align-items: center; gap: 4px; margin-top: auto; }
.festival-location:before { content: '\f041'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.75rem; color: #a1a1a1; }

/* 데이터 없음 메시지 */
.no-data-message { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.no-data-message p { font-size: 1.2rem; margin: 0; }

/* 페이지네이션 */
.pagination-container { display: flex; justify-content: center; margin-top: 50px; margin-bottom: 50px; }
.pagination { display: flex; align-items: center; gap: 5px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #e5e5e5; background: #ffffff; color: var(--text-primary); border-radius: 5px; cursor: pointer; transition: all 0.3s ease; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.page-btn:hover:not(:disabled) { background: var(--color); color: #ffffff; border-color: var(--color); }
.page-btn.active { background: var(--color); color: #ffffff; border-color: var(--color); font-weight: 600; border: 1px solid #fff; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-ellipsis { padding: 0 5px; color: var(--text-secondary); }

/* 반응형 디자인 */
@media (max-width: 1500px) {
    .events-gallery { grid-template-columns: repeat(3, 1fr) !important; gap: 25px; }
}
@media (max-width: 1024px) {
    .events-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
}
@media (max-width: 768px) {
    .hero-section { height: 70vh; min-height: 400px; }
    .hero-title { font-size: 3rem; margin-bottom: 0; }
    .hero-divider { height: 60px; margin: 30px auto; }
    .scroll-indicator { margin-top: 0; gap: 8px; }
    .scroll-text { font-size: 0.8rem; }
    .scroll-arrow { font-size: 1.2rem; }
    .page-title-section { gap: 10px; justify-content: space-between; flex-direction: column; align-items: center; margin: 0px 0 10px 0; }
    .page-title-section.scroll-title { flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px 15px; }
    .page-title-section.scroll-title .page-title { font-size: 1.5rem; margin: 0; }
    .page-title-section.scroll-title .location { width: 100%; }
    .page-title { font-size: 2.5rem; }
    .page-title-divider { width: 1px; height: 35px; }
    .search-section { padding: 12px 15px; margin-bottom: 20px; }
    .filter-section { padding: 12px 15px; }
    .search-form-wrapper { gap: 10px; }
    .search-type-selector { gap: 10px; padding-bottom: 10px; margin-bottom: 5px; }
    .search-type-label { font-size: 0.8rem; gap: 4px; }
    .search-input { padding: 8px 12px; font-size: 0.85rem; }
    .search-btn { padding: 8px 14px; font-size: 0.85rem; min-width: 45px; }
    .filter-group { margin-bottom: 20px; }
    .filter-group-title { font-size: 0.95rem; margin-bottom: 10px; padding-bottom: 8px; }
    .filter-select { padding: 7px 12px; font-size: 0.8rem; min-width: 120px; }
    .filter-category-item { font-size: 0.85rem; gap: 6px; }
    .filter-category-item span { padding: 6px 12px; font-size: 0.85rem; min-width: 70px; }
    .filter-confirm-title { font-size: 0.9rem; }
    .list-header-section, .list-info-section { align-items: center;  gap: 10px;margin-bottom: 0px;}
    .filter-confirm-section {width: 100%; gap: 10px !important;}
    .filter-confirm-title {width: 100%;}
    .filter-section-wrapper {margin-top: 10px;}
    .total-count-info { font-size: 0.85rem; }
    .sort-label { font-size: 0.85rem; }
    .sort-select { padding: 6px 10px;  }
    .events-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .festival-content { padding: 15px; }
    .festival-title { font-size: 0.95rem; margin-bottom: 5px;}
    .festival-category {font-size: 0.8rem; margin-bottom: 5px;}
    .festival-meta, .festival-location { font-size: 0.8rem; }
}
@media (max-width: 560px) {
    .page-title { font-size: 2rem; }
    .page-title-divider { width: 1px; height: 30px; }
    .search-section { padding: 10px 12px; margin-bottom: 15px; }
    .search-form-wrapper { gap: 8px; }
    .search-type-selector { gap: 8px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 5px; }
    .search-type-label { font-size: 0.75rem; gap: 3px; }
    .search-input-wrapper { flex-direction: column; gap: 0; }
    .search-input { width: 100%; padding: 7px 10px; font-size: 0.8rem; }
    .search-btn { width: 100%; padding: 7px 12px; font-size: 0.8rem; min-width: auto; }
    .filter-section { padding: 10px 12px; }
    .filter-group { margin-bottom: 15px; }
    .filter-group-title { font-size: 0.85rem; margin-bottom: 8px; padding-bottom: 6px; }
    .filter-options { gap: 8px; flex-wrap: wrap; }
    .filter-select { padding: 6px 10px; font-size: 0.75rem; min-width: 120px; }
    .filter-category-item { font-size: 0.8rem; gap: 5px; }
    .filter-category-item span { padding: 5px 10px; font-size: 0.8rem; min-width: 60px; }
    .filter-confirm-title { font-size: 0.85rem; }
    .total-count-info { font-size: 0.8rem; }
    .sort-label { font-size: 0.8rem; }
    .events-gallery { gap: 10px; }
    .pagination { flex-wrap: wrap; justify-content: center; }
    .page-btn { min-width: 35px; height: 35px; font-size: 0.85rem; }
    .festival-content { padding: 12px 0px; }
    .detail-search-btn, .reset-btn, .sort-select {padding: 5px 10px; height: auto;}
}
    .filter-confirm-section {gap: 5px;}
    .filter-confirm-title {width: 100%;}
    .filter-section {padding: 20px;}
    .filter-group {margin-bottom: 10px;}
    .filter-group-title {font-size: 0.8rem; margin-bottom: 6px; padding-bottom: 4px;}
    .filter-options {gap: 6px; flex-wrap: wrap;}
    .filter-select {padding: 5px 10px; }

/* 다크모드 스타일 (color_change 클래스가 있을 때) */
html.color_change { background: #292723; transition: background-color 0.3s ease; }
html.color_change body { background: #292723; color: #ffffff; transition: background-color 0.3s ease, color 0.3s ease; }
html.color_change .page-title-section { border-bottom-color: #666666; }
html.color_change .filter-section,
html.color_change .search-section {border-color: #666666; color: #ffffff; }
html.color_change .search-input::placeholder { color: #999999; }
html.color_change .festival-category { color: #b5a182; }
html.color_change .sort-label,
html.color_change .filter-category-item,
html.color_change .festival-meta,
html.color_change .festival-location { color: #cccccc; }
html.color_change .search-type-label { color: #cccccc; }
html.color_change .search-type-label:hover { color: #ffffff; }
html.color_change .search-type-label input[type="radio"] { accent-color: var(--color); filter: brightness(1.5); }
html.color_change .filter-category-item span { background: #1a1a1a; border-color: #666666; color: #cccccc; }
html.color_change .filter-category-item input[type="checkbox"]:checked + span { background: #ffffff; color: #000000; border-color: #ffffff; }
html.color_change .filter-category-item:hover span { border-color: var(--color); }
html.color_change .detail-search-btn { background: #292723; border-color: #666666; color: #ffffff; }
html.color_change .detail-search-btn:hover { background: #333333; border-color: #888888; }
html.color_change .filter-group-title { color: #ffffff; border-bottom-color: #666666; }
html.color_change .reset-btn { background: #454545; color: #ffffff; }
html.color_change .reset-btn:hover { background: #5a6268; }
html.color_change .stat-icon img { filter: invert(1); }
html.color_change #main.container,
html.color_change .page-title,
html.color_change .stat-count,
html.color_change .category-description,
html.color_change .filter-confirm-title, 
html.color_change .current-page,
html.color_change .festival-title,
html.color_change .total-count-info,
html.color_change .total-count-info strong { color: #ffffff; }

/* table style */
.content-section table{width:100%;border-collapse:collapse; min-width: 1000px;}
.content-section table.table_center{text-align: center;}
.content-section table th{background: #f7f7f7; border: 1px solid #ccc; border-top: 2px solid #323232; padding: 20px;text-align: center;white-space: nowrap;}
.content-section table th:first-child{border-left: none;}
.content-section table th:last-child{
    border-right: none;
    max-width: 100%;
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
.content-section table td {font-size: 16px; border: 1px solid #ccc; padding: 20px; text-align: center;  white-space: normal !important;}
.content-section table td:first-child{border-left: none;}
.content-section table td:last-child{border-right: none;}
.content-section table td.left {text-align: left;}
.content-section table th.row_th{ border-top: 1px solid #ccc;}
.content-section table .top_border{ border-top: 2px solid #323232;}

  @media (max-width: 1000px) {
    .board {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .content-section table {
        font-size: 0.9rem !important;
        min-width: 600px !important;
        width: auto !important;
        display: table !important;
    }
    
  .content-section table th,
  .content-section table td {
        padding: 10px 8px !important;
        white-space: nowrap !important;
  }
    
  .content-section table th {
        font-size: 0.85rem !important;
        background: #f5f5f5 !important;
  }
    
  .content-section table td {
    font-size: 0.85rem !important;
  }
  }