/* ==========================================================================
   COURSE SUB-PAGES DESIGN STYLES — NEXT-GEN TECH AESTHETIC
   ========================================================================== */

.course-page-header {
  background-color: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.course-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #FFFFFF;
}

.course-brand strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.course-brand span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-hero {
  background: radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
              linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.course-hero-content {
  max-width: 820px;
}

.course-hero-content h1 {
  margin: 0.85rem 0 1.35rem;
  color: #FFFFFF;
}

.course-hero-content .text-lead {
  margin-bottom: 2.25rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .course-page-header .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .course-page-header .flex.gap-3 {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .course-page-header .flex.gap-3 {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .course-page-header .flex.gap-3 .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   RESPONSIVE: SMALL & ULTRA-NARROW PHONES (<= 380px & 320px)
   ========================================================================== */
@media (max-width: 380px) {
  .course-brand strong {
    font-size: 1rem;
  }
  .course-hero {
    padding: 2.75rem 0;
  }
  .course-hero-content h1 {
    font-size: 1.55rem;
  }
  .course-hero-content .text-lead {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }
}
