/* =========================================================
   Grab Knowledge — Responsive rules
   ========================================================= */

@media (max-width: 1200px) {
  .wa-header-btn { width: 42px; min-height: 42px; height: 42px; padding: 0; border-radius: 50%; gap: 0; }
  .wa-header-btn span { display: none; }
  .wa-header-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 14px; }
  .nav-link { font-size: .88rem; }
  .brand-logo img { width: 132px; }
  .btn { padding-inline: 20px; }
  .login-btn { display: none; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .main-nav,
  .header-actions .login-btn,
  .header-actions .btn { display: none; }

  .mobile-toggle { display: grid; }
  .header-actions { gap: 8px; }
  .header-inner { min-height: var(--header-h); }

  .hero-grid,
  .page-hero-grid,
  .split,
  .impact-panel,
  .device-cta,
  .newsletter-inner { grid-template-columns: 1fr; }

  .hero-copy { text-align: center; }
  .hero-copy p.lead { margin-inline: auto; }
  .hero-buttons,
  .trust-row { justify-content: center; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .page-hero-grid { text-align: center; }
  .page-hero p { margin-inline: auto; }
  .page-hero img.hero-photo { max-width: 580px; margin-inline: auto; }
  .split img { max-width: 620px; margin-inline: auto; }
  .impact-art { max-width: 520px; margin-inline: auto; }
  .device-mockups { max-width: 520px; margin-inline: auto; width: 100%; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-grid,
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .testimonial-track > .testimonial-card:not(:first-child) { display: none; }
}

@media (max-width: 720px) {
  .container,
  .container-narrow { width: min(100% - 32px, var(--container)); }
  .section { padding: 62px 0; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .section-head { margin-bottom: 34px; text-align: left; }
  .section-head p { font-size: 1rem; }

  .brand-logo img { width: 124px; }
  .search-overlay { padding-top: 8vh; }
  .search-box { padding: 20px; border-radius: 20px; }

  .hero { padding-top: 52px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .trust-row { gap: 14px; }
  .trust-item { font-size: .82rem; }
  .trust-icon { width: 34px; height: 34px; }
  .float-deco.bulb { width: 50px; height: 50px; left: -10px; }
  .float-deco.book { left: -10px; bottom: 12px; }
  .float-deco.star { right: -8px; }
  .float-deco.pencil { right: 4px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .mission-grid,
  .guide-steps,
  .value-strip,
  .stats-strip,
  .impact-list,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-col:last-child { grid-column: auto; }
  .footer-logo img { width: 160px; }
  .footer-grid { gap: 26px; }
  .footer-bottom { justify-content: flex-start; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-chips { order: 2; }
  .filter-search { order: 1; }
  .filter-btn { font-size: .8rem; padding: 8px 13px; }

  .course-media { height: 185px; }
  .blog-media { height: 190px; }
  .card-body { padding: 20px; }
  .feature-card, .benefit-card { padding: 24px; }

  .page-hero { padding: 46px 0 56px; }
  .page-hero h1 { font-size: 2.35rem; }
  .article-header h1 { font-size: 2.25rem; }
  .article-body { font-size: 1rem; }
  .toc { padding: 20px; }
  .faq-question { padding: 17px 18px; font-size: .94rem; }
  .faq-answer p { padding: 0 18px 18px; }

  .sticky-enquiry { display: block; }
  body.has-sticky-enquiry { padding-bottom: 86px; }
  .has-sticky-enquiry .whatsapp-float { bottom: 92px; }

  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (max-width: 420px) {
  .container, .container-narrow { width: min(100% - 24px, var(--container)); }
  .brand-logo img { width: 112px; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .mobile-toggle { width: 40px; height: 40px; }
  h1 { font-size: 2.2rem; }
  .trust-row { flex-direction: column; align-items: center; }
  .device-mockups { gap: 8px; }
  .course-meta { gap: 10px; }
}

@media print {
  .site-header, .site-footer, .whatsapp-float, .sticky-enquiry,
  .carousel-controls, .search-overlay, .mobile-menu { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
