/*
 * ACXPA — Course Singles CSS
 * Applies to: is_singular('course')
 * Covers: self-paced course headers, microvideo headers,
 *         section dividers, quiz retry boxes, reflection blocks
 * Version: 7
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BREADCRUMB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.spc-breadcrumb {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #666;
}

.spc-breadcrumb a {
  color: #023d1f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.spc-breadcrumb a:hover { color: #44b276; }

.spc-breadcrumb__sep { color: #aaa; font-size: 13px; }

.spc-breadcrumb__current { color: #666; font-weight: 400; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SELF-PACED COURSE HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#self-paced-course-header {
  background-color: #f4fdf7;
  border-left: 6px solid #44b276;
  padding: 28px 32px 24px;
  border-radius: 10px;
  margin-bottom: 30px;
  font-family: 'Open Sans', sans-serif;
  position: relative;
}

.spc-course-badge {
  display: inline-block;
  background: linear-gradient(145deg, #d4af37, #f7e694, #d4af37);
  color: #000000;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  border: 2px solid #fff;
  white-space: nowrap;
  margin-bottom: 14px;
}

.spc-welcome {
  font-size: 14px;
  color: #44b276;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.spc-header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.spc-header-left { flex: 1 1 60%; min-width: 260px; }

.spc-header-left h1 {
  font-size: 26px;
  color: #023d1f;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.2;
}

.spc-subtext {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

.spc-header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-badge-img { max-width: 110px; height: auto; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COURSE STEP PILLS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.spc-course-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #e9f8f0;
  padding: 12px 18px;
  border-radius: 8px;
  justify-content: flex-start;
}

.spc-course-steps a.step-link,
.spc-course-steps .step-static {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #023d1f;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.spc-course-steps a.step-link:hover {
  background-color: #ffd24d;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.step-icon {
  background-color: #258135;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SELF-PACED VIDEO BLOCK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.spc-video-block {
  max-width: 700px;
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  aspect-ratio: 16 / 9;
}

.spc-video-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION DIVIDER — ASSESSMENT CTA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-divider {
  margin: 40px 0 30px;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  background: #f4fdf7;
  border: 1px solid #cde8d6;
  border-left: 5px solid #44b276;
  border-radius: 10px;
  padding: 24px 28px;
}

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.divider-line::before {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #44b276);
}

.divider-line::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to left, transparent, #44b276);
}

.divider-line span {
  font-size: 22px;
  font-weight: 800;
  color: #023d1f;
  white-space: nowrap;
}

.divider-subtext {
  font-size: 16px;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUIZ RETRY RESULT BOXES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.quiz-retry-box {
  padding: 24px 28px;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #333;
  max-width: 700px;
  margin: 30px auto 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quiz-retry-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-retry-20 { border-left: 5px solid #d9534f; background-color: #fdf4f4; }
.quiz-retry-40 { border-left: 5px solid #f0ad4e; background-color: #fff7ec; }
.quiz-retry-60 { border-left: 5px solid #ffc107; background-color: #fffbe6; }
.quiz-retry-80 { border-left: 5px solid #44b276; background-color: #f4fdf7; }

.quiz-retry-button {
  margin-top: 18px;
  background-color: #444;
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.quiz-retry-button:hover { background-color: #222; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MICROVIDEO COURSE HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#microvideo-course-header {
  background-color: #f1f8fd;
  border-left: 6px solid #1e88e5;
  padding: 28px 32px 24px;
  border-radius: 10px;
  margin-bottom: 30px;
  font-family: 'Open Sans', sans-serif;
  position: relative;
}

.spc-microvideo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e88e5, #90caf9);
  color: #fff;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 18px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 2px solid #ffffff;
  white-space: nowrap;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.mv-welcome {
  font-size: 14px;
  color: #1e88e5;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

#microvideo-course-header .spc-header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}

#microvideo-course-header .spc-header-left h1 {
  font-size: 26px;
  color: #0d47a1;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.2;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MICROVIDEO VIDEO BLOCK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mv-video-block {
  max-width: 700px;
  margin: 24px auto 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30,136,229,0.15);
  aspect-ratio: 16 / 9;
}

.mv-video-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REFLECTION BLOCKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.microvideo-reflection-wrapper { margin-top: 40px; }

.microvideo-reflection-box {
  background-color: #f1f8fd;
  border: 1px solid #cbe3f4;
  border-radius: 10px;
  padding: 24px 32px;
}

.reflection-heading {
  text-align: center;
  font-size: 22px;
  color: #0d47a1;
  font-weight: 800;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #cbe3f4;
}

.microvideo-reflection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reflection-box {
  flex: 1 1 280px;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #cbe3f4;
  border-radius: 8px;
  padding: 18px 20px;
}

.reflection-box h3 {
  color: #0d47a1;
  font-size: 17px;
  margin: 0 0 12px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3f0fc;
}

.reflection-box ul { padding-left: 18px; margin: 0; }

.reflection-box li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #222;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MICROVIDEO CTA BOX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.microvideo-cta-box {
  background-color: #f1f8fd;
  border: 1px solid #cbe3f4;
  border-radius: 10px;
  padding: 24px 32px;
  margin-top: 24px;
  text-align: center;
}

.microvideo-cta-text {
  font-size: 16px;
  color: #023d1f;
  margin-bottom: 16px;
  font-weight: 500;
}

.microvideo-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.microvideo-btn {
  background-color: #1e88e5;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.microvideo-btn:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 600px) {
  #self-paced-course-header { padding: 22px 18px; }
  #microvideo-course-header { padding: 22px 18px; }
  .spc-header-top { flex-direction: column; align-items: flex-start; }
  .spc-header-right { display: none; }
  .spc-course-steps { flex-direction: column; align-items: flex-start; padding: 12px; }
  .spc-course-steps a.step-link,
  .spc-course-steps .step-static { width: 100%; justify-content: flex-start; }
  .spc-header-left h1 { font-size: 22px; }
  .mv-video-block { max-width: 100%; }
  .microvideo-reflection-box { padding: 16px; }
  .microvideo-reflection-row { flex-direction: column; }
  .microvideo-cta-box { padding: 20px 16px; }
  .microvideo-cta-buttons { flex-direction: column; align-items: stretch; }
  .microvideo-btn { text-align: center; }
}