/* ============================================================
   hellomaker/style.css
   2026 헬로메이커 (국립부산과학관) 전용 스타일
   - 레이아웃 골격은 childrensday/style.css 구조를 그대로 계승
   - 색상 / 형태만 2026 헬로메이커 키비주얼에 맞춰 재정의
   ============================================================ */

:root {
    /* 키비주얼에서 추출한 브랜드 팔레트 */
    --hm-sky:        #38BEEF;
    --hm-sky-d:      #16A6DC;
    --hm-sky-l:      #E7F7FE;
    --hm-yellow:     #FFEA3C;
    --hm-yellow-d:   #F4B02B;
    --hm-red:        #E7143C;
    --hm-red-d:      #C10E31;
    --hm-blue:       #267ABF;
    --hm-navy:       #123A63;
    --hm-green:      #14B078;
    --hm-pink:       #EA6192;

    --hm-bg:         #ffffff;
    --hm-surface:    #F4F9FC;
    --hm-border:     #E2E8ED;

    --hm-text:       #1D1B1B;
    --hm-muted:      #5F6B76;
    --hm-light:      #97A3AE;

    --hm-nav-h:      72px;
    --hm-radius:     16px;
    --hm-radius-s:   10px;
    --hm-shadow:     0 2px 14px rgba(18, 58, 99, 0.08);
    --hm-shadow-h:   0 10px 28px rgba(38, 122, 191, 0.18);

    --hm-font:       'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hm-nav-h) + 16px); }
body {
    font-family: var(--hm-font);
    background: var(--hm-bg);
    color: var(--hm-text);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--hm-blue); text-decoration: none; }
a:hover { color: var(--hm-navy); }
:focus-visible { outline: 3px solid var(--hm-sky); outline-offset: 2px; }

/* 스크린리더 전용 */
.hm-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   네비게이션 — 좌: 과학관 로고 + 행사 로고 / 중앙: 메뉴 / 우: 예약하기
   ============================================================ */
.hm-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hm-nav-h);
    background: #ffffff;
    border-bottom: 3px solid var(--hm-sky);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.hm-nav__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 좌측 로고 묶음 : 과학관 로고 → 행사 로고 순 */
.hm-nav__brands {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.hm-nav__brand { display: inline-flex; align-items: center; }
.hm-nav__brand:hover { opacity: 0.85; }
/* 행사 로고가 주(主), 과학관 로고가 부(副)로 읽히도록 두 로고의 실제 폭을 비슷하게 맞춘다
   (행사 로고 243×168 → 60px 높이 = 87px 폭 / 과학관 로고 680×221 → 28px 높이 = 86px 폭) */
.hm-nav__logo {
    height: 60px;
    width: auto;
    max-width: none;
    display: block;
}

/* 중앙 메뉴 */
.hm-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
}
.hm-nav__item { position: relative; }
.hm-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    height: calc(var(--hm-nav-h) - 3px);
    padding: 0 12px;
    color: var(--hm-navy);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    border-bottom: 4px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hm-nav__link:hover,
.hm-nav__link.is-active {
    color: var(--hm-red);
    border-bottom-color: var(--hm-red);
    background: rgba(231, 20, 60, 0.05);
}
.hm-nav__link .arrow {
    font-size: 0.5rem;
    color: var(--hm-light);
    transition: transform 0.2s;
}
.hm-nav__item:hover .hm-nav__link .arrow { transform: rotate(180deg); }

/* 마우스 오버 드롭다운 */
.hm-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 234px;
    background: #ffffff;
    border: 2px solid var(--hm-sky);
    border-radius: 0 0 var(--hm-radius-s) var(--hm-radius-s);
    box-shadow: 0 12px 28px rgba(18, 58, 99, 0.16);
    overflow: hidden;
    z-index: 100;
}
.hm-nav__item:hover .hm-nav__dropdown,
.hm-nav__item:focus-within .hm-nav__dropdown { display: block; }

.hm-nav__dropdown a {
    display: block;
    padding: 11px 18px;
    color: var(--hm-text);
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--hm-border);
    transition: all 0.18s;
}
.hm-nav__dropdown li:last-child a { border-bottom: none; }
.hm-nav__dropdown a:hover,
.hm-nav__dropdown a.is-active {
    background: var(--hm-sky-l);
    color: var(--hm-red);
    padding-left: 24px;
}
.hm-nav__dropdown a em {
    display: block;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--hm-light);
}
/* 우측 예약하기 버튼 → 네이버 예약 */
.hm-nav__reserve {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--hm-red);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 4px 0 var(--hm-red-d);
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.hm-nav__reserve:hover {
    background: var(--hm-red-d);
    color: #ffffff;
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--hm-red-d);
}

/* 좌측 국립부산과학관 로고 (행사 로고 왼쪽, 보조 크기) */
.hm-nav__sciport {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: var(--hm-radius-s);
    transition: background 0.2s, transform 0.2s;
}
.hm-nav__sciport:hover { background: var(--hm-sky-l); transform: translateY(-1px); }
.hm-nav__sciport img { height: 28px; width: auto; max-width: none; }

/* 햄버거 */
.hm-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; min-width: 42px; height: 42px;
    padding: 9px;
    background: none; border: none; cursor: pointer;
    margin-left: auto;
    z-index: 1100;
}
.hm-nav__hamburger-line {
    display: block; width: 100%; height: 3px;
    background: var(--hm-navy); border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}
.hm-nav__hamburger.is-open .hm-nav__hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hm-nav__hamburger.is-open .hm-nav__hamburger-line:nth-child(2) { opacity: 0; }
.hm-nav__hamburger.is-open .hm-nav__hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hm-nav__overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(18, 58, 99, 0.5);
    z-index: 999;
}
.hm-nav__overlay.is-visible { display: block; }
html.hm-menu-open, html.hm-menu-open body { overflow: hidden; }

/* ============================================================
   본문 공통
   ============================================================ */
main { margin-top: var(--hm-nav-h); }

.hm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hm-section { padding: 64px 0; }
.hm-section--tint { background: var(--hm-surface); }
.hm-section--sky  { background: var(--hm-sky-l); }

/* 페이지 헤더 */
.hm-page-header {
    position: relative;
    padding: 44px 0 30px;
    border-bottom: 3px solid var(--hm-sky);
    margin-bottom: 44px;
}
.hm-page-header__breadcrumb {
    font-size: 0.8rem;
    color: var(--hm-light);
    margin-bottom: 10px;
}
.hm-page-header__breadcrumb a { color: var(--hm-light); }
.hm-page-header__breadcrumb a:hover { color: var(--hm-blue); }
.hm-page-header__breadcrumb span { margin: 0 6px; color: #CBD3DA; }
.hm-page-header__eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: var(--hm-red);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    margin-bottom: 10px;
}
.hm-page-header__title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--hm-navy);
    letter-spacing: -1px;
    line-height: 1.25;
}
.hm-page-header__title em {
    color: var(--hm-red);
    font-style: normal;
}
.hm-page-header__lead {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--hm-muted);
    max-width: 780px;
}
.hm-page-header__note {
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--hm-red);
    font-weight: 700;
}

/* 섹션 타이틀 */
.hm-section-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--hm-navy);
    letter-spacing: -0.6px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hm-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hm-section-title::before {
    content: '';
    display: block;
    width: 14px; height: 14px;
    background: var(--hm-yellow);
    border: 3px solid var(--hm-red);
    border-radius: 50%;
    flex-shrink: 0;
}
.hm-section-title--center {
    justify-content: center;
    border-bottom: none;
    font-size: 1.9rem;
    text-align: center;
}
.hm-section-lead {
    color: var(--hm-muted);
    margin-bottom: 26px;
    max-width: 820px;
}
.hm-section-lead--center { margin: 0 auto 36px; text-align: center; }

.hm-sub-title {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--hm-blue);
    margin-bottom: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-sub-title::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--hm-red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- 그리드 ---------- */
.hm-grid { display: grid; gap: 24px; }
.hm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .hm-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .hm-grid--2, .hm-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .hm-grid--4 { grid-template-columns: 1fr; } }

/* ---------- 버튼 ---------- */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    white-space: nowrap;
}
.hm-btn--primary { background: var(--hm-red); color: #ffffff; box-shadow: 0 5px 0 var(--hm-red-d); }
.hm-btn--primary:hover { background: var(--hm-red-d); color: #ffffff; transform: translateY(2px); box-shadow: 0 3px 0 var(--hm-red-d); }
.hm-btn--yellow { background: var(--hm-yellow); color: var(--hm-navy); box-shadow: 0 5px 0 var(--hm-yellow-d); }
.hm-btn--yellow:hover { background: var(--hm-yellow-d); color: var(--hm-navy); transform: translateY(2px); box-shadow: 0 3px 0 #D89718; }
.hm-btn--sky { background: var(--hm-sky); color: #ffffff; box-shadow: 0 5px 0 var(--hm-sky-d); }
.hm-btn--sky:hover { background: var(--hm-sky-d); color: #ffffff; transform: translateY(2px); box-shadow: 0 3px 0 var(--hm-sky-d); }
.hm-btn--ghost {
    background: #ffffff;
    color: var(--hm-navy);
    border: 2px solid var(--hm-navy);
    padding: 12px 30px;
}
.hm-btn--ghost:hover { background: var(--hm-navy); color: #ffffff; }
.hm-btn--lg { padding: 18px 46px; font-size: 1.15rem; }
.hm-btn--sm { padding: 9px 20px; font-size: 0.86rem; }

/* ---------- 카드 ---------- */
.hm-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: all 0.25s;
}
.hm-card:hover {
    border-color: var(--hm-sky);
    box-shadow: var(--hm-shadow-h);
    transform: translateY(-4px);
}
.hm-card--static:hover { transform: none; border-color: var(--hm-border); box-shadow: none; }
.hm-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--hm-surface);
    overflow: hidden;
}
.hm-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hm-card:hover .hm-card__thumb img { transform: scale(1.05); }
/* 사진 두 장을 한 썸네일에 나란히 배치 */
.hm-card__thumb--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--hm-border);
}

/* 원본 비율이 제각각인 이미지는 박스 안에서 비율 그대로 축소 (잘림 없음) */
.hm-card__thumb--contain { background: var(--hm-sky-l); }
.hm-card__thumb--contain img {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    margin: 14px;
    object-fit: contain;
}
.hm-card__no { /* 좌상단 번호 배지 */
    position: absolute;
    top: 12px; left: 12px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--hm-red);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hm-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.hm-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hm-navy);
    line-height: 1.4;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}
.hm-card__desc { font-size: 0.92rem; color: var(--hm-muted); margin-bottom: 14px; }
.hm-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

/* 사양(스펙) 목록 — 일시/장소/대상… */
.hm-spec { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 0; }
.hm-spec__row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: 0.9rem; }
.hm-spec__key {
    color: var(--hm-blue);
    font-weight: 800;
    white-space: nowrap;
}
.hm-spec__val { color: var(--hm-text); }
@media (max-width: 420px) { .hm-spec__row { grid-template-columns: 66px 1fr; gap: 8px; font-size: 0.86rem; } }

/* ---------- 테이블 ---------- */
.hm-table-wrap {
    overflow-x: auto;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius-s);
}
.hm-table { width: 100%; border-collapse: collapse; }
.hm-table th, .hm-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hm-border);
    font-size: 0.92rem;
    vertical-align: top;
}
.hm-table th {
    background: var(--hm-sky-l);
    color: var(--hm-navy);
    font-weight: 800;
    white-space: nowrap;
}
.hm-table thead th {
    background: var(--hm-navy);
    color: #ffffff;
}
.hm-table tbody tr:last-child td, .hm-table tbody tr:last-child th { border-bottom: none; }
.hm-table tbody tr:hover td { background: #FAFDFF; }

/* ---------- 정보 박스 ---------- */
.hm-info {
    background: var(--hm-sky-l);
    border: 2px solid var(--hm-sky);
    border-radius: var(--hm-radius-s);
    padding: 18px 22px;
    margin: 24px 0;
}
.hm-info__title {
    font-weight: 800;
    color: var(--hm-blue);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 7px;
}
.hm-info p { font-size: 0.92rem; color: var(--hm-muted); }
.hm-info--warning { background: #FFF9E6; border-color: var(--hm-yellow-d); }
.hm-info--warning .hm-info__title { color: #B47708; }
.hm-info--alert { background: #FEF0F3; border-color: var(--hm-red); }
.hm-info--alert .hm-info__title { color: var(--hm-red); }
.hm-info ul { margin-top: 6px; }
.hm-info li {
    position: relative;
    padding-left: 14px;
    font-size: 0.92rem;
    color: var(--hm-muted);
}
.hm-info li::before {
    content: '';
    position: absolute; left: 0; top: 11px;
    width: 5px; height: 5px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.55;
}

/* ---------- 배지 ---------- */
.hm-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.hm-badge--red    { background: var(--hm-red);    color: #fff; }
.hm-badge--sky    { background: var(--hm-sky);    color: #fff; }
.hm-badge--yellow { background: var(--hm-yellow); color: var(--hm-navy); }
.hm-badge--green  { background: var(--hm-green);  color: #fff; }
.hm-badge--navy   { background: var(--hm-navy);   color: #fff; }
.hm-badge--pink   { background: var(--hm-pink);   color: #fff; }
.hm-badge--outline {
    background: #ffffff;
    border: 2px solid var(--hm-sky);
    color: var(--hm-blue);
    padding: 3px 12px;
}

/* 섹션 내 앵커 네비 */
.hm-anchor-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hm-anchor-nav a {
    padding: 9px 20px;
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hm-navy);
    transition: all 0.2s;
}
.hm-anchor-nav a:hover {
    background: var(--hm-sky);
    border-color: var(--hm-sky);
    color: #ffffff;
}

/* ---------- 회차 슬롯 ---------- */
.hm-slot {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.hm-slot--3 { grid-template-columns: repeat(3, 1fr); }
.hm-slot--2 { grid-template-columns: repeat(2, 1fr); }
.hm-slot__cell {
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius-s);
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s;
}
.hm-slot__cell:hover { border-color: var(--hm-sky); box-shadow: var(--hm-shadow); }
.hm-slot__label {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--hm-red);
    margin-bottom: 2px;
}
.hm-slot__time { display: block; font-size: 0.94rem; font-weight: 700; color: var(--hm-navy); }
@media (max-width: 860px) { .hm-slot, .hm-slot--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .hm-slot, .hm-slot--3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 프로그램(워크숍/체험) 상세 카드 ---------- */
.hm-program {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: all 0.25s;
}
.hm-program:hover { border-color: var(--hm-sky); box-shadow: var(--hm-shadow-h); }
/* 프로그램 이미지는 원본 비율이 제각각이므로 크기가 같은 네모 박스를 만들고
   그 안에서 비율 그대로 축소해 넣는다. 박스에 맞춰 늘리거나 잘라내지 않는다.
   배경은 카드 높이만큼 꽉 채우고(아래 흰 여백 없음) 이미지는 그 안에서 가운데 정렬. */
.hm-program__media {
    position: relative;
    align-self: stretch;
    min-height: 240px;
    background: var(--hm-sky-l);
    border-right: 2px solid var(--hm-border);
}
/* 절대배치 img 는 width:auto 가 inset 이 아닌 '원본 크기'로 계산되므로
   inset 대신 max-width/max-height 로 박스 안에 가두고 가운데 정렬한다.
   높이 상한을 고정값으로 둬서 카드 높이가 달라도 이미지 크기 기준은 동일하게 유지. */
.hm-program__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: calc(100% - 32px);
    max-height: 208px;
}
.hm-program__no {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--hm-red);
    color: #ffffff;
    font-size: 1rem; font-weight: 900;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hm-program__body { padding: 26px 28px; }
.hm-program__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hm-program__title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--hm-navy);
    letter-spacing: -0.6px;
    line-height: 1.35;
    margin-bottom: 8px;
}
.hm-program__desc { font-size: 0.95rem; color: var(--hm-muted); margin-bottom: 4px; }
@media (max-width: 860px) {
    .hm-program { grid-template-columns: 1fr; }
    .hm-program__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-right: none;
        border-bottom: 2px solid var(--hm-border);
    }
    .hm-program__media img { max-height: calc(100% - 32px); }
    .hm-program__body { padding: 22px 20px; }
}

.hm-program-list { display: flex; flex-direction: column; gap: 24px; }

/* ---------- 큰 이벤트 카드 (강연 / 공연) ---------- */
.hm-feature {
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}
.hm-feature:hover { border-color: var(--hm-sky); box-shadow: var(--hm-shadow-h); }
.hm-feature__media { position: relative; aspect-ratio: 3 / 2; background: var(--hm-surface); overflow: hidden; }
.hm-feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* 원본 비율이 서로 다른 사진을 크기가 같은 정사각 박스 안에
   비율 그대로 축소해 넣는다 (잘라내거나 늘리지 않음) */
.hm-feature__media--contain {
    aspect-ratio: 1 / 1;
    background: var(--hm-sky-l);
    border-bottom: 2px solid var(--hm-border);
}
.hm-feature__media--contain img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
}
.hm-feature__day {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;              /* 절대배치된 img 보다 위에 오도록 */
    padding: 8px 20px 10px;
    background: var(--hm-red);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    border-radius: 0 0 var(--hm-radius-s) 0;
}
.hm-feature__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.hm-feature__kicker {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--hm-sky-d);
    margin-bottom: 4px;
}
.hm-feature__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--hm-navy);
    letter-spacing: -0.8px;
    line-height: 1.3;
    margin-bottom: 10px;
}
.hm-feature__topic {
    padding: 12px 16px;
    background: var(--hm-sky-l);
    border-radius: var(--hm-radius-s);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hm-blue);
    margin-bottom: 14px;
}

/* ---------- 통계 / 요약 타일 ---------- */
.hm-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .hm-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hm-facts { grid-template-columns: 1fr; } }
.hm-fact {
    padding: 24px 20px;
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    text-align: center;
}
.hm-fact__label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--hm-red);
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.hm-fact__value {
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--hm-navy);
    letter-spacing: -0.5px;
    line-height: 1.35;
}
.hm-fact__sub { font-size: 0.82rem; color: var(--hm-muted); margin-top: 4px; }

/* ---------- CTA 밴드 ---------- */
.hm-cta {
    background: var(--hm-sky);
    color: #ffffff;
    padding: 56px 0;
    text-align: center;
}
.hm-cta__title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.hm-cta__desc { font-size: 1.02rem; opacity: 0.95; margin-bottom: 26px; }
.hm-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 지도 ---------- */
.hm-map {
    width: 100%;
    height: 420px;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    background: var(--hm-surface);
}
.hm-map__fallback {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; padding: 30px; text-align: center;
}
.hm-map__fallback-title { font-size: 1.1rem; font-weight: 800; color: var(--hm-navy); }
.hm-map__fallback-note { font-size: 0.9rem; color: var(--hm-muted); }
.hm-map__links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* 교통수단 블록 */
.hm-route {
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    overflow: hidden;
    height: 100%;
}
.hm-route__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--hm-navy);
    color: #ffffff;
}
.hm-route__icon { font-size: 1.3rem; line-height: 1; }
.hm-route__name { font-size: 1.05rem; font-weight: 800; }
.hm-route__body { padding: 18px 20px 22px; }
.hm-route__step {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--hm-text);
    margin-bottom: 10px;
    line-height: 1.65;
}
.hm-route__step:last-child { margin-bottom: 0; }
.hm-route__step::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 7px; height: 7px;
    background: var(--hm-sky);
    border-radius: 50%;
}
.hm-route__step strong { color: var(--hm-blue); font-weight: 800; }
.hm-route__note { font-size: 0.84rem; color: var(--hm-muted); }

/* ---------- 예약 단계 ---------- */
.hm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 780px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-step {
    position: relative;
    padding: 28px 24px;
    background: #ffffff;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    text-align: center;
}
.hm-step__no {
    width: 44px; height: 44px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--hm-yellow);
    border: 3px solid var(--hm-navy);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--hm-navy);
}
.hm-step__title { font-size: 1.05rem; font-weight: 800; color: var(--hm-navy); margin-bottom: 6px; }
.hm-step__desc { font-size: 0.9rem; color: var(--hm-muted); }

/* ---------- 푸터 ---------- */
.hm-footer {
    background: var(--hm-surface);
    border-top: 3px solid var(--hm-sky);
    padding: 26px 0 22px;
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--hm-muted);
}
.hm-footer__info { padding-bottom: 16px; }
.hm-footer__info p { margin: 0; }
.hm-footer__org {
    color: var(--hm-navy);
    font-weight: 800;
}
.hm-footer__sep {
    display: inline-block;
    margin: 0 8px;
    color: var(--hm-border);
}
.hm-footer__copy {
    padding-top: 16px;
    border-top: 1px solid var(--hm-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--hm-light);
}
.hm-footer__copy a {
    color: var(--hm-blue);
    font-weight: 700;
}
.hm-footer__copy a:hover { color: var(--hm-red); text-decoration: underline; }
/* 개인정보처리방침은 공공기관 관례에 따라 한 단계 강조한다 */
.hm-footer__copy a.hm-footer__privacy { color: var(--hm-navy); font-weight: 800; }

/* ---------- 맨 위로 ---------- */
.hm-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 900;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--hm-red);
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(18, 58, 99, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s;
}
.hm-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hm-top:hover { background: var(--hm-red-d); color: #ffffff; }

/* ============================================================
   모바일
   ============================================================ */
@media (max-width: 1100px) {
    :root { --hm-nav-h: 62px; }

    .hm-nav__inner { padding: 0 16px; gap: 10px; }
    .hm-nav__brands { gap: 8px; }
    .hm-nav__sciport img { height: 24px; }
    .hm-nav__logo { height: 48px; }
    /* 드로어 모드 : 예약 버튼과 햄버거를 오른쪽 끝으로 몰아 붙인다 */
    .hm-nav__reserve { margin-left: auto; padding: 7px 14px; font-size: 0.86rem; }
    .hm-nav__hamburger { display: flex; margin-left: 0; }

    .hm-nav__menu {
        display: block;
        position: fixed;
        top: 0; right: 0;
        width: 300px;
        max-width: 84vw;
        height: 100vh;
        margin: 0;
        padding: calc(var(--hm-nav-h) + 14px) 0 40px;
        background: #ffffff;
        z-index: 1050;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -6px 0 20px rgba(18, 58, 99, 0.2);
    }
    .hm-nav__menu.is-open { transform: translateX(0); }

    .hm-nav__item { border-bottom: 1px solid var(--hm-border); }
    .hm-nav__link {
        height: auto;
        padding: 15px 22px;
        justify-content: space-between;
        border-bottom: none;
        font-size: 1rem;
    }
    .hm-nav__link:hover, .hm-nav__link.is-active { background: var(--hm-sky-l); border-bottom: none; }
    .hm-nav__link .arrow { font-size: 0.6rem; }
    .hm-nav__item.is-expanded .hm-nav__link .arrow { transform: rotate(180deg); }

    /* 모바일은 hover 대신 클릭 아코디언 */
    .hm-nav__dropdown {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--hm-surface);
    }
    .hm-nav__item:hover .hm-nav__dropdown { display: none; }
    .hm-nav__item.is-expanded .hm-nav__dropdown { display: block; }
    .hm-nav__dropdown a { padding: 12px 22px 12px 34px; font-size: 0.9rem; }
    .hm-nav__dropdown a:hover, .hm-nav__dropdown a.is-active { padding-left: 34px; }

    .hm-container { padding: 0 16px; }
    .hm-section { padding: 44px 0; }
    .hm-page-header { padding: 30px 0 22px; margin-bottom: 30px; }
    .hm-page-header__title { font-size: 1.6rem; }
    .hm-section-title { font-size: 1.3rem; }
    .hm-section-title--center { font-size: 1.5rem; }
    .hm-feature__title { font-size: 1.25rem; }
    .hm-program__title { font-size: 1.14rem; }
    .hm-cta__title { font-size: 1.5rem; }
    .hm-map { height: 320px; }
    .hm-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* 좁은 화면: 로고 두 개 + 예약 버튼 + 햄버거가 한 줄에 남도록 한 단계 더 축소 */
@media (max-width: 480px) {
    .hm-nav__inner { gap: 6px; padding: 0 12px; }
    .hm-nav__brands { gap: 6px; }
    .hm-nav__sciport { padding: 2px 4px; }
    .hm-nav__sciport img { height: 20px; }
    .hm-nav__logo { height: 40px; }
    .hm-nav__reserve { padding: 6px 12px; font-size: 0.8rem; box-shadow: 0 3px 0 var(--hm-red-d); }
}

/* ---------- 인쇄 ---------- */
@media print {
    .hm-nav, .hm-nav__overlay, .hm-top, .hm-cta { display: none !important; }
    main { margin-top: 0; }
    .hm-card, .hm-program, .hm-feature { break-inside: avoid; }
}
