/* ================================================================
   FILE: 05-course-pages.css
   NAMA: Course Pages (TPS & DPS) - pentradr.com
   FUNGSI: CSS untuk halaman kursus/pembelajaran:
           - TPS: Trading Pasar Saham (accordion modul, video, progress)
           - DPS: Dasar Pasar Saham (roadmap accordion, tip block)
   DIGUNAKAN DI: Static pages kursus trading
   CDN: https://cdn.jsdelivr.net/gh/USERNAME/pentradr-css@latest/css/05-course-pages.css
   ================================================================ */

/* ================================================================
   TPS: Trading Pasar Saham
   ================================================================ */
.tps-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #0d1b2a 100%);
  border-radius: 20px;
  padding: 48px 28px 38px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.tps-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,165,0,0.1), transparent 70%);
  top: -150px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

.tps-hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.15); color: #f0a500;
  border: 1px solid rgba(240,165,0,0.4);
  padding: 5px 16px; border-radius: 20px;
  font-size: 12px; margin-bottom: 18px; letter-spacing: .5px;
  position: relative;
}

.tps-hero-title {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin: 0 0 14px !important;
  position: relative;
}

.tps-hero-title span { color: #f0a500; }
.tps-hero-desc { font-size: 15px; color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto 24px; line-height: 1.75; position: relative; }

.tps-hero-stats {
  display: flex; justify-content: center;
  gap: 36px; flex-wrap: wrap; position: relative;
}

.tps-stat-num { display: block; font-size: 28px; font-weight: 800; color: #f0a500; }
.tps-stat-lbl { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.tps-section-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0d1b2a !important;
  margin: 0 0 18px !important;
}

.tps-intro-block {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* Video responsive */
.tps-video-section { margin-bottom: 20px; }
.tps-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; background: #000; }
.tps-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* Progress bar */
.tps-progress-bar-wrap {
  background: #f0f4fa; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.tps-progress-label { font-size: 13px; font-weight: 600; color: #555; white-space: nowrap; }
.tps-progress-track { flex: 1; min-width: 120px; height: 8px; background: #dde4f0; border-radius: 4px; overflow: hidden; }
.tps-progress-fill { height: 100%; background: linear-gradient(90deg, #f0a500, #f7c948); border-radius: 4px; transition: width .5s ease; }
.tps-progress-text { font-size: 13px; color: #888; white-space: nowrap; }

/* Curriculum */
.tps-curriculum {
  background: #fff; border: 1px solid #e8edf3;
  border-radius: 14px; padding: 28px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.tps-module { border: 1px solid #e4eaf2; border-radius: 10px; margin-bottom: 8px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.tps-module:last-child { margin-bottom: 0; }
.tps-module.tps-active { border-color: #f0a500; box-shadow: 0 4px 18px rgba(240,165,0,.12); }

.tps-module-header {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 15px 18px;
  background: #f8fafc; border: none; cursor: pointer;
  text-align: left; gap: 12px; transition: background .2s;
}

.tps-module-header:hover { background: #f0f4fa; }
.tps-module.tps-active .tps-module-header { background: #fffbf0; }
.tps-module-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.tps-module-icon { font-size: 20px; flex-shrink: 0; }
.tps-module-info { display: flex; flex-direction: column; }
.tps-module-num { font-size: 11px; font-weight: 700; color: #f0a500; text-transform: uppercase; letter-spacing: 1px; }
.tps-module-name { font-size: 14px; font-weight: 700; color: #0d1b2a; margin-top: 2px; }
.tps-module-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tps-module-meta { font-size: 12px; color: #aaa; }
.tps-chevron { font-size: 11px; color: #bbb; transition: transform .3s; display: block; line-height: 1; }
.tps-module.tps-active .tps-chevron { transform: rotate(180deg); color: #f0a500; }
.tps-module-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.tps-module-content { padding: 18px 20px 20px; border-top: 1px solid #f0f2f7; }

.tps-lesson-intro { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 14px; }
.tps-lesson-intro p { margin: 0; }

.tps-objectives { background: #f5f8ff; border-left: 4px solid #f0a500; border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 14px; }
.tps-objectives-title { font-size: 13px; font-weight: 700; color: #0d1b2a; margin-bottom: 7px; }
.tps-objectives ul { margin: 0; padding-left: 16px; }
.tps-objectives ul li { font-size: 13px; color: #555; margin-bottom: 4px; line-height: 1.6; }

.tps-lessons-list { margin-bottom: 14px; }

.tps-lesson-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; background: #fff;
  border: 1px solid #e8edf3; border-radius: 8px;
  text-decoration: none !important; margin-bottom: 7px;
  transition: all .2s; color: inherit;
}

.tps-lesson-item:hover { background: #fffbf0; border-color: #f0a500; transform: translateX(3px); text-decoration: none !important; }
.tps-lesson-icon { font-size: 17px; flex-shrink: 0; }
.tps-lesson-detail { display: flex; flex-direction: column; flex: 1; }
.tps-lesson-title { font-size: 14px; font-weight: 600; color: #0d1b2a; }
.tps-lesson-type { font-size: 12px; color: #999; margin-top: 2px; }
.tps-lesson-arrow { color: #f0a500; font-size: 15px; flex-shrink: 0; }

.tps-module-cta { text-align: center; }
.tps-btn-start {
  display: inline-block; background: #f0a500; color: #0d1b2a !important;
  font-weight: 700; font-size: 14px; padding: 9px 26px;
  border-radius: 50px; text-decoration: none !important; transition: all .25s;
}
.tps-btn-start:hover { background: #ffb830; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(240,165,0,.35); }

/* CTA Block */
.tps-cta-block { background: linear-gradient(135deg,#0d1b2a,#1a3a5c); border-radius: 16px; padding: 44px 28px; text-align: center; color: #fff; }
.tps-cta-icon { font-size: 38px; margin-bottom: 12px; }
.tps-cta-block h2 { font-size: 24px !important; font-weight: 800 !important; color: #fff !important; margin: 0 0 10px !important; }
.tps-cta-block p { color: rgba(255,255,255,.65); font-size: 15px; max-width: 460px; margin: 0 auto 24px; line-height: 1.7; }
.tps-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tps-cta-btn-primary { background: #f0a500; color: #0d1b2a !important; font-weight: 700; padding: 12px 26px; border-radius: 50px; text-decoration: none !important; font-size: 14px; transition: all .25s; display: inline-block; }
.tps-cta-btn-primary:hover { background: #ffb830; transform: translateY(-2px); }
.tps-cta-btn-secondary { background: transparent; color: rgba(255,255,255,.8) !important; border: 2px solid rgba(255,255,255,.3); font-weight: 600; padding: 10px 24px; border-radius: 50px; text-decoration: none !important; font-size: 14px; transition: all .25s; display: inline-block; }
.tps-cta-btn-secondary:hover { border-color: #fff; color: #fff !important; }

/* TPS Mobile */
@media (max-width: 640px) {
  .tps-hero { padding: 34px 18px 28px; border-radius: 12px; }
  .tps-hero-title { font-size: 26px !important; }
  .tps-hero-stats { gap: 22px; }
  .tps-intro-block, .tps-curriculum { padding: 18px 14px; }
  .tps-module-header { padding: 13px; }
  .tps-module-name { font-size: 13px; }
  .tps-module-meta { display: none; }
  .tps-section-title { font-size: 19px !important; }
  .tps-cta-block { padding: 32px 18px; border-radius: 12px; }
  .tps-cta-block h2 { font-size: 19px !important; }
  .tps-cta-btns { flex-direction: column; align-items: center; }
}

/* ================================================================
   DPS: Dasar Pasar Saham
   ================================================================ */
.dps-wrapper { max-width: 820px; margin: 0 auto; padding: 0 0 40px; font-family: 'Segoe UI', Arial, sans-serif; color: #1a2233; }

.dps-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; margin-bottom: 20px; flex-wrap: wrap; }
.dps-breadcrumb a { color: #00699b; text-decoration: none; }
.dps-breadcrumb a:hover { color: #f0a500; text-decoration: underline; }
.dps-breadcrumb span { color: #ccc; }

.dps-hero { background: linear-gradient(135deg,#0d1b2a 0%,#1a3a5c 60%,#0d1b2a 100%); border-radius: 16px; padding: 44px 32px 38px; text-align: center; margin-bottom: 24px; position: relative; overflow: hidden; }
.dps-hero::before { content: ''; position: absolute; width: 480px; height: 480px; background: radial-gradient(circle,rgba(240,165,0,0.11),transparent 70%); top: -140px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.dps-hero-badge { display: inline-block; background: rgba(240,165,0,0.15); color: #f0a500; border: 1px solid rgba(240,165,0,0.4); padding: 5px 16px; border-radius: 20px; font-size: 12px; margin-bottom: 16px; letter-spacing: .5px; position: relative; }
.dps-hero-title { font-size: 34px !important; font-weight: 900 !important; color: #fff !important; line-height: 1.2 !important; margin: 0 0 14px !important; position: relative; }
.dps-hero-title span { color: #f0a500; }
.dps-hero-desc { font-size: 15px; color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 26px; line-height: 1.75; }
.dps-hero-stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; position: relative; }
.dps-stat { text-align: center; }
.dps-stat-num { display: block; font-size: 26px; font-weight: 800; color: #f0a500; }
.dps-stat-lbl { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.dps-intro-card { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); display: flex; gap: 18px; align-items: flex-start; }
.dps-intro-icon { font-size: 34px; flex-shrink: 0; margin-top: 2px; }
.dps-intro-text h2 { font-size: 17px !important; font-weight: 800 !important; color: #0d1b2a !important; margin: 0 0 8px !important; }
.dps-intro-text p { font-size: 14px; color: #555; line-height: 1.75; margin: 0; }

.dps-roadmap { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.dps-roadmap-label { font-size: 11px; font-weight: 700; color: #f0a500; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 7px; }
.dps-roadmap-title { font-size: 21px !important; font-weight: 800 !important; color: #0d1b2a !important; margin: 0 0 6px !important; }
.dps-roadmap-desc { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 18px; }

.dps-step { border: 1px solid #e4eaf2; border-radius: 10px; margin-bottom: 8px; overflow: hidden; transition: box-shadow .2s, border-color .2s; background: #fafbfd; }
.dps-step:last-child { margin-bottom: 0; }
.dps-step.dps-active { border-color: #f0a500; box-shadow: 0 4px 18px rgba(240,165,0,.12); background: #fff; }
.dps-step-header { width: 100%; display: flex; align-items: center; padding: 13px 16px; background: transparent; border: none; cursor: pointer; text-align: left; gap: 14px; transition: background .2s; }
.dps-step-header:hover { background: rgba(240,165,0,.04); }
.dps-step.dps-active .dps-step-header { background: #fffbf0; }
.dps-step-num { width: 30px; height: 30px; border-radius: 50%; background: #edf2ff; color: #00699b; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, color .2s; }
.dps-step.dps-active .dps-step-num { background: #f0a500; color: #0d1b2a; }
.dps-step-info { display: flex; flex-direction: column; flex: 1; }
.dps-step-label { font-size: 10px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: .8px; }
.dps-step-name { font-size: 14px; font-weight: 700; color: #0d1b2a; margin-top: 1px; line-height: 1.3; }
.dps-step-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dps-step-tag { font-size: 11px; background: #f0f4fa; color: #777; padding: 3px 9px; border-radius: 12px; }
.dps-step.dps-active .dps-step-tag { background: rgba(240,165,0,.12); color: #c47f00; }
.dps-step-chevron { font-size: 11px; color: #ccc; transition: transform .3s; line-height: 1; }
.dps-step.dps-active .dps-step-chevron { transform: rotate(180deg); color: #f0a500; }
.dps-step-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.dps-step-content { padding: 14px 16px 18px 60px; border-top: 1px solid #f0f2f7; }
.dps-step-desc { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 14px; }
.dps-step-desc p { margin: 0; }
.dps-step-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dps-step-link { display: inline-flex; align-items: center; gap: 7px; background: #f0a500; color: #0d1b2a !important; font-weight: 700; font-size: 13px; padding: 9px 20px; border-radius: 50px; text-decoration: none !important; transition: all .25s; }
.dps-step-link:hover { background: #ffb830; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(240,165,0,.35); text-decoration: none !important; }
.dps-step-link-ghost { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #00699b !important; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 50px; text-decoration: none !important; border: 1.5px solid #c5dff0; transition: all .25s; }
.dps-step-link-ghost:hover { border-color: #00699b; background: #f0f8ff; text-decoration: none !important; }
.dps-step-locked { display: inline-flex; align-items: center; gap: 6px; background: #f4f4f4; color: #bbb !important; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 50px; border: 1.5px solid #eee; cursor: not-allowed; }

.dps-tip-block { background: linear-gradient(135deg,#fffbf0,#fff8e1); border: 1px solid rgba(240,165,0,.25); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.dps-tip-icon { font-size: 20px; flex-shrink: 0; }
.dps-tip-text { font-size: 14px; color: #5a4200; line-height: 1.7; }
.dps-tip-text strong { color: #c47f00; }

.dps-cta-block { background: linear-gradient(135deg,#0d1b2a,#1a3a5c); border-radius: 16px; padding: 38px 24px; text-align: center; color: #fff; }
.dps-cta-icon { font-size: 34px; margin-bottom: 10px; }
.dps-cta-block h2 { font-size: 21px !important; font-weight: 800 !important; color: #fff !important; margin: 0 0 9px !important; }
.dps-cta-block p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 420px; margin: 0 auto 20px; line-height: 1.7; }
.dps-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dps-cta-btn-primary { background: #f0a500; color: #0d1b2a !important; font-weight: 700; padding: 11px 22px; border-radius: 50px; text-decoration: none !important; font-size: 13px; transition: all .25s; display: inline-block; }
.dps-cta-btn-primary:hover { background: #ffb830; transform: translateY(-2px); }
.dps-cta-btn-secondary { background: transparent; color: rgba(255,255,255,.8) !important; border: 2px solid rgba(255,255,255,.3); font-weight: 600; padding: 9px 20px; border-radius: 50px; text-decoration: none !important; font-size: 13px; transition: all .25s; display: inline-block; }
.dps-cta-btn-secondary:hover { border-color: #fff; color: #fff !important; }

/* DPS Mobile */
@media (max-width: 640px) {
  .dps-hero { padding: 30px 16px 24px; border-radius: 12px; }
  .dps-hero-title { font-size: 22px !important; }
  .dps-hero-stats { gap: 18px; }
  .dps-intro-card { flex-direction: column; gap: 10px; padding: 16px 14px; }
  .dps-roadmap { padding: 18px 14px; }
  .dps-step-content { padding: 12px; }
  .dps-step-tag { display: none; }
  .dps-cta-block { padding: 28px 14px; border-radius: 12px; }
  .dps-cta-btns { flex-direction: column; align-items: center; }
}
