/* ===========================================================
   GCSE Physics Ninja — Exam Questions Styling
   File: gpn-examquestions.css
   =========================================================== */

/* --- Container for all questions on the page --- */
.gpn-qs {
  max-width: 900px;
  margin: 0 auto 20px;
  font-family: inherit;
  color: #222;
}

/* --- Individual question card --- */
.gpn-question-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-left: 6px solid #ffb703; /* Ninja accent colour */
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Header row: question number + metadata */
.gpn-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gpn-question-number {
  font-weight: 700;
  font-size: 1rem;
}

.gpn-q-meta {
  font-size: 0.9rem;
  color: #666;
}

/* --- Question Text --- */
.gpn-question-text {
  margin: 10px 0 14px;
  line-height: 1.5;
  font-size: 1.05rem;
}

/* --- Mark Scheme Toggle (details/summary) --- */
details.gpn-markscheme {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #e0e0e0;
}

details.gpn-markscheme summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  outline: none;
  position: relative;
  padding-left: 22px;
}

/* Toggle arrow icon */
details.gpn-markscheme summary::before {
  content: "▶";
  font-size: 0.8rem;
  position: absolute;
  left: 0;
  top: 2px;
  transition: transform 0.25s ease;
  color: #444;
}

details.gpn-markscheme[open] summary::before {
  transform: rotate(90deg);
}

/* --- Mark Scheme Box --- */
.gpn-mark {
  background: #fafafa;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.96rem;
  color: #333;
  border: 1px solid #eee;
}

.ms-point {
  margin-bottom: 8px;
}

.ms-tick {
  font-weight: 700;
  color: #2b9348;
  margin-right: 6px;
}

/* --- Footer with exam-style metadata --- */
.gpn-question-footer {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================
   Return to Course Overview Button
   ============================ */

.gpn-return-btn-wrapper {
  text-align: center;         /* centres button horizontally */
  margin: 40px auto 20px;
}

.gpn-return-btn-wrapper a.gpn-return-btn,
div.gpn-return-btn-wrapper a.gpn-return-btn {
  display: inline-block;      /* allows width/height control */
  white-space: nowrap;        /* prevents text wrapping */
  text-align: center;         /* centres text horizontally */
  vertical-align: middle;     /* centres text vertically inside button */
  padding: 0px 24px 13px 24px;/* compact vertical height, enough horizontal space */
  font-size: 1.05rem;
  line-height: 1.2;           /* ensures text is vertically centred */
  background-color: #ffb703;  /* Ninja gold */
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.gpn-return-btn-wrapper a.gpn-return-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}

.gpn-return-btn-wrapper a.gpn-return-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ============================
   Responsive adjustments
   ============================ */

@media (max-width: 600px) {
  .gpn-question-card {
    padding: 15px 18px;
  }

  .gpn-question-text {
    font-size: 1rem;
  }
}