/* ===================================================================
   2026 대덕대청호물결축제 - 공통 스타일시트
   색상은 포스터 팔레트 기준 (배경 #f1f6fc / 파랑 #2a88c8 / 진남 #014687 / 단풍 #f29051)
   =================================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #2a88c8;
    --primary-dark: #1b6aa6;
    --primary-rgb: 42, 136, 200;
    --navy: #014687;
    --sky: #9cd0ef;
    --sky-light: #d6ecf7;
    --accent: #f29051;
    --accent-rgb: 242, 144, 81;
    --soft-white: #ffffff;
    --text-dark: #1e2f40;
    --text-gray: #6b7a89;
    --bg-calm: #f1f6fc;
    --line: rgba(var(--primary-rgb), 0.18);
    --nav-height: 100px;
    --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    background-color: var(--bg-calm);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
    word-break: keep-all;        /* 한글 단어 중간 줄바꿈 방지 */
    overflow-wrap: break-word;   /* 긴 영문/URL 은 넘치지 않게 */
}
h1, h2, h3 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
/* 데스크탑 전용 줄바꿈: 모바일에서는 자연 줄바꿈 */
@media (max-width: 768px) { .br-pc { display: none; } }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 낙엽 애니메이션 --- */
.leaf-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; overflow: hidden;
}
.leaf {
    position: absolute; top: -6vh;
    border-radius: 0 70% 0 70%;
    opacity: 0;
    animation: leafFall linear infinite;
    will-change: transform, opacity;
}
.leaf::after {
    /* 잎맥 */
    content: ''; position: absolute; left: 50%; top: 8%;
    width: 1px; height: 84%;
    background: rgba(0, 0, 0, 0.14);
    transform: translateX(-50%) rotate(45deg);
}
@keyframes leafFall {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    35%  { transform: translate3d(5vw, 38vh, 0) rotate(120deg); }
    65%  { transform: translate3d(-4vw, 72vh, 0) rotate(230deg); }
    92%  { opacity: 0.6; }
    100% { transform: translate3d(3vw, 116vh, 0) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .leaf { display: none; }
}

/* --- 네비게이션 (데스크탑) --- */
.site-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: #ffffff;
    z-index: 2000;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.nav-inner {
    width: 100%; max-width: 1400px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 30px; gap: 40px;
}
.nav-logo img { height: auto; width: auto; max-height: 24px; max-width: min(300px, calc(100vw - 120px)); }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

.main-menu { display: flex; gap: 0; }
.main-menu > li { position: relative; }
.main-menu > li > a {
    font-weight: 700; font-size: 1.05rem; color: #000;
    padding: 28px 14px; display: block; transition: color 0.3s;
    white-space: nowrap;
}
.main-menu > li:hover > a,
.main-menu > li > a.active { color: var(--primary); }

.sub-menu {
    position: absolute; top: 100%; left: 50%;
    background: white; min-width: 160px; padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    border-top: 2px solid var(--primary);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s;
    transform: translateX(-50%) translateY(8px);
}
.main-menu > li:hover .sub-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.sub-menu li a {
    padding: 5px 16px; color: var(--text-gray); font-size: 0.82rem;
    display: block; transition: 0.2s; text-align: center;
    white-space: nowrap;
}
.sub-menu li a:hover { color: var(--primary); background: var(--bg-calm); }

/* --- 모바일 햄버거 메뉴 --- */
.mobile-menu-btn {
    display: none;
    position: fixed; top: 14px; right: 14px; z-index: 2100;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.95); border: none; border-radius: 10px;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: #333; border-radius: 2px; transition: 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 2050;
    background: rgba(0,0,0,0.4);
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav {
    position: fixed; top: 0; right: -300px; z-index: 2060;
    width: 280px; height: 100vh;
    background: white; padding: 70px 0 30px;
    overflow-y: auto; transition: right 0.35s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.mobile-nav.active { right: 0; }

.mobile-nav-logo {
    padding: 0 24px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.mobile-nav-logo img { height: auto; width: auto; max-height: 14px; max-width: 200px; }
.mobile-nav-home {
    display: block; padding: 14px 24px;
    font-weight: 700; font-size: 1rem; color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item > .mobile-nav-title,
.mobile-nav-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; font-weight: 700; font-size: 0.95rem; color: #333;
    cursor: pointer; transition: 0.2s;
}
.mobile-nav-item > .mobile-nav-title:hover,
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--primary); }
.mobile-nav-item > .mobile-nav-title .arrow {
    transition: transform 0.3s; font-size: 0.7rem; color: #aaa;
}
.mobile-nav-item.open > .mobile-nav-title .arrow { transform: rotate(180deg); }

.mobile-sub-menu {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    background: #fafafa;
}
.mobile-nav-item.open .mobile-sub-menu { max-height: 400px; }
.mobile-sub-menu a {
    display: block; padding: 11px 24px 11px 36px;
    font-size: 0.88rem; color: #888; transition: 0.2s;
}
.mobile-sub-menu a:hover { color: var(--primary); }

/* --- 공통 푸터 --- */
.site-footer {
    background: #f6f8fb; color: #333; padding: 50px 30px 30px;
    border-top: 1px solid #e3e9f0;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 40px; flex-wrap: wrap;
}
.footer-info { flex: 1; }
.footer-info-grid {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4px 30px;
}
.footer-info-grid p {
    font-size: 0.9rem; line-height: 1.9; color: #333;
}
.footer-info-grid p span {
    font-weight: 700; color: #555;
}
.footer-right { text-align: right; flex-shrink: 0; }
.footer-right { max-width: 100%; }
.footer-right img { width: 370px; max-width: 100%; height: auto; margin-bottom: 18px; margin-left: auto; }
.footer-social { display: flex; gap: 12px; justify-content: flex-end; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: transparent; color: #555;
    transition: 0.3s; font-size: 1.1rem;
}
.footer-social a:hover { opacity: 0.7; }
.footer-social a.sns-youtube svg { fill: #FF0000; }
.footer-social a.sns-instagram svg { fill: url(#ig-gradient); }
.footer-bottom {
    max-width: var(--max-width); margin: 20px auto 0;
    padding-top: 16px; border-top: 1px solid #e3e9f0;
    text-align: center; font-size: 0.82rem; color: #999;
}

/* --- 서브페이지 공통 --- */
.subpage-hero {
    padding-top: calc(var(--nav-height) + 29px);
    padding-bottom: 29px;
    text-align: center;
    background: linear-gradient(135deg, #e6f1fb 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}
.subpage-hero h1 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 2.5rem; color: var(--text-dark);
    margin-bottom: 0;
}

.subpage-content {
    max-width: 900px; margin: 0 auto;
    padding: 60px 30px 100px;
    min-height: 40vh;
}
/* --- 공통 배지 --- */
.info-badge {
    display: inline-block;
    background: var(--primary); color: #fff;
    padding: 3px 12px; border-radius: 12px;
    font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.info-badge.accent { background: var(--accent); }
.info-line {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 6px 0; font-size: 0.95rem; color: var(--text-dark); line-height: 1.8;
    flex-wrap: wrap;
}
.note-text {
    font-size: 0.85rem; color: var(--text-gray); text-align: center; margin-top: 10px;
}

/* --- 서브페이지 섹션 (제목 + 부제 + 내용) --- */
.sub-section {
    margin-bottom: 60px;
}
.sub-section:last-child { margin-bottom: 0; }
.sub-section .section-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.8rem; color: var(--text-dark);
    text-align: center; margin-bottom: 8px;
}
.sub-section .section-subtitle {
    font-size: 0.95rem; color: var(--text-gray);
    text-align: center; margin-bottom: 30px; font-weight: 300;
}
.sub-image-row {
    display: grid; gap: 16px; margin-bottom: 16px;
}
.sub-image-row:last-child { margin-bottom: 0; }
.sub-image-row.cols-2 { grid-template-columns: 1fr 1fr; }
.sub-image-row img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* --- 행사장 배치도 --- */
.map-frame {
    background: #fff; border-radius: 16px; padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.map-frame img { width: 100%; height: auto; border-radius: 8px; }
.map-hint-mobile { display: none; font-size: 0.8rem; color: var(--text-gray); text-align: center; margin-top: 10px; }

/* --- 준비중 안내 박스 --- */
.pending-box {
    background: #fff; border: 1px dashed rgba(var(--primary-rgb), 0.4);
    border-radius: 16px; padding: 48px 20px; text-align: center;
    color: #8a97a5; font-size: 1rem;
}
.pending-box .icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.pending-box strong { display: block; color: var(--primary); font-size: 1.05rem; margin-bottom: 4px; }

/* --- 축제소개 서브페이지 --- */
.sub-intro-body {
    display: flex; gap: 50px; align-items: flex-start;
}
.sub-intro-left {
    flex: 1; text-align: center;
}
.sub-intro-left .label {
    display: inline-block; padding: 8px 28px;
    background: var(--primary); color: #fff;
    border-radius: 20px; font-size: 0.95rem; font-weight: 700;
    margin-bottom: 24px;
}
.sub-intro-left h2 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.8rem; margin-bottom: 16px; color: var(--text-dark);
    text-align: center; word-break: keep-all;
}
.sub-intro-left .subtitle {
    font-size: 1.05rem; color: var(--text-gray); font-weight: 300;
    line-height: 1.8; margin-bottom: 36px;
    text-align: center; word-break: keep-all;
}
.sub-intro-left .intro-info-list {
    margin-bottom: 0;
    max-width: 420px; margin-left: auto; margin-right: auto;
    background: #fff; border-radius: 16px; padding: 20px 28px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.12);
    text-align: left;
}
.sub-intro-left .intro-info-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.sub-intro-left .intro-info-item:last-child {
    border-bottom: none;
}
.sub-intro-left .intro-info-item .info-label {
    font-size: 0.82rem; color: #fff; font-weight: 700;
    min-width: 48px; text-align: center; letter-spacing: 1px;
    background: var(--primary); padding: 3px 12px; border-radius: 12px;
    flex-shrink: 0; white-space: nowrap; margin-top: 4px;
}
.sub-intro-left .intro-info-item .info-value {
    font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
}
.sub-intro-poster {
    flex-shrink: 0; width: 460px;
}
.sub-intro-poster img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.sub-video-section {
    margin-top: 60px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.sub-video-section h3 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.4rem; text-align: center;
    margin-bottom: 24px; color: var(--text-dark);
}
.sub-video-wrapper {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #000;
}
.sub-video-wrapper video {
    width: 100%; display: block;
}

/* --- 인사말 레이아웃 --- */
.greeting-layout {
    display: flex; gap: 50px; align-items: flex-start;
}
.greeting-photo {
    flex: 0 0 380px; max-width: 380px;
}
.greeting-photo img {
    width: 100%; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}
.greeting-photo .greeting-caption {
    text-align: center; margin-top: 14px;
    font-size: 0.9rem; color: var(--text-gray);
}
.greeting-photo .greeting-caption strong {
    color: var(--text-dark); font-size: 1rem; margin-left: 6px;
}
.greeting-text {
    flex: 1; min-width: 0;
}
.greeting-text h2 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.35rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 22px; line-height: 1.6;
}
.greeting-text p {
    font-size: 0.95rem; color: #445;
    line-height: 1.95; margin-bottom: 16px;
}
.greeting-text p.emphasis {
    color: var(--navy); font-weight: 500;
}
.greeting-text .signature {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.1rem; font-weight: 700; color: var(--text-dark);
    margin-top: 28px; text-align: right;
}

/* --- 라인업 카드 (4:5 사진, 사진 없으면 플레이스홀더) --- */
/* 3열 기준 (그룹 카드는 2칸), 순서 유지 + 남는 줄은 가운데 정렬 / 모바일: 2열 */
.lineup-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
    max-width: 730px; margin-left: auto; margin-right: auto;   /* 본문 폭의 약 70% */
}
.lineup-grid + .lineup-grid { margin-top: 18px; }
.lineup-card {
    flex: 0 0 calc((100% - 36px) / 3); min-width: 0;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--line);
    text-align: center;
}
.lineup-card-wide { flex: 0 0 calc((100% - 36px) / 3 * 2 + 18px); }
.lineup-photo {
    flex: 1 1 auto;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #e3f0fb 0%, #c9e3f6 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 6px;
    color: #7a9bb8; font-size: 0.8rem;
}
.lineup-card-wide .lineup-photo { aspect-ratio: 8 / 5; }
.lineup-photo .icon { font-size: 2rem; }
.lineup-photo img { width: 100%; height: 100%; object-fit: cover; }
.lineup-name {
    padding: 12px 10px 14px;
    font-weight: 700; font-size: 1.05rem; color: var(--text-dark);
}

/* --- 프로그램 카드 (부대 프로그램 / 키즈존 등) --- */
.program-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.program-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.program-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex; flex-direction: column;
}
.program-card .card-photo {
    aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(160deg, #e3f0fb 0%, #c9e3f6 100%);
    display: flex; align-items: center; justify-content: center;
    color: #7a9bb8; font-size: 0.85rem;
}
.program-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.program-card .card-photo.ratio-4-3 { aspect-ratio: 4 / 3; }
.program-card .card-photo .icon { font-size: 2.4rem; }
.program-card .card-body {
    padding: 20px 22px 24px; text-align: center;
    display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.program-card h3 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.25rem; color: var(--text-dark);
}
.program-card .date-pill {
    display: inline-block; align-self: center;
    background: var(--bg-calm); color: var(--primary);
    border: 1px solid var(--line);
    border-radius: 20px; padding: 4px 14px;
    font-size: 0.85rem; font-weight: 700;
}
.program-card p {
    font-size: 0.88rem; color: #556; line-height: 1.8;
}

/* --- 개막행사 / 공지형 텍스트 레이아웃 --- */
.closing-content {
    text-align: center; padding: 20px 0;
}
.closing-content .closing-subtitle {
    font-size: 1.05rem; color: var(--text-gray); font-weight: 300;
    margin-bottom: 40px;
}
.closing-content .closing-programs {
    max-width: 520px; margin: 0 auto;
    text-align: center;
    background: #fff; border-radius: 16px; padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.12);
}
.closing-content .closing-programs .program-item {
    padding: 6px 0;
    font-size: 1rem; color: var(--text-dark); line-height: 1.8;
}
.closing-content .closing-info {
    margin-top: 28px; padding: 20px 28px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.12);
    max-width: 460px; margin-left: auto; margin-right: auto;
}

/* --- 모집 공고 박스 (청년·직장인 밴드) --- */
.notice-box {
    background: #fff; border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.12);
    border-top: 5px solid var(--accent);
    text-align: center;
}
.notice-box .notice-tag {
    display: inline-block; background: var(--accent); color: #fff;
    border-radius: 20px; padding: 4px 16px;
    font-size: 0.82rem; font-weight: 700; margin-bottom: 18px;
}
.notice-box h2 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.5rem; color: var(--text-dark); margin-bottom: 8px;
}
.notice-box .notice-lead {
    font-size: 1rem; color: var(--primary); font-weight: 500; margin-bottom: 26px;
}
.notice-box p {
    font-size: 0.95rem; color: #445; line-height: 1.95; margin-bottom: 16px;
}
.notice-box p:last-child { margin-bottom: 0; }
.notice-box p.strong { color: var(--navy); font-weight: 500; }

/* --- 인스타그램 공지 안내 (자주묻는질문 상단) --- */
.insta-notice {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #fff 0%, #eef5fc 100%);
    border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.10);
    transition: transform 0.25s, box-shadow 0.25s;
}
.insta-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.18);
}
.insta-notice .insta-icon {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: #fff;
}
.insta-notice .insta-text {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.insta-notice .insta-text strong {
    font-size: 1rem; color: var(--text-dark); font-weight: 700;
}
.insta-notice .insta-handle {
    font-size: 0.85rem; color: var(--primary); font-weight: 500;
}
.insta-notice .insta-arrow {
    font-size: 1.8rem; color: var(--primary); line-height: 1; flex-shrink: 0;
}

/* --- 셔틀버스 안내 바 (약도 아래) --- */
.shuttle-info {
    margin-top: 20px; display: grid; gap: 12px;
}
.shuttle-info .shuttle-row {
    background: #fff; border-radius: 14px; padding: 16px 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 0.92rem; color: var(--text-dark); line-height: 1.7;
}
.shuttle-info .shuttle-row.highlight {
    background: var(--accent); color: #fff; font-weight: 700;
}
.shuttle-info .shuttle-row .tag {
    display: inline-block; background: var(--primary); color: #fff;
    border-radius: 12px; padding: 2px 12px; font-size: 0.82rem; font-weight: 700;
    white-space: nowrap;
}
.shuttle-info .shuttle-row.highlight .tag { background: rgba(255,255,255,0.25); }

/* --- 이미지 라이트박스 --- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    opacity: 1; visibility: visible;
}
.lightbox-overlay img {
    max-width: 92vw; max-height: 90vh;
    width: auto; height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}
.lightbox-overlay.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    color: #fff; font-size: 2.2rem;
    cursor: pointer; opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
[data-lightbox] {
    cursor: zoom-in;
}

/* --- 스크롤 등장 애니메이션 --- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* --- 반응형 (태블릿) --- */
@media (max-width: 1024px) {
    .nav-inner { padding: 0 20px; gap: 40px; }
    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-right { text-align: left; }
    .footer-right img { margin-left: 0; }
    .footer-social { justify-content: flex-start; }
    .footer-info-grid { grid-template-columns: max-content 1fr; }
    .nav-logo img { max-height: 21px; }
    .main-menu > li > a { padding: 28px 10px; font-size: 0.88rem; }
    .program-cards { grid-template-columns: repeat(2, 1fr); }
}

/* --- 반응형 (모바일) --- */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .main-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-logo { flex: 0 1 auto; min-width: 0; max-width: 100%; }
    .nav-logo img { max-height: 16px; max-width: 100%; }
    .nav-inner { padding: 0 70px 0 16px; justify-content: flex-start; }

    .subpage-hero { padding-top: calc(var(--nav-height) + 20px); padding-bottom: 20px; }
    .subpage-hero h1 { font-size: 1.8rem; }
    .subpage-content { padding: 40px 20px 60px; }
    .sub-section { margin-bottom: 44px; }
    .sub-section .section-title { font-size: 1.4rem; }
    .sub-section .section-subtitle { font-size: 0.85rem; margin-bottom: 20px; }

    .sub-image-row.cols-2 { grid-template-columns: 1fr; }

    .sub-intro-body { flex-direction: column; gap: 30px; }
    .sub-intro-poster { width: 100%; }
    .sub-intro-left h2 { font-size: 1.4rem; }
    .sub-intro-left .subtitle { font-size: 0.82rem; }
    .sub-intro-left .intro-info-list { padding: 16px 20px; max-width: 100%; }

    .greeting-layout { flex-direction: column; gap: 28px; align-items: center; }
    .greeting-photo { flex: none; width: 100%; max-width: 300px; }
    .greeting-text h2 { font-size: 1.2rem; text-align: center; }
    .greeting-text p { font-size: 0.9rem; }

    .lineup-grid { gap: 12px; }
    .lineup-card { flex-basis: calc((100% - 12px) / 2); }
    .lineup-card-wide { flex-basis: 100%; }
    .lineup-name { font-size: 0.95rem; }
    .program-cards, .program-cards.cols-2 { grid-template-columns: 1fr; }

    .closing-content .closing-programs { padding: 18px 20px; }
    .closing-content .closing-info { padding: 16px 20px; }
    .notice-box { padding: 28px 20px; }
    .insta-notice { padding: 14px 16px; gap: 12px; }
    .insta-notice .insta-icon { width: 40px; height: 40px; }
    .insta-notice .insta-text strong { font-size: 0.9rem; }
    .notice-box h2 { font-size: 1.25rem; }
    .notice-box p { font-size: 0.9rem; }
    .pending-box { padding: 36px 16px; }
    .map-frame { padding: 8px; border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .map-frame img { width: 760px; max-width: none; }
    .map-hint-mobile { display: block; }

    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-info-grid { grid-template-columns: 1fr; }
    .footer-right { text-align: left; }
    .footer-right img { margin-left: 0; }
    .footer-social { justify-content: flex-start; }
}

/* --- 모집 공고 다운로드 버튼 (청년직장인밴드 안내 박스 · 메인 팝업 공용) --- */
.notice-actions {
    margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.notice-actions .notice-file { font-size: 0.8rem; color: var(--text-gray); }
.btn-download {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 220px; padding: 14px 28px;
    background: var(--navy); color: #fff;
    border: 2px solid var(--navy); border-radius: 4px;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s;
}
.btn-download:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-download svg { flex-shrink: 0; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 140px; padding: 14px 24px;
    background: #fff; color: var(--navy);
    border: 2px solid var(--navy); border-radius: 4px;
    font-size: 0.95rem; font-weight: 700;
    transition: background 0.2s;
}
.btn-outline:hover { background: #f1f6fb; }

/* --- 메인 팝업: 청년·직장인 밴드 공연 참가자 모집 (모집 종료 시 index.html 팝업 블록과 함께 삭제) --- */
.recruit-popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20, 30, 45, 0.55);
    z-index: 9000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.recruit-popup-box {
    position: relative; max-width: 460px; width: 100%;
    max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fff; border-radius: 8px;
    border-top: 5px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.recruit-popup-body { padding: 32px 30px 28px; text-align: center; }
.recruit-popup-tag {
    display: inline-block; background: var(--accent); color: #fff;
    border-radius: 20px; padding: 4px 14px;
    font-size: 0.78rem; font-weight: 700; margin-bottom: 14px;
}
.recruit-popup-fest { font-size: 0.85rem; color: var(--text-gray); font-weight: 500; margin-bottom: 6px; letter-spacing: 0.5px; }
.recruit-popup-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.5rem; color: var(--text-dark); line-height: 1.4; margin-bottom: 10px;
}
.recruit-popup-lead { font-size: 0.95rem; color: var(--primary); font-weight: 500; margin-bottom: 18px; }
.recruit-popup-text { font-size: 0.9rem; color: #445; line-height: 1.85; margin-bottom: 12px; word-break: keep-all; }
.recruit-popup-buttons {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-top: 22px;
}
.recruit-popup-buttons .btn-download, .recruit-popup-buttons .btn-outline { width: 100%; max-width: 300px; }
.recruit-popup-actions { display: flex; border-top: 1px solid #eee; }
.recruit-popup-actions button {
    flex: 1; padding: 12px 0; background: none; border: none;
    font-size: 0.85rem; color: #777; cursor: pointer; font-family: inherit;
}
.recruit-popup-actions button:hover { background: #f7f9fb; }
.recruit-popup-actions button + button { border-left: 1px solid #eee; }
.recruit-popup-actions button.primary { color: var(--text-dark); font-weight: 700; }

@media (max-width: 768px) {
    .recruit-popup-body { padding: 26px 20px 22px; }
    .recruit-popup-title { font-size: 1.3rem; }
    .recruit-popup-text { font-size: 0.86rem; }
    .btn-download { min-width: 0; width: 100%; max-width: 300px; }
}
