/* ═══════════════════════════════════════════
   RADICAL SCHOOL – TRAINING STYLES
════════════════════════════════════════════ */

/* ── Training Navbar ── */
.training-navbar .nav-menu a { font-size: 13.5px; }
.training-navbar .nav-menu a.active { color: #f59e0b; }
.training-navbar .nav-menu a.active::after { width: 100%; }

/* ── Hero ── */
.training-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.training-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.ths { position: absolute; border-radius: 50%; opacity: .12; }
.ths1 { width: 600px; height: 600px; background: radial-gradient(circle,#818cf8,transparent); top:-200px; right:-100px; }
.ths2 { width: 350px; height: 350px; background: radial-gradient(circle,#f59e0b,transparent); bottom:-100px; left:-80px; }
.ths3 { width: 250px; height: 250px; background: radial-gradient(circle,#22d3ee,transparent); top:40%; left:30%; }
.training-hero-inner { position: relative; z-index: 2; text-align: center; color: #fff; }
.training-hero-inner .school-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(129,140,248,.2);
  border: 1px solid rgba(129,140,248,.4);
  color: #a5b4fc;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .5px;
}
.training-hero-inner h1 { font-size: clamp(32px,4vw,56px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.training-hero-inner p { font-size: 18px; color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto 36px; line-height: 1.7; }
.training-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.th-stat { text-align: center; }
.th-stat strong { display: block; font-size: 32px; font-weight: 800; color: #fcd34d; line-height: 1; }
.th-stat span { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; display: block; }

/* ── Category Tabs ── */
.training-tabs {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.training-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.training-tabs-inner::-webkit-scrollbar { display: none; }
.training-tab {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s;
}
.training-tab:hover { color: #1d4ed8; }
.training-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }

/* ── Main Layout ── */
.training-main { padding: 70px 0 100px; background: #f8fafc; }
.training-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Course Cards ── */
.courses-grid { display: flex; flex-direction: column; gap: 28px; }
.course-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.course-card-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 12px;
}
.course-card-emoji { font-size: 64px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.course-level-badge {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.course-card-body { padding: 28px 28px 28px; display: flex; flex-direction: column; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 12px;
}
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-card-body h2 { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 10px; line-height: 1.35; }
.course-card-body h2 a { color: inherit; transition: color .2s; }
.course-card-body h2 a:hover { color: #4f46e5; }
.course-card-body p { font-size: 14px; color: #64748b; line-height: 1.75; margin-bottom: 18px; flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.course-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.course-price { font-size: 22px; font-weight: 800; color: #0f172a; }
.course-price span { font-size: 13px; font-weight: 500; color: #94a3b8; text-decoration: line-through; margin-left: 6px; }
.course-enroll-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
  white-space: nowrap;
}
.course-enroll-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.5); }
.course-free-btn {
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 4px 16px rgba(5,150,105,.35);
}
.course-free-btn:hover { box-shadow: 0 8px 24px rgba(5,150,105,.5); }

/* ── Sidebar ── */
.training-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 140px; }
.ts-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.ts-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.ts-cats { display: flex; flex-direction: column; gap: 8px; }
.ts-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all .2s;
}
.ts-cats a:hover { background: #eff6ff; color: #4f46e5; }
.ts-cats a span {
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.ts-upcoming { display: flex; flex-direction: column; gap: 14px; }
.ts-upcoming-item { display: flex; gap: 12px; align-items: flex-start; }
.ts-upcoming-date {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 44px;
}
.ts-upcoming-date strong { display: block; font-size: 18px; font-weight: 800; line-height: 1; }
.ts-upcoming-date span { font-size: 10px; font-weight: 600; opacity: .85; }
.ts-upcoming-info a { font-size: 13px; font-weight: 600; color: #334155; line-height: 1.4; display: block; margin-bottom: 3px; transition: color .2s; }
.ts-upcoming-info a:hover { color: #4f46e5; }
.ts-upcoming-info small { font-size: 11px; color: #94a3b8; }
.ts-cta { background: linear-gradient(135deg,#1e1b4b,#4f46e5); border-color: transparent; }
.ts-cta h4 { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.ts-cta p { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }

/* ═══════════════════════════════════════════
   COURSE DETAIL PAGE
════════════════════════════════════════════ */
.course-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}
.course-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}
.course-hero-left { color: #fff; }
.course-hero-left .about-breadcrumb { justify-content: flex-start; margin-bottom: 20px; }
.course-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.course-hero-left h1 { font-size: clamp(26px,3vw,44px); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.course-hero-left .course-desc { font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.75; margin-bottom: 24px; }
.course-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.chm-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; }
.course-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ch-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* Enroll Card */
.course-enroll-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  position: sticky;
  top: 100px;
}
.cec-price { font-size: 36px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.cec-price span { font-size: 18px; color: #94a3b8; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.cec-discount { font-size: 13px; color: #059669; font-weight: 700; margin-bottom: 20px; }
.cec-enroll-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: all .3s;
  box-shadow: 0 6px 20px rgba(79,70,229,.4);
}
.cec-enroll-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79,70,229,.55); }
.cec-demo-btn {
  display: block;
  text-align: center;
  border: 2px solid #e2e8f0;
  color: #475569;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all .3s;
}
.cec-demo-btn:hover { border-color: #4f46e5; color: #4f46e5; }
.cec-includes { display: flex; flex-direction: column; gap: 12px; }
.cec-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}
.cec-includes li span { font-size: 16px; }

/* Course Body */
.course-body { padding: 70px 0 100px; background: #f8fafc; }
.course-body-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.course-content-area { display: flex; flex-direction: column; gap: 32px; }
.cc-section {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.cc-section h2 { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f1f5f9; }
.cc-section p { font-size: 15px; color: #475569; line-height: 1.8; margin-bottom: 14px; }

/* Curriculum */
.curriculum-list { display: flex; flex-direction: column; gap: 12px; }
.curriculum-module {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  gap: 12px;
}
.cm-header:hover { background: #eff6ff; }
.cm-title { font-size: 15px; font-weight: 600; color: #0f172a; }
.cm-meta { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.cm-arrow { font-size: 14px; color: #94a3b8; transition: transform .3s; flex-shrink: 0; }
.curriculum-module.open .cm-arrow { transform: rotate(180deg); }
.cm-lessons { display: none; padding: 8px 0; }
.curriculum-module.open .cm-lessons { display: block; }
.cm-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 14px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}
.cm-lesson-icon { font-size: 14px; flex-shrink: 0; }

/* What you'll learn */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.learn-item::before { content: '✔'; color: #4f46e5; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Instructor */
.instructor-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.instructor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid #f59e0b;
}
.instructor-info h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.instructor-info .inst-title { font-size: 13px; color: #4f46e5; font-weight: 600; margin-bottom: 12px; display: block; }
.instructor-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.instructor-stats span { font-size: 13px; color: #64748b; font-weight: 500; }
.instructor-info p { font-size: 14px; color: #64748b; line-height: 1.75; }

/* Reviews */
.reviews-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.review-score { text-align: center; }
.review-score strong { display: block; font-size: 56px; font-weight: 800; color: #0f172a; line-height: 1; }
.review-score .stars { color: #f59e0b; font-size: 22px; letter-spacing: 2px; }
.review-score span { font-size: 13px; color: #64748b; }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #64748b; }
.review-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.review-bar-fill { height: 100%; background: linear-gradient(90deg,#f59e0b,#fcd34d); border-radius: 4px; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
}
.review-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.reviewer span { font-size: 12px; color: #94a3b8; }
.review-stars { color: #f59e0b; font-size: 14px; }
.review-item p { font-size: 14px; color: #475569; line-height: 1.7; }

/* Sticky sidebar on course detail */
.course-detail-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

/* ── Training Footer ── */
.training-footer { background: #0a0f1e; padding: 60px 0 0; }
.training-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.training-footer-logo .logo-svg { height: 52px; width: auto; margin-bottom: 14px; display: block; }
.training-footer-logo p { font-size: 13px; color: #64748b; line-height: 1.7; max-width: 260px; }
.training-footer-latest h5,
.training-footer-cats h5 {
  font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.training-footer-latest ul,
.training-footer-cats ul { display: flex; flex-direction: column; gap: 12px; }
.training-footer-latest ul li a { font-size: 13px; color: #64748b; line-height: 1.5; transition: color .2s; }
.training-footer-latest ul li a:hover { color: #f59e0b; }
.training-footer-cats ul li a {
  font-size: 13px; color: #64748b; transition: color .2s;
  display: flex; align-items: center; gap: 8px;
}
.training-footer-cats ul li a::before { content: '→'; color: #4f46e5; font-size: 12px; }
.training-footer-cats ul li a:hover { color: #f59e0b; }
.training-footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: #475569; }
.training-footer-bottom a { color: #f59e0b; font-weight: 600; transition: opacity .2s; }
.training-footer-bottom a:hover { opacity: .8; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .training-layout, .course-body-layout { grid-template-columns: 1fr; }
  .course-hero-inner { grid-template-columns: 1fr; }
  .course-enroll-card { position: static; }
  .training-sidebar, .course-detail-sidebar { position: static; }
  .training-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .course-card { grid-template-columns: 1fr; }
  .course-card-thumb { padding: 28px; }
  .learn-grid { grid-template-columns: 1fr; }
  .instructor-card { flex-direction: column; }
  .training-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .reviews-summary { flex-direction: column; align-items: flex-start; }
}
