/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* ===== 드롭다운 ===== */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-item > a::after {
  content: '▾';
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 200px;
  /* padding-top으로 hover 브릿지 확보 — 드롭다운 안에서만 작동하므로 페이지 클릭 방해 없음 */
  padding: 10px 0 8px;
  z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text) !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span { color: #93c5fd; }

.hero p {
  font-size: 1.1rem;
  color: #bfdbfe;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
  display: inline-block;
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* ===== SECTIONS ===== */
section { padding: 64px 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
}

.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--accent-light); color: var(--accent); }

/* ===== TOOL SECTION ===== */
.tool-section {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border-radius: 20px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.tool-text { flex: 1; }

.tool-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.tool-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.tool-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.step {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.step-num {
  background: var(--primary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step span { font-size: 0.95rem; font-weight: 500; }

/* ===== YOUTH SECTION ===== */
.youth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.youth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.youth-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.youth-card .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

.youth-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.youth-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 0;
  font-size: 0.88rem;
  text-align: center;
}

footer p { margin-bottom: 6px; }
footer a { color: #94a3b8; }
footer a:hover { color: var(--white); }

/* ===== 햄버거 버튼 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--primary-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 모바일 메뉴 오버레이 ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  overflow-y: auto;
  z-index: 99;
  padding: 12px 0 40px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }

.mobile-nav-section { border-bottom: 1px solid var(--border); }
.mobile-nav-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.mobile-nav-toggle.open::after { transform: rotate(180deg); }

.mobile-nav-links {
  display: none;
  padding: 0 0 8px;
}
.mobile-nav-links.open { display: block; }
.mobile-nav-links a {
  display: block;
  padding: 11px 32px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: none;
}
.mobile-nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 4px 20px; }

.mobile-nav-cta {
  display: block;
  margin: 20px 20px 0;
  background: var(--primary);
  color: var(--white) !important;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .tool-section { flex-direction: column; padding: 36px 24px; gap: 28px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-title { font-size: 1.35rem; }
}
