
/* =========================================================
   CYRTIX — COURSE DETAIL PAGE (FINAL)
   Academic · Professional · Print-Ready
========================================================= */

/* =========================================================
   ROOT SAFETY
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cx-surface-900);
  color: var(--cx-slate-200);
}

/* =========================================================
   HERO SECTION
========================================================= */

.course-hero {
  position: relative;
  min-height: 520px;
  padding: 120px 0 96px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.course-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 26, 63, 0.94),
    rgba(10, 26, 63, 0.82)
  );
  z-index: 1;
}

.course-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.course-breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cx-slate-400);
  margin-bottom: 12px;
}

.course-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.course-subtitle {
  font-size: 18px;
  color: var(--cx-cyan-300);
  max-width: 760px;
  margin: 0 auto 28px;
}

.course-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cx-slate-300);
}

/* =========================================================
   SECTION SYSTEM
========================================================= */

.course-section {
  padding: 88px 0;
}

.bg-base {
  background: var(--cx-surface-900);
}

.bg-alt {
  background: var(--cx-surface-800);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 840px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.section-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--cx-slate-400);
  line-height: 1.6;
}

/* =========================================================
   CONTENT CARD
========================================================= */

.content-card {
  background: var(--cx-surface-800);
  border: 1px solid var(--cx-cyan-a20);
  border-radius: 18px;
  padding: 32px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cx-slate-300);
}

/* =========================================================
   EXECUTIVE SUMMARY
========================================================= */

.executive-summary .content-card {
  background: linear-gradient(
    135deg,
    rgba(0, 224, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  border-color: var(--cx-cyan-a30);
}

/* =========================================================
   LEARNING OUTCOMES
========================================================= */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.outcome-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--cx-surface-800);
  border: 1px solid var(--cx-cyan-a20);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   SKILLS
========================================================= */

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skill-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--cx-cyan-a10);
  color: var(--cx-cyan-400);
  border: 1px solid var(--cx-cyan-a30);
}

/* =========================================================
   SYLLABUS
========================================================= */

.syllabus-section {
  padding: 4rem 0;
}

.syllabus-modules {
  display: grid;
  gap: 1.5rem;
}

.syllabus-module {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cx-card-border);
  background: var(--cx-grad-card-glow);
}

.module-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.module-title h3 {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
}

.module-index {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cx-grad-primary);
  text-transform: uppercase;
}

.module-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.syllabus-module.open .module-toggle {
  transform: rotate(45deg);
}

.module-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.syllabus-module.open .module-body {
  display: block;
}

.module-description {
  margin: 0.75rem 0 1rem;
  color: var(--cx-slate-500);
}

.module-weeks {
  display: grid;
  gap: 1rem;
}

.week-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--cx-card-bg);
}

.week-badge {
  min-width: 80px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cx-steel-50);
}

.week-title {
  margin: 0;
  font-size: 0.95rem;
}

.week-description {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--cx-slate-50);
}

/* Base module card */
.syllabus-module {
  background: var(--cx-card-bg);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Alternate modules */
.syllabus-module:nth-child(even) {
  background: linear-gradient(
    135deg,
    rgba(0, 224, 255, 0.06),
    rgba(10, 26, 63, 0.04)
  );
  border-color: rgba(0, 224, 255, 0.25);
}

/* Hover refinement */
.syllabus-module:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Module header refinement */
.module-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Week items stay clean */
.week-item {
  background: var(--cx-steel-900);
  backdrop-filter: blur(4px);
}

/* Improve contrast on alternate modules */
.syllabus-module:nth-child(even) .week-item {
  background: rgba(255, 255, 255, 0.75);
}

/* Module index highlight */
.module-index {
  letter-spacing: 0.08em;
}

/* Accent strip for modules */
.syllabus-module::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cx-crimson-700), transparent);
}

.module-toggle {
  font-size: 1.5rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.module-toggle.open {
  transform: rotate(45deg);
}

/* Alternate module background */
.syllabus-module.alt {
  background: linear-gradient(
    135deg,
    rgba(0, 224, 255, 0.06),
    rgba(10, 26, 63, 0.04)
  );
  border-color: rgba(0, 224, 255, 0.25);
}


/* =========================================================
   CAREER PATHWAYS
========================================================= */

.pathway-chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pathway-chip {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--cx-surface-800);
  border: 1px solid var(--cx-crimson-500);
  color: var(--cx-crimson-400);
  text-decoration: none;
}

.pathway-chip:hover {
  background: var(--cx-crimson-500);
  color: #fff;
}

/* =========================================================
   CERTIFICATIONS
========================================================= */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cert-card {
  padding: 26px;
  background: var(--cx-surface-800);
  border-radius: 18px;
  border: 1px solid var(--cx-cyan-a20);
}

.cert-card h3 {
  margin-bottom: 6px;
  color: #fff;
}

.cert-tagline {
  font-size: 14px;
  color: var(--cx-cyan-300);
  margin-bottom: 10px;
}

/* =========================================================
   FEES & CTA
========================================================= */

.fee-card {
  background: var(--cx-surface-800);
  border-radius: 22px;
  border: 1px solid var(--cx-cyan-a30);
  padding: 36px;
  text-align: center;
}

.fee-line {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--cx-slate-300);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--cx-grad-cyan);
  color: var(--cx-steel-900);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cx-glow-cyan-strong);
}

.btn-ghost {
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--cx-cyan-a30);
  color: var(--cx-cyan-400);
}

.print-hide {
  display: inline-flex;
}

/* =========================================================
   RELATED COURSES
========================================================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.related-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cx-surface-800);
  border: 1px solid var(--cx-cyan-a20);
  text-decoration: none;
}

.related-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.related-thumb.placeholder {
  background: var(--cx-surface-700);
}

.related-body {
  padding: 18px;
}

.related-level {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--cx-cyan-400);
}

.related-title {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0;
  color: #fff;
}

.related-desc {
  font-size: 14px;
  color: var(--cx-slate-300);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .course-meta {
    gap: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .course-section {
    padding: 64px 0;
  }
}

