/* Blackmon Tutoring — Blog article pages */

.article-page {
  --navy: #0b1f3f;
  --navy-2: #0d2243;
  --blue: #5babe0;
  --blue-2: #3e8dc4;
  --ink: #222222;
  --muted: #5d7089;
  --muted-2: #54647e;
  --border: #dfe7f0;
  --bg-light: #f4f8fc;
  --bg-input: #fbfcfe;
  --font-heading: var(--font-merriweather), Georgia, serif;
  --font-body: var(--font-inter), Arial, sans-serif;
  color: var(--ink);
  font-family: var(--font-body);
}

.article-page * { box-sizing: border-box; }

.article-page .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-page .inner--wide {
  max-width: 1120px;
}

.article-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 0.2px solid var(--blue-2);
  background: rgba(62, 141, 196, 0.04);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 20px;
}

.article-page .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- HEADER ---------- */

.article-hero {
  background: #fff;
  padding: 28px 0 0;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--blue-2); text-decoration: underline; }

.article-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 0 0 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-meta .dot-sep { opacity: 0.5; }

.article-hero-photo {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- BODY / PROSE ---------- */

.article-body {
  padding-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.3;
  color: var(--navy);
  margin: 44px 0 16px;
  letter-spacing: -0.2px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy);
  margin: 30px 0 12px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-body li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-body a {
  color: var(--blue-2);
  text-decoration: underline;
  text-decoration-color: rgba(62, 141, 196, 0.4);
}

.article-body a:hover { text-decoration-color: var(--blue-2); }

.article-body strong { color: var(--navy); }

/* Direct-answer / definition callout */
.article-answer {
  background: var(--bg-light);
  border-left: 4px solid var(--blue-2);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 0 0 28px;
}

.article-answer p {
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0;
  color: var(--navy-2);
}

.article-answer p strong { color: var(--navy); }

/* Stat row */
.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 10px 0 32px;
}

/* Stat row */
.article-stats > * {
  min-width: 0;
}

.article-stat {
  background: var(--navy);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.article-stat .stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  margin-bottom: 4px;
}

.article-stat .stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* Data table (test dates, score ranges, percentiles, etc.) */
.article-table-wrap {
  overflow-x: auto;
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 420px;
}

.article-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}

.article-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.article-table tr:nth-child(even) td { background: var(--bg-light); }

/* Key takeaways box */
.article-takeaways {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 32px;
  box-shadow: 0 10px 30px -20px rgba(11, 31, 63, 0.2);
}

.article-takeaways h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue-2);
  margin: 0 0 14px;
}

.article-takeaways ul { margin: 0; padding-left: 20px; }
.article-takeaways li { font-size: 15.5px; margin-bottom: 8px; }
.article-takeaways li:last-child { margin-bottom: 0; }

/* Inline CTA band */
.article-cta {
  background: var(--navy);
  border-radius: 20px;
  padding: 32px 36px;
  margin: 36px 0 40px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0 0 10px;
}

.article-cta p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #e8f1f8; }

.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.article-byline strong { color: var(--navy); }

/* ---------- FAQ ---------- */

.article-faq {
  background: var(--bg-light);
  padding: 56px 0;
  margin-top: 20px;
}

.article-faq h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 24px;
}

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }

.faq-item .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.faq-item .faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item .faq-toggle::before,
.faq-item .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #3e8dc4;
  transform: translate(-50%, -50%);
}

.faq-item .faq-toggle::before { width: 16px; height: 2px; }
.faq-item .faq-toggle::after { width: 2px; height: 16px; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

.faq-item .faq-answer {
  font-size: 15.5px;
  line-height: 1.55;
  color: #222;
  margin-top: 12px;
  max-width: 90%;
}

.faq-item:not(.is-open) .faq-answer { display: none; }

/* ---------- RELATED ---------- */

.article-related {
  padding: 56px 0;
}

.article-related h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-grid > * {
  min-width: 0;
}

.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(11, 31, 63, 0.3);
  border-color: var(--blue-2);
}

.related-card .related-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.related-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .article-stats { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 32px; }
  .article-hero-photo { height: 240px; }
  .article-cta { padding: 26px 22px; }
}
