/* ===== 전역 ===== */
:root {
  --accent: #5fcf80;
  --accent-dark: #4ab868;
  --heading: #37423b;
  --text: #444444;
  --text-light: #6e7a73;
  --bg-light: #f5f7f6;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);

  --step-blue: #2563eb;
  --step-teal: #0d9488;
  --step-amber: #d97706;
  --step-purple: #7c3aed;
  --step-coral: #e8590c;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

/* ===== (A) 내비게이션 ===== */
.navbar {
  padding: 15px 0;
  background: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* 메인 페이지: 처음엔 투명, 스크롤 시 흰 배경 */
.home .navbar {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.home .navbar .navbar-brand,
.home .navbar .nav-link,
.home .navbar .btn-lang,
.home .navbar .navbar-toggler {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.home .navbar .navbar-brand i {
  color: #fff;
}

.home .navbar.scrolled {
  background: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.home .navbar.scrolled .navbar-brand,
.home .navbar.scrolled .nav-link {
  color: var(--heading) !important;
}

.home .navbar.scrolled .navbar-brand i {
  color: var(--accent);
}

.home .navbar.scrolled .btn-lang {
  color: var(--heading) !important;
  border-color: #ddd;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--heading) !important;
}

.navbar-brand i {
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading) !important;
  padding: 8px 16px !important;
  transition: color 0.3s, transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active::after {
  transform: scaleX(0.6);
}

/* 다국어(영어·베트남어) 라벨이 길어 가로 메뉴가 2~4줄로 밀리는 문제 방지:
   넓은 화면(≥1200px)에서만 가로 메뉴 표시(폰트·간격 축소·줄바꿈 금지), 그 미만은 햄버거(세로) 메뉴로 전체 라벨 표시. */
@media (min-width: 1200px) {
  .navbar > .container { max-width: 1320px; }
  .navbar-nav .nav-link { padding: 8px 10px !important; font-size: 0.88rem; white-space: nowrap; }
  .navbar-nav .nav-link::after { left: 10px; right: 10px; }
  .navbar-expand-xl .navbar-nav { flex-wrap: nowrap; }
}

/* 홈 화면 헤더 글자는 히어로 위라 흰색인데, 햄버거(오프캔버스) 패널은 흰 배경이라 글자가 안 보임.
   햄버거 모드(≤1199px)에선 패널 안 메뉴·언어버튼 글자를 진하게 해서 보이게 한다. (열기 전엔 닫혀 있어 영향 없음) */
@media (max-width: 1199.98px) {
  .home .navbar .offcanvas .nav-link,
  .home .navbar .offcanvas .btn-lang { color: var(--heading) !important; border-color: #ddd; }
  /* 햄버거 패널 안 언어 드롭다운: 떠다니지 않고 제자리(인라인)에 펼쳐지게 */
  .navbar .offcanvas .dropdown { margin-top: .4rem; }
  .navbar .offcanvas .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin: .35rem 0 0;
    box-shadow: none;
  }
}

.home .navbar:not(.scrolled) .nav-link::after {
  background: #fff;
}

.btn-lang {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading);
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 6px 14px;
}

.btn-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== (B) 히어로 ===== */
.hero-section {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(20, 60, 90, 0.5), rgba(15, 40, 65, 0.45)),
    linear-gradient(135deg, #1a3c5e 0%, #2d6a4f 40%, #1a3c5e 100%);
  background-size: cover;
  background-position: center;
  padding-top: 130px;
}

.hero-headline {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

.search-wrap {
  max-width: 500px;
  margin-bottom: 2rem;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
  z-index: 2;
}

.search-input {
  padding: 14px 20px 14px 48px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(95, 207, 128, 0.3);
}

.hero-audience-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.btn-hero-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-hero-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 공통 섹션 헤더 ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--heading);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== (C) 단계 카드 (Bento Grid) ===== */
.section-steps {
  padding: 5rem 0;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.section-steps .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 160px;
  gap: 6px !important;
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
  margin: 0 !important;
}

.section-steps .row > [class*="col"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-steps .row > [class*="col"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-steps .row > [class*="col"]:nth-child(1).is-visible { transition-delay: 0s; }
.section-steps .row > [class*="col"]:nth-child(2).is-visible { transition-delay: 0.12s; }
.section-steps .row > [class*="col"]:nth-child(3).is-visible { transition-delay: 0.24s; }
.section-steps .row > [class*="col"]:nth-child(4).is-visible { transition-delay: 0.36s; }
.section-steps .row > [class*="col"]:nth-child(5).is-visible { transition-delay: 0.48s; }

/* Bento 배치 */
.section-steps .row > [class*="col"]:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.section-steps .row > [class*="col"]:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.section-steps .row > [class*="col"]:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.section-steps .row > [class*="col"]:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.section-steps .row > [class*="col"]:nth-child(5) { grid-column: span 4; grid-row: span 1; }

/* 이미지·물결 숨김 */
.section-steps .step-thumb,
.section-steps .step-wave { display: none !important; }

/* 카드 구조 재정의 (라이트 통일) */
.section-steps .step-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.2rem 1.4rem;
  text-align: left;
  color: var(--heading);
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background 0.35s, border-color 0.35s;
}

.section-steps .step-card .step-title,
.section-steps .step-card .step-number,
.section-steps .step-card .step-sub,
.section-steps .step-card .step-watermark {
  transition: color 0.35s ease;
}

.section-steps .step-card:hover {
  background: #0f172a;
  border-color: #0f172a;
}

.section-steps .step-card:hover .step-title {
  color: #fff !important;
}

.section-steps .step-card:hover .step-number,
.section-steps .step-card:hover .step-sub {
  color: rgba(255, 255, 255, 0.85) !important;
}

.section-steps .step-card:hover .step-watermark {
  color: #fff;
  opacity: 0.15;
}

.section-steps .step-card > *:not(.step-watermark) {
  position: relative;
  z-index: 2;
}

.step-watermark {
  position: absolute !important;
  right: -8px;
  bottom: -30px;
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #cbd5e1;
  opacity: 0.6;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  margin: 0 !important;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.section-steps .row > [class*="col"]:nth-child(1) .step-watermark {
  font-size: 17rem;
  right: -15px;
  bottom: -50px;
}

.section-steps .step-card .step-icon-wrap {
  margin-bottom: 0.5rem !important;
}

.section-steps .step-card .step-number {
  margin: 0 0 0.2rem !important;
}

.section-steps .step-card .step-title {
  margin: 0 0 0.2rem !important;
}

.section-steps .step-card .step-sub {
  margin: 0 !important;
}

.section-steps .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* 아이콘: 단순 아이콘, 동그라미 배경 제거 */
.section-steps .step-icon-wrap {
  display: none !important;
}

.section-steps .step-number {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-top: 0.4rem;
  color: var(--text-light) !important;
}

.section-steps .step-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--heading) !important;
  font-weight: 800;
}

.section-steps .step-sub {
  font-size: 0.85rem;
  color: var(--text-light) !important;
  margin: 0;
  line-height: 1.4;
}

/* 큰 카드 (한국 알기 2x2): 큰 폰트 */
.section-steps .row > [class*="col"]:nth-child(1) .step-card {
  padding: 2rem 2rem 1.8rem;
}

.section-steps .row > [class*="col"]:nth-child(1) .step-icon-wrap {
  font-size: 1.8rem;
}

.section-steps .row > [class*="col"]:nth-child(1) .step-title {
  font-size: 1.7rem;
}

.section-steps .row > [class*="col"]:nth-child(1) .step-sub {
  font-size: 1rem;
}

/* 와이드 카드 (유학 기본·졸업 후): 좌측 아이콘 + 우측 텍스트 */
.section-steps .row > [class*="col"]:nth-child(2) .step-title,
.section-steps .row > [class*="col"]:nth-child(5) .step-title {
  font-size: 1.3rem;
}

.section-steps .row > [class*="col"]:nth-child(5) .step-card {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.section-steps .row > [class*="col"]:nth-child(5) .step-card > div:not(.step-icon-wrap),
.section-steps .row > [class*="col"]:nth-child(5) .step-card .step-title,
.section-steps .row > [class*="col"]:nth-child(5) .step-card .step-number,
.section-steps .row > [class*="col"]:nth-child(5) .step-card .step-sub {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .section-steps .row {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .section-steps .row > [class*="col"]:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .section-steps .row > [class*="col"]:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .section-steps .row > [class*="col"]:nth-child(5) {
    grid-column: span 2;
  }
  .section-steps .row > [class*="col"]:nth-child(5) .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .section-steps .row > [class*="col"]:nth-child(1) .step-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .section-steps .row {
    grid-template-columns: 1fr;
  }
  .section-steps .row > [class*="col"]:nth-child(n) {
    grid-column: span 1;
  }
}

.step-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 0 1.5rem 1.8rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.step-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.step-card .step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-sub {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* 카드 컬러 */
.step-blue .step-icon-wrap  { background: #dbeafe; color: var(--step-blue); }
.step-blue .step-number     { color: var(--step-blue); }
.step-blue .step-title      { color: #1e3a5f; }
.step-blue .step-sub        { color: var(--text-light); }

.step-teal .step-icon-wrap  { background: #ccfbf1; color: var(--step-teal); }
.step-teal .step-number     { color: var(--step-teal); }
.step-teal .step-title      { color: #134e4a; }
.step-teal .step-sub        { color: var(--text-light); }

.step-amber .step-icon-wrap { background: #fef3c7; color: var(--step-amber); }
.step-amber .step-number    { color: var(--step-amber); }
.step-amber .step-title     { color: #78350f; }
.step-amber .step-sub       { color: var(--text-light); }

.step-purple .step-icon-wrap { background: #ede9fe; color: var(--step-purple); }
.step-purple .step-number    { color: var(--step-purple); }
.step-purple .step-title     { color: #3b0764; }
.step-purple .step-sub       { color: var(--text-light); }

.step-coral .step-icon-wrap  { background: #ffedd5; color: var(--step-coral); }
.step-coral .step-number     { color: var(--step-coral); }
.step-coral .step-title      { color: #7c2d12; }
.step-coral .step-sub        { color: var(--text-light); }

/* ===== (D) 바로가기 ===== */
.section-shortcuts {
  padding: 6rem 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72)),
    url('../assets/img/index/hero-3.jpg') center/cover fixed;
}

.section-shortcuts .section-label {
  color: var(--accent);
}

.section-shortcuts .section-title {
  color: #fff;
}

.section-shortcuts .d-flex.flex-wrap { gap: 0.6rem !important; }
.shortcut-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 15px;
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}
.shortcut-btn i { margin-right: 0.35rem !important; }

.shortcut-btn:hover {
  color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.shortcut-btn i {
  font-size: 1.1rem;
  color: var(--accent);
}

/* ===== 메인 피처 / 인트로 섹션 ===== */
.section-intro {
  padding: 5rem 0;
  background: #fff;
}

.intro-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}

.intro-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

.intro-feature-row {
  margin-top: 2rem;
}

.intro-feature {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.intro-feature i {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 2px;
}

.intro-feature strong {
  display: block;
  color: var(--heading);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.intro-feature span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* 단계 카드 위 이미지 */
.step-card .step-thumb {
  display: block;
  width: calc(100% + 3rem);
  margin: 0 -1.5rem 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  background: #eef2f5;
}

.step-card .step-wave {
  display: block;
  width: calc(100% + 3rem);
  height: 16px;
  margin: -1px -1.5rem 1rem;
  fill: #fff;
}

/* 학과 카드 이미지 */
.major-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  background: #eef2f5;
}

/* 서브페이지 히어로 배경 이미지 */
.subpage-hero {
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.subpage-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

.subpage-hero > .container {
  position: relative;
  z-index: 1;
}

/* 섹션 사이드 이미지 */
.section-side-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 메인 히어로 배경 캐러셀 */
.hero-section {
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section .hero-bg-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-section .hero-bg-main.is-active {
  opacity: 0.7;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
}

.hero-indicator {
  width: 34px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.3s;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-indicator.is-active {
  background: #fff;
  width: 48px;
}

.hero-pause {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
  font-size: 0.85rem;
}

.hero-pause:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* CTA 배너 */
.cta-banner {
  background: linear-gradient(135deg, #2d6a4f 0%, #1a3c5e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner .cta-img {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 240px;
  opacity: 0.25;
}

.cta-banner h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}

/* ===== (D-2) 도움말 섹션 ===== */
.section-help {
  padding: 5rem 0;
  background: #fff;
}

.section-help .help-label {
  color: var(--accent-dark);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 1.5rem 1rem;
  color: var(--heading);
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.help-card i {
  font-size: 1.8rem;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.help-card p {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.help-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ===== 서브페이지 공통 ===== */
.subpage-hero {
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a4f 100%);
  color: #fff;
  padding: 130px 0 60px;
}

.subpage-hero .step-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.subpage-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.subpage-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.subpage-body {
  padding: 4rem 0;
}

.subpage-section {
  margin-bottom: 4rem;
  scroll-margin-top: 110px;
}

.subpage-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 1.2rem;
}

.subpage-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 0.6rem;
}

.subpage-section p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.85;
}

/* 본문 중간 이해를 돕는 이미지 영역 */
.content-figure {
  margin: 1.4rem 0 1.6rem;
}

.content-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #eef2f5;
  box-shadow: none;
}

/* 도입부(아이콘+설명) 옆에 이미지를 나란히 두는 미디어 레이아웃 */
.media-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.6rem;
  align-items: center;
  margin: 0 0 1.6rem;
}

.media-intro .illust-block,
.media-intro .content-figure {
  margin: 0;
}

.media-intro.media-img-right .content-figure {
  order: 2;
}

.media-intro .content-figure.cf-side img {
  aspect-ratio: 4 / 3;
}

/* 도입 블록이 없는 섹션용 밴드형 */
.content-figure.cf-band img {
  aspect-ratio: 16 / 9;
}

/* 이미지+텍스트를 하나의 외부 테두리로 묶고, 안쪽 텍스트 카드 테두리는 제거, 텍스트 위 정렬 (0-korea) */
.media-intro.media-boxed {
  align-items: start;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
}
.media-intro.media-boxed .illust-block {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* 콘텐츠 페이지 본문 문장은 양끝정렬 (제목·표·리스트 라벨 제외) */
.docs-content .docs-lead,
.docs-content .illust-body p,
.docs-content .subpage-section > p,
.docs-content .accordion-body,
.docs-content .callout { text-align: justify; }

/* 행정구역 색지도(이미지 대체) */
.region-map-fig {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: none;
  padding: 0.9rem 0.9rem 0.6rem;
  text-align: center;
}
.region-map-fig #koreaRegionMap {
  height: 380px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.region-map-fig figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .media-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .media-intro.media-img-right .content-figure {
    order: 0;
  }
}

.info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.row > [class*="col"] > .info-card,
.row > [class*="col"] .info-card:only-child {
  height: 100%;
  margin-bottom: 0;
}

.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.info-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.info-card li {
  margin-bottom: 0.3rem;
  color: var(--text);
}

.callout {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  color: #78350f;
  font-size: 0.95rem;
}

.callout-warn {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #991b1b;
}

.source-tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #f0fdf4;
  color: var(--accent-dark);
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 0.4rem;
}

.source-tag a {
  color: inherit;
  text-decoration: none;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
}

.compare-table thead th {
  background: #f9fafb;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
}

.toc-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box li {
  margin-bottom: 0.2rem;
}

.toc-box a {
  color: var(--heading);
  text-decoration: none;
}

.toc-box a:hover {
  color: var(--accent-dark);
}

.calc-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
}

.calc-card label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.calc-card .form-control,
.calc-card .form-select {
  margin-bottom: 1rem;
}

.calc-result {
  background: #f0fdf4;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 1rem;
}

.calc-result .result-figure {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0.3rem 0;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== (E) 푸터 ===== */
.site-footer {
  background: #0f172a;
  padding: 5rem 0 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.site-footer i {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-col-brand {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col-brand {
    grid-column: span 1;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-brand i {
  color: var(--accent);
  font-size: 1.5rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(95, 207, 128, 0.08);
  border: 1px solid rgba(95, 207, 128, 0.2);
  border-radius: 50px;
  padding: 4px 12px;
  margin: 0;
}

.footer-trust i {
  font-size: 0.85rem;
}

.site-footer h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
  display: inline-block;
}

.site-footer ul li a:hover {
  color: var(--accent);
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.8rem;
}

.footer-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
}

.footer-lang-badge i {
  color: var(--accent);
  font-size: 0.7rem;
}

.footer-lang-badge.is-soon {
  opacity: 0.45;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-align: right;
  max-width: 540px;
}

@media (max-width: 767.98px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-disclaimer {
    text-align: left;
  }
}

/* ===== 통계 카운터 ===== */
.section-stats {
  padding: 6rem 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72)),
    url('../assets/img/index/hero-1.jpg') center/cover fixed;
}

.section-stats .section-label {
  color: var(--accent);
}

.section-stats .section-title {
  color: #fff;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: none;
  height: 100%;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.stat-card .stat-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-card .stat-label {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
  margin: 0;
}

.stat-card .stat-source {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  display: block;
}

/* ===== 국가별 지원 (롤링) ===== */
.section-countries {
  padding: 4.5rem 0;
  background: #fff;
  overflow: hidden;
}

.countries-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.countries-marquee::before,
.countries-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.countries-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.countries-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.countries-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: countries-scroll 70s linear infinite;
}

.countries-track:hover {
  animation-play-state: paused;
}

.countries-track .country-card {
  flex: 0 0 200px;
  margin: 0;
}

@keyframes countries-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.country-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.country-card .country-flag {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

.country-card .country-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.2rem;
}

.country-card .country-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.country-card .country-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f0fdf4;
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 50px;
}

/* ===== FAQ 아코디언 ===== */
.section-faq {
  padding: 4.5rem 0;
  background: var(--bg-light);
}

.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
}

.faq-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 !important;
  margin: 0;
  overflow: visible;
}

.faq-accordion .accordion-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-accordion .accordion-button {
  background: transparent;
  padding: 1.5rem 1rem 1.5rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  border: none;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.faq-accordion .accordion-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.3s ease;
  transform: translateY(-50%);
}

.faq-accordion .accordion-button:hover {
  background: #fafbfc;
  color: var(--accent-dark);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed)::before {
  height: 28px;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  background-image: none;
  content: "";
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-accordion .accordion-button::before {
  z-index: 1;
}

.faq-accordion .accordion-button .acc-plus {
  display: none;
}

.faq-accordion .accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-accordion .accordion-button > span {
  flex: 1;
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h8M8 4v8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(135deg);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234ab868' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h8M8 4v8'/%3E%3C/svg%3E");
}

.faq-accordion .accordion-body {
  color: var(--text-light);
  font-size: 0.96rem;
  padding: 0 4rem 1.6rem 1.6rem;
  line-height: 1.8;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== 공지/뉴스 티커 ===== */
.notice-bar {
  background: #1e293b;
  color: #fff;
  padding: 8px 0;
  font-size: 0.88rem;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
}

.home .navbar.fixed-top {
  top: 36px;
}

.notice-bar .notice-label {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-right: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.notice-bar a {
  color: #fff;
  text-decoration: none;
  margin-right: 1.5rem;
}

.notice-bar a:hover {
  color: var(--accent);
}

/* ===== Pull Quote / 강조 인용 ===== */
.pull-quote {
  background: #f0fdf4;
  border-left: 5px solid var(--accent);
  padding: 1.4rem 1.6rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.7;
}

.pull-quote .pq-icon {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ===== Stat Highlight ===== */
.stat-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 50px;
  padding: 6px 16px;
  margin: 0.3rem 0.3rem 0.3rem 0;
  font-size: 0.92rem;
  color: #78350f;
}

.stat-highlight strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
}

/* 값+라벨 카드형은 세로 스택(번역 길어져도 안 밀림) */
.stat-highlight:has(.stat-value) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0.3rem 0;
}
.stat-highlight .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1.25;
}
.stat-highlight .stat-label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #78350f;
}

/* ===== 프로세스 타임라인 ===== */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d1fae5;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 50px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .tl-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px #f0fdf4;
}

.timeline-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

.timeline-item .tl-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ecfeff;
  color: #0e7490;
  padding: 2px 9px;
  border-radius: 50px;
  margin-left: 0.4rem;
}

/* ===== 페이지 내 빠른 액션 ===== */
.quick-action-card {
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a4f 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  height: 100%;
  transition: transform 0.3s;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  color: #fff;
}

.quick-action-card i {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.quick-action-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.quick-action-card p {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Fade-in 비활성 (즉시 표시) ===== */
.fade-in-up {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-in-up.visible {
  opacity: 1;
  transform: none;
}

/* ===== 페이지 헤더 카테고리·칩 ===== */
.section-jumper {
  margin: 0 0 2.5rem;
}

.category-jump-card {
  display: block;
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a4f 100%);
  color: #fff;
  padding: 1.4rem 1.3rem;
  border-radius: 14px;
  text-decoration: none;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-jump-card:hover {
  transform: translateY(-4px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-jump-card .cj-icon {
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.category-jump-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #fff;
}

.category-jump-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.2rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.section-chip:hover {
  background: #f0fdf4;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section-chip .chip-num {
  font-weight: 700;
  color: var(--accent-dark);
  margin-right: 5px;
}

.section-chips-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* ===== Docs 레이아웃 (본문 가운데, TOC 제거) ===== */
.docs-layout {
  position: relative;
  max-width: 1320px;
  padding: 2.5rem 2rem 4rem;
  margin: 0 auto;
}

/* 상단 챕터 탭 (알약형) */
.chapter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 2rem;
  padding: 0;
}

.chapter-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.chapter-tabs a:hover {
  color: var(--heading);
  border-color: var(--accent);
}

.chapter-tabs a.active {
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a4f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
}

.chapter-tabs a.active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #2d6a4f;
}

.chapter-tabs i {
  font-size: 0.95rem;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.92rem;
}

.docs-sidebar .ds-group {
  margin-bottom: 1.4rem;
}

.docs-sidebar .ds-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 0.6rem;
  margin-bottom: 0.4rem;
}

.docs-sidebar .ds-item {
  display: block;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
  margin-bottom: 1px;
  transition: background 0.2s, color 0.2s;
}

.docs-sidebar .ds-item:hover {
  background: #f1f5f9;
  color: var(--heading);
}

.docs-sidebar .ds-item.active {
  background: #f0fdf4;
  color: var(--accent-dark);
  font-weight: 600;
  border-left-color: var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-content [id] {
  scroll-margin-top: 110px;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.docs-content .docs-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.docs-breadcrumb {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.docs-breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  text-decoration: underline;
}

.docs-toc {
  display: none;
}

.docs-toc .dt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  padding-bottom: 0.7rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.docs-toc .dt-label::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: inline-block;
}

.docs-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 2px;
  line-height: 1.4;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.docs-toc a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.docs-toc a:hover {
  background: #f8fafc;
  color: var(--heading);
}

.docs-toc a:hover::before {
  background: var(--accent);
}

.docs-toc a.active {
  background: #f0fdf4;
  color: var(--accent-dark);
  font-weight: 700;
}

.docs-toc a.active::before {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(95, 207, 128, 0.18);
}

/* ===== 좌측 패널 전체 메뉴 트리 (상위분류 > 페이지 > 섹션) ===== */
.toc-accordion {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toc-acc-item {
  border-radius: 8px;
}

.docs-toc .toc-acc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.docs-toc .toc-acc-head:hover {
  background: #f4f7f5;
}

/* 사이드바 단일 링크형(대학 찾기·용어 풀이) */
.docs-toc a.toc-acc-head {
  text-decoration: none;
  color: var(--heading);
}
.docs-toc .toc-leaf.is-current > .toc-acc-head {
  background: #f0fdf4;
  color: var(--accent-dark);
}
.docs-toc a.toc-acc-head::before {
  content: none;
}

.toc-acc-head .toc-acc-chev {
  margin-left: auto;
  font-size: 0.7rem;
  color: #aebcb4;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.toc-acc-item.is-open > .toc-acc-head > .toc-acc-chev {
  transform: rotate(180deg);
}

.toc-acc-item > .toc-acc-body {
  display: none;
}

.toc-acc-item.is-open > .toc-acc-body {
  display: block;
}

/* 1단계: 상위분류 */
.toc-cat > .toc-acc-head {
  padding: 9px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
}

.toc-cat > .toc-acc-head .toc-acc-ico {
  font-size: 0.95rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.toc-cat.is-open > .toc-acc-head {
  color: var(--accent-dark);
}

.toc-cat > .toc-acc-body {
  padding: 2px 0 6px 8px;
}

/* 2단계: 페이지(탭) */
.toc-pg > .toc-acc-head {
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.toc-pg.is-current > .toc-acc-head {
  background: #f0fdf4;
  color: var(--accent-dark);
}

.toc-pg > .toc-acc-body {
  padding: 1px 0 4px 8px;
}

/* 3단계: 섹션 링크 */
.docs-toc .toc-acc-body a {
  display: block;
  position: relative;
  padding: 5px 10px 5px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.docs-toc .toc-acc-body a::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s;
}

.docs-toc .toc-acc-body a:hover {
  background: #f4f7f5;
  color: var(--heading);
}

.docs-toc .toc-acc-body a:hover::before {
  background: var(--accent);
}

.docs-toc .toc-acc-body a.active {
  color: var(--accent-dark);
  font-weight: 700;
}

.docs-toc .toc-acc-body a.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 207, 128, 0.18);
}

.docs-page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  gap: 0.8rem;
}

.docs-page-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.docs-page-nav a:hover {
  border-color: var(--accent);
  background: #f0fdf4;
}

.docs-page-nav .pn-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.docs-page-nav .pn-title {
  font-weight: 700;
  color: var(--heading);
}

.docs-page-nav .pn-next {
  text-align: right;
}

/* 모바일 토글 버튼 */
.docs-mobile-toggle {
  display: none;
  position: sticky;
  top: 70px;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  width: 100%;
  text-align: left;
}

.docs-mobile-toggle i {
  margin-right: 6px;
  color: var(--accent);
}

/* 미니 TOC 기본 숨김 (좁은 화면) */
.docs-toc {
  display: none;
}

/* 1400px 이상 + 목차가 있는 페이지: 좌측 현재위치 목차 + 본문 2단 구성 */
@media (min-width: 1400px) {
  .docs-layout:has(> .docs-toc) {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
  .docs-layout:has(> .docs-toc) .docs-toc {
    grid-column: 1;
    grid-row: 1;
    display: block;
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .docs-layout:has(> .docs-toc) .docs-content {
    grid-column: 2;
    grid-row: 1;
  }
}

/* 991px 이하: 모바일 */
@media (max-width: 991.98px) {
  .docs-layout {
    padding: 1.5rem 1rem 3rem;
  }
  .chapter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .chapter-tabs a {
    flex-shrink: 0;
  }
}

/* ===== 본문 정렬 (한글 가독성: 왼쪽 정렬 + 어절 단위 줄바꿈) ===== */
.docs-content p,
.docs-content li,
.docs-content td,
.subpage-body p,
.subpage-body li,
.subpage-body td,
.info-card p,
.info-card li,
.info-card td,
.callout,
.callout p,
.callout li,
.pull-quote,
.compare-table td {
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== 메인 추가 섹션 ===== */
.section-majors-preview {
  padding: 6rem 0;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.major-preview-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s, border-color 0.3s;
}

.major-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.major-preview-card .major-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f1f5f9;
}

.major-preview-card .major-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.major-preview-card:hover .major-thumb img {
  transform: scale(1.05);
}

.major-preview-card .major-content {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.major-preview-card .major-content i {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
  display: block;
}

.major-preview-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--heading);
}

.major-preview-card p {
  font-size: 0.83rem;
  margin: 0;
  color: var(--text-light);
}

/* 메인 본문 문장(여러 줄 산문)은 양끝정렬. 제목·라벨·가운데 캡션은 제외 */
.home .intro-text p,
.home .tool-preview-card p,
.home .faq-accordion .accordion-body { text-align: justify; }

.section-tools-preview {
  padding: 5rem 0;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.section-tools-preview .row > [class*="col"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-tools-preview .row > [class*="col"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tools-preview .row > [class*="col"]:nth-child(1).is-visible { transition-delay: 0s; }
.section-tools-preview .row > [class*="col"]:nth-child(2).is-visible { transition-delay: 0.15s; }

.tool-preview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 2rem;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.tool-preview-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  background: #f0fdf4;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.tool-preview-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.tool-preview-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-preview-card .tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-dark);
}

.section-cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-inner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-banner-inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cta-banner-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cta-banner-buttons .btn {
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
}

.cta-banner-buttons .btn-primary {
  background: #fff;
  color: var(--accent-dark);
  border: none;
}

.cta-banner-buttons .btn-primary:hover {
  background: #f0fdf4;
  color: var(--accent-dark);
}

.cta-banner-buttons .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== 콘텐츠 가독성 컴포넌트 (시각화) ===== */
.h-timeline {
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), 1fr);
  gap: 0;
  position: relative;
  margin: 2rem 0;
}

.h-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--accent);
}

.h-timeline .htl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.h-timeline .htl-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.7rem;
}

.h-timeline .htl-step h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--heading);
}

.h-timeline .htl-step p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.info-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.info-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.3rem 1.2rem;
  text-align: center;
}

.info-stat-card i {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.info-stat-card .num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.1;
}

.info-stat-card .lbl {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.vs-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 1.5rem 0;
}

.vs-side {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.4rem;
}

.vs-side.vs-left {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.vs-side.vs-right {
  border-color: #fecaca;
  background: #fef2f2;
}

.vs-side h5 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vs-side.vs-left h5 { color: #1e40af; }
.vs-side.vs-right h5 { color: #991b1b; }

.vs-side ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.vs-side li { margin-bottom: 0.3rem; }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-light);
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 1.5px solid #e5e7eb;
  align-self: center;
}

.checklist-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
}

.checklist-box h5 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
}

.checklist-box h5 i { color: var(--accent-dark); }

.checklist-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.93rem;
  color: var(--text);
}

.checklist-box li:last-child { border-bottom: none; }

.checklist-box li::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== 일러스트·아이콘 컴포넌트 ===== */
.illust-block {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin: 1.5rem 0;
}

.illust-block .illust-icon {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.illust-block .illust-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--heading);
}

.illust-block .illust-body p {
  color: var(--text);
  margin: 0;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.icon-list li:last-child { border-bottom: none; }

.icon-list .il-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.icon-list li > div {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.icon-list strong {
  font-weight: 700;
  color: var(--heading);
  flex: 0 0 auto;
  min-width: 92px;
}

.icon-list p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  border-left: 2px solid #e5e7eb;
  padding-left: 14px;
}

@media (max-width: 720px) {
  .h-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .h-timeline::before { display: none; }
  .info-stat-grid { grid-template-columns: 1fr 1fr; }
  .vs-box { grid-template-columns: 1fr; }
  .vs-divider { margin: 0 auto; }
  .illust-block { grid-template-columns: 1fr; }
  .illust-block .illust-icon {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
  }
}

/* ===== 맨 위로 버튼 ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, background 0.2s, transform 0.15s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== 반응형 ===== */
@media (max-width: 991.98px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-section {
    min-height: 100vh;
  }

  .section-steps,
  .section-shortcuts {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 110px;
  }

  .hero-headline {
    font-size: 1.55rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .search-input {
    padding: 12px 16px 12px 44px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }

  .step-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .shortcut-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}
