/* Novo AI Academy V6.5: header fix (loads after v64.css on every page).
   1. The logo and "AI ACADEMY" keep their size, stay on one line and never overlap the menu or the buttons.
   2. From 900px wide, "Book a Free Demo" and "Find My Program" are both in the header.
      (Below 900px both are in the bottom bar of every page and in the menu.)
   3. The full menu shows only when the logo, every menu link and both buttons fit on one line;
      otherwise the menu sits behind the menu button.
   Widths below include a Windows scrollbar (about 17px). */

.site-header .brand { flex: none; }
.site-header .logo--v45 .logo-sub { white-space: nowrap !important; max-width: none; }
.site-header .actions { flex: none; }
.site-header .nav-desktop[data-astro-cid-nen7h5rs] { min-width: 0; }

/* Both header buttons stay visible on desktop (this replaces the V6.4 rule that hid Find My Program from 1400px). */
@media (width >= 1400px) { .site-header .actions .btn:not(.hdr-demo) { display: inline-flex; } }

/* Below 1488px there is not enough room for the full menu plus both buttons, so the menu button is used. */
@media (width < 1488px) {
  .site-header .nav-desktop[data-astro-cid-nen7h5rs] { display: none !important; }
  .site-header .menu-btn[data-astro-cid-nen7h5rs] { display: inline-grid !important; }
  .site-header .nav-mobile[data-astro-cid-nen7h5rs]:not([hidden]) { display: block !important; }
}

/* 1488px to 1559px (for example 1536px laptops): the header row is a little wider than the page content
   and the menu links are slightly smaller and closer together, so everything fits on one line. */
@media (1488px <= width < 1560px) {
  .site-header .container.bar { width: min(100% - 32px, 1500px); max-width: none; }
  .site-header .nav-desktop[data-astro-cid-nen7h5rs] ul[data-astro-cid-nen7h5rs] { gap: 0; }
  .site-header .nav-desktop[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] { padding: 0 5px; font-size: 13.6px; }
}

/* 1560px and wider: header row up to 1500px wide, menu links at full size and a little closer together. */
@media (width >= 1560px) {
  .site-header .container.bar { width: min(100% - 48px, 1500px); max-width: none; }
  .site-header .nav-desktop[data-astro-cid-nen7h5rs] ul[data-astro-cid-nen7h5rs] { gap: 0; }
  .site-header .nav-desktop[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] { padding: 0 6px; }
}

/* Below 900px the bottom bar of every page shows "Book a Free Demo" and "Find my program" (both are also in the menu),
   so the header keeps only what fits beside the logo. */
@media (width <= 899px) { .site-header .actions .btn:not(.hdr-demo) { display: none; } }
@media (width < 700px) { .site-header .hdr-demo { display: none; } }

/* Small phones (below 380px): the currency menu and icons are a little tighter so the logo keeps its full size
   and the menu button stays on screen. */
@media (width < 380px) {
  .site-header .actions { gap: 4px; }
  .site-header .actions .icon-btn { width: 40px; height: 40px; }
  .site-header .cur select { max-width: 92px; padding-left: 7px; padding-right: 20px; }
  .site-header .cur::after { right: 8px; }
}

/* Home page hero: "Book a Free Demo", "Explore Programs" and "Find My Program" sit on one line on desktop
   from 1100px wide (in V6.4 the third button dropped to its own line). Narrower screens keep full-size buttons,
   with the third button on a second line as in V6.3. */
@media (width >= 1280px) { .hero .btn-row:has(> .btn--demo) .btn { padding-inline: 20px; } }
@media (1100px <= width < 1280px) {
  .hero .btn-row:has(> .btn--demo) { gap: 8px; }
  .hero .btn-row:has(> .btn--demo) .btn { padding-inline: 12px; font-size: 0.9rem; }
}
