/* Ideal Career Test™ (classic) page — layout repair, /know-your-ideal-career and /assessment/ideal only.
   Same treatment as the Stream Selector page (stream.css, 14 Nov 2026), her words: "Do similar changes to Ideal Career Test".
   Layout only: no words, links, prices, coupon or sign-in touched. Added by the front server (nginx sub_filter). */

html, body { overflow-x: hidden; }

/* 1. The faded notebook photo, fixed behind the whole page → a clean soft wash. */
html body #idealSection,
html body .background_image_ideal { background: linear-gradient(135deg, #e6f7fa 0%, #ffffff 55%, #fff3ee 100%) !important; }

/* 2. "Why should you take…" band. */
.ideal_block .ideal_block_heading { width: 100% !important; text-align: center !important; }
.ideal_block .ideal_block_heading h1 { font-size: 1.6rem !important; line-height: 1.3 !important; text-align: center !important; }
.ideal_block .ideal_block_heading span { font-size: 3rem !important; line-height: 1.15 !important; }
.ideal_block .ideal_block_heading p { text-align: left; max-width: 900px; margin-left: auto; margin-right: auto; }
.ideal_block > .d-flex { justify-content: center !important; gap: 1.5em; flex-wrap: wrap; }
.ideal_block .blocks { margin: 0 !important; }

/* 3. Laptops and wide screens: the picture column was absolutely placed and ran into the dark band; title in a
      tinted box with "?" alone on a line. Hold the hero to 1240px, picture beside the text, text left-aligned. */
@media (min-width: 992px) {
  #reorder_ideal { display: flex !important; max-width: 1240px; margin: 0 auto !important; align-items: center !important; gap: 2.5em; }
  #reorder_ideal > div:first-child { flex: 1 1 58%; width: auto; float: none; background: none !important; }
  #reorder_ideal > div:last-child { position: relative !important; bottom: auto !important; top: auto !important; flex: 0 0 400px; width: 400px; max-width: 400px; float: none; }
  #reorder_ideal > div:last-child img { max-width: 100%; height: auto; }
  #main_s1_heading { background: none !important; padding: 0 !important; margin: 0 0 1em !important; text-align: left !important; }
  #main_s1_heading h1 { text-align: left !important; font-size: 30px !important; line-height: 1.2 !important; margin: 0 0 .25em !important; }
  #main_s1_heading .main-s1-sub-heading { display: block; font-size: 56px !important; line-height: 1.05 !important; white-space: nowrap; }
  #main_s1_heading h1 + h1 { font-size: 24px !important; margin-top: .5em !important; text-transform: capitalize; }
  #reorder_ideal > div:first-child p.more { margin-left: 0 !important; }
  #reorder_ideal .form_coupon > div { justify-content: flex-start !important; }
  #reorder_ideal .form_coupon > div:not(:first-child) { text-align: left !important; }
  #reorder_ideal .fullReport_link { max-width: 560px; margin-left: 0 !important; }
  .background_image_ideal { padding-bottom: 0 !important; }
  .ideal_block { margin-top: 3em !important; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 767px) {
  .row { margin-left: 0 !important; margin-right: 0 !important; }
  .main_container { padding: 0 12px !important; }
  .mobile_heading_s1 { padding: 1em .75em !important; }
  .ideal_block { padding: 3.5em 16px 2em !important; margin-left: -12px !important; margin-right: -12px !important; width: auto !important; }
  .ideal_block .ideal_block_heading { padding: 0 !important; margin-top: 2em !important; }
  .ideal_block .ideal_block_heading h1 { font-size: 1.15rem !important; }
  .ideal_block .ideal_block_heading span { font-size: 2rem !important; }
  .ideal_block .blocks { flex-basis: 100%; }
  h1, h3 { overflow-wrap: break-word; }
  /* Round search button sat over the headings near the top; move it down above the other two buttons. */
  #bi-search { top: auto !important; bottom: 215px !important; }
}
