/* ========================================
   WGU Accelerators — Course Page Styles
   ======================================== */

/* Breadcrumb */
.breadcrumb-bar {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  background: var(--deep);
  border-bottom: 1px solid var(--glass-border);
  margin-top: 60px; /* below fixed nav */
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb .sep { color: var(--subtle); }

.breadcrumb .current {
  color: var(--white);
  font-weight: 500;
}

/* Course Hero */
.course-hero {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--deep), var(--void));
}

.course-code-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--royal);
  color: var(--gold);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.course-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.course-meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--muted);
}

.program-tag { color: var(--pulse); border-color: rgba(59, 130, 246, 0.3); }
.difficulty-easy { color: var(--green); }
.difficulty-medium { color: var(--amber); }
.difficulty-hard { color: #ef4444; }

.course-hero-excerpt {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.course-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Course Body Layout */
.course-body {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  background: var(--void);
}

.course-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
}

/* Main Content */
.course-main {
  min-width: 0;
}

.course-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white);
}

.course-content h1,
.course-content h2,
.course-content h3,
.course-content h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.course-content h1 { font-size: 1.8rem; }
.course-content h2 { font-size: 1.5rem; color: var(--gold-light); }
.course-content h3 { font-size: 1.25rem; }
.course-content h4 { font-size: 1.1rem; color: var(--muted); }

.course-content p {
  margin-bottom: 1rem;
  color: rgba(240, 244, 255, 0.8);
}

.course-content ul,
.course-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.course-content li {
  margin-bottom: 0.4rem;
  color: rgba(240, 244, 255, 0.75);
}

.course-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.course-content a:hover {
  text-decoration-color: var(--gold);
}

.course-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted);
  font-style: italic;
}

.course-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.course-content th,
.course-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.course-content th {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--gold-light);
  background: var(--glass);
}

.course-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.course-content pre,
.course-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.course-content pre {
  background: var(--navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.course-content code {
  background: var(--glass);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.course-content pre code {
  background: none;
  padding: 0;
}

/* Sidebar */
.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}

@media (max-width: 991px) {
  .course-sidebar {
    position: static;
  }
}

.sidebar-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Booking Card */
.booking-card {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(37, 99, 235, 0.05));
  border-color: rgba(212, 160, 23, 0.2);
}

.booking-price {
  text-align: center;
  margin-bottom: 1.25rem;
}

.booking-price .price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.booking-price .price-amount {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.booking-price .price-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}

.booking-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-features li {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sidebar pricing */
.sidebar-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--muted);
}

.sidebar-price-row:last-of-type { border-bottom: none; }
.sidebar-price-row .gold { color: var(--gold); font-weight: 600; }
.sidebar-price-row .green { color: var(--green); font-weight: 600; }

.sidebar-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-link:hover { text-decoration: underline; }

/* Related Courses */
.related-course-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--white);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.related-course-link:last-child { border-bottom: none; }
.related-course-link:hover { color: var(--gold); }

.related-code {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--royal);
  color: var(--gold);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* How It Works Mini */
.course-hiw {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  background: var(--deep);
}

.section-title-sm {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.hiw-steps-mini {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hiw-mini {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}

.hiw-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--void);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hiw-mini div {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.hiw-mini strong {
  color: var(--white);
}

/* FAQ Accordion */
.course-faq {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  background: var(--void);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover { color: var(--gold-light); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Testimonials Row */
.course-testimonials {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  background: var(--deep);
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card-mini {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.testimonial-card-mini .testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.testimonial-card-mini p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author-mini {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author-mini strong {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
}

.testimonial-author-mini span {
  font-size: 0.75rem;
  color: var(--subtle);
}

/* CTA Banner */
.course-cta-banner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  background: var(--void);
}

.cta-banner-content {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: var(--radius-xl);
}

.cta-banner-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-banner-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cta-banner-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   JotForm Popup Overlay
   ======================================== */
.jotform-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.jotform-overlay.active {
  opacity: 1;
  visibility: visible;
}

.jotform-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 85vh;
  max-height: 800px;
  background: var(--navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.jotform-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.jotform-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.jotform-close svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.jotform-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ========================================
   Sidebar Video Proof Widget
   ======================================== */
.video-proof-card {
  padding: 1.25rem !important;
}

.sidebar-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9/14;
  background: var(--navy);
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.sidebar-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.video-click-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s;
  cursor: pointer;
}

.video-click-overlay:hover {
  background: rgba(0,0,0,0.35);
}

.video-click-overlay svg {
  width: 36px;
  height: 36px;
  color: #fff;
  opacity: 0.7;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: opacity 0.3s, transform 0.3s;
}

.video-click-overlay:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.sidebar-video-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sv-nav-btn {
  width: 32px;
  height: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.sv-nav-btn svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.sv-nav-btn:hover {
  background: var(--glass-hover);
  border-color: var(--gold);
}

.sv-counter {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.sidebar-video-caption {
  font-size: 0.7rem;
  color: var(--subtle);
  text-align: center;
  font-style: italic;
}

/* ========================================
   Video Popup Overlay
   ======================================== */
.video-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(2, 8, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-popup-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
}

.video-popup-inner video {
  width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  background: #000;
  display: block;
  -webkit-user-select: none;
  user-select: none;
}

.video-popup-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.video-popup-close svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.video-popup-close:hover {
  background: rgba(255,255,255,0.2);
}

.video-popup-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.vp-btn {
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.vp-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
}

.vp-counter {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* ========================================
   Study Guide Icebreaker CTA
   ======================================== */
.study-guide-cta {
  position: relative;
  z-index: 1;
  padding: 0 0 1rem;
  background: var(--void);
}

.sg-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(212, 160, 23, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  transition: border-color 0.3s;
}

.sg-banner:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.sg-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.sg-text {
  flex: 1;
  min-width: 0;
}

.sg-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.sg-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.sg-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.sg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.45);
  color: #fff;
}

.sg-wa-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .sg-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

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