.hero-banner.elective-detail-hero {
  background: linear-gradient(135deg, #0f172a 0%, #115e59 48%, #d97706 100%);
}

.hero-banner.deepening-detail-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #ca8a04 100%);
}

.brand,
.hero-banner h1 {
  letter-spacing: 0;
}

.course-info-grid .stat-icon.info-domain {
  background: #fff1f2;
  color: #be123c;
}

.course-info-grid .stat-icon.info-grade {
  background: #fffbeb;
  color: #d97706;
}

.course-info-grid .stat-icon.info-credits {
  background: #eff6ff;
  color: #2563eb;
}

.course-info-grid .stat-icon.info-teacher {
  background: #ecfdf5;
  color: #047857;
}

.course-info-grid .stat-icon {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
}

.course-info-grid .stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.course-info-grid .domain-value {
  font-size: 1.35rem;
  white-space: nowrap;
}

.course-info-grid .credit-unit {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.course-content-panel .panel-header {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.course-content-panel .panel-body {
  display: grid;
  gap: 1.85rem;
}

.course-content-panel .outcome-list li::before,
.course-content-panel .detail-note-list li::before {
  background: #be123c;
}

.intro-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.intro-panel h2 {
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.intro-panel p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.single-course-layout {
  display: grid;
  gap: 1.5rem;
}

.course-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.course-detail-card-header {
  color: #ffffff;
  padding: 1.65rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%);
}

.course-detail-card.natural .course-detail-card-header {
  background: linear-gradient(135deg, #047857 0%, #0369a1 100%);
}

.course-detail-card.technology .course-detail-card-header {
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
}

.course-detail-card.cross .course-detail-card-header {
  background: linear-gradient(135deg, #b45309 0%, #0f766e 100%);
}

.course-detail-card.humanities .course-detail-card-header {
  background: linear-gradient(135deg, #7c3aed 0%, #1d4ed8 100%);
}

.course-detail-card.arts .course-detail-card-header {
  background: linear-gradient(135deg, #7c2d12 0%, #9333ea 100%);
}

.course-detail-card.health .course-detail-card-header {
  background: linear-gradient(135deg, #be123c 0%, #0f766e 100%);
}

.course-label {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.course-detail-card-header h2 {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.course-detail-card-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}

.course-detail-card-body {
  display: grid;
  gap: 1.35rem;
  padding: 1.5rem;
}

.course-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem;
}

.profile-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.profile-item strong {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 800;
}

.summary-block h3 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.summary-block + .summary-block {
  margin-top: 0.75rem;
}

.summary-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.summary-block p + p {
  margin-top: 0.35rem;
}

.summary-subheading {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 1rem 0 0.25rem;
}

.summary-block p + .summary-subheading {
  margin-top: 1.15rem;
}

.outcome-list,
.detail-note-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.outcome-list li,
.detail-note-list li {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  padding-left: 1.2rem;
  position: relative;
}

.outcome-list li::before,
.detail-note-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: #0f766e;
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.course-detail-card.natural .outcome-list li::before {
  background: #047857;
}

.course-detail-card.technology .outcome-list li::before {
  background: #2563eb;
}

.course-detail-card.cross .outcome-list li::before {
  background: #b45309;
}

.course-detail-card.humanities .outcome-list li::before {
  background: #7c3aed;
}

.course-detail-card.arts .outcome-list li::before {
  background: #9333ea;
}

.course-detail-card.health .outcome-list li::before {
  background: #be123c;
}

.course-plan-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 9999px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.course-plan-link:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
}

.course-plan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.course-plan-links + .course-plan-note {
  margin-top: 0.75rem;
}

.course-detail-card.natural .course-plan-link {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.course-detail-card.natural .course-plan-link:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.course-detail-card.technology .course-plan-link {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.course-detail-card.technology .course-plan-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.course-detail-card.cross .course-plan-link {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.course-detail-card.cross .course-plan-link:hover {
  background: #b45309;
  border-color: #b45309;
  color: #ffffff;
}

.course-detail-card.humanities .course-plan-link {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.course-detail-card.humanities .course-plan-link:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.course-detail-card.arts .course-plan-link {
  color: #7e22ce;
  background: #faf5ff;
  border-color: #e9d5ff;
}

.course-detail-card.arts .course-plan-link:hover {
  background: #9333ea;
  border-color: #9333ea;
  color: #ffffff;
}

.course-detail-card.health .course-plan-link {
  color: #be123c;
  background: #fff1f2;
  border-color: #fecdd3;
}

.course-detail-card.health .course-plan-link:hover {
  background: #be123c;
  border-color: #be123c;
  color: #ffffff;
}

.course-plan-note {
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}

.update-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .course-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .dashboard-meta.four-stats.course-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .course-info-grid .meta-stat,
  .course-info-grid .stat-details {
    min-width: 0;
  }

  .course-info-grid .stat-details .value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    flex-direction: column;
  }

  .brand {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-banner {
    padding: 3.5rem 1.25rem 4rem;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .panel-body,
  .intro-panel {
    padding: 1.25rem;
  }

  .course-profile {
    grid-template-columns: 1fr;
  }
}
