/* ===================================================================
   크레센영어교습소 — 모바일 최적화 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); }
}
