/* ============================================================
   WAYS2RAISE — SKILLS LAB CSS
   Design: energetic, educational, on-brand with navy/pink/blue/green/yellow
   Audience: UK teenagers aged 13+
   ============================================================ */

/* ── Course Hero ── */
.lab-hero {
  background: var(--hero-gradient);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lab-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-decoration: none;
  transition: color 0.2s;
}
.lab-hero-back:hover { color: #fff; }
.lab-course-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.lab-hero h1 {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.lab-hero h1 span { color: var(--yellow); }
.lab-hero p {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 28px;
}
.lab-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.lab-meta-pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}

/* ── Lesson Progress Bar ── */
.lab-progress-bar {
  background: var(--navy);
  padding: 14px 24px;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.lab-progress-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lab-progress-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.lab-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.lab-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.lab-progress-pct {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ── Lesson Navigation Pills ── */
.lab-lesson-nav {
  background: var(--light);
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.lab-lesson-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lab-lesson-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  color: #888;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.lab-lesson-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.lab-lesson-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.lab-lesson-pill.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.lab-lesson-pill .pill-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}

/* ── Lesson Body ── */
.lab-body {
  background: #f8f7ff;
  padding: 60px 24px 80px;
}
.lab-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ── Lesson Card ── */
.lab-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.lab-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--pink);
  border-radius: 20px 0 0 20px;
}
.lab-card-accent.blue { background: var(--blue); }
.lab-card-accent.green { background: var(--green); }
.lab-card-accent.yellow { background: var(--yellow); }
.lab-card-accent.navy { background: var(--navy); }

.lab-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.lab-card-icon.pink { background: #fce7f3; }
.lab-card-icon.blue { background: #dbeafe; }
.lab-card-icon.green { background: #dcfce7; }
.lab-card-icon.yellow { background: #fef9c3; }
.lab-card-icon.navy { background: #e0e7ff; }

.lab-text {
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
}
.lab-text:last-child { margin-bottom: 0; }

/* ── Callout Boxes ── */
.lab-callout {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lab-callout.tip {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}
.lab-callout.warning {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
}
.lab-callout.info {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
}
.lab-callout.wow {
  background: #fdf2f8;
  border: 1.5px solid #f9a8d4;
}
.lab-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.lab-callout-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
}
.lab-callout-text strong {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--navy);
}

/* ── Comparison Box (before/after prompts) ── */
.lab-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .lab-compare { grid-template-columns: 1fr; }
}
.lab-compare-box {
  border-radius: 14px;
  padding: 20px;
  position: relative;
}
.lab-compare-box.bad {
  background: #fff1f2;
  border: 2px solid #fca5a5;
}
.lab-compare-box.good {
  background: #f0fdf4;
  border: 2px solid #86efac;
}
.lab-compare-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lab-compare-box.bad .lab-compare-label { color: #dc2626; }
.lab-compare-box.good .lab-compare-label { color: #16a34a; }
.lab-compare-prompt {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.65;
  font-style: italic;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.lab-compare-result {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── RTDF Framework Box ── */
.rtdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
@media (max-width: 560px) {
  .rtdf-grid { grid-template-columns: 1fr; }
}
.rtdf-card {
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}
.rtdf-card:hover { transform: translateY(-3px); }
.rtdf-letter {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.rtdf-word {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.rtdf-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.85;
}
.rtdf-card.r { background: #fce7f3; color: var(--navy); }
.rtdf-card.r .rtdf-letter { color: var(--pink); }
.rtdf-card.t { background: #dbeafe; color: var(--navy); }
.rtdf-card.t .rtdf-letter { color: var(--blue); }
.rtdf-card.d { background: #dcfce7; color: var(--navy); }
.rtdf-card.d .rtdf-letter { color: #16a34a; }
.rtdf-card.f { background: #fef9c3; color: var(--navy); }
.rtdf-card.f .rtdf-letter { color: #ca8a04; }

/* ── Interactive Try-It Box ── */
.lab-tryit {
  background: linear-gradient(135deg, #1A1464 0%, #2d1b69 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
}
.lab-tryit-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-tryit-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}
.lab-tryit-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.lab-tryit textarea,
.lab-tryit input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}
.lab-tryit textarea::placeholder,
.lab-tryit input::placeholder { color: rgba(255,255,255,0.4); }
.lab-tryit textarea:focus,
.lab-tryit input:focus {
  outline: none;
  border-color: var(--yellow);
}
.lab-tryit-btn {
  background: var(--pink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lab-tryit-btn:hover { background: #c91578; transform: translateY(-1px); }
.lab-tryit-result {
  margin-top: 20px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  display: none;
}
.lab-tryit-result.show { display: block; }

/* ── RTDF Builder (interactive) ── */
.rtdf-builder {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  border: 2px solid #e5e7eb;
}
.rtdf-builder-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.rtdf-builder-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.rtdf-builder-badge.r { background: #fce7f3; color: var(--pink); }
.rtdf-builder-badge.t { background: #dbeafe; color: var(--blue); }
.rtdf-builder-badge.d { background: #dcfce7; color: #16a34a; }
.rtdf-builder-badge.f { background: #fef9c3; color: #ca8a04; }
.rtdf-builder-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #374151;
  transition: border-color 0.2s;
}
.rtdf-builder-input:focus {
  outline: none;
  border-color: var(--blue);
}
.rtdf-builder-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}
.rtdf-output-box {
  background: #f8f7ff;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.7;
  margin-top: 16px;
  font-weight: 600;
  min-height: 60px;
}
.rtdf-output-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pink);
  margin-bottom: 8px;
}
.rtdf-copy-btn {
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
}
.rtdf-copy-btn:hover { background: #2d1b69; }

/* ── Quiz / Knowledge Check ── */
.lab-quiz {
  background: var(--light);
  border-radius: 16px;
  padding: 28px;
  border: 2px solid #e5e7eb;
}
.lab-quiz-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-quiz-q {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 14px;
  line-height: 1.6;
}
.lab-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.lab-quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
  transition: all 0.2s;
}
.lab-quiz-option:hover {
  border-color: var(--blue);
  background: #eff6ff;
}
.lab-quiz-option.correct {
  border-color: var(--green);
  background: #f0fdf4;
  color: #15803d;
}
.lab-quiz-option.wrong {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #dc2626;
}
.lab-quiz-option input[type="radio"] { display: none; }
.lab-quiz-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.lab-quiz-option.correct .lab-quiz-dot { background: var(--green); border-color: var(--green); color: #fff; }
.lab-quiz-option.wrong .lab-quiz-dot { background: #fca5a5; border-color: #fca5a5; }
.lab-quiz-feedback {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
  margin-top: 8px;
}
.lab-quiz-feedback.correct { background: #f0fdf4; color: #15803d; display: block; }
.lab-quiz-feedback.wrong { background: #fff1f2; color: #dc2626; display: block; }

/* ── Step-by-step instructions ── */
.lab-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.lab-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lab-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.lab-step-content {
  flex: 1;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  padding-top: 6px;
}
.lab-step-content strong { color: var(--navy); }

/* ── Challenge Box ── */
.lab-challenge {
  background: linear-gradient(135deg, var(--pink) 0%, #9333ea 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  text-align: center;
}
.lab-challenge-icon { font-size: 2.5rem; margin-bottom: 12px; }
.lab-challenge-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.lab-challenge-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 20px;
}
.lab-challenge-tasks {
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 24px;
}
.lab-challenge-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  line-height: 1.6;
}
.lab-challenge-task:last-child { border-bottom: none; }
.lab-challenge-task-num {
  background: rgba(255,255,255,0.25);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.lab-challenge-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.lab-challenge-checkbox:last-child { border-bottom: none; }
.lab-challenge-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}

/* ── Lesson Navigation (bottom) ── */
.lab-lesson-footer {
  background: var(--navy);
  padding: 28px 24px;
}
.lab-lesson-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lab-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s;
}
.lab-nav-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.lab-nav-btn.next {
  background: var(--pink);
  border-color: var(--pink);
}
.lab-nav-btn.next:hover { background: #c91578; border-color: #c91578; }
.lab-nav-lesson-info {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
}
.lab-nav-lesson-info strong { color: #fff; display: block; font-size: 0.9rem; }

/* ── Skills Lab Hub Cards ── */
.lab-course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.lab-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.lab-course-card-header {
  padding: 28px 28px 20px;
  position: relative;
}
.lab-course-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.lab-course-card-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.lab-course-card-desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lab-course-card-footer {
  padding: 16px 28px;
  background: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
}
.lab-course-card-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
}
.lab-course-card-cta {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pink);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .lab-card { padding: 24px 20px; }
  .lab-tryit { padding: 24px 20px; }
  .lab-challenge { padding: 24px 20px; }
  .lab-lesson-footer-inner { flex-direction: column; text-align: center; }
}
