/* BornaCode module pages: tabs, question bank, terms, conclusion, boxed quiz. */
.podman-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
  position: sticky;
  top: 86px;
  z-index: 50;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.podman-tab {
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.podman-tab:hover { background: rgba(40, 123, 215, 0.08); color: var(--text); }

.podman-tab.is-active {
  background: linear-gradient(120deg, #287bd7, #48a2ec);
  color: #fff;
  box-shadow: 0 6px 16px rgba(40, 123, 215, 0.25);
}

.podman-panel { margin: 0 0 22px; }
.podman-panel[hidden] { display: none; }

/* Q&A list */
.qa-group { margin-bottom: 26px; }
.qa-group h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  color: #2476c3;
}
.qa-group-note { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

.qa-list { display: grid; gap: 10px; }

.qa-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.qa-item summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.qa-item summary::-webkit-details-marker { display: none; }

.qa-item summary::after {
  content: "+";
  margin-inline-start: auto;
  flex: none;
  color: #287bd7;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.qa-item[open] summary::after { transform: rotate(45deg); }

.qa-num {
  flex: none;
  min-width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(40, 123, 215, 0.11);
  color: #2476c3;
  font-size: 13px;
  font-weight: 900;
  align-self: center;
}

.qa-a {
  margin: 0;
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  border-top: 1px dashed var(--border);
}

/* conclusion */
.conclusion-list { display: grid; gap: 10px; padding-inline-start: 20px; line-height: 2; }
.conclusion-list strong { color: #2476c3; }

/* key-points (summary) */
.key-points { display: grid; gap: 12px; padding-inline-start: 20px; }
.key-points p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* boxed step-by-step quiz */
.exam-box {
  max-width: 640px;
  margin: 18px auto 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.exam-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(40, 123, 215, 0.06);
  font-weight: 800;
  font-size: 14px;
}

.exam-progress {
  height: 6px;
  background: rgba(40, 123, 215, 0.12);
}

.exam-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #287bd7, #29b8b0);
  transition: width 0.3s ease;
}

.exam-body { padding: 22px 20px; }

.exam-q-text {
  font-weight: 800;
  font-size: 16px;
  line-height: 2;
  margin: 0 0 16px;
}

.exam-opts { display: grid; gap: 10px; }

.exam-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: right;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.exam-opt:hover { border-color: #287bd7; background: #edf7ff; transform: translateY(-1px); }

.exam-opt .opt-letter {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.exam-result { text-align: center; padding: 30px 20px; }

.exam-verdict {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.exam-verdict.pass { background: #ddf7ec; color: #18754f; border: 1px solid #2f9e76; }
.exam-verdict.fail { background: #fdeaea; color: #8f3535; border: 1px solid #d16060; }

.exam-score { font-size: 16px; font-weight: 800; margin: 6px 0 16px; }

.exam-review { text-align: right; margin-top: 16px; display: grid; gap: 8px; }

.exam-review-item {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.6);
}

.exam-review-item.ok { border-color: #2f9e76; }
.exam-review-item.no { border-color: #d16060; }
.exam-review-item b { display: block; margin-bottom: 4px; }

@media (max-width: 650px) {
  .podman-tabs { position: static; }
  .podman-tab { flex: 1 1 45%; text-align: center; }
}
