/* ==========================================================================
   Questions templates — Malta Assignment Help overrides
   Loaded after questions-archive / questions-single / questions-university.
   Brand: red #C8102E → #F2683C (grad-hot), ink #0F1B2D / #1B2C46,
   gold #C9952A, warm brown/cream hero (#FBF4EC → #E6CBAB), terracotta #A8431A.
   Fonts: Plus Jakarta Sans (headings) + Inter (body).
   ========================================================================== */

.mahq-page { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important; color: #4B5768; }
.mahq-page h1, .mahq-page h2, .mahq-page h3, .mahq-page h4, .mahq-page h5,
.mahq-page .qa-feat-body h2, .mahq-page .qa-card-body h4, .mahq-page .sa-card-body h4 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: -.015em;
}
.mahq-page p { margin: 0; }
.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; }

/* ── Warm cream hero (same as .hero-warm-bg on the rest of the site) ───── */
.qa26 .qa-top,
.sa26 .sa-top,
#sah-rd .sah-hero {
  background:
    radial-gradient(820px 420px at 85% -10%, rgba(216,160,104,.42), transparent 62%),
    radial-gradient(680px 400px at -5% 105%, rgba(196,138,86,.28), transparent 60%),
    linear-gradient(160deg, #FBF4EC 0%, #F1DFCB 48%, #E6CBAB 100%) !important;
  color: #1F1308 !important;
  border-bottom: 1px solid rgba(58,36,18,.14);
}
.qa26 .qa-top::before, .qa26 .qa-top::after,
.sa26 .sa-top::before, .sa26 .sa-top::after { background: rgba(255,255,255,.28) !important; }
.qa26 .qa-top h1, .sa26 .sa-top h1, #sah-rd .sah-hero h1, #sah-rd h1.sah-hero-h { color: #1F1308 !important; }
.qa26 .qa-top h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important; font-weight: 800 !important; }
.sa26 .sa-top h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem) !important; font-weight: 800 !important; }
#sah-rd h1.sah-hero-h { font-size: clamp(1.55rem, 3vw, 2.4rem) !important; font-weight: 800 !important; }
.sa26 .sa-top h1 span {
  background: linear-gradient(90deg, #A8431A 0%, #C2681F 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
}
.qa26 .qa-top-sub, .sa26 .sa-top-sub { color: #4A3524 !important; }
.sa26 .sa-top-count { color: #4A3524 !important; }
.sa26 .sa-top-count b { color: #C8102E !important; }
.sa26 .sa-cat-badge {
  background: #fff !important; color: #3A2412 !important; border: 1px solid rgba(58,36,18,.20) !important;
  box-shadow: 0 2px 10px rgba(58,36,18,.06);
}
/* search boxes on the light hero */
.qa26 .qa-search-box, .sa26 .sa-search-box { border: 1px solid rgba(58,36,18,.22) !important; box-shadow: 0 6px 20px rgba(58,36,18,.10) !important; }
.qa26 .qa-uni-select { border: 1px solid rgba(58,36,18,.22) !important; box-shadow: 0 6px 20px rgba(58,36,18,.08) !important; }
.qa26 .qa-search-box button, .sa26 .sa-search-box button {
  background: linear-gradient(135deg, #C8102E 0%, #E23A55 55%, #FF7A5C 100%) !important; color: #fff !important;
}
.qa26 .qa-search-box i, .sa26 .sa-search-box i { color: #8A6B52 !important; }
/* single hero: crumbs + pills on cream */
#sah-rd .sah-crumbs a {
  background: #fff !important; color: #3A2412 !important; border: 1px solid rgba(58,36,18,.18) !important;
}
#sah-rd .sah-crumbs a:hover { color: #A8431A !important; border-color: #A8431A !important; }
#sah-rd .sah-pill { background: #fff !important; color: #3A2412 !important; border: 1px solid rgba(58,36,18,.18) !important; }
#sah-rd .sah-pill .mahq-ic { color: #C8102E; }
#sah-rd .sah-search-card { border: 1px solid rgba(58,36,18,.16) !important; box-shadow: 0 10px 30px rgba(58,36,18,.12) !important; }
#sah-rd .sah-search-group button { background: linear-gradient(135deg, #C8102E 0%, #E23A55 55%, #FF7A5C 100%) !important; }

/* ── Breadcrumb bar + chips ─────────────────────────────────────────────── */
.qa26 .qa-bc, .sa26 .sa-bc { background: #FAF3EB !important; }
.qa26 .qa-bc-in a:hover, .sa26 .sa-bc-in a:hover { color: #A8431A !important; }
.qa26 .qa-chip.active, .sa26 .sa-chip.active { background: #0F1B2D !important; border-color: #0F1B2D !important; color: #fff !important; }
.qa26 .qa-chip:hover, .sa26 .sa-chip:hover { border-color: #C8102E !important; color: #C8102E !important; }
.sa26 .sa-chip.active .sa-chip-count { background: #C9952A !important; color: #fff !important; }

/* ── Dark bands: Malta deep gradient (ink → red) ─────────────────────────── */
.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(125deg, #0F1B2D 0%, #1B2C46 48%, #8C0C22 130%) !important;
}
.qa26 .qa-ica-a, #sah-rd .sah-incta.sah-incta-red {
  background: linear-gradient(135deg, #C8102E 0%, #E23A55 55%, #FF7A5C 100%) !important;
}
.qa26 .qa-cta-strip span, .sa26 .sa-cta-strip span { color: #FFC062 !important; }
#sah-rd .sah-toc-head { background: linear-gradient(135deg, #1F1308, #3B2513) !important; }
#sah-rd .sah-toc-head .mahq-ic { color: #FFC062; }
#sah-rd .sah-mob-toc-btn { background: linear-gradient(135deg, #1F1308, #3B2513) !important; color: #fff !important; }

/* Primary buttons: site red gradient */
#sah-rd .sah-btn { background: linear-gradient(135deg, #C8102E 0%, #E23A55 55%, #FF7A5C 100%) !important; box-shadow: 0 10px 26px rgba(200,16,46,.24) !important; }
#sah-rd .sah-btn:hover { filter: brightness(1.05); }
#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: #C8102E !important; }
#sah-rd .sah-article .sah-incta .sah-btn { color: #fff !important; }
#sah-rd .sah-article .sah-incta.sah-incta-red .sah-btn { color: #C8102E !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; }

/* ── Headings scale inside cards (theme sets global h1-h4 sizes) ────────── */
.qa26 .qa-sec-head h3 { font-size: 1.25rem !important; margin: 0 !important; }
.qa26 .qa-card-body h4, .sa26 .sa-card-body h4 { font-size: 15px !important; line-height: 1.4 !important; margin: 0 0 6px !important; color: #0F1B2D !important; }
.qa26 .qa-feat-body h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important; margin: 0 0 10px !important; }
.qa26 .qa-ica-body h4 { color: #fff !important; margin: 0 0 4px !important; }
.sa26 .sa-empty h3 { font-size: 1.2rem !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; }
#sah-rd .sah-services h2 { color: #fff !important; font-size: 1.5rem !important; }
#sah-rd .sah-related-heading span { font-size: 1.5rem; }

/* links: theme sets a{color:#C8102E}; keep card text colours */
.qa26 a.qa-featured, .sa26 a.sa-card, #sah-rd a.sah-rel-card { color: inherit; }
.qa26 .qa-ica-btn, .qa26 .qa-cta-strip a, .sa26 .sa-cta-strip a, .qa26 .qa-feats-cta a, .sa26 .sa-feats-cta a { text-decoration: none !important; }
.qa26 .qa-feats-cta a, .sa26 .sa-feats-cta a { color: #C8102E !important; }

/* gold check icons */
.qa26 .qa-feat-item .mahq-ic, .sa26 .sa-feat-item .mahq-ic, .qa26 .qa-ica-ticks .mahq-ic { color: #FFC062; }

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

/* ── Single: order form (theme template-part) in the sidebar ────────────── */
#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 .sah-sidebar .mahq-form-wrap h2 { color: #fff !important; font-size: 1.15rem !important; border-bottom: 0 !important; padding: 0 !important; margin: 0 0 4px !important; }
#sah-rd .mahq-form-wrap label { display: block; }
#sah-rd .mahq-form-wrap ul, #sah-rd .mahq-form-wrap ol { list-style: none !important; }

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

/* ── Single: services 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; }

/* ── Single: layout grid (theme has no Bootstrap container/row/col) ────── */
#sah-rd .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
#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); gap: 28px; }
}
#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 h4 span { background: #0F1B2D !important; color: #FFC062 !important; letter-spacing: .04em; }

/* ── Sticky bar ─────────────────────────────────────────────────────────── */
#sah-rd .mahq-sticky-ic { width: 36px !important; height: 36px !important; border-radius: 50% !important; background: #C8102E !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; }

/* breathing room before the features band */
.sa26 .sa-body, .qa26 .qa-body { padding-bottom: 48px !important; }

/* Tailwind preflight resets buttons/selects — restore pointer + fonts */
.mahq-page button, .mahq-page select, .mahq-page input { font-family: inherit; }
.mahq-page button { cursor: pointer; }

/* ── Search results page ─────────────────────────────────────────────── */
.mahq-search mark { background: #FDF3DC; 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 #E5EAF1; background: #fff; color: #0F1B2D; font-weight: 700; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.mahq-search .mahq-pager a.page-numbers:hover { border-color: #C8102E; color: #C8102E; }
.mahq-search .mahq-pager .page-numbers.current { background: #0F1B2D; border-color: #0F1B2D; 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 #E5EAF1; border-radius: 16px; 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: 700; font-size: 14px;
  background: linear-gradient(135deg, #C8102E 0%, #E23A55 55%, #FF7A5C 100%); color: #fff !important; border: 2px solid transparent;
}
.mahq-search .mahq-empty-actions a.mahq-ghost { background: #fff; color: #0F1B2D !important; border-color: #0F1B2D; }
.mahq-search .mahq-empty-actions a.mahq-ghost:hover { background: #0F1B2D; 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: #0F1B2D; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #C8102E; }
.mahq-search .mahq-uni-chips { display: flex; flex-wrap: wrap; gap: 10px; }
