/* ==========================================================================
   WOLFY AI INSTITUTE — CINEMATIC FULL-SCREEN COURSE THEATRE (COMPACT & ELEVATED)
   ========================================================================== */

.courses-cinematic-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(24, 32, 52, 0.75) 0%, rgba(6, 8, 14, 0.99) 100%);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height, 70px) + 0.5rem) 0 1rem 0;
  box-sizing: border-box;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.courses-cinematic-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header & Motion Status Bar */
.courses-cinematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.courses-theatre-heading {
  font-family: var(--font-serif, "Cinzel", Georgia, serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.courses-motion-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.course-active-counter {
  font-family: var(--font-mono, monospace);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-warm, #d4af37);
  text-transform: uppercase;
  white-space: nowrap;
}

.course-progress-track {
  width: 180px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.course-progress-fill {
  height: 100%;
  width: 5.55%; /* 1/18 */
  background: linear-gradient(90deg, #d4af37 0%, #f3e8c8 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  transition: width 0.15s ease-out;
}

.cinematic-control-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ctrl-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 26, 40, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-warm, #d4af37);
  font-size: 0.88rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-ctrl-circle:hover {
  background: var(--gold-warm, #d4af37);
  color: #06080e;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Grand Full-Screen / Full-Block Showcase Stage */
.courses-theatre-stage {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
  perspective: 1200px;
}

.course-showcase-panel {
  width: 100%;
  min-height: auto;
  background: rgba(12, 16, 26, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.course-showcase-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #f3e8c8 0%, #d4af37 100%);
  border-radius: 14px 0 0 14px;
}

/* Animated Ambient Glow inside Card */
.course-showcase-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Column */
.showcase-main-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.showcase-meta-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.showcase-number {
  font-family: var(--font-serif, "Cinzel", Georgia, serif);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #f3e8c8 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-duration-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06080e;
  background: linear-gradient(135deg, #f3e8c8 0%, #d4af37 100%);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  white-space: pre-line;
  line-height: 1.25;
}

.showcase-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.showcase-overview {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.showcase-skills-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.showcase-skills-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-warm, #d4af37);
  font-weight: 700;
}

.showcase-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.showcase-skill-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.showcase-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.showcase-actions-row .btn-luxury {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

/* Right Column (Curriculum Focus) */
.showcase-side-col {
  height: 100%;
  display: flex;
}

.showcase-card-inner {
  width: 100%;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.showcase-subheading {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-warm, #d4af37);
  margin-bottom: 0.35rem;
}

.showcase-modules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.showcase-modules-list li {
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.showcase-modules-list li::before {
  content: '✓';
  color: #34d399;
  font-weight: 800;
  font-size: 0.82rem;
}

.showcase-audience-snippet {
  background: rgba(6, 8, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.showcase-audience-snippet strong {
  color: var(--gold-light, #f3e8c8);
  display: block;
  margin-bottom: 0.15rem;
}

.showcase-guarantee-badge {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}

/* 18-Track Numbered Timeline Scrubber Bar */
.courses-timeline-scrubber {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 0 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) rgba(6, 8, 14, 0.8);
}

.courses-timeline-scrubber::-webkit-scrollbar {
  height: 5px;
}

.courses-timeline-scrubber::-webkit-scrollbar-track {
  background: rgba(6, 8, 14, 0.8);
  border-radius: 4px;
}

.courses-timeline-scrubber::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.scrubber-chip {
  flex: 1;
  min-width: 52px;
  padding: 0.45rem 0.35rem;
  background: rgba(14, 18, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.scrubber-chip:hover {
  background: rgba(28, 36, 56, 0.9);
  border-color: rgba(212, 175, 55, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

.scrubber-chip.is-active {
  background: linear-gradient(135deg, #e5c583 0%, #d4af37 100%);
  color: #06070a;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  font-weight: 800;
  transform: translateY(-2px);
}

/* Dynamic Cinematic Slide Transitions */
.course-showcase-panel.anim-fade-out {
  opacity: 0;
  transform: scale(0.97) translateY(10px);
}

.course-showcase-panel.anim-fade-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --------------------------------------------------------------------------
   COURSE DETAIL MODAL SYSTEM
   -------------------------------------------------------------------------- */
.course-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.course-modal-overlay.is-open,
.course-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.course-modal-dialog {
  background: rgba(12, 16, 26, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 175, 55, 0.15);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.course-modal-overlay.is-open .course-modal-dialog,
.course-modal-overlay.active .course-modal-dialog {
  transform: translateY(0) scale(1);
}

.course-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(6, 8, 14, 0.98);
}

.course-modal-badge-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-modal-num {
  font-family: var(--font-serif, "Cinzel", Georgia, serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-warm, #d4af37);
}

.course-modal-duration {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-modal-close-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.course-modal-close-btn:hover {
  color: #ffffff;
  border-color: var(--gold-warm, #d4af37);
  background: rgba(212, 175, 55, 0.1);
}

.course-modal-body {
  padding: 2.25rem;
  overflow-y: auto;
  color: #e2e8f0;
}

.course-modal-body::-webkit-scrollbar {
  width: 6px;
}

.course-modal-body::-webkit-scrollbar-track {
  background: rgba(6, 8, 14, 0.9);
}

.course-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 3px;
}

.course-modal-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.course-modal-overview {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.course-detail-section {
  margin-bottom: 2rem;
}

.course-detail-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-warm, #d4af37);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-detail-label::before {
  content: '◆';
  font-size: 0.65rem;
}

.course-audience-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modules Grid */
.course-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.course-module-item {
  background: rgba(20, 26, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.module-check-icon {
  color: var(--gold-warm, #d4af37);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Projects List */
.course-projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course-project-item {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon {
  color: #34d399;
}

/* Skills Tags */
.course-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-skill-chip {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f3e8c8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

/* Outcomes */
.course-outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.course-outcome-item {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
  font-size: 0.92rem;
  color: #e0f2fe;
  line-height: 1.5;
}

/* Modal Footer Actions */
.course-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 14, 0.98);
}

.course-modal-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1120px) {
  .showcase-content-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .course-showcase-panel {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .courses-cinematic-section {
    padding: calc(var(--nav-height, 70px) + 0.5rem) 0 1rem 0;
  }
  .courses-cinematic-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .courses-motion-status {
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }
  .course-progress-track {
    width: 100%;
  }
  .showcase-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-actions-row .btn-luxury {
    width: 100%;
  }
  .course-modal-dialog {
    max-height: 92vh;
  }
  .course-modal-header,
  .course-modal-body,
  .course-modal-footer {
    padding: 1.25rem;
  }
}
