/**
 * BNC new-pages styling.
 * Library only loads on nodes whose body uses these signature classes
 * (see adhd_preprocess_node), so no wrapper element is required.
 *
 * .btn-primary / .btn-secondary are deliberately scoped under .cta-box to
 * avoid clashing with Bootstrap's button colours.
 */

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }
.stat-card { background: #f0f6fc; border: 1px solid #cde0f5; border-radius: 8px; padding: 18px; text-align: center; }
.stat-num { font-size: 28px; font-weight: bold; color: #1a3a5c; line-height: 1; }
.stat-label { font-size: 12px; color: #555; margin-top: 5px; line-height: 1.4; }

/* Symptom / topic cards */
.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
@media (max-width: 600px) { .symptom-grid { grid-template-columns: 1fr; } }
.symptom-card { background: #f8fbff; border: 1px solid #cde0f5; border-radius: 8px; padding: 16px; }
.symptom-card h4 { color: #1a3a5c; font-size: 14px; margin: 0 0 8px; }
.symptom-card ul { margin: 0 0 0 16px; padding: 0; }
.symptom-card ul li { font-size: 13px; color: #444; margin-bottom: 4px; }

/* Numbered process steps */
.steps { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.step-box { display: flex; gap: 16px; align-items: flex-start; background: #f8fbff; border: 1px solid #cde0f5; border-radius: 8px; padding: 18px; }
.step-num {
  min-width: 40px; height: 40px;
  border-radius: 50%;
  background: #1a3a5c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 18px;
  flex-shrink: 0;
}
.step-content h4 { margin: 0 0 5px; color: #1a3a5c; font-size: 15px; }
.step-content p { margin: 0; font-size: 14px; color: #444; }

/* Coloured callouts */
.info-box { background: #eaf4fb; border-left: 4px solid #1a6ea8; padding: 16px 18px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.info-box p { margin: 0; color: #1a3a5c; font-size: 14px; }
.warning-box { background: #fff8e6; border-left: 4px solid #e8a020; padding: 16px 18px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.warning-box p { margin: 0; color: #6b4c00; font-size: 14px; }
.success-box { background: #eaf7ee; border-left: 4px solid #2e8b57; padding: 16px 18px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.success-box p { margin: 0; color: #1a5c38; font-size: 14px; }

/* Tag pill */
.tag-pill {
  display: inline-block;
  background: rgba(232,160,32,.18);
  border: 1px solid rgba(232,160,32,.6);
  color: #8a5a00;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* FAQ accordion (JS adds .open on click — see js/bnc-newpages.js) */
.faq-section { margin: 24px 0; }
.faq-item {
  border: 1px solid #dde8f5;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  background: #f0f6fc;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  color: #1a3a5c;
  user-select: none;
}
.faq-question:hover { background: #ddeefa; }
.faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: #1a6ea8;
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 10px;
}
.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 14px 18px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* Call to action — buttons scoped here to beat Bootstrap's .btn-primary */
.cta-box {
  background: linear-gradient(135deg, #1a3a5c, #1a6ea8);
  color: #fff;
  border-radius: 10px;
  padding: 28px;
  margin: 28px 0;
  text-align: center;
}
.cta-box h3 { font-size: 20px; margin-bottom: 10px; color: #fff; padding-bottom: 0; border-bottom: 0; }
.cta-box p { font-size: 14px; opacity: .95; margin-bottom: 18px; color: #fff; }
.cta-box .btn-primary {
  display: inline-block;
  background: #e8a020;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border: 0;
}
.cta-box .btn-primary:hover { background: #c8880f; color: #fff; text-decoration: none; }
.cta-box .btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,.6);
  text-decoration: none;
  margin-left: 10px;
}
.cta-box .btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.compare-table th { background: #1a3a5c; color: #fff; padding: 12px 14px; text-align: left; }
.compare-table td { padding: 11px 14px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.compare-table tr:nth-child(even) td { background: #f8fbff; }
.compare-table td:first-child { font-weight: bold; color: #1a3a5c; width: 35%; }
.tick { color: #2e8b57; font-weight: bold; }
.cross { color: #c0392b; font-weight: bold; }

/* Author / page-info block */
.author-block {
  background: #f5f8fc;
  border: 1px solid #dde8f5;
  border-radius: 8px;
  padding: 16px;
  margin: 28px 0;
  font-size: 13px;
  color: #555;
}
.author-block strong { color: #1a3a5c; }
