/* NQXX Course detail page */
.course-hero {
  padding: 110px 5% 70px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,5,7,0.92) 0%, rgba(5,5,7,0.75) 50%, rgba(5,5,7,0.88) 100%);
}

.course-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(108,71,255,0.12);
  border: 1px solid rgba(108,71,255,0.35);
  color: var(--accent2);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.course-tagline { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.25rem; max-width: 540px; line-height: 1.7; }

.course-stats { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.25rem; }
.course-stats span {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.course-price-row { margin-bottom: 1.5rem; }
.course-price-row strong {
  font-family: var(--font-head);
  font-size: 2rem;
  display: block;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.course-price-row span { font-size: 0.82rem; color: var(--text-muted); }
.course-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-primary.full, .btn-secondary.full { width: 100%; text-align: center; margin-top: 0.5rem; }

.course-hero-visual { position: relative; height: 360px; }
.course-hero-img {
  position: absolute;
  right: 0; bottom: 0;
  width: 78%; height: 80%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.course-body-section { padding: 80px 5%; }
.course-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; }

.course-main h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.module-list { list-style: none; margin-top: 1.5rem; }
.module-list li {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.module-list li:hover { border-color: var(--border-glow); }
.module-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

.course-sidebar-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.enquiry-modal .modal-box { max-width: 480px; }

.nav-back { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.nav-back:hover { color: var(--text-primary); }

.artifact-3d { position: absolute; left: 5%; top: 8%; z-index: 2; }
.cube-scene { perspective: 600px; width: 120px; height: 120px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spinCube 12s linear infinite; }
.cube-face { position: absolute; width: 120px; height: 120px; border: 2px solid rgba(159,123,255,0.5); background: rgba(108,71,255,0.15); border-radius: 8px; }
.cube-face.front { transform: translateZ(60px); }
.cube-face.back { transform: rotateY(180deg) translateZ(60px); }
.cube-face.right { transform: rotateY(90deg) translateZ(60px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(60px); }
.cube-face.top { transform: rotateX(90deg) translateZ(60px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); }
@keyframes spinCube { to { transform: rotateX(-20deg) rotateY(360deg); } }

.server-stack { width: 140px; height: 160px; }
.server-layer { height: 36px; margin-bottom: 10px; border-radius: 8px; background: linear-gradient(90deg, rgba(108,71,255,0.3), rgba(0,212,160,0.2)); border: 1px solid var(--border-light); animation: pulseServer 2s ease-in-out infinite; }
.server-layer:nth-child(2) { animation-delay: 0.3s; width: 90%; }
.server-layer:nth-child(3) { animation-delay: 0.6s; width: 80%; }
@keyframes pulseServer { 0%,100%{opacity:0.7} 50%{opacity:1} }

.orbit-scene { width: 140px; height: 140px; position: relative; }
.orbit-ring { position: absolute; inset: 0; border: 1px dashed rgba(0,212,160,0.4); border-radius: 50%; animation: spin 8s linear infinite; }
.orbit-core { position: absolute; inset: 35%; background: var(--bg-glass); border: 1px solid var(--accent2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; backdrop-filter: blur(8px); }
.orbit-dot { position: absolute; width: 12px; height: 12px; background: var(--teal); border-radius: 50%; top: 50%; left: 50%; margin: -6px; box-shadow: 0 0 12px var(--teal-glow); }
.orbit-dot.d1 { animation: orbit1 4s linear infinite; }
.orbit-dot.d2 { animation: orbit2 6s linear infinite reverse; }
@keyframes orbit1 { from{transform:rotate(0) translateX(55px)} to{transform:rotate(360deg) translateX(55px)} }
@keyframes orbit2 { from{transform:rotate(0) translateX(38px)} to{transform:rotate(360deg) translateX(38px)} }
@keyframes spin { to{transform:rotate(360deg)} }

.layers-stack { width: 150px; height: 140px; transform: rotateX(55deg) rotateZ(-25deg); transform-style: preserve-3d; }
.layer { position: absolute; width: 120px; height: 80px; border-radius: 12px; border: 1px solid var(--border-light); left: 15px; }
.layer.l1 { background: rgba(108,71,255,0.25); top: 0; }
.layer.l2 { background: rgba(159,123,255,0.2); top: 22px; left: 25px; }
.layer.l3 { background: rgba(0,212,160,0.15); top: 44px; left: 35px; }

.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bar { width: 22px; background: linear-gradient(to top, var(--accent), var(--teal)); border-radius: 6px 6px 0 0; animation: growBar 2s ease-in-out infinite alternate; }
.bar.b1{height:40%} .bar.b2{height:70%;animation-delay:.2s} .bar.b3{height:55%;animation-delay:.4s} .bar.b4{height:90%;animation-delay:.6s}
@keyframes growBar { from{transform:scaleY(0.85)} to{transform:scaleY(1)} }

.data-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; width: 100px; }
.data-grid span { aspect-ratio: 1; background: rgba(108,71,255,0.2); border: 1px solid rgba(108,71,255,0.35); border-radius: 4px; animation: blink 1.5s ease-in-out infinite; }
.data-grid span:nth-child(odd) { animation-delay: 0.4s; background: rgba(0,212,160,0.15); }
@keyframes blink { 0%,100%{opacity:0.4} 50%{opacity:1} }

.course-body {
  max-width: 1200px; margin: 0 auto; padding: 3rem 5% 5rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start;
}
.course-block {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}
.course-block h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.course-block p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; }
.learn-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.learn-grid li { font-size: 0.88rem; color: var(--text-secondary); }
.syllabus-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.syllabus-item:last-child { border-bottom: none; }
.syllabus-head { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.syllabus-head span { font-size: 0.75rem; color: var(--accent2); font-weight: 700; min-width: 80px; }
.syllabus-item ul { list-style: none; padding-left: 80px; }
.syllabus-item li { font-size: 0.85rem; color: var(--text-muted); padding: 0.15rem 0; }
.tools-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-pill { background: var(--bg3); border: 1px solid var(--border); padding: 0.35rem 0.8rem; border-radius: 100px; font-size: 0.78rem; color: var(--text-secondary); }

.sidebar-card {
  background: var(--bg-glass); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 1.5rem; position: sticky; top: 88px;
  backdrop-filter: blur(16px); box-shadow: var(--shadow-card);
}
.sidebar-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 1rem; }
.sidebar-card ul { list-style: none; margin-bottom: 1.25rem; }
.sidebar-card li { font-size: 0.85rem; color: var(--text-secondary); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.sidebar-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }

.course-rating-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.course-rating-row strong { color: #f5c542; }
.preview-block { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.preview-gif { width: 100%; border-radius: 12px; border: 1px solid var(--border-light); aspect-ratio: 16/10; object-fit: cover; }
.outcomes-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.outcome-pill { background: rgba(0,212,160,0.1); border: 1px solid rgba(0,212,160,0.3); color: var(--teal); padding: 0.35rem 0.8rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.instructor-card { display: flex; gap: 1rem; align-items: center; }
.instructor-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent2); }
.instructor-card h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 0.15rem; }
.instructor-card p { font-size: 0.82rem; color: var(--text-muted); }

.course-page-faq .faq-item { border-bottom: 1px solid var(--border); }
.course-page-faq .faq-q { width: 100%; background: none; border: none; color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; text-align: left; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.course-page-faq .faq-a { display: none; font-size: 0.85rem; color: var(--text-secondary); padding-bottom: 1rem; line-height: 1.7; }
.course-page-faq .faq-item.open .faq-a { display: block; }
.course-page-faq .faq-item.open .faq-q span { transform: rotate(180deg); }

.course-trust-bar { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem 5%; background: rgba(10,10,16,0.6); border-bottom: 1px solid var(--border); justify-content: center; backdrop-filter: blur(8px); }
.course-trust-bar span { font-size: 0.82rem; color: var(--text-secondary); }
.course-trust-bar strong { color: var(--text-primary); }

.course-error { text-align: center; padding: 8rem 5%; }
.course-error a { color: var(--accent2); }

@media (max-width: 900px) {
  .course-hero-inner { grid-template-columns: 1fr; }
  .course-hero-visual { height: 260px; }
  .course-content { grid-template-columns: 1fr; }
  .course-sidebar-card { position: static; }
  .course-body, .preview-block { grid-template-columns: 1fr; }
  .learn-grid, .gallery-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}