/* Full Exam Question Types & Dark Mode Comments + Turnstile */
.study-question-heading h3 {
  white-space: pre-line;
  line-height: 1.75;
  font-size: 14px;
  color: #eef1f7;
}
.answer-options {
  flex-wrap: wrap;
}
.answer-options.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 650px) {
  .answer-options.options-grid {
    grid-template-columns: 1fr;
  }
}
.open-answer-box {
  margin: 14px 0 18px;
}
.open-answer-box textarea {
  width: 100%;
  background: #141822;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  padding: 13px 15px;
  color: #f3f5f9;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  min-height: 82px;
}
.open-answer-box textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.explanation p {
  white-space: pre-line;
}
.transcript p {
  white-space: pre-line;
}
.question-jumps {
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}
.question-jumps::-webkit-scrollbar {
  width: 5px;
}
.question-jumps::-webkit-scrollbar-thumb {
  background: #ffffff22;
  border-radius: 4px;
}
.answer-summary {
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
}
.answer-summary b.open-ans {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.detail-publish-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8f9bb3;
  margin-top: 6px;
  margin-bottom: 14px;
}
.detail-publish-meta time {
  color: #d6deec;
  font-weight: 500;
}

/* Comments Section under each Exam */
.exam-comments-section {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, #1d2230 0%, #171a24 100%);
}
.exam-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.exam-comments-header h2 {
  font-size: 22px;
  margin: 8px 0 0;
  letter-spacing: -0.5px;
}
.exam-comments-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.exam-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 16px;
}
.exam-comment-item {
  padding: 18px 20px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #141720;
}
.exam-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.exam-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffd87518;
  border: 1px solid #ffd87540;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.exam-comment-author {
  font-weight: 600;
  font-size: 13px;
  color: #f0f3f9;
}
.exam-comment-date {
  font-size: 11px;
  color: #7c88a1;
  display: block;
  margin-top: 2px;
}
.exam-comment-body {
  font-size: 13px;
  line-height: 1.75;
  color: #c7d0e0;
  white-space: pre-line;
}
.exam-comment-empty {
  padding: 18px 20px;
  border-radius: 9px;
  background: #ffffff05;
  border: 1px dashed #ffffff18;
  color: #8f9bb3;
  font-size: 12px;
  margin-bottom: 26px;
}
.exam-comment-form {
  display: grid;
  gap: 16px;
}
.exam-comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 650px) {
  .exam-comments-section {
    padding: 20px;
  }
  .exam-comment-form-row {
    grid-template-columns: 1fr;
  }
}
.exam-comment-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #b8c2d6;
  margin-bottom: 7px;
}
.exam-comment-field label span {
  color: var(--gold);
}
.exam-comment-field input,
.exam-comment-field textarea {
  width: 100%;
  background: #12151e;
  border: 1px solid #ffffff1c;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f5f7fb;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.exam-comment-field input:focus,
.exam-comment-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.exam-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.exam-comment-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.exam-comment-notice.success {
  background: #94ba7b18;
  border: 1px solid #94ba7b45;
  color: #b8df9e;
}
.exam-comment-notice.error {
  background: #df18441a;
  border: 1px solid #df184455;
  color: #ff9bb0;
}
