/* === Home / Static Pages === */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--tu-navy), #2C4170);
  color: white;
  padding: 5rem 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Break out of .container */
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-top: -1.5rem;
  margin-bottom: 1rem;
  border-radius: 0;
}
.hero-section.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,73,0.88) 0%, rgba(27,42,73,0.6) 50%, rgba(27,42,73,0.3) 100%);
  z-index: 1;
}
.hero-section:not(.has-bg)::before {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-tag {
  display: inline-block;
  background: var(--tu-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--tu-yellow);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  padding: 0.65rem 2rem;
  font-weight: 600;
}
.hero-section .btn-outline-light {
  border-color: rgba(255,255,255,0.35) !important;
  color: #fff !important;
  padding: 0.65rem 2rem;
  font-weight: 600;
}
.hero-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.6) !important;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tu-yellow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .hero-section { padding: 3rem 1.5rem; min-height: 340px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.2rem; }
}
/* === About Section (Home) === */
.about-tag {
  display: inline-flex;
  align-items: center;
  background: var(--tu-red-lighter);
  color: var(--tu-red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.about-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tu-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-check [data-lucide] { width: 14px; height: 14px; }
.about-image-wrapper {
  position: relative;
}
.about-image {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}
.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  background: var(--tu-red-lighter);
  border-radius: var(--radius-xl);
  z-index: 0;
}
@media (max-width: 991px) {
  .about-image-accent { display: none; }
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tu-red-lighter);
  color: var(--tu-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cta-section {
  background: var(--muted);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin-top: 1rem;
}

/* === Course Description + Outline === */
.course-thumb-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--muted);
}
.course-thumb {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.course-meta [data-lucide] {
  width: 18px; height: 18px;
}
.section-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.section-num.completed {
  background: var(--tu-red);
  color: white;
}
.section-num.completed [data-lucide] {
  width: 16px; height: 16px;
}

/* Outline sections */
.outline-section {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  transition: all 0.15s;
}
.outline-section.clickable {
  cursor: pointer;
}
.outline-section.clickable:hover {
  border-color: var(--tu-red);
  box-shadow: var(--shadow-sm);
}
.outline-section.locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.outline-section.completed {
  border-color: var(--success);
  background: rgba(226, 170, 14, 0.04);
}
.outline-section-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.outline-section.available .outline-section-icon {
  background: var(--tu-red-lighter);
  color: var(--tu-red);
}
.outline-section.completed .outline-section-icon {
  background: rgba(226, 170, 14, 0.15);
  color: var(--success);
}
.outline-section.locked .outline-section-icon {
  background: var(--muted);
  color: var(--muted-fg);
}
.outline-section-icon [data-lucide] {
  width: 20px; height: 20px;
}

/* === Course Builder === */
.builder-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
}
.builder-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}
.builder-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0;
}
.builder-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.builder-tab:hover { color: var(--foreground); }
.builder-tab.active {
  color: var(--tu-red);
  border-bottom-color: var(--tu-red);
}
.builder-tab [data-lucide] { width: 16px; height: 16px; }
.builder-content { min-height: 400px; }

/* Section cards */
.builder-section-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card);
}
.builder-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.builder-section-header:hover { background: var(--muted); }
.builder-section-order {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tu-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.builder-section-body {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}
.section-chevron { color: var(--muted-fg); width: 16px; height: 16px; }
.quiz-item { background: var(--card); transition: background 0.1s; }
.quiz-item:hover { background: rgba(0,0,0,0.02); }
.quiz-item .btn-sm { padding: 0.15rem 0.35rem; }
.quiz-item .btn-sm [data-lucide] { width: 14px; height: 14px; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  background: var(--muted);
  min-height: 120px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.upload-area:hover { border-color: var(--tu-red); }
.upload-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
}
.upload-placeholder [data-lucide] { width: 32px; height: 32px; }
.upload-placeholder span { font-size: 0.8125rem; }

/* Instructor avatar */
.instructor-avatar-preview {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted-fg);
  flex-shrink: 0;
}
.instructor-avatar-preview [data-lucide] { width: 24px; height: 24px; }
.instructor-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

