/* =====================================================
     Section Styles (Clean Rebuild)
     ===================================================== */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f1f5f9;
  --surface-color: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --warning-color: #d97706;
  --gradient-bg: linear-gradient(135deg, #4f46e5 0%, #2563eb 40%, #4338ca 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #f97316);
  --shadow-soft: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 32px -6px rgba(0, 0, 0, 0.15);
  --transition-base: 0.55s cubic-bezier(0.16, 0.8, 0.24, 1);
  --bg-darker: #0b1220;
}

/* Dark mode overrides */
body.dark {
  --secondary-color: #0f172a;
  --surface-color: #162132;
  --text-dark: #f1f5f9;
  --text-muted: #93a6c2;
  --gradient-bg: linear-gradient(135deg, #1e3a8a, #4338ca 55%, #1e40af);
  background: var(--bg-darker);
  color: var(--text-dark);
}
body.dark .footer {
  background: #020617;
}

/* Hero */
.hero {
  background: var(--gradient-bg);
  color: #fff;
  padding: 160px 0 120px;
  position: relative;
}
.hero .hero-content {
  text-align: left;
}
.hero .gradient-text {
  background: linear-gradient(90deg, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .hero-photo-wrapper {
  position: relative;
  width: 340px;
  max-width: 90%;
  aspect-ratio: 1/1.15;
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.05) 60%
  );
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.hero .floating-badge {
  position: absolute;
  top: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  animation: floatY 6s ease-in-out infinite;
}
.hero .badge-left {
  left: 16px;
}
.hero .badge-right {
  right: 16px;
  animation-delay: 2.5s;
}
.avatar-stack {
  position: relative;
  display: flex;
}
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: block;
}
.avatar-circle:not(:first-child) {
  margin-left: -10px;
}
.hero-bg-shape-1,
.hero-bg-shape-2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-shape-1::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.25),
    transparent 70%
  );
  top: -150px;
  left: -120px;
  filter: blur(2px);
}
.hero-bg-shape-2::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle at 70% 60%,
    rgba(255, 255, 255, 0.18),
    transparent 75%
  );
  bottom: -180px;
  right: -160px;
}
.hero-bullets li {
  margin-bottom: 0.35rem;
}

@media (max-width: 992px) {
  .hero {
    text-align: center;
    padding: 120px 0 80px;
  }
  .hero .hero-content {
    text-align: center;
  }
}

/* method */
.method {
    padding: 5rem 0;
  background: linear-gradient(180deg, var(--secondary-color), #ffffff);
}
.method-card {
  position: relative;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  border-radius: 24px;
  background: var(--surface-color);
  box-shadow: var(--shadow-soft);
  height: 100%;
  overflow: hidden;
  transition: var(--transition-base);
}
.method-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 15%,
    rgba(99, 102, 241, 0.17),
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition-base);
}
.method-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}
.method-card:hover::after {
  opacity: 1;
}
.method-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.1rem;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.5);
}

/* Course */
.course-details {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.course-card {
  background: var(--surface-color);
  padding: 2rem 2.25rem;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e2e8f0;
}
.price-section {
  position: relative;
  background: var(--gradient-bg);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 28px;
  overflow: hidden;
}
.price-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
}
.price-current {
  font-size: 2.25rem;
  font-weight: 700;
}
.price-original {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Instructor */
.instructor {
  background: var(--secondary-color);
}
.instructor-portrait-wrapper {
  position: relative;
  width: 280px;
  max-width: 90%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  padding: 6px;
}
.instructor-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.stat-box {
  width: 100%;
  background: var(--surface-color);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.85rem 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  text-align: center;
}
.stat-box:hover {
  transform: translateY(-4px);
}
body.dark .stat-box {
  background: #1e293b;
  border-color: #334155;
}

/* CTA */
.cta-section {
  background: var(--gradient-bg);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
}
.cta-section .btn-warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1e293b;
  border: none;
  font-weight: 600;
}
.cta-section .btn-warning:hover {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Footer */
.footer {
  background: var(--text-muted);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin: 0.35rem 0;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: #fff;
}

/* Animations */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Utilities */
.shadow-hover {
  transition: box-shadow 0.4s ease;
}
.shadow-hover:hover {
  box-shadow: var(--shadow-hover) !important;
}
