/* =========================================================
   AMC ACADEMY TECH — ENTERPRISE ENGINEERING UI (A2‑BOLD)
   FINAL MASTER CSS — PART 1 / 4
   GLOBAL SYSTEM + NAVBAR + HERO LAYOUT
   ========================================================= */


/* =========================================================
   ROOT VARIABLES — AMC BRAND SYSTEM
   ========================================================= */
:root {
  --amc-bg-top: #050a1e;
  --amc-bg-main: #0a0f24;

  --amc-accent: #5ab0ff;
  --amc-accent-strong: #1e6fd9;

  --amc-text-main: #ffffff;
  --amc-text-muted: #cbd5f5;

  --amc-card-bg: #0f172a;
  --amc-border-subtle: rgba(148, 163, 184, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-soft: 0 0 22px rgba(90, 176, 255, 0.28);
  --shadow-strong: 0 0 26px rgba(90, 176, 255, 0.55);

  --space-1: 14px;
  --space-2: 22px;
  --space-3: 32px;
  --space-4: 48px;
  --space-5: 64px;
  --space-6: 84px;
  --space-7: 110px;

  --max-width: 1100px;
}


/* =========================================================
   GLOBAL RESET + TYPOGRAPHY
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(to bottom, var(--amc-bg-top), var(--amc-bg-main));
  color: var(--amc-text-main);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amc-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--amc-accent-strong);
}


/* =========================================================
   GLOBAL LAYOUT SYSTEM
   ========================================================= */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) 5%;
  animation: fadeSection 0.8s ease-out;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: 0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--amc-text-muted);
  max-width: 720px;
  margin-bottom: var(--space-3);
  line-height: 1.75;
}

.accent-line {
  width: 70px;
  height: 3px;
  background: var(--amc-accent);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}


/* =========================================================
   NAVIGATION BAR — ENTERPRISE POLISH (FINAL FIXED VERSION)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 10, 30, 0.92);
  border-bottom: 1px solid var(--amc-border-subtle);
  backdrop-filter: blur(14px);
  transition: background 0.3s ease;
}

.header-inner {
  /* ⭐ FIX: remove width restriction so nav-wrapper can expand */
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 auto;
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;

  /* ⭐ FIXED: allow proper spacing + prevent layout break */
  justify-content: space-between;
  flex-wrap: wrap;

  /* ⭐ Clean spacing between brand and nav */
  gap: 32px;
}

.site-header .brand-name {
  display: flex;
  align-items: center;
  height: 80px;
  line-height: 1;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 17px;
  transition: opacity 0.25s ease;
}

.site-header .brand-name:hover {
  opacity: 0.85;
}



/* =========================================================
   MOBILE HEADER FIX — ENSURE NAV IS VISIBLE ON MOBILE
   ========================================================= */
@media (max-width: 768px) {

  .site-header {
    position: relative !important;
    height: auto !important;
    min-height: 60px !important;
    background: rgba(5, 10, 30, 0.92) !important;
    z-index: 9999 !important;
  }

  .header-inner {
    height: auto !important;
    min-height: 60px !important;
    padding: 0 16px !important;
    gap: 16px !important;
    justify-content: space-between !important;
  }
}


/* =========================================================
   SCROLLABLE NAVIGATION — ENTERPRISE POLISH (FINAL)
   ========================================================= */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden; /* ⭐ REQUIRED: prevents clipping and enables scroll */
}

.main-nav.scrollable-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  overflow-x: auto; /* ⭐ enables horizontal scroll */
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0; /* ⭐ allows shrinking inside flex container */
}

.main-nav.scrollable-nav::-webkit-scrollbar {
  display: none; /* ⭐ hides scrollbar for clean UI */
}

/* Arrow buttons (hidden by design) */
.nav-scroll {
  display: none !important;
}


/* =========================================================
   FIXED NAVIGATION ALIGNMENT — DESKTOP
   ========================================================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 4px;
  height: 80px;
  color: var(--amc-text-muted);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover {
  color: var(--amc-accent);
  opacity: 1;
}


/* =========================================================
   MOBILE NAVIGATION — FINAL ENTERPRISE VERSION (2026)
   ========================================================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle .bar {
  width: 26px;
  height: 3px;
  background: var(--amc-text-main);
  border-radius: 999px;
  margin: 5px 0;
  transition: 0.25s ease;
}

@media (max-width: 1024px) {

  /* Hide horizontal scroll nav on mobile */
  .main-nav.scrollable-nav {
    display: none !important;
  }

  .site-header {
    position: relative !important;
    min-height: 60px !important;
    z-index: 9999 !important;
  }

  .header-inner {
    min-height: 60px !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
  }

  /* Show hamburger toggle */
  .mobile-menu-toggle {
    display: block !important;
  }

  /* Dropdown menu when opened */
  .main-nav.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 60px !important;
    right: 5% !important;
    width: 220px !important;

    background: rgba(5, 10, 30, 0.97) !important;
    padding: var(--space-2) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--amc-border-subtle) !important;

    gap: var(--space-2) !important;
    text-align: right !important;
    z-index: 99999 !important;
  }

  .main-nav.open a {
    font-size: 15px !important;
    padding: 10px 6px !important;
    white-space: nowrap !important;
  }
}

/* Extra small screens */
@media (max-width: 420px) {
  .main-nav.open a {
    font-size: 13px !important;
    padding: 8px 4px !important;
  }
}



/* =========================================================
   HERO SECTION — MAIN FLEX LAYOUT
   ========================================================= */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background: var(--amc-bg-main);

  /* Prevent hero from forcing full-screen height */
  height: auto;
  min-height: 650px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* =========================================================
   HERO VIDEO — FRAME + PLAY BUTTON
   ========================================================= */
.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 480px;

  /* TRUE 16:9 ASPECT RATIO */
  height: 0;
  padding-top: 56.25%;

  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--amc-accent);
  box-shadow: var(--shadow-strong);
  background: #000;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(90, 176, 255, 0.55);
}

.hero-video-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* MUST BE ABSOLUTE TO MATCH IFRAME */
  position: absolute;
  top: 0;
  left: 0;

  /* ⭐ FIX: ensure thumbnail sits ABOVE iframe */
  z-index: 10;
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 16px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 20px;
  color: #ffffff;
  border: 1px solid rgba(90, 176, 255, 0.6);
  box-shadow: 0 0 14px rgba(90, 176, 255, 0.45);
  transition: 0.25s ease;
  animation: pulseGlow 2.4s ease-in-out infinite;

  /* REQUIRED FOR MOBILE (Samsung Edge + iPhone Safari) */
  pointer-events: auto;

  /* ⭐ FIX: ensure play button sits ABOVE thumbnail */
  z-index: 20;
}

.hero-video-play-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.06);
}


/* =========================================================
   HERO VIDEO — IFRAME FILL (FINAL FIX)
   ========================================================= */
.hero-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;

  /* ⭐ MUST NOT USE display:none — breaks Safari video rendering */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 5;
}



/* =========================================================
   MOBILE FIX — PREVENT HEADER OVERLAP ON VIDEO
   ========================================================= */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 100px !important;
  }
}




/* =========================================================
   HERO TYPOGRAPHY — AMC BRAND SYSTEM
   ========================================================= */
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--amc-text-main);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--amc-text-muted);
  max-width: 540px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.launch-label {
  margin-top: 10px;
  font-weight: 600;
  color: var(--amc-accent);
  font-size: 16px;
}

.countdown {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--amc-text-main);
}

.countdown div span {
  color: var(--amc-accent);
  font-size: 22px;
  font-weight: 700;
}


/* =========================================================
   CARD SYSTEM — PREMIUM ENTERPRISE POLISH
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.card {
  background: var(--amc-card-bg);
  border: 1px solid var(--amc-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.card:hover {
  border-color: var(--amc-accent);
  box-shadow: 0 0 26px rgba(90, 176, 255, 0.35);
  transform: translateY(-6px);
}

.card-lg {
  padding: var(--space-4);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: 0.2px;
}

.card-text {
  font-size: 15px;
  color: var(--amc-text-muted);
  line-height: 1.75;
  margin-top: 4px;
}


/* =========================================================
   CORPORATE TRAINING GRID — ENTERPRISE POLISH
   ========================================================= */
.corporate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-3);
}

@media (max-width: 900px) {
  .corporate-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}


/* =========================================================
   CORPORATE PREMIUM GLOW CARD
   ========================================================= */
.premium-glow-card {
  background: radial-gradient(circle at top left, rgba(90, 176, 255, 0.18), #050a1e);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid rgba(90, 176, 255, 0.55);
  box-shadow: 0 0 26px rgba(90, 176, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.premium-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.premium-text {
  font-size: 15px;
  color: var(--amc-text-muted);
  line-height: 1.75;
}

/* =========================================================
   REDUCED MOTION SUPPORT — CLEANED
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-video-frame,
  .hero-video-play-btn {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   CONTACT CARD — ENTERPRISE POLISH
   ========================================================= */
.contact-card {
  max-width: 560px;
  background: var(--amc-card-bg);
  border: 1px solid var(--amc-border-subtle);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: 0.3s ease;
  margin-top: var(--space-3);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--amc-accent);
  box-shadow: 0 0 26px rgba(90, 176, 255, 0.35);
}

.contact-block {
  margin-bottom: var(--space-3);
}

.contact-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.contact-link {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
  color: var(--amc-accent);
  transition: 0.25s ease;
}

.contact-link:hover {
  color: var(--amc-accent-strong);
}

.contact-location {
  font-size: 15px;
  color: var(--amc-text-muted);
  line-height: 1.7;
}


/* =========================================================
   FOOTER — ENTERPRISE POLISH
   ========================================================= */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-3) 0;
  background: rgba(5, 10, 30, 0.98);
  border-top: 1px solid var(--amc-border-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto var(--space-2) auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.footer-item {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-link {
  font-size: 15px;
  color: var(--amc-accent);
  display: block;
  margin-bottom: 6px;
  transition: 0.25s ease;
}

.footer-link:hover {
  color: var(--amc-accent-strong);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 5% 0 5%;
  font-size: 13px;
  opacity: 0.75;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  letter-spacing: 0.2px;
}


/* =========================================================
   SCROLL‑TOP BUTTON — ENTERPRISE POLISH
   ========================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--amc-accent-strong);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: 0.25s ease;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   GLOBAL ANIMATION SYSTEM — ENTERPRISE POLISH
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.65s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeSection 0.8s ease-out;
}

@keyframes fadeSection {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   FIX NAV BACKGROUND OVER HERO IMAGE
   ========================================================= */
.site-header {
  background: rgba(5, 10, 30, 0.92) !important;
  backdrop-filter: blur(6px);
  z-index: 9999 !important;
}


/* =========================================================
   DESKTOP FIX — PREVENT NAV OVERLAP ON HERO VIDEO
   ========================================================= */
.hero-right {
  padding-top: 120px;
}


/* =========================================================
   MOBILE FIX — PREVENT NAV OVERLAP ON HERO VIDEO
   ========================================================= */
@media (max-width: 1024px) {
  .hero-right {
    padding-top: 110px !important;
  }
}


/* =========================================================
   SCROLL REVEAL SYSTEM — ENTERPRISE POLISH
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }


/* =========================================================
   BUTTON MICRO‑INTERACTIONS — ENTERPRISE POLISH
   ========================================================= */
.btn-primary,
.btn-outline {
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(90, 176, 255, 0.45);
}

.btn-primary:active,
.btn-outline:active {
  transform: scale(0.97);
  box-shadow: 0 0 22px rgba(90, 176, 255, 0.75);
}

.btn-primary.clicked,
.btn-outline.clicked {
  animation: ciscoPulse 0.45s ease-out;
}

@keyframes ciscoPulse {
  0%   { box-shadow: 0 0 0 rgba(90,176,255,0.0); }
  50%  { box-shadow: 0 0 22px rgba(90,176,255,0.8); }
  100% { box-shadow: 0 0 0 rgba(90,176,255,0.0); }
}


/* =========================================================
   TRAINING PORTAL — PREMIUM AMC BLOCK
   ========================================================= */
#training-portal {
  background: #050a1e;
  padding: var(--space-5) 5%;
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
  box-shadow: 0 0 26px rgba(90, 176, 255, 0.35);
}

#training-portal .section-title {
  color: #ffffff;
}

#training-portal .section-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #d0e4ff;
}

#training-portal .btn-primary {
  margin-top: 24px;
}


/* =========================================================
   RESPONSIVE TUNING — FINAL PASS
   ========================================================= */
@media (max-width: 820px) {
  .hero-section {
    flex-direction: column;
    text-align: left;
    padding-top: 120px;
  }

  .hero-right {
    margin-top: 20px;
  }

  #training-portal {
    margin-top: var(--space-4);
    padding: var(--space-4) 5%;
  }

  .cookie-banner {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .hero-video-frame {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .countdown {
    flex-direction: column;
    gap: 8px;
  }
}


/* =========================================================
   COOKIE BANNER — PREMIUM ENTERPRISE VERSION
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: 90%;
  background: #050814;
  color: #ffffff;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 99999;

  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;

  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(148, 163, 184, 0.4);

  pointer-events: auto;
}

.cookie-banner.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner * {
  pointer-events: auto;
}

.cookie-text {
  color: #e2e8f0;
}

.cookie-text a {
  color: var(--amc-accent);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.cookie-btn.accept {
  background: var(--amc-accent-strong);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cookie-btn.accept:hover {
  opacity: 0.85;
}

.cookie-btn.reject {
  background: #1a1f2e;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.cookie-btn.reject:hover {
  border-color: var(--amc-accent);
  color: var(--amc-accent);
}


/* =========================================================
   FORCE VIDEO SIZE — FINAL LOCK
   ========================================================= */
.hero-right video {
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  object-fit: cover !important;
}


/* =========================================================
   GLOSSARY GRID — ALIGNMENT FIX (FINAL CLEAN VERSION)
   ========================================================= */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #0b1e39;
  border-radius: 12px;
  padding: 20px;
}

.glossary-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  margin-top: auto;
}


/* =========================================================
   NAVIGATION — FINAL CLEAN VERSION (OPTION A)
   ========================================================= */
@media (min-width: 769px) {

  .scrollable-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
    height: 60px !important;
    align-items: center !important;
    scrollbar-width: none;
  }

  .scrollable-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-wrapper .scrollable-nav {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: auto !important;
    min-width: 0 !important;
  }

  .scrollable-nav a {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;   /* ⭐ OPTION A — COMPACT NAV */
    height: 60px !important;
    line-height: 60px !important;
    white-space: nowrap !important;
  }

  .nav-wrapper {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  nav.main-nav {
    overflow: visible !important;
  }
}


/* =========================================================
   FINAL MOBILE NAV FIX — SAMSUNG + IPHONE
   ========================================================= */
@media (max-width: 768px) {

  .scrollable-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    align-items: center !important;
    height: 48px !important;
  }

  .scrollable-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap !important;
    display: inline-block !important;
    font-size: 14px !important;
    padding: 0 12px !important;   /* ⭐ MATCH OPTION A */
    line-height: 1.2 !important;
  }

  .nav-wrapper {
    overflow: hidden !important;
    width: 100% !important;
  }

  .nav-scroll {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .main-nav a {
    font-size: 13px !important;
    padding: 0 8px !important;
  }
}







