.header-dark #header-nav {
    background: #000 !important;
}
#header-nav {
    transition: 0.25s;
}
#header-nav.active .dropdown-toggle {
    background: #000;
    padding: 20px 25px 20px 0px;
}
#header-nav .nav-logo {
    transition: 0.25s;
}
#header-nav.active .nav-logo {
    width: 120px;
}
#header-nav .dropdown-toggle, 
#header-nav .nav-menu-dropdown {
    transition: 0.25s;
}
#header-nav.active .nav-menu-dropdown {

}
/* /contact: Reka first, the form is the fallback (reka-epic-ship-ch8.42). */
.reka-first {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.reka-first-button {
    min-height: 44px;
}
.reka-first-form-link {
    color: inherit;
    text-decoration: underline;
}
/* /contact: Reka leads at every width and the form sits one tap below it, in a closed
   <details> (reka-pqw3; the Reka-first decision of reka-epic-ship-ch8.42). One column,
   no form in the right-hand column. */
#w-node-_2a98730f-a81f-b3b6-aac7-9e465d0267c4-108b7bbd.reka-lead {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
    padding-left: 0;
    padding-right: 0;
}
.reka-lead .reka-first {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    gap: 18px;
}
.reka-lead .reka-first > .bold {
    font-size: 24px;
    line-height: 30px;
}
.reka-lead .reka-first-button {
    min-height: 52px;
    width: 100%;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reka-form-fallback {
    width: 100%;
}
.reka-form-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid #0003;
    border-radius: 60px;
    color: #000;
    cursor: pointer;
    list-style: none;
}
.reka-form-summary::-webkit-details-marker {
    display: none;
}
.reka-form-summary::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .2s;
}
.reka-form-fallback[open] > .reka-form-summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.reka-form-summary:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}
.reka-form-fallback[open] > .reka-form-summary {
    margin-bottom: 16px;
}
@media (max-width: 479px) {
    .reka-lead .reka-first {
        padding: 20px;
    }
    .reka-lead .reka-first-button {
        max-width: none;
    }
}

/* Help inside the page (Reka launcher v26, reka-epic-core-sw9.35.6): a place Reka fills with one line and two or three
   starters, after the section's own action, in the section's own type and colour. It has no content of its own, so it
   takes no room until Reka draws it (only this margin), and stays so when Reka's switch is off. */
.reka-task {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  /* The section's own dark (its headers and button), not the body's grey #919191, which reads faint. */
  color: #1a1623;
}

/* ---- Phone layout fixes (2026-10-29)--------------------------------------
   Each of these let a page scroll sideways on a 390px phone. All were already
   like this on Webflow. */

/* Course pages: the trainer row is a Webflow dropdown toggle, and
   .w-dropdown-toggle sets white-space:nowrap, so a long company name ("Pertubuhan
   Pembangunan Kemahiran dan Sosial Malaysia (PPKSM)") stayed on one line and
   pushed 17 course pages up to 260px past the screen edge. */
.trainers-dropdown.w-dropdown-toggle {
    white-space: normal;
}
.trainers-dropdown .horizontal-20-gap {
    min-width: 0;
}
.trainers-dropdown .dropdown-arrow-icon {
    flex: none;
}

/* Blog posts: pasted URLs are one unbreakable word. */
.w-richtext a {
    overflow-wrap: anywhere;
}

@media screen and (max-width: 767px) {
    /* /ecosystem: the Learner / Contributor / Changemaker cards sat in a row
       that never wraps; Webflow already gives each card full width on phones. */
    .flex.justify-center:has(> .freelance-step.eco) {
        flex-direction: column;
        align-items: center;
    }

    /* /freelancers: each course block is a 439px picture beside the details,
       with no phone layout (the page was 600px wider than the screen). */
    .courses-purple-section .w-layout-hflex.gap-60px {
        flex-direction: column;
        align-items: stretch;
    }
    .courses-purple-section .w-layout-hflex.gap-60px > * {
        min-width: 0;
    }
    /* the course title and its price tag share a row that cannot wrap */
    .courses-purple-section .horizontal-flex.align-bottom {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 16px;
    }
    .courses-purple-section .sticky-100px {
        position: static;
        max-width: 100%;
    }
    .courses-purple-section .image-439px {
        width: 100%;
    }

    /* Blog figures are display:table, which ignores max-width, so a picture
       wider than the column dragged the page sideways with it. */
    .w-richtext figure.w-richtext-figure-type-image {
        display: block;
        max-width: 100%;
    }
}

/* ---- Card pictures load as they scroll into view (2026-10-29) -------------
   CMS card images are inline background-image styles, which every browser
   fetches at once (~90 on /academy/all-courses). While <html> has .lazy-bg,
   hide them; /assets/local/lazy-bg.js adds .bg-in to each card as it nears the
   screen. Without JavaScript the class is never added and nothing changes. */
html.lazy-bg .w-dyn-item[style*="background-image"]:not(.bg-in),
html.lazy-bg .w-dyn-item [style*="background-image"]:not(.bg-in) {
    background-image: none !important;
}

/* Home: Reka's corporate-training place sits right under the hero, in the first screen (reka-epic-core-sw9.35.7), not
   at the foot of the services section where it was seen on 107 of ~700 page loads. Wide enough that its three
   starters share one row on a desktop (about 90px tall instead of 190px); on a phone they stack, as everywhere. It is
   empty, and takes only this margin, until Reka draws it. */
.reka-task.reka-task-first {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---- The consultation banner is tappable on phones (2026-11-18, reka-epic-core-sw9.35.7.1) ----
   Webflow shows these banners' own button from 768px up only (.hide-mobile) and, below 768px, also hides the
   whole-banner link that was drawn for phones (.link-block.hide-desktop {display:none}). A phone visitor saw
   an arrow and nothing to tap, on /space/, /space/space/, /space/innovate/, /ecosystem/, /academy/makerspace/,
   /academy/skill-test/ and /freelancers/. Show that link again so it covers the banner (.space-cta-block is
   already position:relative below 768px). Only banners drawn for phones are matched (they carry a hide-desktop
   arrow picture): course pages and /portfolio keep their own phone button and its own target. The rocket
   animation is a transformed <svg> that paints above an earlier sibling, so the banner is its own stacking
   context and the link sits above everything in it: a tap on the rocket opens the link too. */
@media screen and (max-width: 767px) {
    .space-cta-block:has(.hide-desktop img.invert) {
        isolation: isolate;
    }
    .space-cta-block:has(.hide-desktop img.invert) > a.link-block.hide-desktop {
        display: block;
        z-index: 1;
        border-radius: inherit;
    }
}
