/* ==========================================================================
   iFAP Institute - responsive rules (breakpoints of the original design:
   640px, 768px, 1024px, 1280px, 1536px)
   ========================================================================== */

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .container { max-width: 640px; }
  .home-hero-title, .page-hero-title { font-size: 3rem; line-height: 1; }
  .home-hero-actions { flex-direction: row; }

  .section-title { font-size: 3rem; line-height: 1; }

  .courses-title { font-size: 3rem; line-height: 1; }

  .mobile-menu.offcanvas { max-width: 24rem; }
  .mobile-menu-header { text-align: left; }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
  .container { max-width: 768px; padding-left: 1.5rem; padding-right: 1.5rem; }

  .main-nav { display: flex; }
  .header-register { display: inline-flex; }
  .menu-toggle { display: none; }

  .home-hero { min-height: min(80vh, 720px); }
  .home-hero-title { font-size: 4.5rem; line-height: 1; }
  .page-hero-title { font-size: 3.75rem; line-height: 1; }
  .home-hero-text, .page-hero-text { font-size: 1.25rem; line-height: 1.75rem; }
  .ymac-strip-inner { flex-direction: row; }

  .home-section { padding: 5rem 0; }
  .section-subtitle, .cta-subtitle { font-size: 1.25rem; line-height: 1.625; }
  .cta-title { font-size: 2.25rem; line-height: 1.25; }

  .courses-page, .academy-courses, .content-page { padding-top: 5rem; padding-bottom: 5rem; }

  .job-summary { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
  .home-section { padding: 6rem 0; }
  .section-subtitle, .cta-subtitle { font-size: 1rem; line-height: 1.625; }

  .courses-tabs { display: grid; width: auto; height: 2.5rem; gap: 0; overflow: visible; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .courses-tab { min-height: 0; }
}

/* ---------- ≥ 1280px ---------- */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }

  .section-subtitle, .cta-subtitle { font-size: 1.25rem; line-height: 1.625; }
}

/* ---------- ≥ 1536px ---------- */
@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}
