﻿
/* ===========================
   Assessment feedback styling
   =========================== */

.assessment-result {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.criteria-feedback {
  margin-top: 0.5rem;
}

.criteria-feedback .ao-row {
  margin-bottom: 0.75rem;
}

.criteria-feedback .ao-heading {
  font-weight: 600;
}

.criteria-feedback .ao-marks {
  font-weight: 600;
  margin-left: 0.25rem;
}

/* AO colour coding */
.ao1-tag { color: #007bff; font-weight: 600; }  /* blue */
.ao2-tag { color: #28a745; font-weight: 600; }  /* green */
.ao3-tag { color: #f47a20; font-weight: 600; }  /* orange */
.ao4-tag { color: #d63384; font-weight: 600; }  /* pink/purple */

.personalised-feedback {
  font-style: italic;
  color: #444;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.personalised-feedback.show {
  opacity: 1;
}

#scoreSummary {
  font-size: 1.05rem;
}

#bandFeedback {
  margin-top: 0.35rem;
}

/* Optional: small bullets for AO improvement tips */
.criteria-feedback ul {
  margin: 0.3rem 0 0.1rem 1.1rem;
  padding-left: 0;
}
.criteria-feedback li {
  font-size: 0.95rem;
}



/* ======================================================
   assess-feedback.css | Shared style for assessment tools
   ====================================================== */

/* Base card area */
.assessment-area {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 1.75rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Headings */
.assessment-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #364545;
}

/* Textarea */
.assessment-area textarea {
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: box-shadow 0.2s ease;
}
.assessment-area textarea:focus {
  border-color: #f47a20;
  box-shadow: 0 0 0 0.2rem rgba(244,122,32,0.25);
}

/* Buttons */
.assessment-area button {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s ease;
}
#assessBtn {
  background-color: #f47a20;
  border: none;
}
#assessBtn:hover {
  background-color: #e96d10;
}
#resetBtn {
  background-color: #6c757d;
  border: none;
}
#resetBtn:hover {
  background-color: #5c636a;
}

/* Results area */
#assessmentResult {
  margin-top: 1.5rem;
  border-top: 2px solid #eee;
  padding-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#assessmentResult.show {
  opacity: 1;
  transform: translateY(0);
}

/* AO colour accents */
.ao1 { color: #007bff; }
.ao2 { color: #28a745; }
.ao3 { color: #f47a20; }
.ao4 { color: #6f42c1; }

/* Feedback list */
#criteriaFeedback ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0;
}
#criteriaFeedback li {
  background: #fafafa;
  border-left: 4px solid #ddd;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.97rem;
  transition: background 0.3s ease;
  animation: slideFadeIn 0.6s ease both;
}
#criteriaFeedback li:hover {
  background: #fdf7f2;
}

/* Smooth reveal */
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hints */
#criteriaFeedback li div {
  margin-top: 0.2rem;
  font-size: 0.9em;
  line-height: 1.4;
  color: #6c757d;
}

/* Fade-in utility */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.fade-in.show {
  opacity: 1;
}

/* Score summary */
#scoreSummary {
  font-weight: 700;
  margin-top: 1rem;
  color: #364545;
  display: inline-block;
  position: relative;
}

/* ✨ Score pulse */
@keyframes scorePulse {
  0% { background-color: rgba(244,122,32,0); }
  30% { background-color: rgba(244,122,32,0.15); }
  60% { background-color: rgba(244,122,32,0.1); }
  100% { background-color: transparent; }
}

#scoreSummary.pulse {
  animation: scorePulse 1.2s ease;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}

/* Band feedback */
#bandFeedback {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #444;
  animation: slideFadeIn 0.8s ease both;
}

/* ======================================================
   🎉 Confetti-sparkle micro-animation
   ====================================================== */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--confetti-color, #f47a20);
  border-radius: 50%;
  opacity: 0.9;
  animation: confettiFall 1.5s ease-out forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  80%  { transform: translateY(40px) scale(0.8); opacity: 0.7; }
  100% { transform: translateY(60px) scale(0.6); opacity: 0; }
}

/* ======================================================
   🧭 AO Feedback Toggle + Fade-In
   ====================================================== */
#aoFeedbackToggle {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.2s ease;
}
#aoFeedbackToggle:hover {
  background: #e9ecef;
}

#aoFeedbackBlock {
  display: none;
  background: #fafafa;
  border-radius: 8px;
  border-top: 1px solid #ddd;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: #212529;
  animation: fadeIn 0.4s ease-in-out;
}
#aoFeedbackBlock strong {
  min-width: 3rem;
  display: inline-block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Learn-Economics auto-inserted logo */
.le-icon {
  display: inline-block;
  width: 22px;
  height: auto;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.9;
}

.le-icon svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Ensure assessmentResult fades in correctly */
#assessmentResult.fade-in {
  opacity: 0;
}

#assessmentResult.fade-in.show {
  opacity: 1 !important;
}

/* Prevent inner paragraphs (like personalisedFeedback) inheriting opacity=0 */
#assessmentResult p,
#assessmentResult div {
  opacity: 1 !important;
  color: #333 !important;
}

/* ============================================
   UNIFIED AO COLOUR SYSTEM
   ============================================ */
.ao1-color { color: #0074D9; font-weight: 600; }
.ao2-color { color: #2ECC40; font-weight: 600; }
.ao3-color { color: #FF851B; font-weight: 600; }
.ao4-color { color: #FF4136; font-weight: 600; }

/* Panels */
.feedback-panel {
  background: #f8f9fa;
  border-left: 5px solid #0074D9;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 6px;
}

/* AO Summary Line */
#scoreSummary {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Band Feedback */
#bandFeedback {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* AO Criteria Box */
.criteria-box {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-left-width: 4px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}

/* AO-specific border colours */
.criteria-box.ao1 { border-left-color: #0074D9; }
.criteria-box.ao2 { border-left-color: #2ECC40; }
.criteria-box.ao3 { border-left-color: #FF851B; }
.criteria-box.ao4 { border-left-color: #FF4136; }

/* Personalised Feedback */
#personalisedFeedback {
  background: #fff8e6;
  border-left: 4px solid #FF851B;
  padding: 12px 16px;
  margin-top: 18px;
  border-radius: 4px;
  font-style: italic;
}

/* Teacher Panel */
#teacherPanel {
  background: #f2f2f2;
  border: 1px dashed #888;
  padding: 12px;
  margin-top: 20px;
  display: none;
}

#teacherPanel.open {
  display: block;
}

/* Improve spacing inside feedback area */
#assessmentResult h4 {
  margin-top: 0;
}
/* ============================================
   Heading hierarchy refinements
   ============================================ */

/* MAIN PANEL HEADING (Top) */
#assessmentResult h2,
#assessmentResult h3 {
  font-size: 1.6rem;      /* Larger + clear */
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

/* PERSONALISED FEEDBACK heading */
#personalisedFeedback strong,
#personalisedFeedback h4,
#personalisedFeedback h3 {
  font-size: 1.1rem;      /* Slightly smaller */
  font-weight: 600;
  color: #CC7000;         /* Slightly softer tone than AO3 orange */
}
/* ============================================
   FINAL HEADING SIZE CORRECTION
   ============================================ */

/* TOP HEADING — Must be the largest */
#assessmentResult .top-heading {
  font-size: 1.8rem !important;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1b1b1b;
}

/* PERSONALISED FEEDBACK — forced smaller */
#personalisedFeedback {
  font-size: 1rem !important;         /* Reduce the whole block */
}

#personalisedFeedback .pf-heading {
  font-size: 1.15rem !important;      /* Sub-heading inside PF */
  font-weight: 600;
  color: #CC7000;
  margin-bottom: 6px;
}

/* ============================================
   FIX HEADING HIERARCHY IN ASSESSMENT PANEL
   ============================================ */

/* Main result heading (Assessment Feedback) */
#assessmentResult h4 {
  font-size: 1.75rem !important;   /* Larger than h5 */
  font-weight: 700;
  margin-bottom: 12px;
  color: #1c1c1c;
}

/* Personalised Feedback heading */
#assessmentResult h5 {
  font-size: 1.25rem !important;   /* Slightly smaller */
  font-weight: 600;
  color: #CC7000;                  /* Soft highlight tone */
  margin-top: 20px;
  margin-bottom: 6px;
}
/* ================================
   THINKING INDICATOR (Bootstrap-Safe)
   ================================ */
/*
#thinkingIndicator {
  display: none;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
*/

  /* Protect against Bootstrap collapse */
/*  min-height: 24px;
  height: auto;
  overflow: visible;
  visibility: visible;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.thinking-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #007bff;
  border-radius: 50%;
  opacity: 1;

 flex-shrink: 0;
  flex-grow: 0;

  animation: thinkingBlink 1.4s infinite both;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinkingBlink {
  0%   { opacity: 0.2; transform: translateY(0); }
  20%  { opacity: 1;   transform: translateY(-4px); }
  100% { opacity: 0.2; transform: translateY(0); }
}




/* Dot styling — must override Bootstrap resets */
*/
*/
  /* Prevent flexbox compression from Bootstrap */
 
*/
*/

*/

/* Pulsing / bouncing animation */

/* ============================
   25-MARK PREMIUM AO TAGS
   ============================ */

/* Tag containers */
.ao-row-25 {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #fafafa;
  border-left: 5px solid transparent;
}

/* KAA – Royal Purple */
.ao-kaa-tag {
  color: #5a2ca0;                     /* royal purple text */
  font-weight: 600;
}
.ao-row-25.kaa {
  border-left-color: #5a2ca0;         /* purple accent bar */
}

/* Evaluation – Deep Teal */
.ao-eval-tag {
  color: #006d6d;                     /* deep teal text */
  font-weight: 600;
}
.ao-row-25.eval {
  border-left-color: #006d6d;         /* teal accent bar */
}

/* AO marks */
.ao-marks-25 {
  font-weight: 600;
  margin-left: 4px;
}

/* Section heading */
.assessment-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Personalised feedback box */
#personalisedFeedback {
  border-left: 5px solid #444;
  padding-left: 0.75rem;
  margin-top: 1rem;
}
/* ================================================
   25-MARK T1 FEEDBACK STYLING
   ================================================ */

/* --- Container + Title Bar --- */
.t25-title-bar {
  background: #f4f4f4;
  padding: 14px 18px;
  border-left: 4px solid #f47a20; /* LE orange */
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Score Summary (top section) --- */
.t25-score-summary {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* --- Band descriptor line --- */
.t25-band-line {
  margin-bottom: 18px;
  color: #444;
  font-style: italic;
}

/* --- Feedback Sections (K, A, A, Ev blocks) --- */
.t25-section-block {
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e4e4e4;
}

.t25-section-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #333;
}

.t25-section-level {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}

.t25-section-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}

/* --- Improvement Panel (Peach box) --- */
.t25-next-steps {
  margin-top: 28px;
  padding: 18px 20px;
  background: #fff4e9;           /* soft peach */
  border-left: 4px solid #f47a20;
  border-radius: 6px;
}

.t25-next-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.t25-next-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}

/* --- AO mini badges (optional refinement) --- */
.t25-badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 0.8rem;
  border-radius: 4px;
  background: #eee;
  margin-right: 6px;
  font-weight: 600;
  color: #444;
}

/* --- Mobile adjustments --- */
@media (max-width: 576px) {
  .t25-title-bar {
    font-size: 1rem;
  }
  .t25-section-block {
    padding: 12px 14px;
  }
  .t25-next-steps {
    padding: 14px 16px;
  }
}
/* ================================
   25-mark T1 feedback styling
   ================================ */

/* Question at the top of the feedback panel */
.assessment-result .feedback-question-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  margin-bottom: 0.15rem;
}

.assessment-result .feedback-question-text {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.9rem;
}

/* Combined KAA/Eval level line */
.assessment-result .feedback-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.9rem;
}

/* Grid for KAA + Evaluation blocks */
.feedback-grid-25 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .feedback-grid-25 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Shared block styling */
.feedback-block {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f9fafb;
  border-left: 4px solid #e0e3e7;
}

/* KAA block – cool tone */
.kaa-block {
  border-left-color: #0d6efd; /* bootstrap primary blue */
}

/* Evaluation block – warmer tone */
.eval-block {
  border-left-color: #d63384; /* bootstrap pink */
}

.feedback-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #222;
}

.feedback-body {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  line-height: 1.45;
}

/* "How to improve" paragraph (existing #personalisedFeedback) */
#personalisedFeedback {
  margin-top: 0.8rem;
  white-space: pre-line; /* respects the bullet-style line breaks */
  font-size: 0.9rem;
  color: #333;
}

/* ===== 25-mark Feedback Styling (T1) ===== */

.fb25-header {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.fb25-summary {
  margin-bottom: 1rem;
}

.fb25-question-box {
  border: 1px solid #ccc;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: #fafafa;
  margin-bottom: 1.4rem;
}

.fb25-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.fb25-col {
  flex: 1 1 300px;
}

.fb25-block {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background: white;
}

.fb25-block-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.fb25-block-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.fb25-total-box {
  text-align: right;
  margin-bottom: 1.4rem;
}

.fb25-total-number {
  border: 1px solid #000;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600; /* semi-bold as requested */
}

.fb25-improve-title {
  margin-bottom: 0.3rem;
  margin-top: 0.5rem;
}

.fb25-improve-box {
  background: #fcf3d9;
  border-left: 4px solid #d0a63b;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.assessment-question-box,
.ao-box {
  border: 1px solid #ddd;
  padding: 0.9rem 1rem;
  background: #fafafa;
}

.ao-box {
  border-left: 5px solid #f47a20;
}

.assessment-question-block h5 {
  margin-bottom: 0.4rem;
}

#personalisedFeedback ul {
  padding-left: 1.2rem;
}

/* Question box inside feedback panel */
.assessment-question-block { margin: .5rem 0 1rem; }
.assessment-question-block .q-label { font-weight: 700; margin-bottom: .35rem; }
.assessment-question-box {
  border: 1px solid rgba(0,0,0,.15);
  border-left: 6px solid rgba(244,122,32,.9);
  padding: .75rem .9rem;
  border-radius: .35rem;
  background: #fff;
}

/* KAA / Eval blocks with left border */
.ao-box {
  border: 1px solid rgba(0,0,0,.12);
  border-left: 6px solid rgba(0,0,0,.25);
  padding: .85rem .95rem;
  border-radius: .4rem;
  background: #fff;
  margin-top: .75rem;
}
.ao-kaa { border-left-color: rgba(40,167,69,.85); }
.ao-eval { border-left-color: rgba(214,51,132,.75); }

/* Improve list */
.improve-list { margin: .5rem 0 0 1.1rem; }

/* ===============================
   Question
================================ */
.assessment-question-box {
  border: 1px solid #ddd;
  padding: 0.9rem;
  margin: 0.6rem 0 1rem;
  background: #fafafa;
  font-weight: 500;
}

/* ===============================
   Mark + breakdown
================================ */
.mark-total {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mark-breakdown {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===============================
   AO layout
================================ */
.ao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .ao-grid {
    grid-template-columns: 1fr;
  }
}

.ao-box {
  border-left: 4px solid #ccc;
  padding: 0.75rem;
  background: #fff;
}

.ao-kaa { border-color: #007bff; }
.ao-eval { border-color: #d63384; }

.ao-score {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ===============================
   How to improve
================================ */
#personalisedFeedback ul {
  padding-left: 1.2rem;
}

/*Thues-16 */
/* Sidebar assessment links */
.assessment-sidebar a {
  color: #212529 !important;
  text-decoration: none;
}

.assessment-sidebar a:hover {
  color: #000;
  text-decoration: underline;
}

.assessment-sidebar .assessment-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}
/*WED-17TH DEC */
/* ASSESSMENT THINKING */

.assessment-thinking {
  font-size: 1.2rem;
  color: #444;
  margin: 1rem 0;
  font-weight: 600;
}

.assessment-thinking .dot {
  animation: blink 1.4s infinite both;
  display: inline-block;
}

.assessment-thinking .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.assessment-thinking .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%   { opacity: 0.2; }
  20%  { opacity: 1; }
  100% { opacity: 0.2; }
}
/* ================================
   ASSESSMENT PROGRESS BAR
   ================================ */

.assessment-progress {
  width: 100%;
  max-width: 360px;
  height: 6px;
  background: #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.assessment-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f47a20,
    #ff9b4a
  );
  transition: width 0.9s ease;
}
/* ===============================
   MARK HEADING STYLING
   =============================== */

.mark-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(0,0,0,0.04);
  color: #222;
}

/* Icon consistency */
.mark-heading .mark-icon {
  font-size: 1rem;
  color: #f47a20; /* Learn-Economics orange */
}

/* Optional subtle colour coding (very restrained) */
.mark-8  { background: rgba(13,110,253,0.06); }
.mark-10 { background: rgba(25,135,84,0.06); }
.mark-12 { background: rgba(220,53,69,0.06); }
.mark-15 { background: rgba(102,16,242,0.06); }
.mark-25 { background: rgba(255,193,7,0.10); }

/* =========================================
   ASSESSMENT THEME GRID – SPACING & HOVER FIX
   Compatible with Bootstrap 4 & 5
   ========================================= */

/* --- Card container --- */
.assessment-theme-card {
  padding: 1rem 1.1rem;              /* tighter than default */
  border-radius: 10px;
  height: 100%;
}

/* --- Theme title --- */
.theme-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* --- Question group heading (8-mark, etc) --- */
.question-group {
  margin: 0.8rem 0 0.3rem;           /* reduced vertical gaps */
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Icons: colour & size --- */
.question-group .mark-icon {
  color: #f47a20;                    /* Learn-Economics orange */
  font-size: 0.95rem;
}

/* --- Lists --- */
.theme-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.4rem;             /* tighter list spacing */
}

.theme-section ul li {
  margin-bottom: 0.2rem;
}

/* --- Links: remove underline completely --- */
.theme-section ul li a {
  display: block;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: #222;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Hover: background change (NOT underline) --- */
.theme-section ul li a:hover,
.theme-section ul li a:focus {
  background-color: rgba(244, 122, 32, 0.12);
  color: #000;
  text-decoration: none !important;
}

/* --- Reduce Bootstrap default spacing in grid --- */
.row > [class*="col-"] {
  margin-bottom: 0.8rem;
}

/* --- Mobile tightening --- */
@media (max-width: 576px) {
  .assessment-theme-card {
    padding: 0.9rem;
  }

  .question-group {
    margin-top: 0.6rem;
  }
}

/* ================================
   ASSESSMENT THEME CARD – TIGHTER
   ================================ */

.assessment-theme-card {
  padding: 0.9rem 0.9rem 0.6rem;
  height: 100%;
}

/* Reduce space under titles */
.theme-title {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* Section wrapper */
.theme-section {
  margin-top: 0.25rem;
}
/* Question group headings */
.question-group {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Question lists */
.theme-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.4rem;
}

.theme-section ul li {
  margin-bottom: 0.2rem;
}

/* Topic links – clean + compact */
.theme-section ul li a {
  display: block;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;

  text-decoration: none !important;
  color: #222;

  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover effect = background only */
.theme-section ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000;
  text-decoration: none !important;
}

/* Question group icons */
.mark-icon {
  color: #f47a20; /* Learn Economics orange */
  font-size: 0.95rem;
}

.theme-one .mark-icon   { color: #f47a20; }
.theme-two .mark-icon   { color: #4a90e2; }
.theme-three .mark-icon { color: #2fa36b; }
.theme-four .mark-icon  { color: #8a63d2; }

/* Reduce bottom spacing between cards */
.row > [class*="col-"] {
  margin-bottom: 1rem;
}

/* =========================================
   ASSESSMENT THEME GRID – SPACING & HOVER FIX
   Compatible with Bootstrap 4 & 5
   ========================================= */

/* --- Card container --- */
.assessment-theme-card {
  padding: 1rem 1.1rem;              /* tighter than default */
  border-radius: 10px;
  height: 100%;
}

/* --- Theme title --- */
.theme-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* --- Question group heading (8-mark, etc) --- */
.question-group {
  margin: 0.8rem 0 0.3rem;           /* reduced vertical gaps */
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Icons: colour & size --- */
.question-group .mark-icon {
  color: #f47a20;                    /* Learn-Economics orange */
  font-size: 0.95rem;
}

/* --- Lists --- */
.theme-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.4rem;             /* tighter list spacing */
}

.theme-section ul li {
  margin-bottom: 0.2rem;
}

/* --- Links: remove underline completely --- */
.theme-section ul li a {
  display: block;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: #222;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Hover: background change (NOT underline) --- */
.theme-section ul li a:hover,
.theme-section ul li a:focus {
  background-color: rgba(244, 122, 32, 0.12);
  color: #000;
  text-decoration: none !important;
}

/* --- Reduce Bootstrap default spacing in grid --- */
.row > [class*="col-"] {
  margin-bottom: 0.8rem;
}

/* --- Mobile tightening --- */
@media (max-width: 576px) {
  .assessment-theme-card {
    padding: 0.9rem;
  }

  .question-group {
    margin-top: 0.6rem;
  }
}

.question-group:has(.bi-bookmark-fill) .mark-icon { color: #6c757d; }
.question-group:has(.bi-journal)       .mark-icon { color: #0d6efd; }
.question-group:has(.bi-magic)         .mark-icon { color: #6f42c1; }
.question-group:has(.bi-easel-fill)    .mark-icon { color: #198754; }
.question-group:has(.bi-award-fill)    .mark-icon { color: #f47a20; }

/* =========================================
   TIGHTEN ASSESSMENT GRID SPACING (OVERRIDE)
   ========================================= */

/* Reduce card padding */
.assessment-theme-card {
  padding: 0.75rem 0.9rem !important;
}

/* Reduce spacing under theme titles */
.theme-title {
  margin-bottom: 0.5rem !important;
}

/* Question group headings (8-mark, etc.) */
.question-group {
  margin: 0.75rem 0 0.25rem !important;
  padding: 0 !important;
  font-size: 0.95rem;
}

/* UL reset inside cards */
.assessment-theme-card ul {
  margin: 0 0 0.35rem !important;
  padding-left: 0 !important;
  list-style: none;
}

/* Individual topic links */
.assessment-theme-card ul li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Link spacing (tight but readable) */
.assessment-theme-card ul li a {
  display: block;
  padding: 0.2rem 0.35rem !important;
  margin: 0 !important;
  line-height: 1.25;
  text-decoration: none !important;
}

/* Reduce Bootstrap column bottom margin */
.row > [class*="col-"] {
  margin-bottom: 0.75rem !important;
}

