:root {
  --accent: #0f9d6e;
  --accent-dark: #0b7a55;
  --ink: #2e2e33;
  --bg: #fbfaf7;
  --card-bg: #ffffff;
  --text: #2e2e33;
  --muted: #8a8a90;
  --border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  --usage-online-bg: rgba(43, 108, 176, 0.1);
  --usage-online-text: #2b6cb0;
  --usage-phone-bg: #e7f6ec;
  --usage-phone-text: #2e7d46;
  --usage-onsite-bg: #f1f1ef;
  --usage-onsite-text: #5c5c63;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
}

.brand-icon { font-size: 28px; }

.site-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 40px;
}

/* ── 메인: 지역별 목록 ── */

.page-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.page-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: 28px 28px 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-text { flex: 1; min-width: 0; padding-bottom: 28px; }
.hero-text .page-title { font-size: 28px; }
.hero-text .page-subtitle { margin-bottom: 18px; }

.hero-stats { display: flex; gap: 10px; }

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: #eafaf2;
  border: 1px solid #c9ecda;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent-dark);
}

.stat-chip strong { font-size: 17px; }

.hero-art {
  flex: 0 0 220px;
  align-self: flex-end;
  max-width: 45%;
}

.hero-art svg { display: block; }

@media (max-width: 640px) {
  .hero { flex-direction: column; padding: 20px 20px 0; }
  .hero-art { flex-basis: auto; max-width: 100%; width: 100%; }
}

.search-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 18px;
  margin-bottom: 18px;
}

.search-panel .search-box { margin-bottom: 12px; }

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
}

.filter-row select:disabled { color: var(--muted); background: #faf9f6; }

@media (max-width: 560px) {
  .filter-row { grid-template-columns: 1fr; }
}

.near-btn {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.near-btn:hover { background: #f1f0eb; }

.result-count {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.course-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: 16px 18px;
  transition: box-shadow 0.15s, transform 0.1s;
}

.course-card:hover {
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.1);
  transform: translateY(-1px);
}

.course-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--usage-phone-bg);
  border-radius: 50%;
  font-size: 18px;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.course-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.course-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.usage-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.usage-tag-onsite { background: var(--usage-onsite-bg); color: var(--usage-onsite-text); }
.usage-tag-phone { background: var(--usage-phone-bg); color: var(--usage-phone-text); }
.usage-tag-online { background: var(--usage-online-bg); color: var(--usage-online-text); }

.course-card-hours {
  color: var(--muted);
  font-size: 13px;
}

.course-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
}

/* ── 상세 페이지: 구글 검색 결과 느낌의 정보 카드 ── */

.detail-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.detail-banner svg { display: block; width: 100%; }

.detail-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 22px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.88) 75%, #ffffff 100%);
}

.detail-banner h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a { color: var(--accent-dark); }

.breadcrumb-on-banner {
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(15, 36, 25, 0.35);
}

.breadcrumb-on-banner a { color: #ffffff; text-decoration: underline; }

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ── 이용 방법 배너 (현장접수 / 전화예약 / 온라인예약) ── */

.usage-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

a.usage-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.usage-banner-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.usage-banner-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.usage-banner-title {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

.usage-banner-cta {
  font-size: 22px;
  font-weight: 800;
}

.usage-banner-note {
  font-size: 14px;
  opacity: 0.9;
}

.usage-onsite { background: linear-gradient(135deg, #5c5c63, var(--ink)); }
.usage-phone { background: linear-gradient(135deg, #3f9c63, #2e7d46); }
.usage-online { background: linear-gradient(135deg, #3f85c2, #2b6cb0); }

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.info-card h2 {
  font-size: 16px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}

.info-list li .label {
  font-weight: 700;
  flex-shrink: 0;
  min-width: 110px;
}

.info-list li .value { color: var(--text); }
.info-list li .value a { color: var(--accent-dark); text-decoration: underline; }

.note-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff7e6;
  border: 1px solid #f3dca0;
  border-radius: 8px;
  font-size: 13px;
  color: #6b4e00;
}

.empty-detail {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

/* ── 관리도구 ── */

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table th {
  background: #f0f5f2;
  font-weight: 700;
}

.admin-table tr:last-child td { border-bottom: none; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.btn-link {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form-field textarea { resize: vertical; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  max-width: 520px;
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  font-size: 15px;
}

.error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 12px;
}
