/* ══════════════════════════════════════════════════
   GLOBAL UNIVERSAL MOBILE ENGINE (APPLIES TO ALL PAGES)
   ══════════════════════════════════════════════════ */

/* 1. Prevent Horizontal Scrolling & Fix Box Sizing */
*, *::before, *::after {
  box-sizing: border-box !important;
}
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* 2. Disable Hardware-Intensive Custom Cursors on Touch Screens */
@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
  #cursor-dot, #cursor-glow {
    display: none !important;
  }
  body, a, button {
    cursor: auto !important;
  }
}

/* 3. Header & Navigation Mobile Rescaling */
@media (max-width: 1024px) {
  body {
    padding-top: 85px !important;
  }
  .brand-logo-img {
    height: 52px !important;
    width: auto !important;
  }
  .brand-text h1 {
    font-size: 16px !important;
  }
  .brand-text span {
    font-size: 8px !important;
    letter-spacing: 1px !important;
  }
  .top-strip {
    font-size: 11px !important;
    padding: 5px 4% !important;
  }
  .top-strip .alert {
    display: none !important;
  }
  .nav-links {
    display: none !important; /* Hide desktop nav bar on tablet/mobile */
  }
  .header-actions .btn-book-service {
    display: none !important; /* Keep only 1 primary action button on mobile */
  }
  .header-actions .btn-enroll-student {
    padding: 7px 14px !important;
    font-size: 11px !important;
  }
}

/* 4. Universal Layout & Grid Stacking on Mobile Devices (Under 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 75px !important;
  }

  /* Universal Typography Scaling */
  h1, .hero-display-title, .cs-hero h1, .catalog-hero h1, .master-hero h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  h2, .section-title, .section-headline, .section-title-saas {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  h3 {
    font-size: 18px !important;
  }
  p, .hero-lead-text, .cs-hero-sub {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  /* Universal Section Padding */
  section, .cs-hero-section, .course-hero, .master-hero, .about-hero {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* Telemetry / HUD Displays: Collapse to a clean 2x2 grid */
  .telemetry-hud, .hud-telemetry-console, .hud-bar, .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .hud-stat-value, .hud-number, .hud-val, .counter-num {
    font-size: 20px !important;
  }

  /* Force All Multi-Column Grids to Stack Vertically */
  .hero-wrap,
  .about-hero-grid,
  .dual-grid,
  .problem-cards-grid,
  .crisis-arena-grid,
  .problem-matrix-grid,
  .solution-columns,
  .solution-columns-grid,
  .projects-grid,
  .courses-grid,
  .courses-catalog-grid,
  .catalog-grid,
  .offer-dual-grid,
  .offer-triple-grid,
  .receipts-grid,
  .receipts-grid-cards,
  .telemetry-cards-row,
  .footer-grid,
  .cert-box {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Filter & Toggle Buttons Strip Wrap */
  .filter-tabs-strip,
  .crisis-nav-tabs,
  .crisis-control-deck,
  .sim-toggle-wrap {
    flex-wrap: wrap !important;
    border-radius: 14px !important;
    max-width: 100% !important;
    padding: 5px !important;
  }
  .filter-btn, .crisis-tab-btn, .crisis-switch-btn, .sim-btn {
    font-size: 11px !important;
    padding: 8px 12px !important;
  }

  /* 7-Step Roadmaps & Pipelines */
  .timeline-stream-container::before,
  .timeline-laser-stream::before,
  .timeline-wrap::before {
    left: 18px !important;
  }
  .roadmap-node-row,
  .pipeline-stage-row,
  .pipeline-step,
  .stream-step-card {
    grid-template-columns: 38px 1fr !important;
    gap: 12px !important;
  }
  .roadmap-number-bubble,
  .pipeline-step-node,
  .pipeline-node,
  .stream-step-node {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .roadmap-number-bubble strong,
  .pipeline-step-node strong,
  .pipeline-node strong,
  .stream-step-node strong {
    font-size: 14px !important;
  }
  .roadmap-number-bubble span,
  .pipeline-step-node span,
  .pipeline-node span,
  .stream-step-node span {
    display: none !important;
  }
  .roadmap-content-card,
  .pipeline-stage-body,
  .pipeline-body,
  .stream-step-body {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  /* CEO & Leadership Banners */
  .ceo-direction-banner,
  .ceo-direction-strip,
  .leadership-strip,
  .leadership-cyber-strip {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 16px !important;
    gap: 16px !important;
  }
  .ceo-avatar-img,
  .ceo-avatar-frame,
  .leader-avatar,
  .leader-avatar-glow {
    width: 85px !important;
    height: 85px !important;
  }

  /* Responsive Images & Videos */
  img, video {
    max-width: 100% !important;
    height: auto !important;
  }
  .live-viewport-box {
    height: 220px !important;
  }
  .proof-card {
    width: 280px !important;
  }

  /* Mobile WhatsApp Widget */
  #waWidget {
    bottom: 16px !important;
    right: 16px !important;
  }
  .wa-button {
    width: 48px !important;
    height: 48px !important;
  }
  .wa-button svg {
    width: 24px !important;
    height: 24px !important;
  }
  .wa-chatbox {
    width: calc(100vw - 32px) !important;
  }
}
/* ══════════════════════════════════════════════════
   MOBILE HEADER FIX (PHONES UNDER 520px & 320px)
   ══════════════════════════════════════════════════ */
@media (max-width: 520px) {
  /* 1. Adjust body top spacing so content starts cleanly */
  body {
    padding-top: 70px !important;
  }

  .header-fixed-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  }

  /* 2. Slim the top phone bar */
  .top-strip {
    font-size: 10.5px !important;
    padding: 4px 4% !important;
    justify-content: center !important;
  }
  .top-strip .contacts {
    text-align: center !important;
  }
  .top-strip .alert {
    display: none !important;
  }

  /* 3. Header bar layout */
  .main-header {
    padding: 6px 4% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .brand-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
  }

  /* Scale the logo to fit mobile height cleanly */
  .brand-logo-img {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Hide redundant duplicate HTML text because the logo image already says SHIZA DIGITAL */
  .brand-text {
    display: none !important;
  }

  /* 4. Format the Action Button cleanly into a compact pill */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .header-actions .btn-book-service {
    display: none !important;
  }
  .header-actions .btn-enroll-student {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    height: auto !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
  }
  /* ══════════════════════════════════════════════════
   MOBILE HEADER FIX — LARGER CLEAR LOGO
   ══════════════════════════════════════════════════ */
@media (max-width: 520px) {
  /* 1. Header height compensation so page content isn't covered */
  body {
    padding-top: 85px !important;
  }

  /* 2. Top contact strip */
  .top-strip {
    font-size: 10.5px !important;
    padding: 5px 3% !important;
    justify-content: center !important;
  }
  .top-strip .alert {
    display: none !important;
  }

  /* 3. Main header bar */
  .main-header {
    padding: 8px 3% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .brand-wrap {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  /* 4. Increased logo height for clear readability */
  .brand-logo-img {
    height: 56px !important;
    max-width: 170px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Hide duplicate text so the logo image has maximum space */
  .brand-text {
    display: none !important;
  }

  /* 5. Compact action button */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .header-actions .btn-book-service {
    display: none !important;
  }
  .header-actions .btn-enroll-student {
    padding: 8px 13px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
  }
}
}