/* ============================================================
   IZYSCO — Mobile-First Complete Responsive CSS v4.0
   Breakpoints: 375 / 480 / 640 / 768 / 900 / 1100 / 1280
   ============================================================ */

/* ── Base mobile defaults (applies to all sizes) ── */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { -webkit-overflow-scrolling: touch; }
img  { max-width: 100%; height: auto; display: block; }

/* ── Viewport safe areas ── */
.container { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

/* ── Touch targets: all buttons/links min 44px ── */
button, a, [role="button"], .filter-btn, .dest-card, .blog-card, .uni-card,
.faq-q, .ofc-btn, .fab-wa, .fab-top, .nav-cta-btn { touch-action: manipulation; }

/* ── Smooth scroll offset for fixed navbar ── */
section[id] { scroll-margin-top: 72px; }

/* ============================================================
   NAVBAR — mobile
   ============================================================ */
@media (max-width: 900px) {
  .navbar { padding: 0.9rem 1.25rem; }
  .navbar.scrolled { padding: 0.65rem 1.25rem; }

  .nav-menu {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background:
      radial-gradient(circle at 85% 15%, rgba(232,41,28,0.12), transparent 55%),
      radial-gradient(circle at 10% 85%, rgba(41,121,255,0.10), transparent 55%),
      rgba(7,7,15,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 0.35rem;
    padding: 6rem 1.5rem 3rem;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; animation: navFadeIn 0.3s ease both; }
  @keyframes navFadeIn { from { opacity:0; } to { opacity:1; } }

  .nav-menu li { width: 100%; max-width: 380px; opacity: 0; transform: translateY(16px) scale(0.97); }
  .nav-menu.open li { animation: navItemIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
  .nav-menu.open li:nth-child(1) { animation-delay: 0.06s; }
  .nav-menu.open li:nth-child(2) { animation-delay: 0.11s; }
  .nav-menu.open li:nth-child(3) { animation-delay: 0.16s; }
  .nav-menu.open li:nth-child(4) { animation-delay: 0.21s; }
  .nav-menu.open li:nth-child(5) { animation-delay: 0.26s; }
  .nav-menu.open li:nth-child(6) { animation-delay: 0.31s; }
  .nav-menu.open li:nth-child(7) { animation-delay: 0.36s; }
  .nav-menu.open li:nth-child(8) { animation-delay: 0.41s; }
  @keyframes navItemIn { from { opacity:0; transform:translateY(16px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }

  .nav-menu a {
    font-size: 1.08rem; font-weight: 600; padding: 1rem 1.25rem;
    border-radius: 16px; width: 100%; justify-content: flex-start;
    min-height: 54px; display: flex; align-items: center; gap: 0.85rem;
    position: relative; overflow: hidden; border: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  }
  .nav-menu a::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
    width: 3px; height: 60%; border-radius: 3px; background: var(--g-red);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  }
  .nav-menu a i { font-size: 1.25rem; width: 24px; flex-shrink: 0; transition: transform 0.25s ease; }
  .nav-menu a:active { transform: scale(0.98); }
  .nav-menu a:hover, .nav-menu a.active { background: rgba(232,41,28,0.08); color: var(--red2); border-color: rgba(232,41,28,0.18); }
  .nav-menu a:hover i, .nav-menu a.active i { transform: scale(1.1); }
  .nav-menu a.active::before { transform: translateY(-50%) scaleY(1); }
  .nav-menu li:not(:last-child) a { border-bottom: 1px solid rgba(255,255,255,0.05); }

  .nav-cta-btn {
    background: var(--g-red) !important; color: #fff !important;
    border-radius: 16px !important; font-size: 1.05rem !important;
    box-shadow: 0 10px 28px rgba(232,41,28,0.45) !important;
    margin-top: 0.75rem; justify-content: center !important; border: none !important;
  }
  .nav-menu.open .nav-apply-pulse a {
    background: rgba(232,41,28,0.1); border-color: rgba(232,41,28,0.25);
    animation: navPulseGlow 2.2s ease-in-out infinite;
  }
  @keyframes navPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,41,28,0.25); }
    50% { box-shadow: 0 0 0 8px rgba(232,41,28,0); }
  }

  .hamburger {
    display: flex; z-index: 1001; position: relative;
    min-width: 44px; min-height: 44px; justify-content: center; align-items: center;
    border-radius: 12px; transition: background 0.25s ease;
  }
  .hamburger.open { background: rgba(255,255,255,0.06); }
  .hamburger span { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu.open li, .nav-menu.open, .nav-menu.open .nav-apply-pulse a { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO — mobile
   ============================================================ */
@media (max-width: 900px) {
  #hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual-wrap { display: none; }
  .hero-h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .hero-desc { font-size: 0.97rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { padding: 0.85rem 1.6rem; font-size: 0.88rem; }
  .hero-trust { flex-wrap: wrap; gap: 0.75rem; padding: 1rem 1.2rem; }
  .trust-text { font-size: 0.78rem; }
  .trust-stars { font-size: 0.7rem; }
}
@media (max-width: 640px) {
  #hero { padding: 5.5rem 0 3rem; }
  .hero-h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .hero-badge-strip { font-size: 0.72rem; padding: 0.32rem 0.85rem 0.32rem 0.35rem; }
  .badge-dot { width: 24px; height: 24px; font-size: 0.75rem; }
  .hero-actions { flex-direction: column; gap: 0.65rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 0.6rem; }
  .trust-avatars { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 1.95rem; }
  .hero-desc { font-size: 0.9rem; line-height: 1.7; }
}

/* ── Hero stats: horizontal scroll on very small screens ── */
.hero-stats { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hero-stats::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .hero-stats { flex-direction: row; flex-wrap: nowrap; min-width: 0; }
  .hstat { min-width: 110px; flex: 1 0 auto; padding: 1rem 0.75rem; border-right: 1px solid var(--border); border-bottom: none; }
  .hstat:last-child { border-right: none; }
  .hstat .val { font-size: 1.5rem; }
  .hstat .lbl { font-size: 0.65rem; }
}
@media (max-width: 380px) {
  .hstat { min-width: 90px; }
  .hstat .val { font-size: 1.3rem; }
}

/* Ticker */
@media (max-width: 640px) {
  .ticker-wrap { padding: 0.7rem 0; }
  .t-item { font-size: 0.76rem; gap: 0.4rem; padding: 0 0.25rem; }
}

/* ============================================================
   METRICS — mobile
   ============================================================ */
@media (max-width: 900px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .metric-card { padding: 1.5rem 1rem; }
  .metric-card .m-val { font-size: 2rem; }
  .metric-card .m-icon { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* ============================================================
   WHY MALAYSIA — mobile
   ============================================================ */
@media (max-width: 1100px) { .malaysia-grid { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 900px) { .reasons-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  #why-malaysia { padding: 5rem 0; }
  .reasons-wrap { grid-template-columns: 1fr; gap: 0.85rem; }
  .reason-card { padding: 1.25rem; }
  .malaysia-card-3d { min-height: auto; }
  .malaysia-inner { padding: 1.5rem 1.25rem; }
  .my-flag { font-size: 3.5rem; }
  .my-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; margin: 1rem 0; }
  .my-cell .c-val { font-size: 1.15rem; }
}

/* ============================================================
   SERVICES — mobile
   ============================================================ */
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .srv-card { padding: 1.5rem; }
  .icon-box { width: 50px; height: 50px; }
}
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DESTINATIONS — mobile
   ============================================================ */
@media (max-width: 1100px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .dest-bg { height: 130px; }
  .dest-flag-emoji { font-size: 3rem; }
  .dest-info { padding: 0.9rem; }
  .dest-info h3 { font-size: 0.9rem; }
  .dest-info p  { font-size: 0.72rem; margin-bottom: 0.6rem; }
  .dest-tag { font-size: 0.65rem; padding: 0.22rem 0.65rem; }
}
@media (max-width: 380px) {
  .dest-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .dest-bg { height: 105px; }
  .dest-flag-emoji { font-size: 2.5rem; }
  .dest-info h3 { font-size: 0.82rem; }
}

/* ============================================================
   UNIVERSITIES — mobile
   ============================================================ */
@media (max-width: 900px) {
  .uni-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .filter-row { gap: 0.5rem; }
  .filter-btn { font-size: 0.76rem; padding: 0.42rem 0.9rem; }
}
@media (max-width: 640px) {
  .uni-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .uni-card { padding: 1.2rem; }
  .search-bar { max-width: 100%; }
  .uni-controls { gap: 0.85rem; }
}
@media (max-width: 480px) {
  .filter-btn { font-size: 0.7rem; padding: 0.38rem 0.75rem; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; width: 100%; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}

/* University card buttons */
.uni-card-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.uni-apply-btn, .uni-details-btn { font-size: 0.72rem; padding: 0.38rem 0.85rem; min-height: 36px; }
@media (max-width: 480px) {
  .uni-card-btns { flex-direction: row; gap: 0.4rem; }
  .uni-apply-btn, .uni-details-btn { flex: 1; justify-content: center; text-align: center; }
}

/* ============================================================
   SCHOOLS — mobile
   ============================================================ */
@media (max-width: 900px) { .schools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .schools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .schools-grid { grid-template-columns: 1fr; } }
.school-card { min-height: 44px; }
@media (max-width: 640px) {
  .school-card { padding: 1rem; }
  .school-card .sc-ico { font-size: 1.5rem; }
  .school-card .sc-name { font-size: 0.78rem; }
}

/* ============================================================
   JOURNEY — mobile
   ============================================================ */
@media (max-width: 900px) {
  .journey-line-wrap { display: none; }
  .journey-steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (max-width: 640px) {
  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .j-bubble { width: 60px; height: 60px; font-size: 1.5rem; }
  .j-step-name { font-size: 0.78rem; }
  .j-step-desc { font-size: 0.68rem; }
}
@media (max-width: 380px) {
  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .j-bubble { width: 52px; height: 52px; font-size: 1.3rem; }
}

/* ============================================================
   WHY IZYSCO — mobile
   ============================================================ */
@media (max-width: 1100px) { .why-grid { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 640px) {
  .why-vis { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .why-stat-card { padding: 1.2rem 1rem; }
  .why-stat-card .ws-val { font-size: 1.7rem; }
  .adv-item { padding: 1rem; }
  .icon-box { width: 44px; height: 44px; border-radius: 12px; }
}

/* ============================================================
   APPLY FORM — mobile
   ============================================================ */
@media (max-width: 768px) {
  .form-shell { border-radius: 20px; }
  .form-top-bar { padding: 1.2rem 1.25rem; overflow-x: auto; }
  .form-steps-nav { min-width: max-content; gap: 0.25rem; }
  .fstep::after { right: -20%; }
  .form-body { padding: 1.75rem 1.25rem; }
}
@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; gap: 1rem; }
  .f-group.span2 { grid-column: 1; }
  .form-top-bar { padding: 1rem; }
  .fstep-lbl { display: none; }
  .fstep-dot { width: 28px; height: 28px; font-size: 0.72rem; }
  .form-nav { flex-direction: row; gap: 0.75rem; }
  .form-nav .btn { flex: 1; justify-content: center; padding: 0.85rem 1rem; font-size: 0.85rem; }
  .drop-zone { padding: 1.3rem; }
  .dz-icon { font-size: 1.8rem; }
  .submit-note { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .form-body { padding: 1.25rem 1rem; }
  .f-input, .f-select, .f-textarea { padding: 0.75rem 0.9rem; font-size: 0.88rem; min-height: 48px; }
  .f-step-head h3 { font-size: 1.1rem; }
}

/* ============================================================
   TESTIMONIALS — mobile
   ============================================================ */
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testi-card { padding: 1.5rem 1.25rem; }
  .tc-text { font-size: 0.85rem; }
}

/* ============================================================
   FAQ — mobile
   ============================================================ */
@media (max-width: 640px) {
  .faq-q { font-size: 0.86rem; padding: 1.1rem 1.25rem; min-height: 56px; line-height: 1.4; }
  .faq-body p { padding: 1rem 1.25rem; font-size: 0.84rem; }
  .faq-icon { font-size: 1.1rem; flex-shrink: 0; }
}

/* ============================================================
   OFFICES — mobile
   ============================================================ */
@media (max-width: 1100px) { .offices-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ofc-map { height: 180px; }
  .ofc-body { padding: 1.4rem 1.25rem; }
  .ofc-btns { flex-wrap: wrap; gap: 0.5rem; }
  .ofc-btn { flex: 1; min-width: 120px; justify-content: center; min-height: 44px; }
}

/* ============================================================
   DESTINATIONS SECTION — mobile
   ============================================================ */
@media (max-width: 640px) {
  #destinations { padding: 4rem 0; }
  .dest-card:hover { transform: translateY(-4px) scale(1.01); }
}

/* ============================================================
   BLOG — mobile
   ============================================================ */
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-thumb { height: 160px; }
  .blog-body { padding: 1.25rem; }
  .blog-title { font-size: 0.95rem; }
  .blog-excerpt { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 480px) {
  .blog-thumb { height: 140px; font-size: 3rem; }
}

/* ============================================================
   SECTION HEADS — mobile
   ============================================================ */
@media (max-width: 640px) {
  .section-head { margin-bottom: 2.5rem; }
  .section-head h2 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
  .section-head p { font-size: 0.9rem; }
  .eyebrow { font-size: 0.68rem; }
}
@media (max-width: 480px) {
  section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-head h2 { font-size: 1.75rem; }
}

/* ============================================================
   HERO 3D GLOBE — hide on mobile, show simplified
   ============================================================ */
@media (max-width: 1100px) { .hero-visual-wrap { display: none; } }

/* ============================================================
   FINAL CTA — mobile
   ============================================================ */
@media (max-width: 640px) {
  #cta-final { padding: 5rem 0; }
  .cta-headline { font-size: clamp(2rem, 7vw, 2.8rem); }
  .cta-sub { font-size: 0.9rem; }
  .cta-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .cta-trust { gap: 1rem; }
  .cta-trust-item { font-size: 0.78rem; }
}

/* ============================================================
   FOOTER — mobile
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 0 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal { justify-content: center; gap: 1rem; flex-wrap: wrap; }
  .f-socials { gap: 0.6rem; }
  .f-social { width: 44px; height: 44px; }
  .footer-col h4 { margin-bottom: 1rem; }
  .footer-links { gap: 0.5rem; }
  .footer-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; padding-bottom: 2rem; margin-bottom: 2rem; }
  .footer-stat .fs-num { font-size: 1.6rem; }
  .footer-newsletter { flex-direction: column; align-items: stretch; text-align: center; padding: 1.5rem !important; }
  .footer-newsletter form { max-width: 100% !important; }
}

/* ============================================================
   MODALS — mobile
   ============================================================ */
@media (max-width: 640px) {
  .modal-overlay { padding: 0.5rem; align-items: flex-end; }
  .modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    width: 100%;
    transform: translateY(100%) !important;
  }
  .modal-overlay.open .modal-box { transform: translateY(0) !important; }
  .modal-header { padding: 1.5rem 1.25rem 1.2rem; }
  .modal-body { padding: 1.25rem; }
  .modal-footer { padding: 1.25rem; flex-direction: column; gap: 0.65rem; }
  .modal-footer .btn { width: 100%; justify-content: center; font-size: 0.9rem; }
  .modal-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .modal-stat .ms-val { font-size: 1.1rem; }
  .modal-close { top: 1rem; right: 1rem; }

  /* Blog modal */
  .blog-modal-hero { height: 140px; font-size: 3.5rem; border-radius: 10px; }
  .blog-modal-title { font-size: 1.15rem; }
  .blog-content { font-size: 0.86rem; }
  .blog-content h3 { font-size: 1rem; }
  .blog-modal-body { padding: 1.1rem 1.25rem; }

  /* Legal modal */
  .legal-body { padding: 1.25rem; }
  .legal-body h3 { font-size: 1rem; }
  .legal-body p, .legal-body li { font-size: 0.83rem; }

  /* Quick apply modal */
  .qa-form { padding: 1.25rem; }
  .qa-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .qa-group.full { grid-column: 1; }
  .qa-input, .qa-select { min-height: 48px; font-size: 0.88rem; }

  /* Slide up animation for mobile sheets */
  .modal-overlay { transition: opacity 0.3s ease; }
  .modal-box { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1) !important; }
}
@media (max-width: 380px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-header { padding: 1.25rem 1rem 1rem; }
  .modal-flag { font-size: 2rem; }
  .modal-uni-name { font-size: 1.1rem; }
}

/* ============================================================
   FLOATING ACTIONS — mobile
   ============================================================ */
@media (max-width: 640px) {
  .float-actions { bottom: 1.2rem; right: 1rem; gap: 0.6rem; }
  .fab-wa { width: 54px; height: 54px; }
  .fab-wa i { font-size: 1.55rem; }
  .fab-tip { display: none; }
  .fab-top { width: 42px; height: 42px; }
}

/* ============================================================
   COOKIE BANNER — mobile
   ============================================================ */
@media (max-width: 640px) {
  .cookie-bar {
    left: 0.75rem; right: 0.75rem; max-width: none;
    bottom: 0.75rem; padding: 1rem 1.25rem;
  }
  .cookie-bar p { font-size: 0.78rem; }
  .cookie-btns { gap: 0.5rem; }
  .cookie-btns .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ============================================================
   3D LOGO — mobile
   ============================================================ */
@media (max-width: 480px) {
  .logo-cube { width: 36px; height: 36px; }
  .logo-cube-inner { font-size: 0.9rem; border-radius: 10px; }
  .logo-text-main { font-size: 1.15rem; }
}

/* ============================================================
   WHY MALAYSIA VISUAL CARD — mobile
   ============================================================ */
@media (max-width: 640px) {
  .malaysia-card-3d { border-radius: 20px; }
  .my-pills { gap: 0.4rem; }
  .pill { font-size: 0.68rem; padding: 0.25rem 0.7rem; }
}

/* ============================================================
   SECTION PADDING — mobile rhythm
   ============================================================ */
@media (max-width: 768px) {
  #metrics, #why-malaysia, #services, #destinations,
  #universities, #schools, #journey, #why-izysco,
  #apply, #testimonials, #faq, #offices, #blog { padding: 5rem 0; }
}
@media (max-width: 480px) {
  #metrics, #why-malaysia, #services, #destinations,
  #universities, #schools, #journey, #why-izysco,
  #apply, #testimonials, #faq, #offices, #blog { padding: 4rem 0; }
}

/* ============================================================
   WOW MOBILE ENHANCEMENTS
   ============================================================ */

/* Glassmorphism cards look even better on mobile — reduce blur for perf */
@media (max-width: 640px) {
  .glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .modal-overlay { backdrop-filter: blur(6px); }
}

/* Mobile section eyebrow — centered */
@media (max-width: 640px) {
  .section-head { text-align: center; }
  .section-head .eyebrow { margin: 0 auto 0.85rem; display: flex; width: fit-content; }
  .section-head p { padding: 0 0.5rem; }
}

/* Smooth card interaction on mobile tap */
@media (max-width: 900px) {
  .glass:active { transform: scale(0.97); transition: transform 0.12s ease; }
  .dest-card:active { transform: scale(0.97) !important; }
  .blog-card:active { transform: scale(0.97) !important; }
  .btn:active { transform: scale(0.96) !important; }
}

/* Better scroll behaviour inside modals */
.modal-box { overscroll-behavior: contain; }

/* Prevent text selection on interactive cards */
.dest-card, .blog-card, .uni-card { user-select: none; }
.uni-card .uni-name, .uni-card .uni-loc { user-select: text; }

/* Touch-friendly journey steps */
@media (max-width: 640px) {
  .j-step { padding: 0.5rem 0.25rem; }
  .j-bubble-wrap { margin-bottom: 0.75rem; }
}

/* Gallery-style horizontal scroll for schools on smallest screens */
@media (max-width: 380px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
}

/* Testimonial horizontal scroll on mobile */
@media (max-width: 640px) {
  .testi-grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 1rem;
    padding-bottom: 1rem; scroll-snap-type: x mandatory;
  }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi-card {
    min-width: 85vw; flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* Mobile hero trust row */
@media (max-width: 480px) {
  .hero-trust { display: none; }
}

/* Better form shell on mobile */
@media (max-width: 640px) {
  .form-shell { margin: 0 -0.25rem; border-radius: 20px; }
}

/* Why IZYSCO stats 2-col on mobile */
@media (max-width: 480px) {
  .why-vis { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .why-stat-card { padding: 1.1rem 0.85rem; }
  .why-stat-card .ws-val { font-size: 1.5rem; }
}

/* Service card on mobile */
@media (max-width: 480px) {
  .srv-card { padding: 1.4rem 1.2rem; }
  .srv-card h3 { font-size: 0.95rem; }
  .srv-card p { font-size: 0.82rem; }
}

/* Input height for mobile touch */
@media (max-width: 768px) {
  .f-input, .f-select, .f-textarea,
  .qa-input, .qa-select { min-height: 48px; }
  .drop-zone { min-height: 100px; }
}

/* ============================================================
   LANDSCAPE PHONE FIXES
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero { padding: 5rem 0 3rem; min-height: auto; }
  .hero-h1 { font-size: 2rem; }
  .hero-badge-strip { display: none; }
  .hero-stats { display: none; }
  .mesh-orb { display: none; }
}

/* ============================================================
   LARGE TABLET — tighten desktop layout
   ============================================================ */
@media (min-width: 768px) and (max-width: 1100px) {
  .container { max-width: 800px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 660px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-h1 { font-size: 3.5rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .float-actions, .cookie-bar, #particles-canvas,
  .mesh-bg, .fab-wa, .fab-top { display: none !important; }
  body { background: white; color: black; }
  .glass { border: 1px solid #ddd; box-shadow: none; }
}
