/* ============================================
   Responsive Styles
   ============================================ */

/* Laptop 1440px */
@media (max-width: 1440px) {
  .container { padding: 0 32px; }
  .hero-title { font-size: 3rem; }
}

/* Tablet 1024px */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-title { font-size: 2.5rem; }

  .crs-grid { grid-template-columns: repeat(2, 1fr); }
  .crs-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .abt-who-grid { grid-template-columns: 1fr; gap: 40px; }
  .abt-who-visual { max-width: 360px; margin: 0 auto; }
  .abt-mvv-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .abt-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .home-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .home-why-grid { grid-template-columns: repeat(2, 1fr); }
  .home-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-about-content .section-title { text-align: left; }
  .home-stories-grid { grid-template-columns: repeat(2, 1fr); }
  .home-cta-box { flex-direction: column; text-align: center; }

  .home-blog-grid { grid-template-columns: 1fr; }
  .home-blog-card { grid-template-columns: 120px 1fr; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-image { min-height: 200px; }

  .adm-elig-grid { grid-template-columns: 1fr; gap: 40px; }
  .adm-benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .portal-grid { grid-template-columns: repeat(2, 1fr); }

  .register-form .form-row { grid-template-columns: 1fr; }
}

/* Tablet 768px */
@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 8px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .nav-links.active { right: 0; }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a::after { display: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stat-item .stat-number { font-size: 1.5rem; }
  .hero-stats { gap: 24px; }

  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }

  .crs-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .crs-card-header { height: 120px; }
  .crs-cta-box { flex-direction: column; text-align: center; padding: 40px 28px; }
  .crs-cta-content p { margin: 0 auto; }
  .crs-cta-actions { justify-content: center; }
  .abt-who-visual { grid-template-columns: 1fr 1fr; max-width: 320px; }
  .abt-timeline { padding-left: 32px; }
  .abt-timeline::before { left: 11px; }
  .abt-timeline-dot { left: -29px; }
  .abt-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .abt-cta-box { flex-direction: column; text-align: center; padding: 40px 28px; }
  .abt-cta-content p { margin: 0 auto; }
  .abt-cta-actions { justify-content: center; }
  .ct-hero { min-height: 45vh; }
  .ct-hero-title { font-size: 2.2rem; }
  .ct-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-main-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item-wide { grid-column: span 2; }
  .gal-hero { min-height: 45vh; }
  .gal-hero-title { font-size: 2.2rem; }

  .stories-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .adm-hero { min-height: 60vh; padding-bottom: 60px; }
  .adm-hero-title { font-size: 2.2rem; }
  .adm-steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .adm-step-connector { display: none; }
  .adm-elig-grid { grid-template-columns: 1fr; gap: 40px; }
  .adm-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-final-box { flex-direction: column; text-align: center; }
  .adm-final-actions { flex-direction: column; width: 100%; }
  .adm-final-actions .btn-primary,
  .adm-final-actions .btn-outline { justify-content: center; }

  .stories-featured-card { grid-template-columns: 1fr; }
  .stories-featured-image { height: 160px; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-cta-box { flex-direction: column; text-align: center; }
  .stories-cta-actions { width: 100%; }
  .stories-cta-actions .btn-primary { justify-content: center; }

  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-item-wide { grid-column: span 2; }

  .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .home-courses-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .home-why-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .home-stories-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .home-blog-card { grid-template-columns: 1fr; }
  .home-blog-card-image { height: 140px; }
  .home-cta-box { padding: 40px 32px; }
  .home-cta-content h2 { font-size: 1.5rem; }
  .home-cta-buttons { flex-direction: column; width: 100%; }
  .home-cta-buttons .btn-primary,
  .home-cta-buttons .btn-secondary { justify-content: center; }

  .post-title { font-size: 1.7rem; }
  .post-hero-image { height: 240px; }
  .post-related-grid { grid-template-columns: 1fr; }

  .portal-modal { padding: 32px 24px; }
  .portal-grid { grid-template-columns: 1fr; }

  .login-card { padding: 32px 24px; }
  .register-card { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .newsletter-form { flex-direction: column; }

  .back-to-top { bottom: 24px; right: 24px; width: 44px; height: 44px; }

  .toast { min-width: auto; max-width: calc(100vw - 48px); }
}

/* Mobile 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { padding-top: 64px; }
  .hero-title { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }

  .section-title { font-size: 1.65rem; }

  .nav-logo .logo-tagline { display: none; }
  .nav-logo .logo-name { font-size: 1rem; }

  .gal-grid { grid-template-columns: 1fr; }
  .gal-item-wide { grid-column: span 1; }
  .gal-item-tall .gal-item-inner { height: 260px; }
  .gal-cta-box { flex-direction: column; text-align: center; padding: 40px 28px; }
  .gal-cta-content p { margin: 0 auto; }
  .gal-filter-bar { gap: 8px; }
  .gal-filter { padding: 8px 16px; font-size: 0.8rem; }
  .gal-hero { min-height: 40vh; }
  .gal-hero-title { font-size: 1.8rem; }

  .crs-card-body { padding: 20px; }
  .crs-card-footer { padding: 14px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .crs-hero { min-height: 40vh; }
  .crs-hero-title { font-size: 1.8rem; }

  .abt-hero { min-height: 40vh; }
  .abt-hero-title { font-size: 1.8rem; }
  .abt-who-visual { grid-template-columns: 1fr 1fr; max-width: 280px; gap: 10px; }
  .abt-who-card { padding: 20px 14px; }
  .abt-who-card-number { font-size: 1.5rem; }
  .abt-timeline { padding-left: 28px; }
  .abt-timeline::before { left: 9px; }
  .abt-timeline-dot { left: -27px; width: 12px; height: 12px; }
  .abt-impact-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }

  .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home-stat-number { font-size: 2rem; }
  .home-course-card { padding: 24px 20px; }
  .home-why-item { padding: 24px 20px; }
  .home-about-badge { padding: 12px 20px; }
  .home-about-badge-number { font-size: 1.5rem; }
  .home-story-card { padding: 24px 20px; }
  .home-cta-box { padding: 32px 20px; }

  .adm-hero { min-height: 55vh; padding-bottom: 48px; }
  .adm-hero-title { font-size: 1.7rem; }
  .adm-hero-desc { font-size: 0.95rem; }
  .adm-hero-actions { flex-direction: column; width: 100%; }
  .adm-hero-actions .btn-primary,
  .adm-hero-actions .btn-outline { justify-content: center; }
  .adm-step { padding: 0; }
  .adm-elig-card { grid-template-columns: 1fr 1fr; gap: 14px; }
  .adm-elig-stat { padding: 20px 14px; }
  .adm-elig-stat-number { font-size: 1.5rem; }
  .adm-benefits-grid { grid-template-columns: 1fr; max-width: 400px; }
  .adm-final-box { padding: 36px 24px; }

  .stories-hero { min-height: 45vh; }
  .stories-hero-title { font-size: 1.7rem; }
  .stories-featured-body { padding: 24px; }
  .stories-featured-text { font-size: 0.95rem; }
  .stories-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .stories-stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stories-stat { padding: 24px 16px; }
  .stories-stat-number { font-size: 1.6rem; }
  .stories-cta-box { padding: 36px 24px; }
  .stories-cta-content h2 { font-size: 1.4rem; }
  .home-blog-card { grid-template-columns: 1fr; }
  .home-blog-card-image { height: 120px; }
  .blog-featured-body { padding: 24px; }
  .blog-featured-body h3 { font-size: 1.15rem; }
  .post-header { padding: 100px 0 24px; }
  .post-title { font-size: 1.45rem; }
  .post-hero-image { height: 180px; border-radius: var(--radius-lg); }
  .post-content { padding: 0 8px; }
  .post-content h2 { font-size: 1.15rem; }
  .post-cta-box { padding: 24px 20px; }
  .post-related-card { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px; }
  .post-related-image { width: 60px; height: 60px; }

  .ct-cards-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-map-embed { height: 260px; }

  .portal-modal { padding: 24px 16px; }
  .portal-title { font-size: 1.35rem; }

  .login-card { padding: 24px 16px; }
  .login-card-header h1 { font-size: 1.25rem; }

  .register-card { padding: 24px 16px; }

  .footer-top { padding: 48px 0 24px; }
}

/* Mobile 375px */
@media (max-width: 375px) {
  .hero-title { font-size: 1.5rem; }
  .hero-desc { font-size: 0.9rem; }
  .section-title { font-size: 1.4rem; }
  .home-stat-number { font-size: 1.6rem; }
  .home-stat-label { font-size: 0.8rem; }
}

/* Mobile 320px */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .nav-links { width: 240px; }
}
