/* Phone & tablet fixes for the home pages (index, de, hi, ur).
   Loaded after assets/responsive.css; only active below 1100px. */

/* Hero */
html.mzw-fluid #home { padding-top: 110px !important; }
html.mzw-fluid #home > img.zk-bg { left: -30% !important; width: 160% !important; top: 420px !important; }
html.mzw-fluid #home .zk-picker { margin-top: 28px !important; gap: 8px !important; }
html.mzw-fluid #home .zk-picker-l { width: 100%; text-align: center; margin: 0 !important; }
html.mzw-fluid #home .zk-trust { gap: 8px 18px !important; font-size: 14px !important; }
html.mzw-fluid #home > div[style*="height: 660px"] { margin-top: 40px !important; padding: 24px 12px 120px !important; min-height: 420px; border-radius: 32px !important; }
html.mzw-fluid #home > div[style*="height: 660px"] > svg { width: min(78vw, 360px) !important; height: auto !important; }

/* Numbers row */
html.mzw-fluid .zk-stats { padding: 32px 16px 24px !important; }
html.mzw-fluid .zk-stats > div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
html.mzw-fluid .zk-stat { padding: 22px 20px !important; }
html.mzw-fluid .zk-stat b { font-size: 30px !important; letter-spacing: -0.03em !important; }
html.mzw-fluid .zk-stat div { font-size: 13px !important; }
/* Hero buttons: keep each label on one line */
html.mzw-fluid #home > div[style*="gap: 16px"] { flex-wrap: wrap; justify-content: center; gap: 10px !important; }
html.mzw-fluid #home > div[style*="gap: 16px"] > a { white-space: nowrap; padding: 13px 20px !important; font-size: 16px !important; }

/* Paths */
html.mzw-fluid #paths { padding: 12px 12px 0 !important; }
html.mzw-fluid #study, html.mzw-fluid #ausbildung, html.mzw-fluid #career {
  padding: 48px 20px 40px !important; border-radius: 32px !important;
}
html.mzw-fluid #study > div[style*="width: 960px"] { margin-top: 32px !important; }
html.mzw-fluid #ausbildung .glass, html.mzw-fluid #career .glass { width: min(300px, 100%) !important; margin-top: 28px !important; }
html.mzw-fluid .zk-deband {
  flex-direction: column !important; align-items: flex-start !important;
  height: auto !important; padding: 40px 20px !important; gap: 28px !important; border-radius: 32px !important;
}
html.mzw-fluid .zk-deband > div:last-child { align-self: center; grid-template-columns: repeat(3, 88px) !important; gap: 10px !important; }
html.mzw-fluid .zk-deband .zk-lvl { width: 88px !important; height: 88px !important; }
html.mzw-fluid .zk-deband a { white-space: nowrap; }
html.mzw-fluid .zk-deband [style*="display: flex; gap: 14px"] { flex-wrap: wrap; row-gap: 12px !important; }

/* How it works */
html.mzw-fluid #how { padding: 72px 16px 0 !important; gap: 32px !important; }
html.mzw-fluid #how > div:first-child > div[style*="position: absolute"] { display: none !important; }
html.mzw-fluid #how > div:last-child { padding-top: 24px !important; }

/* About */
html.mzw-fluid #about { margin: 72px 12px 0 !important; padding: 56px 20px !important; border-radius: 32px !important; }

/* 1:1 consultation */
html.mzw-fluid #consult {
  margin: 12px 12px 0 !important; height: auto !important; padding: 48px 24px !important;
  flex-direction: column !important; align-items: flex-start !important; gap: 36px; border-radius: 32px !important;
}
/* keep the red/gold glows behind the video icon, not behind the text */
html.mzw-fluid #consult > .orb { top: auto !important; bottom: -90px !important; right: -60px !important; width: 300px !important; height: 300px !important; }
html.mzw-fluid #consult > .orb + .orb { right: 80px !important; bottom: -120px !important; }
html.mzw-fluid #consult > div.glass-dark { width: 200px !important; height: 200px !important; align-self: center; }
html.mzw-fluid #consult > div.glass-dark > div { width: 134px !important; height: 134px !important; }
html.mzw-fluid #consult > div.glass-dark svg { width: 56px !important; height: 56px !important; }
html.mzw-fluid #consult [style*="display: flex; gap: 16px"] { flex-wrap: wrap; }

/* FAQ */
html.mzw-fluid .zk-faqsec { margin: 72px 0 0 !important; padding: 0 16px !important; grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
html.mzw-fluid .zk-faqsec > div:first-child { position: static !important; }
html.mzw-fluid .zk-faq-q { font-size: 17px !important; padding: 16px 18px !important; min-height: 60px !important; }
html.mzw-fluid .zk-faq-a { padding: 0 18px 18px !important; }

/* Contact */
html.mzw-fluid #contact { padding: 72px 16px !important; gap: 40px !important; }
html.mzw-fluid #contact > div:first-child > div[style*="margin-top: 56px"] { margin-top: 32px !important; }

/* Footer */
html.mzw-fluid .sc-host footer { padding: 36px 20px 28px !important; }
html.mzw-fluid .sc-host footer .zk-flogo img { height: 52px !important; }

/* How-it-works step cards: grow with their content on phones/tablets */
html.mzw-fluid .zk-step { min-height: 0 !important; }

/* All screen sizes: the upload box in "How it works" shares the class name
   "zk-drop" with the falling-drop animation of the hover scenes, which made
   the box blink invisible. Stop that animation on the upload box. */
.zk-step .zk-drop { animation: none !important; opacity: 1 !important; transform: none !important; }

/* "Explore your way" (drag cards) and "Your future" (3D cap) on tablets and phones */
html.mzw-fluid #explore { padding-top: 88px !important; }
html.mzw-fluid #explore > div:first-child { padding: 0 24px !important; }
html.mzw-fluid #future { grid-template-columns: minmax(0, 1fr) !important; }
html.mzw-fluid #future mzw-cap3d { height: 420px !important; }
@media (max-width: 640px) {
  html.mzw-fluid #explore > div:first-child { padding: 0 16px !important; }
  /* Urdu: the four wrapped Nastaliq lines need more room than other headings, or they collide */
  html:lang(ur).mzw-fluid #explore h2 { font-size: 30px !important; line-height: 2.15 !important; }
  html.mzw-fluid #future mzw-cap3d { height: 340px !important; }
}

/* Hero sky (assets/sky-video.js): on narrow screens the colour glows cover the whole width — keep them faint */
@media (max-width: 700px) {
  html.mzw-fluid #home:has(> mzw-sky-video) > .orb { opacity: 0.1 !important; }
  html.mzw-fluid #home:has(> mzw-sky-video) > .zk-bg { display: none !important; }
}
/* tablets and phones: the window-seat video fills the whole hero, compass included */
html.mzw-fluid #home > mzw-sky-video { height: auto !important; bottom: 0 !important; }
