/* ============================================================
   VIANMAX ACADEMY — Responsive Stylesheet
   Breakpoints: 1200px | 1024px | 768px | 480px | 320px
   ============================================================ */

/* ── 1200px ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .categories-grid    { grid-template-columns: repeat(2, 1fr); }
  .instructors-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .courses-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* ── 1024px ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 4rem; }

  .navbar-nav { display: none; }
  .hamburger  { display: flex; }

  .hero-slider { height: 85vh; }

  .welcome-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .welcome-visual { order: -1; max-width: 480px; margin: 0 auto; }

  .paths-grid      { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .cta-grid        { grid-template-columns: 1fr; gap: 2.5rem; }

  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item-bar:nth-child(2) { border-right: none; }
  .stat-item-bar { border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item-bar:nth-child(3),
  .stat-item-bar:nth-child(4) { border-bottom: none; }
}

/* ── 768px ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .categories-grid    { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .courses-grid       { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .benefits-grid      { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonials-grid  { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .instructors-grid   { grid-template-columns: repeat(2, 1fr); }

  .welcome-text .kpi-row { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }

  .slide-content h1 { font-size: 1.9rem; }
  .slide-content p  { font-size: .95rem; }

  .section-header h2 { font-size: 1.65rem; }

  .slider-arrow { display: none; }

  /* Batches table — scroll */
  .batches-scroll { overflow-x: auto; }
  .batches-table  { min-width: 700px; }

  .hero-slider { height: 80vh; min-height: 520px; }
  .slide-counter { display: none; }
}

/* ── 768px logo scale-down ───────────────────────────────── */
@media (max-width: 768px) {
  .navbar-logo img { height: 54px !important; }
}

/* ── 480px ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --section-py: 3rem; }

  .container { padding: 0 1rem; }

  .navbar-inner { height: 64px; }
  .navbar-logo img { height: 46px !important; }
  .hero-slider  { margin-top: 64px; height: 88vh; }

  .slide-content { padding: 0 1.25rem; }
  .slide-content h1 { font-size: 1.6rem; }
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .slide-actions .btn { width: auto; }

  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item-bar .num { font-size: 1.5rem; }

  .instructors-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .welcome-text .kpi-row { grid-template-columns: 1fr; }

  .cta-form-card { padding: 1.75rem; }

  .mobile-nav { width: 280px; }

  .btn-lg { padding: .75rem 1.5rem; font-size: .92rem; }

  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.45rem; }

  .course-thumb { height: 150px; font-size: 2.8rem; }

  .paths-grid { max-width: 100%; }
  .path-card  { padding: 2rem 1.5rem; }

  .welcome-float { display: none; }
}

/* ── 320px ───────────────────────────────────────────────── */
@media (max-width: 320px) {
  .navbar-logo img { height: 40px !important; }
  .slide-content h1 { font-size: 1.35rem; }
  .stats-bar-inner  { grid-template-columns: 1fr; }
  .stat-item-bar    { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item-bar:last-child { border-bottom: none; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
