/* Direct hamburger menu styles to ensure functionality */
@media (max-width: 768px) {
  #nav-list {
    display: none;
  }
  
  #nav-list.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    padding: 1.5rem;
    z-index: 999;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* Course-specific styles */
.course-hero {
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-color);
}

.course-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="20" cy="30" r="20" fill="%236F42C1" opacity="0.05"/><circle cx="70" cy="70" r="30" fill="%230DCAF0" opacity="0.05"/></svg>'),
    radial-gradient(circle at 30% 50%, rgba(111, 66, 193, 0.1), transparent 50%);
  background-size: 100% 100%, 100% 100%;
  animation: pulse 12s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.course-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.course-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-badge {
  display: inline-block;
  background: linear-gradient(90deg, #e31837, var(--primary-color));
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.course-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.course-header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #e31837, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.course-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.6;
}

.certification-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.cert-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  transform: translateY(-5px) scale(1.05);
}

.cert-badge:first-child {
  background: var(--accent-color-orange);
  color: white;
}

.cert-badge:last-child {
  background: #e31837;
  color: white;
}

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

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background: var(--primary-color);
}

.hero-buttons .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color-heading);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-heading p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color-muted);
}

.course-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .course-details {
    grid-template-columns: 1fr;
  }
}

.course-detail-card {
  background-color: var(--secondary-bg);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
  background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg));
  border: 1px solid var(--border-color);
  padding: 30px;
}

.course-detail-card:nth-child(1) { animation-delay: 0.1s; }
.course-detail-card:nth-child(2) { animation-delay: 0.2s; }
.course-detail-card:nth-child(3) { animation-delay: 0.3s; }
.course-detail-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.course-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.course-detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.course-detail-card:hover::before {
  transform: scaleX(1);
}

.course-detail-icon {
  font-size: 24px;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  background-color: rgba(13, 202, 240, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.course-detail-card:hover .course-detail-icon {
  transform: scale(1.2);
  color: var(--primary-color);
  background-color: rgba(111, 66, 193, 0.15);
}

.course-detail-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.course-detail-card:hover .course-detail-title {
  color: var(--secondary-color);
}

.course-detail-card p {
  color: var(--text-color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.course-detail-card:hover p {
  color: var(--text-color);
}

.course-details-section, .features-section {
  padding: 80px 0;
  background-color: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.course-details-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(111, 66, 193, 0.05), transparent 40%);
  z-index: 0;
}

.course-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  background-color: var(--secondary-bg);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
  background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg));
  border: 1px solid var(--border-color);
  padding: 35px;
  height: 100%;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  font-size: var(--font-size-xl);
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s ease, color 0.3s ease;
  background-color: rgba(13, 202, 240, 0.15);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
  color: var(--primary-color);
  background-color: rgba(111, 66, 193, 0.15);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color-heading);
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--secondary-color);
}

.feature-card p {
  color: var(--text-color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.feature-card:hover p {
  color: var(--text-color);
}

/* Animation for scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.syllabus-section, .faq-section {
  background-color: var(--primary-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.syllabus-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(13, 202, 240, 0.05), transparent 40%);
  z-index: 0;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(111, 66, 193, 0.05), transparent 40%);
  z-index: 0;
}

.course-syllabus {
  background-color: var(--secondary-bg);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg));
  border: 1px solid var(--border-color);
}

.course-syllabus:hover {
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.syllabus-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 5px;
}

.syllabus-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.syllabus-item:last-child {
  border-bottom: none;
}

.syllabus-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color-heading);
}

.syllabus-title span {
  flex: 1;
}

.syllabus-title:hover {
  color: var(--secondary-color);
}

.syllabus-title i {
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  background: rgba(0, 206, 209, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.syllabus-title:hover i {
  transform: rotate(90deg);
  color: var(--primary-color);
  background: rgba(138, 43, 226, 0.1);
}

.syllabus-content {
  padding: 15px 5px 5px;
  color: var(--text-color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.3s ease;
  border-left: 2px solid rgba(0, 206, 209, 0.2);
  margin-left: 5px;
  padding-left: 15px;
}

.syllabus-item:hover .syllabus-content {
  color: var(--text-color);
  border-left: 2px solid var(--secondary-color);
}

/* Contact section styling */
.contact-section {
  background-color: var(--primary-bg);
  padding: 60px 0;
  position: relative;
}

.contact-info {
  background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-info i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Section background colors and styling */
.course-hero {
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-color);
}

.course-details-section {
  background-color: var(--primary-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.features-section {
  background-color: var(--secondary-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.syllabus-section {
  background-color: var(--primary-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.faq-section {
  background-color: var(--secondary-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-section {
  background-color: var(--primary-bg);
  padding: 60px 0;
  position: relative;
}

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color-pink));
  margin: 0;
  padding: 0;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .course-header h1 {
    font-size: 2rem;
  }
  
  .certification-badges {
    gap: 10px;
  }
  
  .cert-badge {
    width: 60px;
    height: 60px;
    font-size: 0.9rem;
  }
  
  .course-detail-card, .feature-card {
    padding: 20px;
  }
  
  .syllabus-title {
    font-size: 1rem;
  }
}
