:root {
  --primary: #2f6dff;
  --primary-dark: #1e4fca;
  --secondary: #6bd5ff;
  --text: #172033;
  --muted: #64748b;
  --bg: #f6f9ff;
  --card: #ffffff;
  --border: #e5ecf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #eef6ff 0%, #f9fbff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(47, 109, 255, 0.18);
}

.btn-secondary {
  color: var(--primary);
  background: white;
  border: 1px solid var(--border);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats > div {
  min-width: 120px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #ebf4ff);
  box-shadow: 0 24px 60px rgba(47, 109, 255, 0.12);
}

.visual-card svg {
  width: min(100%, 460px);
  height: auto;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0;
}

.card-grid,
.review-grid,
.steps {
  display: grid;
  gap: 1.2rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.review-card,
.step-card,
.pricing-box,
.cta-box {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.info-card,
.review-card,
.step-card {
  padding: 1.4rem;
}

.info-card h3,
.step-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-card p,
.review-card p,
.step-card p {
  color: var(--muted);
  margin: 0;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(47, 109, 255, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card strong {
  display: inline-block;
  margin-top: 1rem;
}

.pricing-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.pricing-box h3 {
  margin-bottom: 0.4rem;
}

.pricing-note {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip-list span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
}

.cta-section {
  padding-top: 1rem;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f4f9ff, #ffffff);
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .card-grid,
  .steps,
  .review-grid,
  .pricing-box {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-wrap,
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

/* Regions listing styles */
.search-bar {
  display: flex;
  gap: 0.6rem;
  margin: 1.4rem 0 1.8rem;
}
.search-bar input[type="search"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
}
.search-bar select {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.province-header {
  grid-column: 1 / -1;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0.6rem 0 0.4rem;
}
.region-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.region-card h4 {
  margin: 0;
}
.region-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.subject-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(47,109,255,0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}
.region-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
}
.region-actions a {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  background: white;
}

@media (max-width: 860px) {
  .regions-grid {
    grid-template-columns: 1fr;
  }
}

/* Regions page styles */
.hero--compact { padding: 2.2rem 0; }
.region-panel { margin-top: 1.6rem; display: grid; gap: 1rem; }
.region-card-large { padding: 1.2rem; border-radius: 14px; background: white; border: 1px solid var(--border); }
.district-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.district-chip { display:inline-flex; align-items:center; justify-content:center; padding:0.6rem 0.8rem; border-radius:10px; background: linear-gradient(180deg,#7d49ff,#6a33f6); color:white; font-weight:700; text-decoration:none; box-shadow:0 8px 20px rgba(106,51,246,0.12); }
.district-chip:hover { transform:translateY(-2px); }

@media (max-width:860px){
  .district-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Tip cards */
.tip-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.9rem;
  margin-top: 0.6rem;
}
.tip-card {
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg,#ffffff,#fbfbff);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(47,109,255,0.06);
}
.tip-card h4 { margin: 0 0 0.4rem; font-size:1rem; }
.tip-card p { margin: 0; color: var(--muted); font-size:0.95rem; }

/* Schedule table/card */
.schedule-box { margin-top:1rem; }
.schedule-table { width:100%; border-collapse:collapse; background:white; border-radius:10px; overflow:hidden; box-shadow:0 12px 30px rgba(15,23,42,0.04); }
.schedule-table th, .schedule-table td { padding:0.9rem 1rem; border-bottom:1px solid var(--border); text-align:left; }
.schedule-table th { background: linear-gradient(90deg, #f5f8ff, #ffffff); color:var(--primary-dark); font-weight:700; }
.schedule-card { padding:0.9rem; border-radius:10px; background:white; border:1px solid var(--border); box-shadow:0 10px 25px rgba(15,23,42,0.04); }

@media (max-width:960px){
  .tip-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .tip-cards { grid-template-columns: 1fr; }
  .schedule-table th, .schedule-table td { padding:0.7rem; }
}
