/* ==========================================================================
   Questions templates — TMA Assignment Help overrides
   Loaded after questions-archive / questions-single / questions-university.
   Brand (v2 design): ink #071328 / #0b1b33 / #13284a, teal #0e8f82 / #12a596,
   amber CTA #f5a524 → #e08e0b with ink text, slate borders, light #f4f7fc.
   Fonts: Plus Jakarta Sans (headings) + Inter (body).
   ========================================================================== */

.mahq-page { font-family: "Inter", system-ui, sans-serif !important; color: #334155; line-height: 1.65; }
.mahq-page h1, .mahq-page h2, .mahq-page h3, .mahq-page h4, .mahq-page h5 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif !important; letter-spacing: -.01em; line-height: 1.25;
}
.mahq-page p { margin: 0; }
.mahq-page b, .mahq-page strong { font-weight: 800; }
.mahq-ic { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-style: normal; }
.mahq-ic svg { width: 1em; height: 1em; display: block; }

/* ── Dark green hero (same as .page-hero on the rest of the site) ──────── */
.qa26 .qa-top,
.sa26 .sa-top,
#sah-rd .sah-hero {
  background: linear-gradient(155deg, #071328 0%, #0b1b33 55%, #13284a 100%) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.qa26 .qa-top::before, .qa26 .qa-top::after,
.sa26 .sa-top::before, .sa26 .sa-top::after { background: rgba(14,143,130,.13) !important; }
.qa26 .qa-top h1, .sa26 .sa-top h1, #sah-rd .sah-hero h1 { color: #fff !important; font-weight: 800 !important; }
.qa26 .qa-top h1 { font-size: clamp(1.75rem, 4vw, 2.6rem) !important; }
.sa26 .sa-top h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem) !important; }
#sah-rd h1.sah-hero-h { font-size: clamp(1.55rem, 3.4vw, 2.4rem) !important; }
.sa26 .sa-top h1 span { color: #0e8f82 !important; }
.qa26 .qa-top-sub, .sa26 .sa-top-sub { color: rgba(255,255,255,.8) !important; }
.sa26 .sa-top-count { color: rgba(255,255,255,.75) !important; }
.sa26 .sa-top-count b { color: #0e8f82 !important; }
.sa26 .sa-cat-badge { background: rgba(14,143,130,.2) !important; color: #5cc8bb !important; border: 1px solid rgba(14,143,130,.35) !important; }
#sah-rd .sah-crumbs a { background: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.85) !important; }
#sah-rd .sah-crumbs a:hover { background: rgba(14,143,130,.2) !important; color: #fff !important; }
#sah-rd .sah-pill { background: rgba(14,143,130,.2) !important; color: #5cc8bb !important; border: 1px solid rgba(14,143,130,.35) !important; }

/* orange CTAs, like .btn-primary across the site */
.qa26 .qa-search-box button, .sa26 .sa-search-box button,
#sah-rd .sah-search-group button,
.qa26 .qa-cta-strip a, .sa26 .sa-cta-strip a,
.qa26 .qa-ica-b .qa-ica-btn,
#sah-rd .sah-btn,
#sah-rd .sah-discount .order-btn {
  background: linear-gradient(135deg, #f5a524 0%, #e08e0b 100%) !important; color: #071328 !important;
  box-shadow: 0 6px 20px rgba(14,143,130,.32) !important;
}
#sah-rd .sah-btn:hover, .qa26 .qa-cta-strip a:hover, .sa26 .sa-cta-strip a:hover { filter: brightness(1.05); }
.qa26 .qa-search-box i, .sa26 .sa-search-box i { color: #94a3b8 !important; }
.qa26 .qa-uni-select { color: #0b1b33 !important; }

/* ── Breadcrumb bar + chips ─────────────────────────────────────────────── */
.qa26 .qa-bc, .sa26 .sa-bc { background: #f4f7fc !important; border-bottom-color: #e2e8f0 !important; }
.qa26 .qa-bc-in a:hover, .sa26 .sa-bc-in a:hover { color: #0e8f82 !important; }
.qa26 .qa-chip.active, .sa26 .sa-chip.active { background: #0b1b33 !important; border-color: #0b1b33 !important; color: #fff !important; }
.qa26 .qa-chip:hover, .sa26 .sa-chip:hover { border-color: #0e8f82 !important; color: #0e8f82 !important; }
.sa26 .sa-chip.active .sa-chip-count { background: #0e8f82 !important; color: #fff !important; }

/* ── Dark bands: site dark green ────────────────────────────────────────── */
.qa26 .qa-feats-band, .sa26 .sa-feats-band,
.qa26 .qa-cta-strip, .sa26 .sa-cta-strip,
.qa26 .qa-ica-b,
#sah-rd .sah-side-cta, #sah-rd .sah-incta, #sah-rd .sah-services {
  background: linear-gradient(155deg, #071328 0%, #0b1b33 55%, #13284a 100%) !important;
}
.qa26 .qa-ica-a, #sah-rd .sah-incta.sah-incta-red { background: linear-gradient(135deg, #f5a524 0%, #e08e0b 100%) !important; }
.qa26 .qa-cta-strip span, .sa26 .sa-cta-strip span { color: #0e8f82 !important; }
#sah-rd .sah-toc-head, #sah-rd .sah-mob-toc-btn { background: linear-gradient(135deg, #0b1b33 0%, #13284a 100%) !important; color: #fff !important; }
#sah-rd .sah-toc-head .mahq-ic { color: #5cc8bb; }
.qa26 .qa-feats-cta a, .sa26 .sa-feats-cta a { color: #0b7268 !important; }
.qa26 .qa-feat-item .mahq-ic, .sa26 .sa-feat-item .mahq-ic, .qa26 .qa-ica-ticks .mahq-ic { color: #5cc8bb; }

/* CTA boxes inside the question content */
#sah-rd .sah-incta.sah-incta-red .sah-incta-btn,
#sah-rd .sah-article .sah-incta.sah-incta-red .sah-btn { background: #fff !important; color: #0b7268 !important; box-shadow: 0 6px 18px rgba(0,0,0,.18) !important; }
#sah-rd .sah-article .sah-incta .sah-btn { color: #fff !important; }
#sah-rd .sah-article .sah-incta { margin: 26px 0 !important; }
#sah-rd .sah-article .sah-incta h4 { font-size: 17px !important; line-height: 1.4 !important; color: #fff !important; }
#sah-rd .sah-incta-icon .mahq-ic { font-size: 22px; }

/* ── Heading scale (Tailwind preflight leaves headings unstyled) ───────── */
.qa26 .qa-sec-head h3 { font-size: 1.3rem !important; font-weight: 800 !important; margin: 0 !important; color: #0b1b33 !important; }
.qa26 .qa-card-body h4, .sa26 .sa-card-body h4 { font-size: 15px !important; font-weight: 700 !important; line-height: 1.4 !important; margin: 0 0 6px !important; color: #0b1b33 !important; }
.qa26 .qa-feat-body h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important; font-weight: 800 !important; margin: 0 0 10px !important; color: #0b1b33 !important; }
.qa26 .qa-ica-body h4 { color: #fff !important; font-weight: 800 !important; margin: 0 0 4px !important; font-size: 1.05rem !important; }
.sa26 .sa-empty h3 { font-size: 1.2rem !important; font-weight: 800 !important; }
#sah-rd .sah-side-cta h3 { font-size: 1.1rem !important; color: #fff !important; }
#sah-rd .sah-rel-card h3 { font-size: 15px !important; line-height: 1.4 !important; font-weight: 700 !important; }
#sah-rd .sah-services h2 { color: #fff !important; font-size: 1.5rem !important; font-weight: 800 !important; }
#sah-rd .sah-article h2 { font-weight: 800 !important; }
#sah-rd .sah-article h3 { font-weight: 700 !important; }
#sah-rd .sah-article ul li, #sah-rd .sah-article ol li { margin-bottom: 6px; }
#sah-rd .sah-article p { margin: 0 0 14px !important; }

/* Empty states / description */
.mahq-empty { grid-column: 1 / -1; text-align: center; color: #64748b; padding: 30px 0; margin: 0; }
.mahq-norel { padding: 10px 20px; color: #64748b; margin: 0; }
.sa26 .mahq-term-desc {
  background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #0e8f82;
  border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; color: #334155; font-size: 15px; line-height: 1.65;
}
.sa26 .mahq-term-desc p + p { margin-top: 10px; }

/* ── Single: v2 quote form (tma_v2_form) — it draws its own card ─────── */
#sah-rd .mahq-form-wrap { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
#sah-rd .mahq-form-wrap::before, #sah-rd .mahq-form-wrap::after { display: none !important; }
#sah-rd .mahq-form-wrap ul, #sah-rd .mahq-form-wrap ol { list-style: none !important; }
#sah-rd .mahq-form-wrap h2 { font-size: 1.25rem !important; border: 0 !important; padding: 0 !important; margin: 6px 0 0 !important; color: #0b1b33 !important; }
#sah-rd .mahq-form-wrap label { display: block; }

/* ── Single: blurred answer preview ─────────────────────────────────────── */
#sah-rd .mahq-blur { padding: 22px 26px 30px; filter: blur(4px); user-select: none; pointer-events: none; color: #334155; font-size: 15px; line-height: 1.7; }
#sah-rd .mahq-blur h5 { font-size: 17px !important; font-weight: 700 !important; color: #0b1b33 !important; margin: 0 0 6px !important; }
#sah-rd .mahq-blur p { margin: 0 0 14px !important; }
#sah-rd .sah-answer-overlay h4 { color: #0b1b33 !important; font-weight: 800 !important; }

/* ── Single: services grid + layout grid (no Bootstrap in this theme) ──── */
#sah-rd .sah-services .block_section .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
#sah-rd .sah-services .block_section .row:last-child { margin-bottom: 0; }
#sah-rd .sah-services .block_section [class*="col-"] { width: auto !important; max-width: none !important; padding: 0 !important; }
@media (max-width: 767px) { #sah-rd .sah-services .block_section .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; } }
#sah-rd .block_icon .mahq-ic { font-size: 18px; }
#sah-rd .block_icon { background: linear-gradient(135deg, #f5a524 0%, #e08e0b 100%) !important; }

#sah-rd .container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 20px; }
#sah-rd .sah-main .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 768px) { #sah-rd .sah-main .row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
#sah-rd .sah-main .row > [class*="col-"] { width: auto !important; max-width: none !important; padding: 0 !important; position: relative; }
@media (max-width: 767px) {
  #sah-rd .sah-main .row > .col-md-4 { order: 2; }
  #sah-rd .sah-main .row > .col-md-8 { order: 1; }
}
#sah-rd .clearfix::after { content: ""; display: table; clear: both; }
#sah-rd .img-fluid { max-width: 100%; height: auto; }

/* ── Discount band ──────────────────────────────────────────────────────── */
#sah-rd .mahq-disc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
#sah-rd .mahq-disc-btn { flex: 0 0 auto; }
@media (max-width: 767px) { #sah-rd .mahq-disc-row { flex-direction: column; text-align: center; } }
#sah-rd .sah-discount { background: #eefaf8 !important; border-color: #d7f4ef !important; }
#sah-rd .sah-discount h4 { font-weight: 800 !important; color: #0b1b33 !important; }
#sah-rd .sah-discount h4 span { background: #0e8f82 !important; color: #fff !important; letter-spacing: .04em; }
#sah-rd .sah-discount h4 strong { color: #0b7268 !important; }

/* ── Sticky bar ─────────────────────────────────────────────────────────── */
#sah-rd .mahq-sticky-ic { width: 36px !important; height: 36px !important; border-radius: 50% !important; background: #0e8f82 !important; color: #fff !important; display: grid !important; place-items: center !important; font-size: 15px !important; flex: none !important; }
#sah-rd .mahq-sticky-form { margin: 0 !important; }

/* helper classes carried over from the SG global sheet */
.mahq-search-form { display: flex !important; align-items: center !important; flex: 1 !important; min-width: 0 !important; }
.mahq-search-input { flex: 1 !important; min-width: 0 !important; }
#sah-rd .sah-meta { margin-bottom: 26px !important; }
#sah-rd .author-social-container { margin-top: 14px !important; }
#sah-rd .author-social-link .mahq-ic { font-size: 15px; }
#sah-rd .sah-author h4, #sah-rd .sah-author h5 { font-weight: 800 !important; }

.sa26 .sa-body, .qa26 .qa-body { padding-bottom: 48px !important; }
.mahq-page button, .mahq-page select, .mahq-page input { font-family: inherit; }
.mahq-page button { cursor: pointer; }

/* ── Search results page ─────────────────────────────────────────────── */
.mahq-search mark { background: #d7f4ef; color: inherit; padding: 0 2px; border-radius: 3px; }
.mahq-search .mahq-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 8px; }
.mahq-search .mahq-pager .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50px; border: 1.5px solid #e2e8f0; background: #fff; color: #0b1b33; font-weight: 800; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.mahq-search .mahq-pager a.page-numbers:hover { border-color: #0e8f82; color: #0e8f82; }
.mahq-search .mahq-pager .page-numbers.current { background: #0b1b33; border-color: #0b1b33; color: #fff; }
.mahq-search .mahq-pager .page-numbers.dots { border: 0; background: transparent; }
.mahq-search .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mahq-search .mahq-search-cta { margin-top: 30px !important; }
.mahq-search .mahq-search-empty { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 44px 24px; margin-bottom: 30px; }
.mahq-search .mahq-empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.mahq-search .mahq-empty-actions a {
  display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 50px; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, #f5a524 0%, #e08e0b 100%); color: #071328 !important; border: 2px solid transparent;
}
.mahq-search .mahq-empty-actions a.mahq-ghost { background: #fff; color: #0b1b33 !important; border-color: #0b1b33; }
.mahq-search .mahq-empty-actions a.mahq-ghost:hover { background: #0b1b33; color: #fff !important; }
.mahq-search .mahq-search-block { margin: 0 0 34px; }
.mahq-search .mahq-search-block h3 { font-size: 1.2rem !important; font-weight: 800; color: #0b1b33; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #0e8f82; }
.mahq-search .mahq-uni-chips { display: flex; flex-wrap: wrap; gap: 10px; }



/* v2 shows its own fixed order bar at the bottom on mobile — hide the
   question page's sticky bar there so the two don't stack. */
@media (max-width: 767px) { #sah-rd .sah-sticky { display: none !important; } }

/* Tailwind (v2 runtime) reads col-12 / col-6 as grid-column numbers — keep
   the ported Bootstrap-style column classes out of grid placement. */
#sah-rd [class*="col-"] { grid-column: auto !important; }
/* v2 base colours every heading ink — headings on dark panels stay white */
#sah-rd .sah-hero h1, #sah-rd .sah-side-cta h3, #sah-rd .sah-incta h4, #sah-rd .sah-services h2,
.qa26 .qa-top h1, .qa26 .qa-ica-body h4, .sa26 .sa-top h1 { color: #fff !important; }
#sah-rd .sah-services .block_content a { color: #fff !important; }
