/* ==========================================================================
   FREE-COURSES.CSS - selectors used exclusively on this page.
   ========================================================================== */

.fc-hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.fc-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fc-hero-img-wrap {
  position: relative;
  width: 300px;
  height: 360px;
  flex-shrink: 0;
}

.fc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(108, 99, 255, 0.2);
}

.fc-hero-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 30, 0.55) 100%);
}

.fc-yt-icon {
  position: absolute;
  bottom: -18px;
  right: -22px;
  width: 68px;
  height: 68px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.45);
  animation: ytFloatPulse 2.6s ease-in-out infinite;
  z-index: 2;
}

@keyframes ytFloatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.45), 0 0 0 0 rgba(255, 0, 0, 0.35);
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 16px 48px rgba(255, 0, 0, 0.55), 0 0 0 12px rgba(255, 0, 0, 0);
  }
}

.fc-yt-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.3);
  animation: ytRingExpand 2.6s ease-in-out infinite;
}

@keyframes ytRingExpand {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}

.fc-hero-watch-label {
  position: absolute;
  top: 18px;
  left: -30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: fcLabelFloat 3s ease-in-out infinite;
  z-index: 3;
  min-width: 160px;
}

@keyframes fcLabelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fc-hero-watch-label .label-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.fc-hero-watch-label .label-text {
  display: flex;
  flex-direction: column;
}

.fc-hero-watch-label .label-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fc-hero-watch-label .label-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fc-hero-students-label {
  position: absolute;
  bottom: 22px;
  left: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: fcLabelFloat 3.4s ease-in-out infinite 0.5s;
  z-index: 3;
}

.fc-hero-students-label i {
  color: var(--primary);
  font-size: 1.1rem;
}

.fc-hero-students-label .sl-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.fc-hero-students-label .sl-text span {
  font-size: 0.67rem;
  color: var(--text-muted);
}

#free-courses-section {
  padding: 70px 0;
  background: var(--bg-section);
}

#fc-why-learn {
  padding: 70px 0;
  background: var(--bg-main);
}

.fc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

#fc-roadmap {
  padding: 70px 0;
  background: var(--bg-section);
}

.fc-roadmap-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

.fc-roadmap-step {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.fc-roadmap-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 1;
}

.fc-roadmap-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--primary-light);
  z-index: 2;
}

.fc-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.3);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.fc-step-num i {
  font-size: 1.3rem;
}

.fc-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fc-step-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

#fc-benefits {
  padding: 70px 0;
  background: var(--bg-main);
}

.fc-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.fc-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.fc-benefit-item:hover {
  border-color: rgba(86, 171, 47, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.fc-benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(86, 171, 47, 0.12), rgba(168, 224, 99, 0.12));
  color: #3d8b24;
  border: 1px solid rgba(86, 171, 47, 0.2);
}

[data-theme="dark"] .fc-benefit-icon {
  color: #a8e063;
  background: linear-gradient(135deg, rgba(86, 171, 47, 0.15), rgba(168, 224, 99, 0.1));
}

.fc-benefit-text h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fc-benefit-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

#fc-trust-stats {
  padding: 60px 0;
  background: var(--bg-section);
}

.fc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.fc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.fc-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fc-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.25);
}

.fc-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}

.fc-stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

#fc-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0d1b3e 0%, #162f60 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

#fc-cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#fc-cta::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.fc-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.fc-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(86, 171, 47, 0.15);
  border: 1px solid rgba(86, 171, 47, 0.3);
  color: #a8e063;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.fc-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.fc-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.fc-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fc-cta-btn-primary {
  background: #ff0000;
  color: white;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.4);
}

.fc-cta-btn-primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 0, 0, 0.5);
  color: white;
}

.fc-cta-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 11px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.fc-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: white;
}

@media (max-width: 1199px) {
  .fc-why-grid {
      grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 991px) {
  .fc-hero-img-wrap {
      width: 240px;
      height: 290px;
      margin: 0 auto;
    }

  .fc-hero-watch-label {
      left: -10px;
      min-width: 140px;
    }

  .fc-hero-students-label {
      left: -10px;
    }

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

  .fc-benefits-list {
      grid-template-columns: 1fr;
    }

  .fc-roadmap-step:not(:last-child)::after,
    .fc-roadmap-step:not(:last-child)::before {
      display: none;
    }

  .fc-roadmap-steps {
      gap: 20px;
    }
}

@media (max-width: 767px) {
  .fc-why-grid {
      grid-template-columns: 1fr;
    }

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

  .fc-hero-visual {
      margin-top: 36px;
    }

  .fc-hero-img-wrap {
      width: 220px;
      height: 270px;
    }

  .fc-roadmap-step {
      max-width: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .fc-yt-icon,
    .fc-yt-icon::before,
    .fc-hero-watch-label,
    .fc-hero-students-label {
      animation: none;
    }
}
