/* =============================================
   SUBPAGE — 서브페이지 공통 스타일  v2
   ============================================= */

.subpage { padding-top: 0; }

/* ── 히어로 ── */
.sp-hero {
    position: relative;
    height: calc(360px + var(--header-h));
    margin-top: calc(-1 * var(--header-h));
    background-color: #1a3a2a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.72) 100%);
}
.sp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px 56px;
    text-align: center;
}
.sp-hero-label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.sp-hero-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 22px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.48);
}
.sp-breadcrumb a { color: rgba(255,255,255,0.48); text-decoration: none; }
.sp-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.sp-breadcrumb span:last-child { color: rgba(255,255,255,0.88); }
.sp-bc-sep { opacity: 0.4; }

/* ── 탭 메뉴 ── */
.sp-tabs-bar {
    background: #fff;
    border-bottom: 1px solid #e8e4dd;
    position: sticky;
    top: var(--header-h);
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.sp-tabs {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 28px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sp-tab:hover { color: #1a3a2a; }
.sp-tab.is-active { color: #111; font-weight: 600; border-bottom-color: #1a3a2a; }

/* ── 본문 ── */
.sp-content-wrap { padding: 60px 0 100px; background: #f5f2ed; min-height: 50vh; }
.sp-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.sp-content { background: #fff; border-radius: 4px; padding: 52px 60px; box-shadow: 0 2px 30px rgba(0,0,0,0.05); }

/* ── 타이포 ── */
.sp-content h2 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #111;
    margin: 0 0 32px;
    padding-bottom: 18px;
    border-bottom: 2px solid #c8a96e;
    line-height: 1.4;
}
.sp-content h3 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a3a2a;
    margin: 40px 0 14px;
    padding-left: 14px;
    border-left: 3px solid #c8a96e;
}
.sp-content p { font-size: 15px; line-height: 1.9; color: #444; margin-bottom: 16px; }
.sp-content ul { list-style: none; margin: 0 0 24px; padding: 0; }
.sp-content ul li {
    font-size: 15px; line-height: 1.8; color: #444;
    padding: 9px 0 9px 20px; border-bottom: 1px solid #ede9e3; position: relative;
}
.sp-content ul li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 6px; height: 6px; background: #c8a96e; border-radius: 50%; transform: translateY(-50%);
}
.sp-content strong { color: #1a3a2a; font-weight: 700; }
.sp-content a { color: #1a3a2a; }
.sp-content img { max-width: 100%; height: auto; border-radius: 2px; margin: 14px 0; }

.sp-content .info-box {
    background: #faf9f5; border-left: 4px solid #c8a96e;
    padding: 20px 24px; margin: 20px 0; border-radius: 0 4px 4px 0;
}
.sp-content .info-box p { margin: 0 0 4px; color: #555; font-size: 14px; }

/* ── 테이블 ── */
.sp-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.sp-content table th {
    background: #c5a96c; color: #fff; padding: 12px 16px;
    text-align: left; font-weight: 600; font-family: 'Noto Sans KR', sans-serif;
}
.sp-content table td { padding: 13px 16px; border-bottom: 1px solid #ede9e3; color: #444; vertical-align: top; line-height: 1.7; }
.sp-content table tr:hover td { background: rgba(26,58,42,0.02); }

/* ── 버튼 ── */
.sp-content .dl-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; background: #1a3a2a; color: #fff;
    font-size: 14px; font-weight: 600; text-decoration: none;
    border-radius: 2px; transition: background 0.2s; margin: 6px 4px;
}
.sp-content .dl-btn:hover { background: #2d5c42; color: #fff; }
.sp-content .dl-btn.gold { background: #c8a96e; color: #111; }
.sp-content .dl-btn.gold:hover { background: #e0c99a; }

/* ── 영상 ── */
.sp-content .video-wrap { position: relative; width: 100%; padding-top: 56.25%; margin: 20px 0; }
.sp-content .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── 지도 ── */
.sp-content .map-wrap { width: 100%; height: 400px; border: 1px solid #ede9e3; margin: 20px 0; overflow: hidden; }
.sp-content .map-wrap iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   MOBILE  ≤ 767px
   ============================================= */
@media (max-width: 767px) {
    :root { --header-h: 64px; }

    .sp-hero {
        height: calc(260px + var(--header-h));
        align-items: flex-end;
    }
    .sp-hero-inner { padding: 0 20px 40px; }
    .sp-hero-label { font-size: 11px; letter-spacing: 0.18em; }
    .sp-hero-title { font-size: 26px; margin-bottom: 14px; }
    .sp-breadcrumb { font-size: 11px; }

    .sp-tabs-bar { top: var(--header-h); }
    .sp-tabs { padding: 0 16px; }
    .sp-tab { padding: 14px 16px; font-size: 13px; }

    .sp-content-wrap { padding: 32px 0 60px; }
    .sp-inner { padding: 0 16px; }
    .sp-content { padding: 28px 20px; border-radius: 3px; }

    .sp-content h2 { font-size: 20px; margin-bottom: 22px; padding-bottom: 14px; }
    .sp-content h3 { font-size: 16px; }
    .sp-content p, .sp-content ul li { font-size: 14px; }

    .sp-content table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sp-content table th { padding: 10px 12px; }
    .sp-content table td { padding: 10px 12px; }

    .sp-content .map-wrap { height: 280px; }
}

/* =============================================
   TABLET  768px – 1023px
   ============================================= */
@media (min-width: 768px) and (max-width: 1023px) {
    .sp-hero { height: calc(300px + var(--header-h)); }
    .sp-hero-inner { padding: 0 32px 48px; }
    .sp-hero-title { font-size: 36px; }

    .sp-tabs { padding: 0 24px; }
    .sp-tab { padding: 16px 20px; }

    .sp-inner { padding: 0 24px; }
    .sp-content { padding: 36px 32px; }
    .sp-content-wrap { padding: 48px 0 80px; }
}

/* ── 서브페이지 히어로 로고 ── */
.sp-hero-logo {
    display: none !important;
}
@media (max-width: 767px) {
    .sp-hero-logo { display: none !important; }
}
