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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 8px;
  color: #e0e0e0;
}

.hero .description {
  font-size: 1rem;
  color: #a0a0a0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Intro Section */
.intro-section {
  margin-bottom: 48px;
  text-align: center;
}

.intro-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.intro-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
}

.intro-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.intro-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Courses Section */
.courses-section {
  text-align: center;
  margin-bottom: 32px;
}

.courses-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Target Cards */
.target-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

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

.card:hover .arrow {
  transform: translateX(5px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rank {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
}

.badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.secondary {
  background: linear-gradient(135deg, #10b981, #059669);
}

.badge.tertiary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge.quaternary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge.quinary {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.card-desc {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.card-meta span:first-child {
  color: #9ca3af;
  font-size: 0.85rem;
}

.arrow {
  color: #667eea;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.modal-content {
  padding: 40px;
}

.modal-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.modal-header p {
  color: #6b7280;
  font-size: 1rem;
}

.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curriculum-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #667eea;
  transition: all 0.2s ease;
}

.curriculum-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.curriculum-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.curriculum-item h3 .session {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.curriculum-item ul {
  list-style: none;
  padding-left: 0;
}

.curriculum-item li {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.curriculum-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
}

.curriculum-item .link-placeholder {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

.curriculum-item .link-placeholder a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.curriculum-item .link-placeholder a:hover {
  text-decoration: underline;
}

/* Card as link */
a.card {
  text-decoration: none;
  display: block;
}

/* Hero Small */
.hero-small {
  padding: 40px 20px;
}

.hero-small h1 {
  font-size: 2rem;
}

.back-link {
  display: inline-block;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

/* Curriculum Page */
.curriculum-page {
  max-width: 800px;
  margin: 0 auto;
}

/* Coming Soon Page */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.coming-soon-icon {
  color: #667eea;
  margin-bottom: 24px;
}

.coming-soon h2 {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.coming-soon p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.coming-soon .sub {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 32px;
}

.btn-home {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
  background: #1a1a2e;
  color: #a0a0a0;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #667eea;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Policy & About Pages */
.policy-content,
.about-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.policy-section,
.about-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
}

.policy-section:last-child,
.about-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section h2,
.about-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.policy-section p,
.about-section p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section ul,
.about-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.policy-section li,
.about-section li {
  color: #4b5563;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.policy-section li::before,
.about-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
}

.policy-section a,
.about-section a {
  color: #667eea;
  text-decoration: none;
}

.policy-section a:hover,
.about-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .target-cards {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 24px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }
}

/* Scrollbar */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
