body.topics-listing-page.stanag-placement-page {
  background: #f8f9fa;
  color: #2c3e50;
  font-family: 'Open Sans', sans-serif;
}

.stanag-test-wrap {
  padding-top: 24px;
  padding-bottom: 40px;
}

.test-card {
  border-left: 6px solid #4be3b9;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 0;
  background: #fff;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.test-card .card-title {
  background: linear-gradient(90deg, #4be3b9 0%, #21c1e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.95rem;
}

.test-lead {
  color: #4f6274;
  line-height: 1.8;
  font-size: 1.08rem;
}

.test-info-card,
.stanag-listening-box,
.stanag-listening-tip,
.stanag-result-card,
.stanag-empty,
.stanag-result-hero,
.stanag-score-summary {
  background: #ffffff;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stanag-intro-shell {
  max-width: 760px;
  margin: 0 auto;
}

.test-info-grid {
  margin-top: 4px;
}

.test-info-card {
  padding: 16px;
  height: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.test-info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4be3b9 0%, #21c1e7 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(33, 193, 231, 0.18);
}

.test-info-copy {
  min-width: 0;
}

.test-info-card strong {
  display: block;
  color: #163f5d;
  font-size: 1rem;
  margin-bottom: 4px;
}

.test-info-card span {
  display: block;
  color: #28506d;
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.test-info-card small {
  display: block;
  color: #60778c;
  line-height: 1.55;
  font-size: 0.88rem;
}

.test-side-stack,
.stanag-next-steps,
.stanag-result-grid {
  display: grid;
  gap: 12px;
}

.stanag-next-step {
  padding: 14px 16px;
}

.stanag-next-step strong {
  display: block;
  color: #163f5d;
  margin-bottom: 4px;
}

.stanag-next-step span {
  color: #597086;
  line-height: 1.58;
}

.section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stanag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef8fd;
  border: 1px solid #cfe6f0;
  color: #1d5d84;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stanag-pill:hover {
  background: #dff4fb;
  color: #0f4567;
  transform: translateY(-1px);
}

.stanag-section {
  margin-top: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stanag-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.stanag-section-head h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #123f61;
  margin: 0 0 6px;
}

.stanag-section-head p {
  margin: 0;
  color: #557186;
  line-height: 1.7;
}

.stanag-mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef8fd;
  color: #1d5d84;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid #cfe6f0;
  white-space: nowrap;
}

.stanag-level-stack {
  display: grid;
  gap: 20px;
}

.stanag-level-block {
  display: grid;
  gap: 14px;
}

.stanag-level-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef8fd;
  color: #1d5d84;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #cfe6f0;
}

.stanag-question-grid {
  display: grid;
  gap: 18px;
}

.stanag-question-card {
  background: #ffffff;
  border-left: 4px solid #4be3b9;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stanag-question-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stanag-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stanag-question-number {
  color: #21c1e7;
  font-weight: 700;
  font-size: 0.98rem;
}

.stanag-question-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef8fd;
  border: 1px solid #cfe6f0;
  color: #1d5d84;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.stanag-question-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #163f5d;
  font-weight: 700;
  line-height: 1.45;
}

.stanag-context {
  margin: 0 0 12px;
  color: #526c82;
  line-height: 1.75;
}

.stanag-reading-text {
  background: #f8fbfd;
  border: 1px solid #d8e7ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #4d6579;
  line-height: 1.75;
}

.stanag-options {
  display: grid;
  gap: 8px;
}

.stanag-option {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px 12px;
  display: block;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.stanag-option:hover {
  background: #e9f8f6;
  border-color: #4be3b9;
}

.stanag-option input[type='radio'] {
  margin-right: 0.6rem;
  transform: scale(1.05);
}

.stanag-option span {
  display: inline-block;
  vertical-align: top;
  line-height: 1.6;
}

.stanag-question-card.is-correct {
  border-left-color: #4be3b9;
  background: #f1fcfa;
}

.stanag-question-card.is-wrong {
  border-left-color: #ff6b6b;
  background: #fff3f3;
}

.stanag-option.correct-answer {
  background: #e9fcef;
  border-color: #4be3b9;
}

.stanag-option.user-wrong {
  background: #fff1f1;
  border-color: #ff6b6b;
}

.stanag-listening-box {
  padding: 18px;
  margin-bottom: 18px;
}

.stanag-listening-box audio {
  width: 100%;
  margin: 14px 0 12px;
}

.stanag-listening-tips {
  display: grid;
  gap: 10px;
}

.stanag-listening-tip {
  padding: 12px 14px;
}

.stanag-listening-tip strong {
  color: #123f61;
}

.stanag-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

.custom-btn,
.stanag-btn {
  background: #4be3b9;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-btn:hover,
.stanag-btn:hover {
  background: #3aa2a2;
  color: #fff;
}

.custom-btn-blue,
.stanag-btn-secondary {
  background: #21c1e7;
  color: #fff;
  border: none;
}

.custom-btn-blue:hover,
.stanag-btn-secondary:hover {
  background: #1aa5c7;
  color: #fff;
}

.stanag-empty,
.stanag-result-card,
.stanag-result-hero {
  padding: 18px;
}

.stanag-result-hero {
  border-left: 4px solid #4be3b9;
}

.stanag-result-eyebrow {
  color: #1d5d84;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.stanag-result-hero h3,
.stanag-result-card h4 {
  color: #123f61;
  margin-bottom: 10px;
  font-weight: 700;
}

.stanag-result-hero p,
.stanag-result-card p,
.stanag-result-note,
.stanag-footer-note {
  color: #557186;
  line-height: 1.7;
}

.stanag-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stanag-summary-item {
  background: #f8fbfd;
  border: 1px solid #d8e7ef;
  border-radius: 10px;
  padding: 12px 14px;
}

.stanag-summary-item strong {
  display: block;
  color: #163f5d;
  margin-bottom: 4px;
}

.stanag-summary-item span {
  color: #597086;
  line-height: 1.5;
  font-size: 0.92rem;
}

.stanag-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.stanag-result-subtitle {
  color: #1d5d84;
  font-weight: 700;
  margin-bottom: 6px;
}

.stanag-result-count {
  color: #597086;
  margin-bottom: 10px;
}

.stanag-band-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.stanag-chip {
  display: inline-flex;
  align-items: center;
  background: #e9fcef;
  color: #1a6d4f;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.stanag-chip.warn {
  background: #fff6dd;
  color: #9b6a12;
}

.stanag-chip.danger {
  background: #fff1f1;
  color: #b14a4a;
}

.stanag-guidance-card {
  margin-top: 16px;
}

.stanag-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stanag-course-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid #d8e7ef;
  border-radius: 14px;
  padding: 16px;
  color: #163f5d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stanag-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #8fd8e8;
  color: #163f5d;
}

.stanag-course-card.is-recommended {
  border-color: #4be3b9;
  box-shadow: 0 10px 24px rgba(75, 227, 185, 0.12);
}

.stanag-course-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef8fd;
  color: #1d5d84;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stanag-course-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.stanag-course-card small {
  display: block;
  color: #5d7488;
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .stanag-section-head {
    flex-direction: column;
  }

  .stanag-result-grid,
  .stanag-summary-grid,
  .stanag-course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .stanag-test-wrap {
    padding-top: 8px;
  }

  .test-card {
    padding: 20px !important;
  }

  .test-card .card-title {
    font-size: 1.7rem;
  }

  .stanag-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-btn,
  .stanag-btn {
    width: 100%;
  }

  .test-info-card {
    padding: 14px;
  }
}

.stanag-course-btn {
  margin-top: 14px;
  align-self: center;
}
