/* ── Hero ─────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5vh;
  margin-bottom: 10vh;
  height: 80vh;
}

.hero-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-stats { display: flex; gap: 50px; }

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero illustration */
.hero-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}

.main-illustration {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-circle {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  opacity: 0.2;
}

.illustration-person {
  position: absolute;
  font-size: 8rem;
}

/* Floating decorative cards */
.floating-card {
  position: absolute;
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.card-1 { top: 20px;   left: 20px;  animation-delay: 0s; }
.card-2 { top: 50px;   right: 30px; animation-delay: 0.5s; }
.card-3 { bottom: 60px; left: 40px; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

/* ── Features section ─────────────────────────────── */
.features {
  background: var(--white);
  padding: 0;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  background: var(--white);
}

.feature-card {
  background: var(--white);
  padding: 50px 70px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon      { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3   { font-size: 1.3rem; margin-bottom: 12px; color: var(--text); }
.feature-card p    { color: var(--text-light); font-size: 0.95rem; }

body.dark-mode .feature-card            { background: var(--off-white); }
body.dark-mode .feature-card:hover      { box-shadow: var(--shadow-lg); }
body.dark-mode .features-grid           { background: var(--white); }

/* ── Courses section ──────────────────────────────── */
.courses-section {
  padding: 100px 20px;
}

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
}

.courses-page-grid { padding: 60px 20px; }

/* Course card */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Thumbnail */
.course-image {
  position: relative;
  overflow: hidden;
  height: 170px;
  background: var(--light-gray);
  flex-shrink: 0;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.course-card:hover .course-image img { transform: scale(1.05); }

/* State badge */
.course-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: var(--transition);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* not-enrolled */
.course-card[data-state="not-enrolled"] .course-status-badge {
  background: hsla(0, 0%, 0%, 0.42);
  color: #fff;
}
.course-card[data-state="not-enrolled"] .badge-dot {
  background: var(--primary-glow);
  box-shadow: 0 0 6px var(--primary-glow);
}

/* in-progress */
.course-card[data-state="in-progress"] .course-status-badge {
  background: hsla(24, 100%, 50%, 0.145);
  color: #fff;
}
.course-card[data-state="in-progress"] .badge-dot {
  background: var(--primary);
  animation: cc-pulse 1.6s ease-in-out infinite;
}

/* completed */
.course-card[data-state="completed"] .course-status-badge {
  background: hsla(142, 60%, 40%, 0.90);
  color: #fff;
}
.course-card[data-state="completed"] .badge-dot { background: #fff; }

@keyframes cc-pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .5; transform: scale(0.7); }
}

/* Completion ribbon */
.completion-ribbon {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 52px 52px 0 0;
  border-color: hsl(142, 60%, 40%) transparent transparent transparent;
  z-index: 5;
  filter: drop-shadow(2px 2px 4px hsla(0, 0%, 0%, 0.20));
}

.completion-ribbon::after {
  content: '✓';
  position: absolute;
  top: -48px; left: 4px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.course-card[data-state="completed"] .completion-ribbon { display: block; }

/* Course badge (category label) */
.course-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.course-placeholder { font-size: 3rem; }

/* Card content area */
.course-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.course-instructor  { font-size: 0.78rem; color: var(--text-light); margin-bottom: 14px; }

.course-topics      { list-style: none; margin-bottom: 14px; }
.course-topics li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.course-topics li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.course-description {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

/* Progress block (shown only for enrolled cards) */
.course-progress-block { display: none; margin-bottom: 16px; }

.course-card[data-state="in-progress"] .course-progress-block,
.course-card[data-state="completed"]   .course-progress-block { display: block; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-pct { font-size: 0.82rem; font-weight: 800; color: var(--primary); }
.course-card[data-state="completed"] .progress-pct { color: hsl(142, 60%, 38%); }

.progress-track {
  width: 100%;
  height: 7px;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

.course-card[data-state="completed"] .progress-fill {
  background: linear-gradient(90deg, hsl(142, 60%, 35%), hsl(142, 60%, 52%));
}

.progress-lessons-done { font-size: 0.72rem; color: var(--text-light); margin-top: 5px; }

/* Card footer */
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--light-gray);
  padding-top: 16px;
  margin-top: auto;
}

.course-price       { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.course-price.free  { color: hsl(142, 60%, 38%); }

body.dark-mode .course-card  { background: var(--white); }
body.dark-mode .course-card:hover { box-shadow: var(--shadow-lg); }

/* ── Testimonials ─────────────────────────────────── */
.testimonials {
  border: 1px solid var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-content {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author { display: flex; align-items: center; gap: 15px; }

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.author-info h4 { font-size: 1rem; color: var(--text); }
.author-info p  { font-size: 0.85rem; color: var(--text-light); }

body.dark-mode .testimonial-card { background: var(--white); }

/* ── CTA section ──────────────────────────────────── */
.cta-section {
  padding: 100px 20px;
  text-align: center;
}

.cta-section h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-section p  { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* ── Footer ───────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .logo   { margin-bottom: 15px; }
.footer-brand p       { color: var(--gray); font-size: 0.95rem; }

.footer-links h4      { font-size: 1.1rem; margin-bottom: 20px; color: var(--white); }

.footer-links ul      { display: flex; flex-direction: column; gap: 12px; }

.footer-links a       { color: var(--gray); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 50px;
  border-top: 1px solid hsla(0, 0%, 100%, 0.10);
  color: var(--gray);
  font-size: 0.9rem;
}

body.dark-mode .footer         { background: var(--white); }
body.dark-mode .footer-links a { color: var(--gray); }