/* ==========================================================================
   Questions templates — QQI Assignments Ireland overrides
   Loaded after questions-archive / questions-single / questions-university.
   Brand: green #169B62 / #0f7a4e, dark green #133a28 / #214b35,
   orange #FF883E → #e06a20 (CTAs), offwhite #f4fdf8, border #c8e8d8.
   Fonts: Bricolage Grotesque (headings) + Nunito (body).
   ========================================================================== */

.mahq-page { font-family: "Nunito", sans-serif !important; color: #25382e; line-height: 1.65; }
.mahq-page h1, .mahq-page h2, .mahq-page h3, .mahq-page h4, .mahq-page h5 {
  font-family: "Bricolage Grotesque", 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(135deg, #133a28 0%, #214b35 55%, #1f4a33 100%) !important;
  color: #fff !important;
  border-bottom: 3px solid #FF883E;
}
.qa26 .qa-top::before, .qa26 .qa-top::after,
.sa26 .sa-top::before, .sa26 .sa-top::after { background: rgba(22,155,98,.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: #FF883E !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: #FF883E !important; }
.sa26 .sa-cat-badge { background: rgba(22,155,98,.2) !important; color: #3ddc8a !important; border: 1px solid rgba(22,155,98,.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(255,136,62,.2) !important; color: #fff !important; }
#sah-rd .sah-pill { background: rgba(22,155,98,.2) !important; color: #3ddc8a !important; border: 1px solid rgba(22,155,98,.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, #FF883E 0%, #e06a20 100%) !important; color: #fff !important;
  box-shadow: 0 6px 20px rgba(255,136,62,.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: #6d8579 !important; }
.qa26 .qa-uni-select { color: #133a28 !important; }

/* ── Breadcrumb bar + chips ─────────────────────────────────────────────── */
.qa26 .qa-bc, .sa26 .sa-bc { background: #f4fdf8 !important; border-bottom-color: #c8e8d8 !important; }
.qa26 .qa-bc-in a:hover, .sa26 .sa-bc-in a:hover { color: #169B62 !important; }
.qa26 .qa-chip.active, .sa26 .sa-chip.active { background: #133a28 !important; border-color: #133a28 !important; color: #fff !important; }
.qa26 .qa-chip:hover, .sa26 .sa-chip:hover { border-color: #169B62 !important; color: #169B62 !important; }
.sa26 .sa-chip.active .sa-chip-count { background: #FF883E !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(135deg, #133a28 0%, #214b35 55%, #1f4a33 100%) !important;
}
.qa26 .qa-ica-a, #sah-rd .sah-incta.sah-incta-red { background: linear-gradient(135deg, #169B62 0%, #0f7a4e 100%) !important; }
.qa26 .qa-cta-strip span, .sa26 .sa-cta-strip span { color: #FF883E !important; }
#sah-rd .sah-toc-head, #sah-rd .sah-mob-toc-btn { background: linear-gradient(135deg, #169B62 0%, #0f7a4e 100%) !important; color: #fff !important; }
#sah-rd .sah-toc-head .mahq-ic { color: #fff; }
.qa26 .qa-feats-cta a, .sa26 .sa-feats-cta a { color: #e06a20 !important; }
.qa26 .qa-feat-item .mahq-ic, .sa26 .sa-feat-item .mahq-ic, .qa26 .qa-ica-ticks .mahq-ic { color: #3ddc8a; }

/* 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: #0f7a4e !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: #133a28 !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: #133a28 !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: #133a28 !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: #4a6e5a; padding: 30px 0; margin: 0; }
.mahq-norel { padding: 10px 20px; color: #4a6e5a; margin: 0; }
.sa26 .mahq-term-desc {
  background: #fff; border: 1px solid #c8e8d8; border-left: 4px solid #FF883E;
  border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; color: #25382e; font-size: 15px; line-height: 1.65;
}
.sa26 .mahq-term-desc p + p { margin-top: 10px; }

/* ── Single: quote form (theme template-part, dark skin) in the sidebar ── */
#sah-rd .mahq-form-wrap {
  background: linear-gradient(135deg, #133a28 0%, #214b35 55%, #1f4a33 100%) !important;
  border: 0 !important; border-radius: 18px !important; padding: 6px !important; box-shadow: 0 6px 36px rgba(13,45,31,.18) !important;
}
#sah-rd .mahq-form-wrap::before, #sah-rd .mahq-form-wrap::after { display: none !important; }
#sah-rd .mahq-form-wrap .hero-card { opacity: 1 !important; animation: none !important; }
#sah-rd .mahq-form-wrap ul, #sah-rd .mahq-form-wrap ol { list-style: none !important; }
#sah-rd .mahq-form-wrap p, #sah-rd .mahq-form-wrap label, #sah-rd .mahq-form-wrap div { background: none; }

/* ── Single: blurred answer preview ─────────────────────────────────────── */
#sah-rd .mahq-blur { padding: 22px 26px 30px; filter: blur(4px); user-select: none; pointer-events: none; color: #25382e; font-size: 15px; line-height: 1.7; }
#sah-rd .mahq-blur h5 { font-size: 17px !important; font-weight: 700 !important; color: #133a28 !important; margin: 0 0 6px !important; }
#sah-rd .mahq-blur p { margin: 0 0 14px !important; }
#sah-rd .sah-answer-overlay h4 { color: #133a28 !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, #FF883E 0%, #e06a20 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: #fff3eb !important; border-color: #ffd9bf !important; }
#sah-rd .sah-discount h4 { font-weight: 800 !important; color: #133a28 !important; }
#sah-rd .sah-discount h4 span { background: #FF883E !important; color: #fff !important; letter-spacing: .04em; }
#sah-rd .sah-discount h4 strong { color: #e06a20 !important; }

/* ── Sticky bar ─────────────────────────────────────────────────────────── */
#sah-rd .mahq-sticky-ic { width: 36px !important; height: 36px !important; border-radius: 50% !important; background: #169B62 !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: #ffe6d3; 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 #c8e8d8; background: #fff; color: #133a28; font-weight: 800; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.mahq-search .mahq-pager a.page-numbers:hover { border-color: #169B62; color: #169B62; }
.mahq-search .mahq-pager .page-numbers.current { background: #133a28; border-color: #133a28; 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 #c8e8d8; 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, #FF883E 0%, #e06a20 100%); color: #fff !important; border: 2px solid transparent;
}
.mahq-search .mahq-empty-actions a.mahq-ghost { background: #fff; color: #133a28 !important; border-color: #133a28; }
.mahq-search .mahq-empty-actions a.mahq-ghost:hover { background: #133a28; 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: #133a28; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #FF883E; }
.mahq-search .mahq-uni-chips { display: flex; flex-wrap: wrap; gap: 10px; }

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