/* Preserve short interface labels; long reading copy still wraps normally. */
.logo strong,
.logo span,
.nav-links a,
.nav-cta,
.nav-cta-mob,
.mob-link,
.mob-btn-primary,
.btn,
.cert-btn,
.portfolio-btn,
.case-card .cc-link,
.sticky-cta .btn,
.course-service-link,
.course-page .top nav a,
.course-page .menu,
.foot-links a,
.foot-copy a {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.logo span { max-width: none !important; }

@media (min-width: 981px) and (max-width: 1100px) {
  .nav-links,
  .nav-cta { display: none !important; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    cursor: pointer;
    flex: 0 0 40px;
  }

  .burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .22s, opacity .18s;
  }

  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mob-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 86px 0 auto;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: rgba(3,6,15,.97);
    border-bottom: 1px solid var(--line);
    transition: max-height .3s ease, padding .3s ease;
  }

  .mob-menu.open { max-height: 600px; padding: 14px 16px 20px; }
  .mob-link {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
  }
  .mob-btns { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
  .mob-btn-primary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
  }
}

@media (max-width: 560px) {
  /* Restore the home header subtitle to the same visual length as the name. */
  body:not(:has(.page-wrap)):not(.course-page) .logo span {
    font-size: 12px !important;
  }

  .nav-inner { min-width: 0; gap: 8px; }
  .logo { min-width: 0; flex: 1 1 auto; }
  .logo-text { min-width: 0; flex: 1 1 auto; }
  .logo strong { white-space: nowrap; }
  .logo span {
    max-width: none;
    font-size: 11px !important;
    letter-spacing: -.25px;
    line-height: 1.2;
    white-space: nowrap !important;
  }

  body:has(.page-wrap) .logo img {
    width: clamp(42px, 15vw, 58px) !important;
    height: clamp(42px, 15vw, 58px) !important;
  }

  body:has(.page-wrap) .logo strong {
    font-size: clamp(16px, 4.6vw, 19px) !important;
  }

  body:has(.page-wrap) .logo span {
    font-size: clamp(10px, 2.875vw, 12px) !important;
  }

  .btn {
    max-width: 100%;
    padding-inline: 14px !important;
    font-size: 14px !important;
  }

  .cert-btn,
  .portfolio-btn {
    width: 100%;
    padding-inline: 14px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }

  .course-service-link { font-size: 14px !important; }
}

@media (max-width: 600px) {
  .price-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}

@media (max-width: 360px) {
  .btn { padding-inline: 10px !important; }
}
