:root {
    --navy: #1A2A80;
    --indigo: #3B38A0;
    --mid: #7A85C1;
    --lavender: #B2B0E8;
    --soft: #EEEDF8;
    --white: #FFFFFF;
    --ink: #111827;
    --gray: #6B7280;
    --border: #E5E4F5;
    --shadow: rgba(26, 42, 128, .10);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #F7F7FB;
    color: var(--ink);
    overflow-x: hidden;
}

/* ── 헤더 ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .2s;
}

.back-btn:hover {
    background: var(--soft);
    color: var(--navy);
}

.header-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-left: auto;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--navy), var(--indigo));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.logo-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

/* ── 페이지 ── */
.page {
    max-width: 780px;
    margin: 0 auto;
}

/* ── 히어로 이미지 ── */
.hero-img-wrap {
    position: relative;
    width: 100%;
    /* aspect-ratio: 16/7; */
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--indigo));
    margin-bottom: 20px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, .3);
}

.hero-dday {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ── 콘텐츠 영역 ── */
.content {
    padding: 0 20px;
}

/* ── 타이틀 블록 ── */
.title-block {
    background: var(--white);
    border-radius: 20px;
    padding: 24px 24px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px var(--shadow);
}

.festival-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--soft);
    border: 1px solid var(--border);
    color: var(--mid);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.festival-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 6px;
}

.festival-tagline {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--soft);
    border-radius: 12px;
    padding: 10px 12px;
}

.meta-item.full {
    grid-column: 1 / 3;
}

.meta-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--mid);
}

.meta-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

/* ── 카드 공통 ── */
.card {
    background: var(--white);
    border-radius: 18px;
    padding: 22px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* ── 행사 내용 ── */
.desc-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.85;
    word-break: keep-all;
}

.desc-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-btn {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--indigo);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── 프로그램 목록 ── */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--soft);
    border-radius: 12px;
    border-left: 3px solid var(--indigo);
}

.program-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--mid);
    flex-shrink: 0;
    margin-top: 2px;
}

.program-text {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.55;
}

.program-text strong {
    color: var(--navy);
    font-weight: 700;
}

/* ── 정보 테이블 ── */
.info-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--soft);
    font-size: 13px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-key {
    color: var(--mid);
    font-weight: 600;
    min-width: 72px;
    flex-shrink: 0;
}

.info-val {
    color: var(--ink);
    line-height: 1.55;
}

.info-val a {
    color: var(--indigo);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── 버스 예약 CTA ── */
.bus-cta {
    background: linear-gradient(135deg, var(--navy), var(--indigo));
    border-radius: 18px;
    padding: 22px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(26, 42, 128, .25);
}

.bus-cta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bus-cta-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bus-cta-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

.bus-cta-sub {
    font-size: 12px;
    color: var(--lavender);
    margin-top: 2px;
}

.bus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.bus-chip {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 4px 12px;
    border-radius: 20px;
}

.bus-chip.highlight {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .4);
    font-weight: 600;
}

.bus-btn-row {
    display: flex;
    gap: 8px;
}

.bus-btn-primary {
    flex: 1;
    padding: 13px;
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.bus-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.bus-btn-secondary {
    padding: 13px 16px;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.bus-btn-secondary:hover {
    background: rgba(255, 255, 255, .2);
}

/* 오픈예정 상태 */
.bus-btn-primary.coming {
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .6);
    cursor: default;
    pointer-events: none;
}

/* ── 지도 링크 ── */
.map-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--soft);
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s;
}

.map-link:hover {
    background: var(--border);
}

.map-link-icon {
    font-size: 22px;
}

.map-link-text {
    flex: 1;
}

.map-link-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.map-link-sub {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}

.map-link-arr {
    font-size: 16px;
    color: var(--mid);
}

/* ── 카카오 고정 버튼 ── */
.kakao-fixed {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FEE500;
    color: #3A1D1D;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    padding: 9px 14px 9px 11px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s;
}

.kakao-fixed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

/* ── D-day 계산 ── */
.dday-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--mid));
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ── 반응형 ── */
@media (max-width: 480px) {
    .festival-name {
        font-size: 22px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-item.full {
        grid-column: 1;
    }
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
    margin-top: 72px;
    background: var(--navy);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    gap: 48px;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-brand .logo-main {
    color: var(--white);
    font-size: 17px;
}

.footer-brand .logo-sub {
    color: var(--lavender);
}

.footer-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--lavender);
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    margin-bottom: 9px;
    transition: color .2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: gap;
    gap: 12px;
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, .3);
}

.footer-sns {
    display: flex;
    gap: 10px;
}

.sns-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
}

.sns-btn:hover {
    background: rgba(255, 255, 255, .16);
}