
  /* ============================================================
     HopeQure header — self-contained. Drop into any page.
     7 journeys: Find Care · Mental Health · Medical Care ·
     Wellness · Plans & Programs · For Organisations · Resources
     ============================================================ */

  :root {
    --ink: #1B2A32;
    --ink-2: #38505b;
    --ink-soft: #6b8391;
    --line: #E4EDEA;
    --paper: #FFFFFF;
    --wash: #F5FAF8;

    --teal: #2F8F86;
    --teal-deep: #246b64;
    --teal-tint: #E8F5F2;

    --amber: #D98A2B;
    --amber-tint: #FBEFDD;

    /* pillar accents */
    --c-find: #2F8F86;
    --c-find-t: #E4F4F1;
    --c-mind: #6A6DBE;
    --c-mind-t: #ECEDF9;
    --c-med: #3B7EA6;
    --c-med-t: #E6F1F8;
    --c-well: #549E63;
    --c-well-t: #E8F5EA;
    --c-plan: #D98A2B;
    --c-plan-t: #FBEFDD;
    --c-org: #C25C7A;
    --c-org-t: #FBEAF0;
    --c-res: #8A6DB0;
    --c-res-t: #F1EBF8;

    --radius: 14px;
    --shadow: 0 20px 50px -24px rgba(16, 58, 52, .5);

   
  }

  * {
    box-sizing: border-box;
  }

  .hq-hdr,
  .hq-hdr * {
    font-family: Montserrat-SemiBold;
  }

  .hq-hdr {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .hq-hdr a {
    text-decoration: none;
    color: inherit;
  }

  .hq-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
  }

  /* ---------- utility bar ---------- */

  .hq-util {
    background: var(--teal-deep);
    color: #dff1ee;
    font-size: 12.5px;
  }

  .hq-util .hq-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 16px;
  }

  .hq-util a {
    color: #eafaf7;
    opacity: .92;
    transition: .15s;
    white-space: nowrap;
  }

  .hq-util a:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .hq-util-l,
  .hq-util-r {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .hq-util-r a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hq-util .ico {
    font-size: 14px;
  }

  .hq-util .hq-corp {
    background: rgba(255, 255, 255, .14);
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 600;
  }

  .hq-util .hq-corp:hover {
    background: rgba(255, 255, 255, .24);
    text-decoration: none;
  }

  /* ---------- main bar ---------- */

  .hq-main {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 70px;
  }

 

  .hq-logo .q {
    color: var(--amber);
  }

  .hq-logo img {
    height: 42px;
    width: auto;
    display: block;
  }

  .hq-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .hq-nav > .hq-item {
    position: relative;
  }

  .hq-nav > .hq-item > a,
  .hq-nav > .hq-item > button {
        font-family: Montserrat-SemiBold;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
    line-height: 1;
  }

  .hq-nav > .hq-item > a:hover,
  .hq-nav > .hq-item > button:hover {
    background: var(--wash);
    color: var(--teal-deep);
  }

  .hq-nav > .hq-item > button .chev {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: .2s;
    opacity: .6;
  }

  .hq-item.open > button .chev {
    transform: rotate(225deg) translateY(0);
    opacity: 1;
  }

  .hq-item.open > button {
    background: var(--wash);
    color: var(--teal-deep);
  }

  /* accent dot per pillar on the trigger */

  .hq-item > button .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .hq-i-find .dot {
    background: var(--c-find);
  }

  .hq-i-mind .dot {
    background: var(--c-mind);
  }

  .hq-i-med .dot {
    background: var(--c-med);
  }

  .hq-i-well .dot {
    background: var(--c-well);
  }

  .hq-i-plan .dot {
    background: var(--c-plan);
  }

  .hq-i-org .dot {
    background: var(--c-org);
  }

  .hq-i-res .dot {
    background: var(--c-res);
  }

  /* ---------- actions ---------- */

  .hq-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hq-search {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s;
    color: var(--ink-2);
  }

  .hq-search:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
    background: var(--wash);
  }

  .hq-login {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 10px;
    transition: .15s;
  }

  .hq-login:hover {
    background: var(--wash);
    color: var(--teal-deep);
  }

  .hq-book {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), #c17a1f);
    padding: 10px 18px;
    border-radius: 10px;
    transition: .15s;
    box-shadow: 0 6px 16px -6px rgba(193, 122, 31, .6);
    white-space: nowrap;
  }

  .hq-book:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }

  /* ---------- mega menu ---------- */

  .hq-mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s;
    z-index: 1200;
  }

  .hq-item.open .hq-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hq-mega.wide {
    width: 860px;
  }

  .hq-mega.mid {
    width: 680px;
  }

  .hq-mega.narrow {
    width: 440px;
  }

  /* keep last menus from overflowing right edge */

  .hq-i-org .hq-mega,
  .hq-i-res .hq-mega {
    left: auto;
    right: 0;
  }

  .hq-mega-grid {
    display: grid;
    gap: 16px;
  }

  .hq-mega-grid.c3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hq-mega-grid.c2 {
    grid-template-columns: 1fr 1fr;
  }

  .hq-mega-grid.c4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hq-mega-grid.c5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .hq-mega.mega-xxl {
    width: min(1240px, 95vw);
  }

  .hq-mega.mega-xl {
    width: min(1080px, 95vw);
  }

  .hq-mega .hq-mega-grid.c4 .hq-links a,
  .hq-mega .hq-mega-grid.c5 .hq-links a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .hq-mega .hq-mega-grid.c5 .hq-col-hd {
    font-size: 11px;
  }

  .hq-i-mind .hq-mega-grid.c5 > div:last-child > div + div {
    margin-top: 14px;
  }

  .hq-col-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 2px 0 10px;
  }

  .hq-col-hd .em {
    font-size: 15px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
  }

  .hq-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .hq-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: .13s;
    line-height: 1.3;
  }

  .hq-links a:hover {
    background: var(--wash);
    color: var(--teal-deep);
  }

  .hq-links a .li {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex: 0 0 auto;
  }

  .hq-viewall {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--teal-deep) !important;
    padding: 7px 9px !important;
  }

  .hq-viewall:hover {
    text-decoration: underline;
  }

  .hq-viewall::after {
    content: " →";
  }

  /* right-side "care path" card */

  .hq-card {
    background: linear-gradient(160deg, var(--teal-tint), #fff);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hq-card.mind {
    background: linear-gradient(160deg, var(--c-mind-t), #fff);
  }

  .hq-card.plan {
    background: linear-gradient(160deg, var(--c-plan-t), #fff);
  }

  .hq-card.org {
    background: linear-gradient(160deg, var(--c-org-t), #fff);
  }

  .hq-card .k {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-deep);
  }

  .hq-card.mind .k {
    color: var(--c-mind);
  }

  .hq-card.plan .k {
    color: var(--amber);
  }

  .hq-card.org .k {
    color: var(--c-org);
  }

  .hq-card h4 {
        font-family: Montserrat-Medium;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
  }

  .hq-card p {
    font-size: 12.5px;
    color: var(--ink-2);
    margin: 0;
    line-height: 1.5;
  }

  .hq-card .cta {
    margin-top: 4px;
    align-self: flex-start;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: var(--teal-deep);
    padding: 8px 14px;
    border-radius: 9px;
    transition: .15s;
  }

  .hq-card.mind .cta {
    background: var(--c-mind);
  }

  .hq-card.plan .cta {
    background: var(--amber);
  }

  .hq-card.org .cta {
    background: var(--c-org);
  }

  .hq-card .cta:hover {
    filter: brightness(1.08);
  }

  .hq-mega-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-soft);
  }

  .hq-mega-foot a {
    font-weight: 700;
    color: var(--teal-deep);
  }

  /* overlay */

  .hq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 40, 36, .28);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 1100;
  }

  .hq-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ---------- mobile ---------- */

  .hq-burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }

  .hq-burger span {
    width: 19px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .2s;
  }

  .hq-mobile {
    display: none;
  }

  @media (max-width: 1080px) {
    .hq-util {
      display: none;
    }

    .hq-nav,
    .hq-actions .hq-login {
      display: none;
    }

    .hq-burger {
      display: flex;
    }

    .hq-main {
      height: 62px;
      gap: 12px;
    }

    .hq-actions {
      gap: 6px;
    }

    /* mobile drawer */

    .hq-mobile {
      display: block;
      position: fixed;
      top: 0;
      right: 0;
      height: 100dvh;
      width: min(400px, 92vw);
      background: var(--paper);
      z-index: 1300;
      transform: translateX(100%);
      transition: .26s cubic-bezier(.4, 0, .2, 1);
      overflow-y: auto;
      box-shadow: -16px 0 40px -20px rgba(0, 0, 0, .4);
    }

    .hq-mobile.open {
      transform: translateX(0);
    }

    .hq-m-top {
      position: sticky;
      top: 0;
      background: var(--paper);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      z-index: 2;
    }

    .hq-m-top .hq-logo {
      font-size: 21px;
    }

    .hq-m-close {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      font-size: 20px;
      cursor: pointer;
      color: var(--ink);
    }

    .hq-m-body {
      padding: 10px 14px 120px;
    }

    .hq-m-acc {
      border-bottom: 1px solid var(--line);
    }

    .hq-m-acc > button {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: none;
      border: none;
      padding: 15px 6px;
        font-family: Montserrat-SemiBold;
      font-size: 15.5px;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
    }

    .hq-m-acc > button .l {
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .hq-m-acc > button .l .d {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }

    .hq-m-acc > button .plus {
      width: 22px;
      height: 22px;
      position: relative;
      flex: 0 0 auto;
    }

    .hq-m-acc > button .plus::before,
    .hq-m-acc > button .plus::after {
      content: "";
      position: absolute;
      background: var(--ink-soft);
      border-radius: 2px;
      transition: .2s;
    }

    .hq-m-acc > button .plus::before {
      top: 10px;
      left: 4px;
      width: 14px;
      height: 2px;
    }

    .hq-m-acc > button .plus::after {
      top: 4px;
      left: 10px;
      width: 2px;
      height: 14px;
    }

    .hq-m-acc.open > button .plus::after {
      transform: rotate(90deg);
      opacity: 0;
    }

    .hq-m-acc.open > button {
      color: var(--teal-deep);
    }

    .hq-m-panel {
      display: none;
      padding: 0 4px 12px;
    }

    .hq-m-acc.open .hq-m-panel {
      display: block;
    }

    .hq-m-group {
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--ink-soft);
      margin: 12px 8px 4px;
    }

    .hq-m-panel a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 9px;
      font-size: 14px;
      color: var(--ink-2);
      font-weight: 500;
    }

    .hq-m-panel a:hover,
    .hq-m-panel a:active {
      background: var(--wash);
      color: var(--teal-deep);
    }

    .hq-m-panel a .li {
      font-size: 15px;
      width: 20px;
      text-align: center;
    }

    .hq-m-panel a.va {
      font-weight: 700;
      color: var(--teal-deep);
    }

    .hq-m-simple > a {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 15px 6px;
      font-size: 15.5px;
      font-weight: 600;
      color: var(--ink);
      border-bottom: 1px solid var(--line);
    }

    .hq-m-simple > a .d {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }

    .hq-m-auth {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 18px 6px;
    }

    .hq-m-auth a {
      text-align: center;
      padding: 13px;
      border-radius: 11px;
      font-weight: 700;
      font-size: 15px;
    }

    .hq-m-book {
      background: linear-gradient(135deg, var(--amber), #c17a1f);
      color: #fff;
    }

    .hq-m-login {
      border: 1.5px solid var(--line);
      color: var(--ink);
    }

    .hq-m-corp {
      color: var(--teal-deep);
      font-size: 13.5px;
      font-weight: 600;
    }

    /* mobile bottom action bar */

    .hq-bottombar {
      display: flex;
    }
  }

  @media (max-width: 460px) {
    .hq-book {
      font-size: 0;
      padding: 9px 13px;
    }

    .hq-book::after {
      content: "📅 Book";
      font-size: 13px;
      white-space: nowrap;
    }

    .hq-logo {
      font-size: 20px;
    }

    .hq-main {
      gap: 8px;
    }
  }

  @media (min-width: 1081px) {
    .hq-bottombar {
      display: none;
    }
  }

  .hq-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .hq-bottombar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 6px;
  }

  .hq-bottombar a .bi {
    font-size: 19px;
  }

  .hq-bottombar a.mid {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), #c17a1f);
    border-radius: 11px;
    margin: -2px 0;
  }

  .hq-bottombar a.wa {
    color: #1a9e54;
  }

  /* search overlay */

  .hq-searchbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 22px;
    z-index: 1400;
    transform: translateY(-100%);
    transition: .22s;
    box-shadow: var(--shadow);
  }

  .hq-searchbar.show {
    transform: translateY(0);
  }

  .hq-searchbar form {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hq-searchbar input {
    flex: 1;
    border: none;
    font-size: 19px;
        font-family: Montserrat-Medium;
    color: var(--ink);
    padding: 8px 0;
    outline: none;
    background: none;
  }

  .hq-searchbar .go {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--teal);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }

  .hq-searchbar .x {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .hq-searchbar .hint {
    max-width: 760px;
    margin: 8px auto 0;
    font-size: 12.5px;
    color: var(--ink-soft);
  }

  .hq-searchbar .hint b {
    color: var(--ink-2);
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
    }
  }

  /* expanded mega sizes (full-structure menus) */

  .hq-mega.mega-xl {
    width: min(1080px, 95vw);
  }

  .hq-mega.mega-lg {
    width: 720px;
  }

  .hq-mega .hq-links a {
    padding: 6px 9px;
    font-size: 13px;
  }

  /* cap very tall menus and let them scroll rather than run off-screen */

  .hq-mega {
    max-height: min(78vh, 720px);
    overflow-y: auto;
  }

  .hq-mega::-webkit-scrollbar {
    width: 8px;
  }

  .hq-mega::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 8px;
  }

  .hq-i-mind .hq-mega-grid.c3 > div:last-child > div + div {
    margin-top: 14px;
  }

  @media (max-width: 1200px) {
    .hq-mega.mega-xl {
      width: min(940px, 94vw);
    }

    .hq-mega.mega-lg {
      width: min(720px, 92vw);
    }
  }

  /* Apollo247-style category icons — line art in a soft tinted rounded square */

  .hq-mega .hq-links.ic a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px;
    font-size: 12.5px;
  }

  .hq-mega .hq-links.ic a .ai {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--sec-tint, #EAF3F1);
    transition: .14s;
  }

  .hq-mega .hq-links.ic a .ai svg {
    width: 15px;
    height: 15px;
    stroke: var(--sec-ink, #2F8F86);
  }

  .hq-mega .hq-links.ic a:hover .ai {
    background: var(--sec-ink, #2F8F86);
  }

  .hq-mega .hq-links.ic a:hover .ai svg {
    stroke: #fff;
  }

  .hq-mega .hq-links.ic a .hq-viewall,
  .hq-mega .hq-links.ic a.hq-viewall {
    padding-left: 9px;
  }

  .hq-mega .hq-links.ic a.hq-viewall .ai {
    display: none;
  }

  /* per-section accent colors */

  .hq-i-med .hq-mega {
    --sec-tint: #E7F0FA;
    --sec-ink: #2C6FB5;
  }

  /* medical — blue */

  .hq-i-mind .hq-mega {
    --sec-tint: #EEEAF8;
    --sec-ink: #6B54C6;
  }

  /* mental health — indigo */

  .hq-i-plan .hq-mega {
    --sec-tint: #FBEEE2;
    --sec-ink: #D07C2E;
  }

  /* plans — amber */

  .hq-i-well .hq-mega {
    --sec-tint: #E5F3E9;
    --sec-ink: #2E9B57;
  }

  /* wellness — green */

  .hq-i-org .hq-mega {
    --sec-tint: #FCE9EE;
    --sec-ink: #C2547A;
  }

  /* organisations — rose */

  .hq-i-res .hq-mega {
    --sec-tint: #EAF0F2;
    --sec-ink: #4B7A86;
  }

  /* resources — slate teal */

  /* mobile drawer icons */

  .hq-m-panel a .ai {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #EAF3F1;
    margin-right: 9px;
    vertical-align: middle;
  }

  .hq-m-panel a .ai svg {
    width: 15px;
    height: 15px;
    stroke: #2F8F86;
  }

  .hq-m-panel a {
    display: flex;
    align-items: center;
  }

  .hq-m-panel a.va .ai {
    display: none;
  }


.hq-mega.mega-md {
    width: 500px;
}

.hq-mega.mega-w5 {
    width: 890px;
}

