/* ===== PAGE HERO CAROUSEL =====
   padding-top:150px → 고정 헤더(72px + 44px + 34px 패밀리사이트 탭) 아래
   height:620px 고정 슬라이드(기존 539px 대비 15% 확대, 2026-10-18)
===== */
.page-hero {
    padding-top: 150px;
    /* --hero-bg/--hero-text/--hero-icon 는 admin/etc/hero-banner(색상 테마)에서
       인라인으로 주입된다 — 미설정 시 기존 블랙 테마 값으로 그대로 폴백된다. */
    background: var(--hero-bg, var(--black));
    height: 620px;
    position: relative; overflow: hidden;
}
.hero-grid-lines {
    position: absolute; right: 0; top: 0; bottom: 0; width: 44%;
    background: repeating-linear-gradient(90deg, transparent 1px, transparent 59px, rgba(255,255,255,0.022) 59px, rgba(255,255,255,0.022) 60px);
    pointer-events: none; z-index: 1;
}
.hero-grid-lines::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent 1px, transparent 59px, rgba(255,255,255,0.013) 59px, rgba(255,255,255,0.013) 60px);
}

.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding-top: 150px; /* 상단 고정 헤더(150px) 영역 아래에서 중앙 정렬 */
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(232,97,60,0.10) 0%, transparent 55%);
}
.hero-slide-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1320px;
    margin: 0 auto; padding: 0 96px;
}

.hero-slide-cat {
    font-size: 13px; font-weight: 600; letter-spacing: 4px;
    color: var(--accent); margin-bottom: 14px;
    font-family: 'Poppins', sans-serif; text-transform: uppercase;
}
.hero-slide-title {
    font-size: 44px; font-weight: 800; color: var(--hero-text, var(--white));
    line-height: 1.2; letter-spacing: -1px; margin-bottom: 12px;
}
.hero-slide-title .dot { color: var(--accent); }
.hero-slide-instructor { font-size: 15px; color: var(--hero-text, rgba(255,255,255,0.72)); margin-bottom: 16px; }
.hero-slide-desc {
    font-size: 16px; font-weight: 330; color: var(--hero-text, rgba(255,255,255,0.55));
    line-height: 1.8; margin-bottom: 22px;
    max-width: 580px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide-meta { display: flex; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-slide-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--hero-text, rgba(255,255,255,0.72)); }
.hero-slide-meta-item i { color: var(--hero-icon, var(--accent)); font-size: 13px; }
.hero-slide-price {
    font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--hero-text, var(--white));
}
.hero-slide-price small { font-size: 15px; font-weight: 340; color: var(--hero-text, rgba(255,255,255,0.72)); margin-left: 4px; }

/* 좌우 화살표 — 반투명 블러 배경 */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.65);
    cursor: pointer; font-size: 16px;
    transition: var(--transition-fast);
}
.hero-arrow#heroPrev { left: 24px; }
.hero-arrow#heroNext { right: 24px; }
.hero-arrow:hover {
    box-shadow: inset 0 0 0 1px var(--accent);
    color: var(--white);
    background: rgba(232,97,60,0.15);
}

/* 하단 점 인디케이터 */
.hero-dots {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 8px; align-items: center;
}
.hero-dot {
    width: 6px; height: 6px; background: rgba(255,255,255,0.3);
    cursor: pointer; transition: var(--transition-fast);
    border-radius: 0;
}
.hero-dot.active { width: 24px; background: var(--accent); }

/* 진행 바 (5초 CSS 애니메이션) */
.hero-progress {
    position: absolute; bottom: 0; left: 0; height: 2px;
    background: var(--accent); z-index: 10;
    animation: heroProgress 5s linear infinite;
}
@keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== DOWNLOAD BAR ===== */
.download-bar {
    /* 히어로 배경 바로 아래 붙어 있는 별도 섹션이라, 히어로 색상 테마의
       --hero-bg를 여기서도 동일하게 폴백 사용해 톤이 이어지게 한다. */
    background: var(--hero-bg, var(--dark-gray));
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.download-bar .container {
    display: flex; align-items: center; gap: 0;
    padding-top: 0; padding-bottom: 0;
    min-height: 56px;
}
.dl-bar-label {
    font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--gray-500);
    padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.07);
    margin-right: 24px; white-space: nowrap; flex-shrink: 0;
}
.dl-bar-label i { margin-right: 8px; color: var(--accent); }
.dl-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dl-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: var(--gray-400); text-decoration: none;
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition-fast); white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif;
}
.dl-link i { font-size: 13px; color: var(--accent); }
.dl-link:hover { color: var(--white); border-color: rgba(232,97,60,0.4); background: rgba(232,97,60,0.06); }

/* ===== FILTER SECTION =====
   position:sticky; top:150px — 헤더 바로 아래 고정
===== */
.filter-section {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.view-tabs { display: flex; margin-bottom: -2px; }
.view-tab {
    display: inline-flex; align-items: center;
    padding: 15px 22px;
    font-size: 16px; font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif;
}
.view-tab:hover { color: var(--gray-800); }
.view-tab.active { color: var(--black); font-weight: 700; border-bottom-color: var(--accent); }

.filter-row-1 { display: flex; align-items: center; gap: 0; padding: 16px 0 0; }
.filter-label-text { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-400); min-width: clamp(72px, 8vw, 96px); flex-shrink: 0; padding-right: 16px; }

.year-ctrl { display: flex; align-items: center; gap: 10px; margin-right: 24px; }
.year-btn { background: none; border: 1px solid var(--gray-200); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-500); font-size: 13px; transition: var(--transition-fast); text-decoration: none; }
.year-btn:hover { border-color: var(--black); color: var(--black); }
.year-btn.is-disabled { color: var(--gray-300); border-color: var(--gray-200); cursor: not-allowed; opacity: .55; }
.year-display { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--black); letter-spacing: 1px; }

.month-tabs { display: flex; gap: 0; flex: 1; }
.month-tab { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 500; padding: 8px 14px 18px; border: none; background: none; color: var(--gray-400); cursor: pointer; transition: var(--transition-fast); letter-spacing: 0.3px; position: relative; white-space: nowrap; text-decoration: none; display: inline-block; }
/* 활성 탭 아래 accent 언더라인 슬라이드인 효과 */
.month-tab::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.month-tab:hover { color: var(--gray-700); }
.month-tab.active { color: var(--black); font-weight: 700; }
.month-tab.active::after { width: calc(100% - 20px); }

.filter-row-2 { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.filter-select { font-family: 'Noto Sans KR', sans-serif; font-size: 15px; color: var(--gray-700); border: 1px solid var(--gray-200); padding: 8px 32px 8px 12px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center / 9px; appearance: none; cursor: pointer; transition: var(--transition-fast); min-width: 140px; }
.filter-select:focus { outline: none; border-color: var(--black); }

.search-wrap { flex: 1; max-width: 400px; display: flex; align-items: center; border: 1px solid var(--gray-200); transition: var(--transition-fast); }
.search-wrap:focus-within { border-color: var(--black); }
.search-type { font-family: 'Noto Sans KR', sans-serif; font-size: 15px; border: none; border-right: 1px solid var(--gray-200); padding: 8px 24px 8px 12px; background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center / 8px; appearance: none; color: var(--gray-700); cursor: pointer; }
.search-type:focus { outline: none; }
.search-word { flex: 1; border: none; padding: 8px 12px; font-family: 'Noto Sans KR', sans-serif; font-size: 15px; color: var(--black); background: transparent; }
.search-word::placeholder { color: var(--gray-400); }
.search-word:focus { outline: none; }
.search-submit { padding: 8px 16px; background: var(--black); border: none; color: var(--white); cursor: pointer; font-size: 15px; transition: var(--transition-fast); flex-shrink: 0; }
.search-submit:hover { background: var(--accent); }

.filter-result-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; border-top: 1px solid var(--gray-100); }
.result-count { font-size: 15px; color: var(--gray-500); font-weight: 330; }
.result-count strong { font-weight: 700; color: var(--black); }
.view-toggle { display: flex; gap: 3px; }
.view-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); background: none; color: var(--gray-400); cursor: pointer; font-size: 13px; transition: var(--transition-fast); }
.view-btn.active { background: var(--black); border-color: var(--black); color: var(--white); }
.view-btn:not(.active):hover { border-color: var(--gray-500); color: var(--gray-700); }

/* ===== COURSES SECTION ===== */
.courses-section { padding: 48px 0 100px; background: var(--gray-100); }

/* — LIST VIEW — */
.list-view { display: flex; flex-direction: column; gap: 16px; }
.course-row {
    background: var(--white);
    display: flex; align-items: stretch;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    border-left: 3px solid transparent;
    overflow: hidden;
}
.course-row:hover { border-left-color: var(--accent); box-shadow: 0 6px 28px rgba(0,0,0,0.09); transform: translateX(3px); }

.c-thumb { width: 196px; flex-shrink: 0; position: relative; overflow: hidden; min-height: 156px; }
.c-thumb-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 17px; font-weight: 700; text-align: center; padding: 14px; line-height: 1.45; transition: transform 0.45s ease; }
.course-row:hover .c-thumb-bg { transform: scale(1.06); }
.c-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s ease; }
.course-row:hover .c-thumb-overlay { background: rgba(0,0,0,0.1); }

.c-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; z-index: 2; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 7px; letter-spacing: 0.2px; }
.badge-refundable { background: #1a7a3d; color: #fff; }
.badge-subsidy    { background: #1a7a3d; color: #fff; }
.badge-norefund   { background: var(--gray-700); color: #fff; }
.badge-ongoing    { background: var(--accent); color: #fff; }
.badge-soon       { background: #c4851a; color: #fff; }
.badge-closed     { background: var(--gray-400); color: #fff; }
.badge-injae      { background: #6b5cff; color: #fff; }
.badge-free       { background: #2563eb; color: #fff; }

.c-info { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.c-category { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.c-title { font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.45; margin-bottom: 5px; transition: var(--transition-fast); }
.c-title a { color: inherit; text-decoration: none; }
.course-row:hover .c-title { color: var(--accent); }
.c-instructor { font-size: 15px; color: var(--gray-500); font-weight: 400; margin-bottom: 9px; }
.c-desc { font-size: 15px; color: var(--gray-600); font-weight: 330; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.c-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 16px; border-left: 1px solid var(--gray-100); width: 220px; flex-shrink: 0; flex-grow: 0; text-align: center; }
.c-date-main { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 5px; white-space: nowrap; }
.c-date-time { font-size: 14px; color: var(--gray-500); font-weight: 330; line-height: 1.6; }

.c-venue {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px 14px; border-left: 1px solid var(--gray-100);
    width: 150px; flex-shrink: 0; flex-grow: 0; text-align: center;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.c-venue:hover { background: var(--accent-soft); }
.venue-ico { font-size: 20px; color: var(--gray-300); margin-bottom: 7px; }
.venue-name { font-size: 14px; color: var(--gray-600); font-weight: 400; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.c-venue:hover .venue-ico i { color: var(--accent); }
.c-venue:hover .venue-name { color: var(--accent); }

.c-price { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 24px; border-left: 1px solid var(--gray-100); width: 148px; flex-shrink: 0; flex-grow: 0; text-align: center; }
.price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-num { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--black); }
.price-won { font-size: 13px; color: var(--gray-500); font-weight: 400; }
.c-refund-tag { font-size: 11px; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.apply-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 18px; background: var(--black); color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--black); transition: var(--transition-fast); letter-spacing: 0.3px; white-space: nowrap; }
.apply-btn:hover, .course-row:hover .apply-btn { background: var(--accent); border-color: var(--accent); }

/* — GRID VIEW —
   3열 → 2열(1200px) → 1열(768px) */
.grid-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-card { background: var(--white); cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; }
.grid-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.grid-thumb { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.grid-thumb-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; font-weight: 700; text-align: center; padding: 18px; line-height: 1.4; transition: transform 0.4s ease; }
.grid-card:hover .grid-thumb-bg { transform: scale(1.05); }
.grid-badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.grid-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.grid-cat { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.grid-title { font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.45; margin-bottom: 6px; transition: var(--transition-fast); min-height: 44px; }
.grid-title a { color: inherit; text-decoration: none; }
.grid-card:hover .grid-title { color: var(--accent); }
.grid-instructor { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.grid-date-venue { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.grid-date-venue i { color: var(--gray-300); margin-right: 5px; width: 14px; }
.grid-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--gray-100); margin-top: auto; }
.grid-price-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.grid-price { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 800; color: var(--black); }
.grid-refund { font-size: 11px; color: var(--green); font-weight: 600; }
.grid-apply { font-size: 14px; font-weight: 600; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 4px; padding: 7px 14px; background: var(--black); border: 1px solid var(--black); transition: var(--transition-fast); }
.grid-apply:hover { background: var(--accent); border-color: var(--accent); gap: 8px; }
.grid-apply.closed, .grid-apply.closed:hover { background: var(--gray-200); border-color: var(--gray-200); color: var(--gray-500); gap: 4px; cursor: default; }

.grid-venue-link {
    cursor: pointer; color: inherit; text-decoration: none;
    border-bottom: 1px dashed var(--gray-300);
    transition: color 0.2s, border-color 0.2s;
}
.grid-venue-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.hidden { display: none !important; }

/* ===== PAGINATION ===== */
.pagination-wrap { margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); background: var(--white); font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; color: var(--gray-500); cursor: pointer; transition: var(--transition-fast); text-decoration: none; }
.page-btn:hover { border-color: var(--black); color: var(--black); }
.page-btn.active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--dark); padding: 80px 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(232,97,60,0.07) 0%, transparent 60%); }
.cta-banner .container { position: relative; z-index: 2; text-align: center; }
.cta-label { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.cta-banner h2 { font-size: 34px; font-weight: 800; color: var(--white); line-height: 1.35; margin-bottom: 12px; letter-spacing: -0.5px; }
.cta-banner h2 .dot { color: var(--accent); }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.72); font-weight: 340; margin-bottom: 36px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-primary { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--accent); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; transition: var(--transition); font-family: 'Noto Sans KR', sans-serif; }
.cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.cta-outline { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 400; transition: var(--transition); font-family: 'Noto Sans KR', sans-serif; }
.cta-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ===== VENUE MAP MODAL ===== */
.map-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 2000;
    align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(3px);
}
.map-modal-overlay.is-open { display: flex; }

.map-modal {
    background: var(--white); width: 100%; max-width: 740px;
    max-height: 90vh; overflow-y: auto; position: relative;
    animation: mapModalIn 0.3s ease;
}
@keyframes mapModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.map-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
}
.map-modal-title { display: flex; align-items: center; gap: 10px; }
.map-modal-title i { color: var(--accent); font-size: 16px; }
.map-modal-title strong { font-size: 16px; font-weight: 700; color: var(--black); }
.map-modal-title span { font-size: 12px; color: var(--gray-500); font-weight: 400; }
.map-modal-close {
    width: 34px; height: 34px; border: 1px solid var(--gray-200);
    background: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 16px; transition: var(--transition-fast); flex-shrink: 0;
}
.map-modal-close:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.map-modal-img-wrap { width: 100%; background: var(--gray-100); overflow: hidden; line-height: 0; }
.map-modal-img-wrap img { width: 100%; height: auto; display: block; }

.map-modal-info {
    padding: 20px 24px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-top: 1px solid var(--gray-100);
}
.map-modal-address { display: flex; flex-direction: column; gap: 5px; }
.map-modal-address .addr-row {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--gray-600); font-weight: 330; line-height: 1.6;
}
.map-modal-address .addr-row i {
    color: var(--accent); font-size: 13px; margin-top: 2px;
    flex-shrink: 0; width: 14px;
}
.map-modal-directions {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; background: var(--accent); color: var(--white);
    text-decoration: none; font-size: 13px; font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif; transition: var(--transition-fast);
    white-space: nowrap; flex-shrink: 0;
}
.map-modal-directions:hover { background: var(--accent-hover); }

/* ===== CERTIFICATE MODAL ===== */
.cert-modal-backdrop {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6);
    align-items: center; justify-content: center; padding: 24px;
}
.cert-modal-backdrop.open { display: flex; }

.cert-modal-box {
    background: var(--white); width: 100%; max-width: 680px;
    max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    animation: certModalIn 0.22s ease;
}
@keyframes certModalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cert-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; background: var(--black); flex-shrink: 0;
}
.cert-modal-header-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--white);
}
.cert-modal-header-title i { color: var(--accent); font-size: 15px; }
.cert-modal-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.5); font-size: 18px; line-height: 1;
    padding: 0; transition: color 0.15s;
}
.cert-modal-close:hover { color: var(--white); }

.cert-tabs {
    display: flex; border-bottom: 2px solid var(--gray-200);
    flex-shrink: 0; background: var(--white);
}
.cert-tab {
    padding: 13px 24px; font-size: 13px; font-weight: 600;
    color: var(--gray-400); cursor: pointer; border: none;
    background: none; font-family: 'Noto Sans KR', sans-serif;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.cert-tab.active { color: var(--black); border-bottom-color: var(--accent); }
.cert-tab:hover:not(.active) { color: var(--gray-600); }

.cert-tab-content { display: none; flex: 1; overflow-y: auto; padding: 24px; }
.cert-tab-content.active { display: block; }

.cert-info-text {
    font-size: 13px; color: var(--gray-600); margin-bottom: 20px;
    padding: 12px 16px; background: var(--gray-100);
    border-left: 3px solid var(--accent); line-height: 1.7;
}
.cert-form-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cert-form-table th {
    width: 140px; padding: 12px 16px; background: var(--gray-100);
    border: 1px solid var(--gray-200); font-size: 13px; font-weight: 600;
    color: var(--gray-700); text-align: left; white-space: nowrap;
}
.cert-form-table td { padding: 10px 14px; border: 1px solid var(--gray-200); }
.cert-biz-inputs { display: flex; align-items: center; gap: 6px; }
.cert-biz-sep { color: var(--gray-400); font-weight: 600; flex-shrink: 0; }
.cert-biz-input {
    padding: 8px 10px; border: 1px solid var(--gray-300);
    font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
    outline: none; transition: border-color 0.2s; text-align: center;
}
.cert-biz-input:focus { border-color: var(--gray-600); }
.cert-biz-input.w3 { width: 54px; }
.cert-biz-input.w2 { width: 42px; }
.cert-biz-input.w5 { width: 70px; }
.cert-name-input {
    width: 160px; padding: 8px 10px; border: 1px solid var(--gray-300);
    font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
    outline: none; transition: border-color 0.2s;
}
.cert-name-input:focus { border-color: var(--gray-600); }
.cert-search-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 28px; background: var(--black); color: var(--white);
    font-size: 13px; font-weight: 600; border: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif; transition: background 0.2s;
    margin: 0 auto;
}
.cert-search-btn:hover { background: var(--accent); }

.cert-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cert-filter-bar .cert-filter-label { font-size: 12px; font-weight: 700; color: var(--gray-600); margin-right: 4px; }
.cert-year-select, .cert-month-select {
    padding: 7px 10px; border: 1px solid var(--gray-200);
    font-size: 12px; font-family: 'Noto Sans KR', sans-serif;
    outline: none; background: var(--white); cursor: pointer;
    transition: border-color 0.2s; color: var(--gray-700);
}
.cert-year-select:focus, .cert-month-select:focus { border-color: var(--gray-500); }
.cert-filter-sep { color: var(--gray-400); font-size: 13px; }
.cert-filter-search-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 16px; background: var(--gray-700); color: var(--white);
    font-size: 12px; font-weight: 600; border: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif; transition: background 0.2s;
}
.cert-filter-search-btn:hover { background: var(--black); }

.cert-result-table { width: 100%; border-collapse: collapse; }
.cert-result-table thead th {
    padding: 11px 14px; background: var(--gray-800); color: var(--white);
    font-size: 12px; font-weight: 600; text-align: center;
    border: 1px solid var(--gray-700);
}
.cert-result-table tbody td {
    padding: 12px 14px; border: 1px solid var(--gray-200);
    font-size: 13px; color: var(--gray-700); text-align: center;
}
.cert-result-table tbody tr:hover { background: var(--gray-100); }
.cert-result-table .td-title { text-align: left; }
.cert-print-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: var(--accent); color: var(--white);
    font-size: 11px; font-weight: 600; border: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif; transition: opacity 0.2s;
}
.cert-print-btn:hover { opacity: 0.85; }
.cert-empty-msg { text-align: center; padding: 40px 0; color: var(--gray-400); font-size: 13px; }
.cert-empty-msg i { display: block; font-size: 28px; margin-bottom: 10px; color: var(--gray-300); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .grid-view { grid-template-columns: repeat(2, 1fr); }
    .c-venue { display: none; }
    .hero-slide-title { font-size: 34px; }
}
@media (max-width: 1024px) {
    /* .hero-slide/.hero-carousel가 position:absolute;inset:0라서 height:auto인 .page-hero의
       실제 높이 계산에 기여하지 못함 — min-height가 실제 콘텐츠보다 작으면 하단(가격 등)이
       overflow:hidden에 잘림. 실기기에서 측정한 콘텐츠 높이(약 507px)보다 여유 있게 설정.
       세로 패딩은 제거해 .hero-slide의 align-items:center가 실제로 상하 중앙 정렬하도록 함
       (이 폭에서는 헤더가 아직 150px 그대로라 .hero-slide의 padding-top은 안 건드림). */
    .page-hero { height: auto; min-height: 560px; }
    .hero-slide-inner { padding: 0 20px; }
    /* 세로 패딩을 없애 콘텐츠를 진짜 중앙으로 옮기면서, 항상 화면 중앙(50%)에 고정된
       좌우 화살표와 겹치게 됐다 — 이 폭부터는 화살표를 숨긴다(768px 이하는 이미 숨김 처리돼 있었음). */
    .hero-arrow { display: none !important; }
}
@media (max-width: 768px) {
    /* 768px 이하에서는 헤더가 로고+햄버거뿐인 60px 투명 바라 텍스트 겹침 위험이 낮고,
       사용자가 보기엔 헤더까지 포함한 히어로 전체가 하나의 배경이라 상하 중앙에
       맞춰야 균형있게 보임(데스크톱의 150px 여백은 이 폭에서는 과함) — 0으로 해제. */
    .hero-slide { padding-top: 0; }
    .hero-slide-inner { padding: 0 20px; }
    .hero-slide-title { font-size: 28px; }
    .hero-slide-meta { gap: 12px; }
    .c-thumb { width: 100%; min-height: 140px; }
    .course-row { flex-wrap: wrap; }
    .c-date, .c-price { flex: 1; min-width: 120px; }
    .grid-view { display: grid !important; grid-template-columns: 1fr; }
    .list-view { display: none !important; }
    .view-toggle { display: none; }
    .grid-price { font-size: 14px; }
    .grid-thumb-bg { font-size: 14px !important; }
    .grid-badges { display: none; }
    .dl-bar-label { display: none; }
    .filter-row-1 { flex-wrap: wrap; gap: 0; padding: 12px 0 0; }
    .filter-label-text { display: none; }
    .year-ctrl { white-space: nowrap; flex-shrink: 0; margin-right: 0; width: 100%; justify-content: center; padding-bottom: 10px; }
    .year-display { white-space: nowrap; }
    .month-tabs {
        flex: 0 0 100%; width: 100%;
        flex-wrap: nowrap; overflow-x: auto;
        scrollbar-width: none; -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch; padding-bottom: 4px;
    }
    .month-tabs::-webkit-scrollbar { display: none; }
    .month-tab { font-size: 13px; padding: 6px 10px 14px; }
    .filter-row-2 { padding: 10px 0; }
    .search-wrap { max-width: 100%; flex: 1; }
}
@media (max-width: 480px) {
    .map-modal { max-height: 95vh; }
    .map-modal-header { padding: 16px; }
    .map-modal-info { padding: 16px; flex-direction: column; align-items: flex-start; }
    .map-modal-directions { width: 100%; justify-content: center; }
    .cert-modal-backdrop { padding: 0; }
    .cert-modal-box { max-height: 100vh; }
    .cert-biz-input.w5 { width: 60px; }
}
