/* ==============================================
   웹툰콘텐츠지도사 - 공통 스타일
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #F59E0B;
  --accent-light: #FFFBEB;
  --success: #10B981;
  --danger: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #FFFFFF;
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 16px;
}

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 50%, #FFF7ED 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-reg {
  font-size: 13px;
  color: var(--gray-500);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 20px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===================== STATS ===================== */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 24px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--gray-100);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--gray-50);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================== CARDS ===================== */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

/* ===================== FEATURES GRID ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-icon.blue { background: var(--primary-light); }
.feature-icon.amber { background: var(--accent-light); }
.feature-icon.green { background: #ECFDF5; }
.feature-icon.purple { background: #F5F3FF; }
.feature-icon.pink { background: #FDF2F8; }
.feature-icon.teal { background: #F0FDFA; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===================== CURRICULUM ===================== */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.subject-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.subject-card.sub1::before { background: linear-gradient(90deg, #2563EB, #7C3AED); }
.subject-card.sub2::before { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.subject-card.sub3::before { background: linear-gradient(90deg, #10B981, #0EA5E9); }

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

.subject-num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.sub1 .subject-num { color: var(--primary); }
.sub2 .subject-num { color: var(--accent); }
.sub3 .subject-num { color: var(--success); }

.subject-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.subject-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-topics li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 6px 10px;
  background: var(--gray-50);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-topics li::before {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.sub1 .subject-topics li::before { color: var(--primary); }
.sub2 .subject-topics li::before { color: var(--accent); }
.sub3 .subject-topics li::before { color: var(--success); }

/* ===================== EXAM INFO BOX ===================== */
.exam-info-box {
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.exam-info-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.exam-info-item span {
  font-size: 13px;
  color: var(--gray-500);
}

/* ===================== STEPS ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 16px;
}

.step-item.active .step-num {
  background: var(--primary);
  color: white;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===================== NOTICE / PASS BOX ===================== */
.pass-box {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pass-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.pass-box p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pass-score {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question.open {
  color: var(--primary);
  background: var(--primary-light);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 700;
}

.faq-question.open .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.faq-answer.open {
  display: block;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand .logo-main {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-400);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
}

.footer-bizzle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 8px 22px;
  margin-bottom: 14px;
}

.bizzle-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bizzle-name {
  font-size: 14px;
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: 0.3px;
}

.bizzle-divider {
  color: var(--gray-600);
  font-size: 12px;
}

.bizzle-eng {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93C5FD;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-info-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 60px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-bottom: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps::before {
    display: none;
  }

  .exam-info-box {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pass-box {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .exam-info-box {
    grid-template-columns: 1fr 1fr;
  }
}
