/* ===================================================================
   혜담논술교습소 — 모바일 최적화 v4 (max-width: 768px)
   갤럭시·아이폰 우선 + 4개 서브 페이지 + v2 디자인 보강
   =================================================================== */

/* ─────────────────────────────────────────────
   🌐 글로벌 안전장치
   ─────────────────────────────────────────────*/
html, body { overflow-x: hidden; max-width: 100vw; }
* { -webkit-tap-highlight-color: rgba(212,160,23,.18); }
img, svg, video, iframe { max-width: 100%; height: auto; }
/* iOS 입력 필드 자동 줌 방지 */
input, select, textarea { font-size: 16px !important; }
/* 터치 영역 최소 44px (Apple HIG) */
button, .btn, a.btn { min-height: 44px; }

/* 베이스 폰트 약간 줄임 */
body { font-size: 17px; }

/* 컨테이너 — 좌우 여백 최소화 */
.container { width: 95%; padding: 0 8px; }

/* ─────────────────────────────────────────────
   🧭 헤더 / 메뉴
   ─────────────────────────────────────────────*/
.site-header { --header-h: 64px; }
.header-inner { gap: 8px; }
.logo-img { height: 44px; }
.logo-text-mobile { display: none; }

.primary-nav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-110%);
  transition: transform var(--t-base);
  z-index: 99;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
body.nav-open .primary-nav { transform: translateY(0); }
.primary-nav .nav-link {
  padding: 16px 24px;
  font-size: 18px;
  border-bottom: 1px solid var(--c-bg-soft);
}
.primary-nav .nav-link::after { display: none; }
.primary-nav .nav-link:hover { background: var(--c-bg-soft); color: var(--c-gold); }
.nav-toggle { display: block; }

/* 헤더 액션 (국기 축소) */
.header-actions { gap: 8px; }
.lang-switcher-flags {
  max-width: calc(100vw - 160px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.lang-switcher-flags::-webkit-scrollbar { display: none; }
.lang-switcher-flags .lang-flag-item {
  padding: 3px 4px 2px; min-width: 32px; flex-shrink: 0;
}
.lang-switcher-flags .lang-flag-item img { width: 22px; height: 16px; }
.lang-switcher-flags .lang-flag-item span { font-size: 16px; }

/* ─────────────────────────────────────────────
   🏠 메인 페이지 — HERO
   ─────────────────────────────────────────────*/
.hero { min-height: 540px; }
.hero-content { padding: 48px 16px 120px; }
.hero-eyebrow { font-size: 16px; padding: 5px 14px; }
.hero-title { font-size: 32px; line-height: 1.2; }
.hero-line-1 { font-size: 20px; }
.hero-sub { font-size: 17px; }
.hero-buttons { flex-direction: column; align-items: stretch; }
.hero-buttons .btn { width: 100%; justify-content: center; }
.hero-stats { gap: 20px; padding-top: 24px; justify-content: space-around; }
.hero-stat strong { font-size: 24px; }
.hero-stat span { font-size: 16px; }

/* ─────────────────────────────────────────────
   📋 섹션 공통
   ─────────────────────────────────────────────*/
.section { padding: 48px 0; }
.section-head { margin-bottom: 32px; }
.section-title { font-size: 26px; line-height: 1.3; }
.section-sub { font-size: 16px; }
.eyebrow { font-size: 16px; padding-left: 28px; }

/* ─────────────────────────────────────────────
   ⭐ 5대 약속 v2 — 모바일 1열
   ─────────────────────────────────────────────*/
.promises-v2-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}
.promise-v2, .promise-v2-hero {
  padding: 26px 22px !important;
  border-radius: 16px !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
.promise-v2-num {
  font-size: 36px !important;
  top: 14px !important;
  right: 18px !important;
}
.promise-v2-svg {
  width: 100% !important;
  max-width: 280px !important;
  height: auto !important;
  margin: 6px auto 16px !important;
  display: block;
}
.promise-v2-title-hero {
  font-size: 22px !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}
.promise-v2-tagline { font-size: 16px !important; margin-bottom: 14px !important; }
.promise-v2-bullets li {
  font-size: 16px !important;
  padding: 8px 0 !important;
}
.promise-v2-bullets .bul-icon { font-size: 18px !important; }
.promise-v2-tag {
  font-size: 16px !important;
  padding: 6px 12px !important;
  margin-top: 14px !important;
}
.promise-v2 .promise-v2-row {
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}
.promise-v2 .promise-v2-icon { font-size: 26px !important; }
.promise-v2 h3 { font-size: 18px !important; line-height: 1.35 !important; }
.promise-v2 p { font-size: 16px !important; line-height: 1.6 !important; }

/* ─────────────────────────────────────────────
   🌊 5단계 v2 (다크) — 모바일 세로 흐름
   ─────────────────────────────────────────────*/
.section-flow-v2 { padding: 56px 0 !important; }
.flow-v2-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}
.flow-card-v2 {
  width: 100% !important;
  max-width: 320px !important;
  padding: 22px 20px !important;
}
.flow-card-num { font-size: 30px !important; }
.flow-card-icon { width: 52px !important; height: 52px !important; }
.flow-card-icon svg { width: 32px !important; height: 32px !important; }
.flow-card-v2 h3 { font-size: 17px !important; }
.flow-card-v2 p { font-size: 16px !important; }
.flow-arrow-v2 { transform: rotate(90deg); padding: 4px 0; }
.flow-arrow-v2 svg { width: 28px !important; height: auto !important; }
.flow-note-v2 {
  flex-direction: column !important;
  text-align: center !important;
  padding: 22px !important;
  gap: 12px !important;
  margin-top: 24px !important;
}
.flow-note-icon { font-size: 28px !important; }
.flow-note-text strong { font-size: 16px !important; }
.flow-note-text span { font-size: 16px !important; }
/* 다크 배경 데코 오브들 모바일에서 부담 줄이기 */
.flow-orb { display: none; }
.flow-particle { display: none; }

/* ─────────────────────────────────────────────
   🖼 갤러리 — 2열 모자이크
   ─────────────────────────────────────────────*/
.gallery-grid {
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 200px 200px 200px !important;
  gap: 8px !important;
}
.gallery-feature { grid-column: span 2 !important; grid-row: span 1 !important; }
.gallery-item { border-radius: 10px; }
.gallery-caption {
  transform: translateY(0);
  font-size: 16px;
  padding: 10px 14px;
}

/* ─────────────────────────────────────────────
   👨‍🏫 원장 소개 v3
   ─────────────────────────────────────────────*/
.director-head-center { padding: 0 8px; }
.director-headline {
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin-bottom: 18px !important;
}
.director-philosophy { padding: 20px !important; }
.director-philosophy .philo-main { font-size: 16px !important; line-height: 1.6 !important; }
.director-philosophy .philo-sub { font-size: 16px !important; }

.director-content-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
.director-v2-photo-wrap { max-width: 340px; margin: 0 auto; }
.director-badge { font-size: 16px !important; padding: 8px 10px !important; }
.director-badge .badge-icon { font-size: 16px !important; }
.director-quote { padding: 22px !important; }
.director-quote .quote-mark { font-size: 60px !important; }
.director-quote .quote-body { font-size: 16px !important; line-height: 1.7 !important; }
.director-cards { gap: 12px !important; }
.director-mini-card { padding: 16px 18px !important; }
.director-mini-card .dmc-icon { font-size: 22px !important; }
.director-mini-card p { font-size: 16px !important; line-height: 1.6 !important; }

/* ─────────────────────────────────────────────
   📍 오시는 길 (메인 페이지 섹션)
   ─────────────────────────────────────────────*/
.location-grid { grid-template-columns: 1fr !important; gap: 24px; }
.location-map iframe { height: 320px !important; }
.location-map .map-quick-links { padding: 10px !important; }
.location-map .map-link { font-size: 16px !important; padding: 10px !important; }
.location-info h3 { font-size: 17px; }
.location-info p { font-size: 16px; }

/* ─────────────────────────────────────────────
   🎯 푸터 CTA (v31 사진 배경)
   ─────────────────────────────────────────────*/
.footer-cta { padding: 56px 0 !important; }
.fcta-title { font-size: 24px !important; line-height: 1.3; }
.fcta-sub { font-size: 16px !important; margin-bottom: 28px !important; }
.fcta-buttons {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}
.fcta-buttons .btn {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 20px !important;
  padding: 16px 20px !important;
  border-radius: 50px !important;
}

/* ─────────────────────────────────────────────
   🦶 푸터 그리드 (4영역 → 1열)
   ─────────────────────────────────────────────*/
.footer-grid {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
.footer-brand .footer-logo { width: 64px; }
.footer-col p { font-size: 16px; line-height: 1.65; }
.footer-col h4 { font-size: 16px; }
/* 푸터 bottom padding — 모바일 sticky CTA 가림 방지 */
.site-footer { padding-bottom: 100px; }
.footer-bottom { font-size: 16px; }

/* ─────────────────────────────────────────────
   📞 모바일 하단 sticky CTA
   ─────────────────────────────────────────────*/
.mobile-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 20px rgba(15,23,42,.1);
  z-index: 95;
  padding-bottom: env(safe-area-inset-bottom);
}
.mcta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 8px;
  text-decoration: none;
  font-size: 16px;
  color: var(--c-text);
  font-weight: 500;
  transition: background var(--t-fast);
  min-height: 60px;
}
.mcta-btn:hover, .mcta-btn:active { background: var(--c-bg-soft); text-decoration: none; }
.mcta-call { border-right: 1px solid var(--c-line); }
.mcta-icon { font-size: 24px; }
.mcta-text { text-align: left; line-height: 1.3; }
.mcta-text strong { display: block; color: var(--c-navy); font-size: 16px; font-weight: 700; margin-top: 1px; }
.mcta-call .mcta-text strong { color: var(--c-navy); }
.mcta-sms .mcta-text strong { color: var(--c-gold); }

/* ─────────────────────────────────────────────
   🎓 학원 소개 페이지 (about)
   ─────────────────────────────────────────────*/
.about-page .container { padding-left: 14px; padding-right: 14px; }
.about-hero { padding: 50px 0 60px !important; }
.about-hero-grid {
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}
.about-hero-svg-wrap { max-width: 320px !important; }
.about-hero-left h1 { font-size: 28px !important; line-height: 1.2 !important; }
.about-hero-left .ah-lead { font-size: 16px !important; }
.ah-badges { gap: 8px !important; }
.ah-badge { font-size: 16px !important; padding: 8px 12px !important; }

/* 원장의 말 (다크 인용) */
.about-quote { padding: 56px 0 !important; }
.about-quote::before {
  font-size: 200px !important;
  top: -20px !important; left: 14px !important;
}
.aq-grid {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  text-align: center !important;
}
.aq-photo { max-width: 220px !important; margin: 0 auto !important; }
.aq-body { font-size: 16px !important; line-height: 1.75 !important; }
.aq-greeting { font-size: 24px !important; margin-bottom: 20px !important; }
.hl-snu { font-size: 16px !important; padding: 4px 10px !important; }
.aq-signature { font-size: 16px !important; }

/* 화수 3컬럼 카드 */
.about-hwasu { padding: 50px 0 !important; }
.hwasu-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.hwasu-card { padding: 0 !important; }
.hc-corner { font-size: 30px !important; top: 12px !important; right: 18px !important; }
.hc-scene { padding: 12px 12px 0 !important; }
.hc-body { padding: 20px 22px 24px !important; }
.hc-body h3 { font-size: 19px !important; }
.hc-body p { font-size: 16px !important; line-height: 1.6 !important; }
.hc-stats { padding: 12px 14px !important; }
.hc-stat strong { font-size: 19px !important; }

/* 5단계 타임라인 (세로) */
.about-flow { padding: 50px 0 !important; }
.flow-timeline { padding-left: 50px !important; }
.flow-timeline::before { left: 18px !important; top: 14px !important; bottom: 14px !important; }
.flow-item { padding: 18px 20px !important; }
.flow-item::before {
  left: -42px !important; top: 22px !important;
  width: 16px !important; height: 16px !important;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--dot-color,#fbbf24) !important;
}
.flow-item-num { font-size: 26px !important; }
.flow-item h3 { font-size: 17px !important; }
.flow-item p { font-size: 16px !important; }

/* 내신 모드 */
.about-naesin { padding: 50px 0 !important; }
.naesin-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}
.naesin-svg { max-width: 360px !important; margin: 0 auto !important; }
.naesin-h { font-size: 26px !important; line-height: 1.3 !important; }
.naesin-em-bg { padding: 0 10px !important; }
.naesin-lead { font-size: 16px !important; }
.nx-cards { grid-template-columns: 1fr !important; gap: 12px !important; }
.nx-card { padding: 14px 16px !important; }
.nx-card-num { width: 36px !important; height: 36px !important; font-size: 16px !important; }
.nx-card-body h4 { font-size: 16px !important; }
.nx-card-body p { font-size: 16px !important; line-height: 1.55 !important; }
.nx-eyebrow { font-size: 16px !important; padding: 8px 18px !important; }

/* 고등 사고력 */
.about-thinking { padding: 50px 0 !important; }
.thinking-card { padding: 36px 22px !important; border-radius: 20px !important; }
.thinking-card h2 { font-size: 22px !important; }
.thinking-card p { font-size: 16px !important; }
.thinking-card .think-em { font-size: 16px !important; padding: 8px 18px !important; }

/* 갤러리 모자이크 */
.about-gallery { padding: 50px 0 !important; }
.ag-mosaic {
  grid-template-columns: 1fr 1fr !important;
  grid-auto-rows: 140px !important;
}
.ag-item, .ag-item.size-lg, .ag-item.size-md, .ag-item.size-sm, .ag-item.size-tall {
  grid-column: span 2 !important;
  grid-row: span 1 !important;
}
.ag-item-cap { font-size: 16px !important; padding: 10px 14px !important; }

/* ─────────────────────────────────────────────
   📚 수업 안내 페이지 (programs)
   ─────────────────────────────────────────────*/
.programs-page .container { padding-left: 14px; padding-right: 14px; }
.pg-hero { padding: 50px 0 60px !important; }
.pg-hero-grid {
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}
.pg-hero-left h1 { font-size: 28px !important; }
.pg-hero-left .pg-lead { font-size: 16px !important; }
.pg-hero-svg-wrap { max-width: 340px !important; }
.pg-hero-stats { gap: 10px !important; }
.pg-hero-stat { padding: 14px 10px !important; min-width: 0 !important; }
.pg-hero-stat strong { font-size: 24px !important; }
.pg-hero-stat span { font-size: 16px !important; }

.pg-section { padding: 50px 0 !important; }
.pg-section-head { margin-bottom: 32px; }
.pg-section-head h2 { font-size: 24px !important; line-height: 1.3 !important; }
.pg-section-head .sub { font-size: 16px !important; }

/* 학년별 대상 */
.pg-target-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.pg-target-col { padding: 24px 24px 22px !important; }
.pg-target-col h3 { font-size: 21px !important; }
.grade-pill { padding: 10px 12px !important; font-size: 16px !important; }
.grade-pill strong { font-size: 19px !important; }

/* 5단계 지그재그 */
.stage-row, .stage-row.reverse {
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  direction: ltr !important;
  margin-bottom: 40px !important;
}
.stage-row.reverse > * { direction: ltr !important; }
.stage-illust { padding: 20px !important; border-radius: 18px !important; }
.stage-info .stage-num { margin-bottom: 12px; }
.stage-num-badge { width: 42px !important; height: 42px !important; font-size: 18px !important; }
.stage-label { font-size: 16px !important; }
.stage-info h3 { font-size: 22px !important; }
.stage-info p { font-size: 16px !important; line-height: 1.65 !important; }
.stage-tags { gap: 6px; }
.stage-tag { font-size: 16px !important; padding: 6px 12px !important; }

/* 비교 박스 (평소 vs 내신) */
.compare-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.compare-box { padding: 28px 22px !important; }
.compare-box h3 { font-size: 19px !important; }
.compare-icon { width: 48px !important; height: 48px !important; font-size: 22px !important; }
.compare-list li { font-size: 16px !important; padding: 10px 0 !important; }
.compare-list li .li-icon { font-size: 16px !important; flex: 0 0 20px !important; }

/* 시간표 카드 */
.schedule-card { border-radius: 18px !important; }
.schedule-head { padding: 20px 22px !important; flex-wrap: wrap; }
.schedule-head h3 { font-size: 18px !important; }
.schedule-head .sh-icon { font-size: 26px !important; }
.schedule-body { padding: 22px 22px 18px !important; }
.schedule-row {
  grid-template-columns: 100px 1fr !important;
  gap: 10px !important;
  padding: 14px 0 !important;
}
.schedule-day { font-size: 17px !important; }
.schedule-time { font-size: 16px !important; }
.schedule-note { font-size: 16px !important; grid-column: 1 / -1; margin-top: 4px; padding: 4px 10px !important; }
.schedule-foot { padding: 14px 18px !important; font-size: 16px !important; }

/* FAQ */
.faq-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
.faq-card { padding: 22px 24px !important; }
.faq-q h4 { font-size: 16px !important; }
.faq-a { font-size: 16px !important; line-height: 1.65 !important; margin-left: 40px !important; }
.faq-q-mark { width: 28px !important; height: 28px !important; font-size: 16px !important; flex: 0 0 28px !important; }

/* 페이지 CTA */
.pg-cta { padding: 50px 0 !important; }
.pg-cta h2 { font-size: 24px !important; }
.pg-cta .sub { font-size: 16px !important; margin-bottom: 26px !important; }
.pg-cta-btns { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
.pg-cta-btns .btn {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 18px !important;
  padding: 16px 20px !important;
}

/* ─────────────────────────────────────────────
   💰 수업료 페이지 (schedule)
   ─────────────────────────────────────────────*/
.schedule-page { padding: 50px 0 !important; }
.schedule-page .sp-wrap { padding: 0 14px; }
.schedule-page .sp-card { padding: 32px 22px !important; border-radius: 22px !important; }
.schedule-page .sp-illust { max-width: 240px !important; margin-bottom: 24px !important; }
.schedule-page .sp-card h1 { font-size: 26px !important; line-height: 1.3 !important; }
.schedule-page .sp-card .sp-lead { font-size: 16px !important; margin-bottom: 28px !important; }
.schedule-page .sp-eyebrow { font-size: 16px !important; padding: 7px 16px !important; }
.schedule-page .sp-info {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.schedule-page .sp-info-item { padding: 16px 12px !important; }
.schedule-page .sp-info-item strong { font-size: 16px !important; }
.schedule-page .sp-info-item span { font-size: 16px !important; }
.schedule-page .sp-info-item .si-icon { font-size: 22px !important; margin-bottom: 6px !important; }
/* 수업료 큰 숫자 */
.schedule-page .sp-info-item > div[style*="font-size: 32px"] {
  font-size: 26px !important;
}
.schedule-page .sp-cta {
  flex-direction: column !important;
  gap: 10px !important;
}
.schedule-page .sp-cta a {
  width: 100% !important;
  min-width: 0 !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
}
.schedule-page .sp-footnote { font-size: 16px !important; margin-top: 22px !important; }

/* ─────────────────────────────────────────────
   🗺 오시는 길 페이지 (location)
   ─────────────────────────────────────────────*/
.location-page .lp-wrap { padding: 0 14px; }
.location-page .lp-hero { padding: 40px 0 30px !important; }
.location-page .lp-hero h1 { font-size: 28px !important; line-height: 1.25 !important; }
.location-page .lp-hero .lp-lead { font-size: 16px !important; }
.location-page .lp-eyebrow { font-size: 16px !important; padding: 7px 16px !important; }

/* 큰 지도 + 정보 패널 */
.location-page .lp-map-section { padding: 20px 0 50px !important; }
.location-page .lp-map-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}
.location-page .lp-map-card iframe { height: 340px !important; }
.location-page .lp-map-actions {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 10px !important;
}
.location-page .lp-info-card { padding: 18px 20px !important; border-radius: 14px !important; }
.location-page .lp-info-card h3 { font-size: 16px !important; }
.location-page .lp-info-card .lp-info-body { font-size: 16px !important; }
.location-page .lp-info-card .lp-info-sub { font-size: 16px !important; }
.location-page .lp-info-card a.lp-tel { font-size: 18px !important; }
.location-page .lp-info-icon { width: 34px !important; height: 34px !important; font-size: 16px !important; }

/* 교통수단 4컬럼 → 1컬럼 */
.location-page .lp-transit { padding: 40px 0 !important; }
.location-page .lp-section-head h2 { font-size: 24px !important; line-height: 1.3 !important; }
.location-page .lp-section-head .sub { font-size: 16px !important; }
.location-page .lp-transit-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
.location-page .lp-transit-card { padding: 22px 16px !important; border-radius: 14px !important; }
.location-page .lp-transit-svg { width: 52px !important; height: 52px !important; border-radius: 12px !important; }
.location-page .lp-transit-svg svg { width: 32px !important; height: 32px !important; }
.location-page .lp-transit-card h3 { font-size: 16px !important; }
.location-page .lp-transit-card .lp-route { font-size: 16px !important; line-height: 1.55 !important; }
.location-page .lp-transit-card .lp-time { font-size: 16px !important; padding: 4px 10px !important; }

/* 인근 학교 2카드 → 1컬럼 */
.location-page .lp-schools-grid {
  grid-template-columns: 1fr !important;
}
.location-page .lp-school-card {
  flex-wrap: wrap !important;
  padding: 20px 22px !important;
  gap: 14px !important;
}
.location-page .lp-school-icon { width: 52px !important; height: 52px !important; }
.location-page .lp-school-card h3 { font-size: 17px !important; }
.location-page .lp-school-card .lp-school-sub { font-size: 16px !important; }
.location-page .lp-school-card .lp-walk {
  margin-left: 0 !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 16px !important;
}

/* 다크 CTA 섹션 */
.location-page .lp-final { padding: 50px 0 !important; }
.location-page .lp-final-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}
.location-page .lp-final-left h2 { font-size: 24px !important; line-height: 1.3 !important; }
.location-page .lp-final-left p { font-size: 16px !important; }
.location-page .lp-parking-info { padding: 14px 16px !important; flex-direction: column; text-align: center; }
.location-page .lp-parking-info .ic { font-size: 24px !important; }
.location-page .lp-call-card { padding: 28px 22px !important; border-radius: 18px !important; }
.location-page .lp-call-card h3 { font-size: 16px !important; }
.location-page .lp-call-card .lp-num { font-size: 28px !important; }
.location-page .lp-call-card a { font-size: 16px !important; padding: 12px 22px !important; }
.location-page .lp-call-card .lp-hours { font-size: 16px !important; }

/* ─────────────────────────────────────────────
   📝 게시판
   ─────────────────────────────────────────────*/
.container.board-narrow {
  width: 94% !important;
  max-width: 94% !important;
  padding: 24px 0 60px !important;
}
.board-page .board-title { font-size: 22px !important; }
.board-page .board-desc { font-size: 16px !important; }
.board-page .board-tools {
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.board-page .search { width: 100%; }
.board-page .search input[type="search"] { flex: 1; min-width: 0 !important; font-size: 16px; }
.board-page .btn-primary { text-align: center; font-size: 16px !important; }

/* 모바일 — 작성자/조회 컬럼 숨김 */
.board-table .meta-col:nth-last-child(-n+2),
.board-table th:nth-last-child(-n+2),
.board-table td:nth-last-child(-n+2) { display: none !important; }
.board-table { font-size: 16px !important; }
.board-table th, .board-table td { padding: 10px 8px !important; }
.board-table td.subj a { font-size: 16px !important; }

/* 게시글 보기 */
.post-view .post-head h1 { font-size: 20px !important; line-height: 1.4 !important; }
.post-view .post-meta { font-size: 16px !important; }
.post-view .post-body { font-size: 16px !important; line-height: 1.75 !important; padding: 16px 0 24px !important; }
.post-view .prev-next { grid-template-columns: 1fr !important; }
.post-view .post-actions { flex-direction: column; }
.post-view .post-actions .btn { width: 100%; text-align: center; }

/* 비밀번호 게이트 */
.secret-gate { padding-top: 40px !important; }
.sg-card { padding: 36px 22px !important; border-radius: 18px !important; }
.sg-icon { width: 70px !important; height: 70px !important; font-size: 32px !important; }
.sg-card h1 { font-size: 21px !important; }
.sg-hint { font-size: 16px !important; }
.sg-form input[type="password"] { font-size: 16px !important; }

/* 글쓰기 폼 */
.post-write .board-title { font-size: 20px !important; }
.post-write .qna-notice { font-size: 16px !important; padding: 12px 16px !important; }
.post-write .write-form input[type="text"],
.post-write .write-form input[type="password"] { font-size: 16px !important; padding: 11px 13px !important; }
.post-write .form-actions { flex-direction: column; }
.post-write .form-actions .btn-primary,
.post-write .form-actions .btn { width: 100%; text-align: center; }

/* ─────────────────────────────────────────────
   🔧 자동 번역 진행 바 (모바일에서 더 얇게)
   ─────────────────────────────────────────────*/
#auto-tr-bar { height: 2px !important; }

/* ─────────────────────────────────────────────
   📱 헤더 로고 (사용자 요청 v2)
   ─────────────────────────────────────────────*/
.site-header { --header-h: 72px; }
.site-header .container { width: 95% !important; padding: 0 8px; }
.logo-img { height: 52px !important; }
.logo-text {
  font-size: 17px !important;
  line-height: 1.05;
}
.logo-text small {
  font-size: 16px;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   📱 드롭다운 — 모바일에서 펼침
   ─────────────────────────────────────────────*/
.nav-dropdown { display: block; width: 100%; }
.nav-link-has-sub {
  display: block;
  font-weight: 700 !important;
  font-size: 19px !important;
}
.nav-caret { display: none; }
.nav-sub {
  position: static !important;
  transform: none !important;
  background: var(--c-bg-soft) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.nav-sub::before, .nav-sub::after { display: none !important; }
.nav-sub a {
  padding: 14px 24px 14px 48px !important;
  font-size: 16px !important;
  border-bottom: 1px solid #fff !important;
}
.nav-sub a:hover { padding-left: 52px !important; }

/* ─────────────────────────────────────────────
   📱 작은 폰 (~480px)
   ─────────────────────────────────────────────*/
@media (max-width: 480px) {
  .logo-img { height: 44px !important; }
  .logo-text { font-size: 16px !important; }
  .logo-text small { display: none; }
  .header-inner { gap: 8px; }

  .hero-title { font-size: 28px !important; }
  .hero-line-1 { font-size: 18px !important; }

  /* 갤러리 — 1열 */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
  .gallery-feature { grid-column: span 1 !important; }
  .gallery-item { aspect-ratio: 4 / 3; }

  /* 통계 */
  .hero-stats { gap: 14px; }
  .hero-stat strong { font-size: 22px; }

  /* 푸터 CTA 버튼 */
  .fcta-buttons .btn { font-size: 18px !important; padding: 14px 16px !important; }

  /* about 갤러리 — 1열 */
  .ag-mosaic { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
  .ag-item, .ag-item.size-lg, .ag-item.size-md, .ag-item.size-sm, .ag-item.size-tall {
    grid-column: span 1 !important;
  }

  /* programs 학년 pill 가로 */
  .grade-row { flex-direction: row !important; }
  .grade-pill { flex: 1; padding: 8px 10px !important; }

  /* schedule 수업료 - 2열 유지하되 더 작게 */
  .schedule-page .sp-info-item > div[style*="font-size: 32px"] { font-size: 22px !important; }

  /* location 교통수단 1열 */
  .location-page .lp-transit-grid { grid-template-columns: 1fr !important; }

  /* 게시판 — 더 컴팩트 */
  .board-table th, .board-table td { padding: 8px 6px !important; font-size: 16px !important; }
}

/* ─────────────────────────────────────────────
   📱 매우 작은 폰 (~380px, 아이폰 SE 등)
   ─────────────────────────────────────────────*/
@media (max-width: 380px) {
  body { font-size: 16px; }
  .logo-text { display: none !important; }
  .hero-title { font-size: 26px !important; }
  .section { padding: 40px 0; }
  .section-title { font-size: 22px !important; }

  /* 메뉴 폰트 약간 축소 */
  .primary-nav .nav-link { font-size: 17px; padding: 14px 22px; }

  /* 푸터 CTA 더 작게 */
  .fcta-title { font-size: 22px !important; }
  .fcta-buttons .btn { font-size: 17px !important; }

  /* 4개 페이지 헤딩 */
  .about-hero-left h1,
  .pg-hero-left h1,
  .schedule-page .sp-card h1,
  .location-page .lp-hero h1 { font-size: 24px !important; }
}

/* ─────────────────────────────────────────────
   🌄 가로 모드 (landscape phone)
   ─────────────────────────────────────────────*/
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 480px; }
  .hero-content { padding-top: 32px; padding-bottom: 60px; }
  .primary-nav { max-height: calc(100vh - 56px); }
}

/* lang-dropdown-v2-mobile — 가로 국기 바 제거, 트리거 + 드롭다운 패널 */
.header-actions { gap: 10px !important; }
.lang-trigger { display: inline-flex !important; }
.lang-switcher-flags { display: none !important; max-width: none !important; overflow: visible !important; }
.nav-toggle { display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; width: 44px; height: 40px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: all .2s; }
body.nav-open .nav-toggle { background: var(--c-gold); border-color: var(--c-gold); }
body.nav-open .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.lang-open .lang-switcher-flags {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  position: fixed;
  top: 76px; right: 8px; left: 8px;
  max-width: 360px; margin-left: auto;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
  padding: 12px;
  z-index: 101;
}
body.lang-open .lang-flag-item {
  display: flex !important; flex-direction: row !important;
  align-items: center !important; gap: 10px !important;
  padding: 12px 14px !important;
  min-width: 0 !important; min-height: 0 !important;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
body.lang-open .lang-flag-item img { width: 28px !important; height: 20px !important; flex-shrink: 0; }
body.lang-open .lang-flag-item .lang-flag-code { display: none; }
body.lang-open .lang-flag-item .lang-flag-name { display: inline !important; font-size: 14px; font-weight: 700; color: var(--c-text); }
body.lang-open .lang-flag-item.active { background: var(--c-gold); border-color: var(--c-gold); }
body.lang-open .lang-flag-item.active .lang-flag-name { color: #fff; }
.logo-block { gap: 8px; min-width: 0; flex: 1; max-width: calc(100% - 130px); }
.logo-img { height: 40px !important; flex-shrink: 0; }
.logo-text { font-size: 15px !important; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-text small { font-size: 11px !important; opacity: .7; }
body.lang-open .primary-nav { transform: translateY(-110%) !important; }

/* mobile-readability v1 — 줄바꿈/간격/패딩 가독성 보강 */
body, p, li { word-break: keep-all !important; overflow-wrap: break-word !important; }
.hero h1, .hero-title, .section-title, h1, h2 { word-break: keep-all !important; line-height: 1.25 !important; }
.fcta-title { font-size: 22px !important; line-height: 1.35 !important; word-break: keep-all !important; padding: 0 12px; }
.fcta-sub { font-size: 15px !important; padding: 0 20px; word-break: keep-all !important; }
.footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; text-align: center; }
.footer-col { padding: 0 16px; }
.footer-col h4 { font-size: 17px; margin-bottom: 8px; color: #fbbf24; }
.footer-col p { font-size: 15px; line-height: 1.7; word-break: keep-all; }
.footer-brand { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; }
.footer-tag { font-size: 15px; color: #fbbf24; font-weight: 600; }
.hero, .hero-inner, .hero-content { padding-left: 16px !important; padding-right: 16px !important; }
.hero-eyebrow { font-size: 14px !important; padding: 6px 14px !important; }
.hero-title { font-size: 28px !important; line-height: 1.25 !important; margin-bottom: 14px !important; }
.hero-sub { font-size: 16px !important; line-height: 1.7 !important; word-break: keep-all !important; }
section .container { padding-left: 16px !important; padding-right: 16px !important; }
.btn, .btn-primary, .btn-outline-light, .btn-lg, .mcta-btn { white-space: nowrap; word-break: keep-all; }
.mcta-text { white-space: normal; }

/* nav-overflow-fix v1 — 햄버거 메뉴 바닥이 화면 위로 삐져나오는 버그 수정 */
.primary-nav {
  top: 0 !important;                           /* 64px → 0 */
  transform: translateY(-100%) !important;     /* -110% → -100% (자기 높이만큼만 위로) */
  padding-top: 76px !important;                /* 헤더 높이만큼 위쪽 패딩 (메뉴 항목이 헤더 아래에서 시작) */
  padding-bottom: 24px !important;
  max-height: 100vh !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.15) !important;
}
body.nav-open .primary-nav { transform: translateY(0) !important; }

/* menu-left-align v1 — 모바일 햄버거 메뉴 앞줄(좌측) 맞추기 */
.primary-nav { align-items: stretch !important; text-align: left !important; }
.primary-nav .nav-link {
  text-align: left !important;
  padding-left: 28px !important;
  padding-right: 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
}
.primary-nav .nav-link-has-sub {
  text-align: left !important;
  padding-left: 28px !important;
  justify-content: space-between !important;
  font-weight: 700 !important;
}
.primary-nav .nav-caret {
  display: inline !important;
  font-size: 14px;
  opacity: .6;
  margin-left: auto;
}
.nav-sub { text-align: left !important; }
.nav-sub a {
  text-align: left !important;
  padding: 14px 24px 14px 52px !important;  /* 좌측 52px 들여쓰기 */
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  font-size: 16px !important;
}
.nav-sub a:hover { padding-left: 56px !important; }
.nav-dropdown { width: 100%; display: block; }

/* nav-close-mobile v1 — 햄버거 메뉴 상단 ✕ 닫기 버튼 */
.nav-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fbbf24, #d4a017);
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212,160,23,.28);
  position: sticky;
  top: 12px;
  z-index: 2;
}
.nav-close:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(212,160,23,.36); }
.nav-close span { font-size: 18px; font-weight: 900; line-height: 1; }
.footer-brand { text-align: center !important; padding-bottom: 18px !important; }
.footer-logo { display: block !important; margin: 0 auto !important; max-width: 140px !important; }
.footer-tag { text-align: center !important; margin-top: 14px !important; font-size: 15px !important; }

/* fixed-header v1 — 모바일에서 헤더를 완전 고정 (sticky 우회) */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  background: rgba(255,255,255,.98) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
body { padding-top: 72px !important; }
.hero, .hero-section { margin-top: 0 !important; }
.mobile-cta-bar { z-index: 99; }
body { padding-bottom: 72px !important; }

/* menu-polish v1 — 닫기 우상단 원형 + 메뉴 ⊙ 아이콘 + 서브메뉴 수직 정렬 */
.primary-nav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  min-height: 100vh !important;
  height: 100vh !important;
  overflow-y: auto !important;
  padding: 20px 0 32px !important;
  background: #fff !important;
}
.nav-close {
  position: absolute !important;
  top: 16px !important; right: 16px !important;
  width: 40px !important; height: 40px !important;
  padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
  width: 40px !important; min-width: 0 !important; max-width: 40px !important;
  z-index: 5;
  line-height: 1;
}
.nav-close:hover, .nav-close:active { background: #fbbf24 !important; color: #0f172a !important; border-color: #d4a017 !important; }
.nav-close { font-size: 0 !important; }
.nav-close span { font-size: 18px !important; }
.primary-nav { padding-top: 70px !important; }
.primary-nav .nav-link {
  position: relative;
  padding: 16px 24px 16px 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  text-align: left !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.primary-nav .nav-link::before {
  content: '◉';
  position: absolute;
  left: 24px;
  color: #d4a017;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.primary-nav .nav-link:hover { background: #fffbeb !important; color: #d4a017 !important; }
.primary-nav .nav-link-has-sub {
  display: flex !important;
  justify-content: space-between !important;
  padding-left: 56px !important;
}
.primary-nav .nav-caret { margin-left: auto; font-size: 14px; opacity: .6; }
.primary-nav .nav-dropdown { display: block !important; width: 100% !important; }
.primary-nav .nav-sub {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: #f8fafc !important;
  position: static !important;
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.primary-nav .nav-sub li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}
.primary-nav .nav-sub a {
  display: block !important;
  width: 100% !important;
  padding: 12px 24px 12px 72px !important;
  text-align: left !important;
  font-size: 15px !important;
  color: #475569 !important;
  border-bottom: 1px solid #fff !important;
  position: static !important;
}
.primary-nav .nav-sub a:hover { background: #fbbf24 !important; color: #0f172a !important; padding-left: 76px !important; }


/* ============================================== */
/* MENU-FINAL v2 — 모든 이전 nav 규칙 무력화 후 깔끔하게 재정의 */
/* ============================================== */
@media (max-width: 768px) {
  body .primary-nav {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    height: 100vh !important; max-height: 100vh !important;
    background: #fff !important;
    padding: 70px 0 32px !important;
    overflow-y: auto !important;
    display: flex !important; flex-direction: column !important;
    gap: 0 !important;
    transform: translateY(-100%) !important;
    transition: transform .3s ease !important;
    z-index: 99 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  body.nav-open .primary-nav { transform: translateY(0) !important; }

  /* 닫기 버튼 — 우상단 원형 */
  body .primary-nav .nav-close {
    position: absolute !important;
    top: 16px !important; right: 16px !important;
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; max-width: 40px !important;
    padding: 0 !important; margin: 0 !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    box-shadow: none !important;
    z-index: 10 !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
  }
  body .primary-nav .nav-close > span { font-size: 18px !important; font-weight: 700 !important; }
  body .primary-nav .nav-close:hover,
  body .primary-nav .nav-close:active {
    background: #fbbf24 !important; color: #0f172a !important; border-color: #d4a017 !important;
  }

  /* 메인 메뉴 항목 (학원 소개/수업 안내/시간표·수강료/공지&소식/오시는 길) */
  body .primary-nav > .nav-link,
  body .primary-nav > .nav-dropdown > .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 14px 20px 14px 52px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
    color: #0f172a !important;
    position: relative !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ◉ 골드 아이콘 — 절대 위치로 좌측 22px 고정 */
  body .primary-nav > .nav-link::before,
  body .primary-nav > .nav-dropdown > .nav-link::before {
    content: '◉' !important;
    position: absolute !important;
    left: 22px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    color: #d4a017 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-block !important;
  }
  body .primary-nav .nav-link::after { display: none !important; content: none !important; }
  body .primary-nav .nav-link:hover { background: #fffbeb !important; color: #d4a017 !important; }

  /* 공지&소식 — flex space-between으로 ▾ 우측 정렬 */
  body .primary-nav .nav-link-has-sub {
    justify-content: space-between !important;
    font-weight: 700 !important;
  }
  body .primary-nav .nav-caret {
    display: inline-block !important;
    font-size: 12px !important;
    opacity: .5 !important;
    margin-left: auto !important;
  }

  /* 드롭다운 컨테이너 */
  body .primary-nav .nav-dropdown {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: 0 !important; height: auto !important;
    margin: 0 !important; padding: 0 !important;
    position: relative !important;
  }

  /* 하위 메뉴 — 강제 static + block stack (절대 위치 해제) */
  body .primary-nav .nav-sub {
    display: block !important;
    width: 100% !important;
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: #f8fafc !important;
    margin: 0 !important; padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: none !important;
    height: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  body .primary-nav .nav-sub::before,
  body .primary-nav .nav-sub::after { display: none !important; content: none !important; }
  body .primary-nav .nav-sub li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important; padding: 0 !important;
  }
  body .primary-nav .nav-sub a {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px 12px 68px !important;
    font-size: 15px !important;
    color: #475569 !important;
    text-align: left !important;
    background: transparent !important;
    border-bottom: 1px solid #fff !important;
    position: static !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
  }
  body .primary-nav .nav-sub a:hover {
    background: #fbbf24 !important; color: #0f172a !important;
  }
}