:root {
  --primary: #2e6b57;
  --primary-deep: #1f4d3e;
  --text: #222;
  --muted: #777;
  --border: #e3e3e3;
  --bg: #fff;
  --bg-alt: #f7f8fa;
  --warm-bg: #f6f1e4;
  --warm-line: #e6dcc4;
  --ink: #22302a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.brand-slogan { font-size: .8rem; color: var(--muted); }
.main-nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--text); font-weight: 500; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: 0; padding: 6px 10px; margin: -6px -10px; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--text); border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] { background: rgba(46, 107, 87, .1); }
.nav-caret { font-size: 10px; transition: transform .15s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
/* top:100%로 버튼에 바로 붙여야 마우스가 버튼→메뉴 사이를 지날 때 hover가 끊기지 않는다.
   보이는 간격은 margin이 아니라 padding-top으로 표현(박스 자체가 이어져 있어야 함) */
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08); min-width: 140px; padding-bottom: 6px; z-index: 20;
}
.nav-dropdown-menu a { display: block; padding: 8px 14px; color: var(--text); font-weight: 400; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* 아직 랜딩페이지가 없는 개별 메뉴: 자리만 남기고 클릭 비활성 */
.nav-disabled { color: var(--muted); font-weight: 500; cursor: not-allowed; user-select: none; }

.auth-nav { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.hello { color: var(--muted); }

.main-content { padding: 24px 16px 60px; min-height: 60vh; }
.page-title { font-size: 1.4rem; margin-bottom: 16px; }

.coming-soon { max-width: 480px; margin: 60px auto; text-align: center; }
.coming-soon-desc { color: var(--muted); margin-bottom: 24px; line-height: 1.7; }

.post-list { width: 100%; border-collapse: collapse; background: #fff; }
.post-list th, .post-list td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center; font-size: .92rem; }
.post-list .col-title { text-align: left; }
.post-list td.col-title a { color: var(--text); }
.post-list .empty { padding: 40px 0; color: var(--muted); }
.post-list thead th { background: var(--bg-alt); font-weight: 600; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: #fff; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.form { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.form-narrow { max-width: 420px; }

/* --- 글쓰기/글수정 페이지 (write.php, edit.php) --- */
.container { max-width: 720px; margin: 0 auto; }
.container .field > div { margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.limit-bar { width: 100%; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.limit-bar > div { height: 100%; background: var(--primary); transition: width .3s; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
/* 기본모드/HTML 탭: 선택된 탭(=secondary 클래스가 없는 쪽)만 강조색으로,
   선택 안 된 탭은 .secondary로 무채색 처리. ID로 범위를 좁혀 다른 .btn에는 영향 없음 */
#tab-basic, #tab-html { background: var(--primary); color: #fff; }
#tab-basic.secondary, #tab-html.secondary { background: #eee; color: var(--text); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 1rem; font-family: inherit;
}
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }

.btn {
  display: inline-block; padding: 9px 16px; border-radius: 4px;
  background: #eee; color: var(--text); border: 0; cursor: pointer; font-size: .92rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: #e0554f; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }

.alert {
  background: #fdecea; border: 1px solid #f5c2be; color: #a32b21;
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
}
.alert-success { background: #e9f9ee; border-color: #bfe8cc; color: #1e824c; }

.post-view h1 { font-size: 1.5rem; margin-bottom: 8px; }
.post-meta {
  display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem;
  border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px;
}
.post-content { min-height: 200px; margin-bottom: 20px; }
.post-extra-meta {
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; margin-bottom: 20px;
  border-top: 1px solid var(--border);
}
.post-actions { display: flex; gap: 8px; }

/* --- 게시글 상세: 기본모드 구조화 블록 --- */
.post-block { margin-bottom: 28px; }
.post-block-title { font-size: 1.05rem; color: var(--ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.post-conclusion { background: var(--warm-bg); border-radius: 10px; padding: 18px 20px; }
.post-conclusion .post-block-title { border-bottom: 0; padding-bottom: 0; }
.post-compare-table { width: 100%; border-collapse: collapse; background: #fff; }
.post-compare-table th, .post-compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.post-compare-table th { width: 30%; background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.post-faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.post-faq-item:last-child { border-bottom: 0; }
.post-faq-q { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.post-faq-a { color: var(--muted); margin: 0; }
.post-images { display: flex; flex-direction: column; gap: 12px; }
.post-images img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.post-cta-row { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.post-rich-html-wrap { overflow-x: auto; }
.post-rich-html img { max-width: 100%; height: auto; }
.post-rich-html table { border-collapse: collapse; }

.admin-nav { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-nav a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text); }
.admin-stats { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 24px; text-align: center; }
.stat .num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat .label { color: var(--muted); font-size: .85rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 24px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center; font-size: .9rem; }
.muted { color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: .85rem; text-align: center; }

.filter-form { margin-bottom: 20px; }
.filter-form .field { margin-bottom: 10px; }
.bulk-actions { display: flex; gap: 8px; margin: -12px 0 24px; flex-wrap: wrap; }
.row-unread { font-weight: 700; background: #fbfbfe; }
.badge-new {
  display: inline-block; background: var(--primary); color: #fff; font-size: .7rem;
  font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: .02em;
}
.setting-preview { max-height: 60px; border: 1px solid var(--border); border-radius: 4px; padding: 4px; background: #fff; }
.setting-preview-sm { max-height: 32px; }

.landing-admin-fieldset {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 4px; margin: 0 0 18px;
}
.landing-admin-fieldset legend { padding: 0 6px; font-weight: 700; font-size: .85rem; color: var(--primary); }
.form h2 { font-size: 1.05rem; margin: 28px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.form h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.region-admin-group { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }

@media (max-width: 640px) {
  .post-list thead { display: none; }
  .post-list, .post-list tbody, .post-list tr, .post-list td { display: block; width: 100%; }
  .post-list tr { border-bottom: 2px solid var(--border); padding: 8px 0; }
  .post-list td { text-align: left; border-bottom: 0; padding: 4px 8px; }
  .field-row { flex-direction: column; gap: 0; }
}

/* ==========================================================
   랜딩페이지 (index.php)
   ========================================================== */
.landing-section { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.landing-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.landing-section-title { font-size: 1.7rem; font-weight: 800; color: var(--ink); text-align: center; margin: 0 0 40px; }

/* --- 히어로 --- */
.landing-hero { background: linear-gradient(180deg, var(--warm-bg) 0%, #fff 100%); }
.landing-hero-inner { display: flex; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.landing-hero-text { flex: 1 1 360px; min-width: 280px; }
.landing-hero-media { flex: 1 1 300px; min-width: 260px; display: flex; justify-content: center; }
.landing-eyebrow {
  display: inline-block; background: rgba(46, 107, 87, .1); color: var(--primary);
  font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: .02em;
}
.landing-hero-title { font-size: 2.3rem; line-height: 1.35; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.landing-hero-subtitle { font-size: 1.05rem; color: #4c5a54; line-height: 1.75; margin: 0 0 30px; }
.landing-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px;
  border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1;
  border: 0; cursor: pointer; font-family: inherit;
}
.landing-btn-primary { background: var(--primary); color: #fff; }
.landing-btn-primary:hover { background: var(--primary-deep); text-decoration: none; }
.landing-btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 12px 24px; }
.landing-btn-ghost:hover { background: rgba(46, 107, 87, .08); text-decoration: none; }
.landing-btn-white { background: #fff; color: var(--primary-deep); }
.landing-btn-white:hover { background: var(--warm-bg); text-decoration: none; }
.landing-hero-image {
  width: 320px; height: 320px; max-width: 100%; object-fit: cover; border-radius: 24px;
  box-shadow: 0 20px 40px rgba(34, 48, 42, .18);
}
.landing-hero-placeholder {
  width: 320px; height: 320px; max-width: 100%; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(34, 48, 42, .25);
}

/* --- 강점 소개 --- */
.landing-strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.landing-strength-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px;
  position: relative; overflow: hidden;
}
.landing-strength-num {
  display: block; font-size: 2.6rem; font-weight: 800; color: rgba(46, 107, 87, .16);
  line-height: 1; margin-bottom: 8px;
}
.landing-strength-img { width: 100%; max-width: 120px; height: auto; margin-bottom: 14px; border-radius: 12px; }
.landing-strength-card h3 { font-size: 1.1rem; color: var(--ink); margin: 0 0 10px; }
.landing-strength-card p { font-size: .92rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* --- 후기 --- */
.landing-reviews { background: var(--warm-bg); }
.landing-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.landing-review-card {
  background: #fff; border-radius: 16px; padding: 28px 24px; border: 1px solid var(--warm-line);
}
.landing-review-grade {
  display: inline-block; background: rgba(46, 107, 87, .1); color: var(--primary);
  font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.landing-review-content { font-size: .95rem; color: #3d4a44; line-height: 1.75; margin: 0 0 18px; }
.landing-review-name { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 0; padding-top: 14px; border-top: 1px solid var(--warm-line); }

/* --- 5단계 서비스 시스템 --- */
.landing-svc-list { display: flex; flex-direction: column; gap: 56px; }
.landing-svc-step {
  display: flex; align-items: center; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--border);
}
.landing-svc-list .landing-svc-step:last-child { padding-bottom: 0; border-bottom: 0; }
.landing-svc-step-reverse { flex-direction: row-reverse; }
.landing-svc-step-noimg { justify-content: center; }
.landing-svc-step-noimg .landing-svc-text { max-width: 620px; }
.landing-svc-media { flex: 1 1 360px; min-width: 260px; }
.landing-svc-media img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  box-shadow: 0 16px 32px rgba(34, 48, 42, .14);
}
.landing-svc-text { flex: 1 1 360px; min-width: 260px; }
.landing-svc-num {
  display: inline-block; font-size: 1rem; font-weight: 800; color: var(--primary);
  background: rgba(46, 107, 87, .1); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .05em;
}
.landing-svc-text h3 { font-size: 1.3rem; color: var(--ink); margin: 0 0 10px; }
.landing-svc-text p { font-size: .95rem; color: #4c5a54; line-height: 1.75; margin: 0 0 14px; }
.landing-svc-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.landing-svc-points li { font-size: .9rem; color: var(--ink); font-weight: 600; padding-left: 24px; position: relative; }
.landing-svc-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); opacity: .15;
}
.landing-svc-points li::after {
  content: "✓"; position: absolute; left: 2px; top: 1px; font-size: .68rem; color: var(--primary); font-weight: 800;
}

/* --- 진행 절차 --- */
.landing-steps { background: var(--warm-bg); }
.landing-step-row { display: flex; gap: 24px; position: relative; }
.landing-step-row::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: var(--warm-line);
}
.landing-step-card { flex: 1; text-align: center; position: relative; z-index: 1; }
.landing-step-circle {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(46, 107, 87, .25);
}
.landing-step-card h3 { font-size: 1.02rem; color: var(--ink); margin: 0 0 8px; }
.landing-step-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* --- 무료체험 신청 CTA 배너 --- */
.landing-cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); }
.landing-cta-inner { text-align: center; padding-top: 56px; padding-bottom: 56px; }
.landing-cta-inner h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 24px; line-height: 1.4; }

/* --- 상단 접수 완료 알림 --- */
.landing-top-alert { background: var(--primary); color: #fff; font-weight: 700; text-align: center; }
.landing-top-alert .landing-inner { padding: 14px 24px; }

/* --- 무료체험 신청 팝업(모달) --- */
.landing-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(34, 48, 42, .55); z-index: 100;
  align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.landing-modal-overlay.is-open { display: flex; }
.landing-modal {
  background: #fff; border-radius: 16px; padding: 32px; max-width: 480px; width: 100%;
  position: relative; margin: auto; box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
}
.landing-modal-title { font-size: 1.3rem; color: var(--ink); margin: 0 0 18px; }
.landing-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--bg-alt); color: var(--muted); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.landing-modal-close:hover { background: var(--border); }
.landing-modal-phone { text-align: center; font-size: .88rem; color: var(--muted); margin: 18px 0 0; }
.landing-modal-phone a { font-weight: 700; }
.landing-modal .form { border: 0; padding: 0; }

.landing-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-pill { cursor: pointer; display: inline-block; }
.landing-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.landing-pill span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  font-size: .86rem; font-weight: 600; color: var(--text); background: #fff; transition: background .15s, border-color .15s, color .15s;
}
.landing-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.landing-pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.landing-address-row { display: flex; gap: 8px; }
.landing-address-row input { flex: 1; background: var(--bg-alt); }
.landing-address-row .btn { flex-shrink: 0; white-space: nowrap; }
.landing-address-detail { margin-top: 8px; }

/* --- 신뢰 배지 스트립 (히어로 바로 아래) --- */
.landing-badge-strip { background: #fff; border-bottom: 1px solid var(--border); }
.landing-badge-inner {
  padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
}
.landing-badge {
  display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink);
}
.landing-badge::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; flex-shrink: 0;
}

/* --- 통계 강조 --- */
.landing-stats { background: #fff; }
.landing-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-stat-card {
  text-align: center; padding: 32px 20px; border-radius: 16px; background: var(--warm-bg);
}
.landing-stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-deep); margin-bottom: 6px; }
.landing-stat-label { display: block; font-size: .88rem; color: #5a6a63; font-weight: 600; }
.landing-stats-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 20px 4px 0; }

/* --- 플로팅 버튼 --- */
.landing-floating { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.landing-float-btn {
  padding: 13px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--primary);
  color: var(--primary); font-weight: 700; font-size: .85rem; text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14); text-decoration: none;
}
.landing-float-btn:hover { text-decoration: none; background: var(--bg-alt); }
.landing-float-primary { background: var(--primary); color: #fff; }
.landing-float-primary:hover { background: var(--primary-deep); color: #fff; }

@media (max-width: 860px) {
  .landing-strength-grid, .landing-review-grid, .landing-stat-grid { grid-template-columns: 1fr; }
  .landing-step-row { flex-direction: column; gap: 32px; }
  .landing-step-row::before { display: none; }
  .landing-svc-step, .landing-svc-step-reverse { flex-direction: column; gap: 24px; }
  .landing-hero-inner { padding-top: 48px; padding-bottom: 48px; }
  .landing-hero-title { font-size: 1.8rem; }
  .landing-hero-image, .landing-hero-placeholder { width: 240px; height: 240px; }
}
@media (max-width: 480px) {
  .landing-floating { right: 12px; bottom: 12px; }
  .landing-float-btn { padding: 11px 16px; font-size: .8rem; }
}

/* ==========================================================
   영어회화 랜딩페이지 전용 (english-conversation.php) - v9 디자인
   지역별로 복제해서 재사용할 템플릿이라, 이 접두어(.ec-)로 다른 페이지 스타일과
   완전히 분리해뒀다 — 새 지역 페이지를 만들어도 이 블록만 그대로 재사용하면 된다.
   ========================================================== */
.ec-page {
  --ec-hero-bg: #234238;     /* 상단 메인 배경: 딥 포레스트 */
  --ec-hero-title: #FAFAF5;  /* 메인 제목: 아이보리 화이트 */
  --ec-hero-desc: #E8EDE5;   /* 설명 글씨: 소프트 크림 */
  --ec-hero-accent: #BFD8A7; /* 강조 글씨: 라이트 세이지 */
  --ec-btn-main-bg: #B7D77A; /* 메인 버튼: 세이지 라임 */
  --ec-btn-main-text: #20372F; /* 메인 버튼 글씨: 딥 포레스트 */
  --ec-btn-outline: #AFC5B6; /* 서브 버튼 테두리: 페일 세이지 */
  --ec-page-bg: #F8F7F0;     /* 전체 배경: 웜 아이보리 */
  --ec-card-bg-1: #E5EDE3;   /* 카드 배경① */
  --ec-card-bg-2: #E3ECE8;   /* 카드 배경② */
  --ec-heading: #243C34;     /* 본문 제목: 딥 포레스트 */
  --ec-body-text: #626A65;   /* 본문 글씨: 웜 그레이 */
  --ec-line: #dfe3da;
  background: var(--ec-page-bg);
  color: var(--ec-body-text);
  font-family: 'Noto Sans KR', sans-serif;
}
.ec-page h1, .ec-page h2, .ec-page h3 {
  font-family: 'Do Hyeon', sans-serif; font-weight: 400; letter-spacing: -0.01em;
  margin: 0; color: var(--ec-heading);
}
.ec-page .landing-section { padding-top: 44px; padding-bottom: 44px; }
.ec-page h1 { font-size: 30px; margin-bottom: 8px; }
.ec-page h2 { font-size: 24px; margin-bottom: 6px; }
.ec-section-sub { color: var(--ec-body-text); font-size: 14px; margin-bottom: 26px; }

.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px;
  border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; font-family: 'Noto Sans KR', sans-serif;
}
.ec-btn-primary { background: var(--ec-btn-main-bg); color: var(--ec-btn-main-text); }
.ec-btn-primary:hover { text-decoration: none; opacity: .92; }
.ec-btn-outline { background: transparent; color: var(--ec-hero-title); border: 1px solid var(--ec-btn-outline); }
.ec-btn-outline:hover { text-decoration: none; background: rgba(255, 255, 255, .08); }

/* --- 히어로 --- */
.ec-hero { background: var(--ec-hero-bg); padding-top: 44px; padding-bottom: 44px; }
.ec-eyebrow { color: var(--ec-hero-accent); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ec-hero .ec-hero-title { font-size: clamp(28px, 3.6vw, 38px); color: var(--ec-hero-title); }
.ec-hero-lead { margin-top: 12px; font-size: 16px; color: var(--ec-hero-desc); max-width: 52ch; }
.ec-hero-diff { margin-top: 10px; font-size: 14px; color: var(--ec-hero-accent); max-width: 52ch; }
.ec-hero-cta { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --- 6가지 프로그램 --- */
.ec-program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ec-program-card { background: #fff; border: 1px solid var(--ec-line); border-radius: 14px; overflow: hidden; }
.ec-program-media { height: 130px; display: flex; align-items: center; justify-content: center; }
.ec-program-media img { width: 100%; height: 100%; object-fit: cover; }
.ec-program-media svg { width: 44px; height: 44px; }
.ec-program-media svg path, .ec-program-media svg rect, .ec-program-media svg circle { stroke: var(--ec-heading); }
.ec-program-media.ec-card-bg-1 { background: var(--ec-card-bg-1); }
.ec-program-media.ec-card-bg-2 { background: var(--ec-card-bg-2); }
.ec-program-body { padding: 16px 18px 20px; }
.ec-program-body h3 { font-size: 17px; margin-bottom: 6px; }
.ec-program-body p { margin: 0; font-size: 13px; color: var(--ec-body-text); }
.ec-programs-note { font-size: 12px; color: var(--ec-body-text); margin-top: 14px; }

/* --- 지역 링크 --- */
.ec-region-link-wrap { padding: 18px 0; }
.ec-region-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ec-heading); font-weight: 700;
  font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--ec-btn-main-bg); padding-bottom: 2px;
}
.ec-region-link:hover { text-decoration: none; }

/* --- 선생님 소개 --- */
.ec-teachers { background: #fff; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.ec-teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ec-teacher-card {
  background: #FFFFFF; border: 1px solid #DDE7DF; border-radius: 14px; padding: 24px 18px;
  text-align: center; transition: background .15s ease;
}
.ec-teacher-card:hover { background: #F3F7F1; }
.ec-avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; background: #E7F0E8;
  display: flex; align-items: center; justify-content: center;
}
.ec-avatar svg { width: 26px; height: 26px; stroke: #315A49; }
.ec-avatar-text { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 12px; color: #315A49; letter-spacing: -0.02em; }
.ec-teacher-role { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #203D32; }
.ec-teacher-desc { font-size: 13px; color: #68736D; }
.ec-teacher-note { text-align: center; font-size: 13px; color: var(--ec-body-text); margin-top: 22px; }
.ec-teacher-note strong { display: block; color: var(--ec-heading); font-size: 14px; margin-bottom: 4px; font-weight: 700; }

/* --- 왜 배움곳간인가 --- */
.ec-adv-list { display: grid; gap: 16px; }
.ec-adv-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ec-adv-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ec-heading); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: 'Do Hyeon', sans-serif; font-size: 15px;
}
.ec-adv-item h3 { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 3px; color: var(--ec-heading); }
.ec-adv-item p { margin: 0; color: var(--ec-body-text); font-size: 14px; }

/* --- 후기 캐러셀 --- */
.ec-reviews { background: #F7F8F3; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.ec-review-carousel { display: flex; align-items: center; gap: 12px; }
.ec-review-track-wrap { overflow: hidden; flex: 1; }
.ec-review-track { display: flex; gap: 16px; transition: transform .35s ease; }
.ec-review-card {
  flex: 0 0 calc((100% - 32px) / 3); background: #FFFFFF; border: 1px solid #DDE7DF; border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.ec-review-tag {
  align-self: flex-start; background: #E8F1E7; color: #315A49; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.ec-review-text { font-size: 14px; color: #3F4843; margin: 0; }
.ec-review-arrow {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #DDE7DF;
  background: #FFFFFF; color: #315A49; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ec-review-arrow:hover { background: #F3F7F1; }

/* --- 최종 CTA --- */
.ec-final-cta { background: var(--ec-hero-bg); }
.ec-page .ec-final-cta h2 { color: var(--ec-hero-title); font-size: 26px; }
.ec-final-cta p { color: var(--ec-hero-desc); margin: 10px 0 18px; font-family: 'Noto Sans KR', sans-serif; }

/* --- 지역별 맞춤 문구 (english-conversation.php?region=) --- */
.ec-region-note { background: #fff; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.ec-region-note p { font-size: 14px; color: var(--ec-body-text); margin: 0 0 8px; line-height: 1.6; }
.ec-region-landmark { font-weight: 700; color: var(--ec-heading); }

/* --- 지역 선택 페이지 (region-select.php) --- */
.rs-steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ec-body-text); margin-bottom: 22px; flex-wrap: wrap; }
.rs-step { padding: 4px 10px; border-radius: 999px; background: var(--ec-card-bg-1); }
.rs-step.is-active { background: var(--ec-btn-main-bg); color: var(--ec-btn-main-text); font-weight: 700; }
.rs-step-sep { color: var(--ec-line); }
.rs-breadcrumb { font-size: 13px; color: var(--ec-body-text); margin-bottom: 22px; }
.rs-breadcrumb a { color: var(--ec-heading); font-weight: 700; text-decoration: none; }
.rs-breadcrumb a:hover { text-decoration: underline; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rs-grid-cat { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.rs-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 18px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ec-line);
  color: var(--ec-heading); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.rs-card:hover { background: var(--ec-card-bg-1); border-color: var(--ec-btn-main-bg); text-decoration: none; }
.rs-card-cat {
  padding: 34px 20px; font-family: 'Do Hyeon', sans-serif; font-size: 22px;
  background: var(--ec-hero-bg); color: var(--ec-hero-title); border: 0;
}
.rs-card-cat:hover { background: #1b3329; }

@media (max-width: 720px) {
  .ec-review-card { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .ec-hero { padding-top: 36px; padding-bottom: 36px; }
}
