/* ==========================================================================
   RESPONSIVE STYLESHEET - TRADE WITH RULES, NOT TIPS
   Mobile-first Breakpoints & Fluid Adaptations
   ========================================================================== */

/* Tablet & Intermediate Screens (< 1120px) */
@media (max-width: 1120px) {
  .nav-menu {
    gap: 5px;
  }
  .nav-menu-item a {
    font-size: 0.78125rem;
    padding: 4px 6px;
    line-height: 1.12;
  }
  .header-cta-wrap .btn-primary {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

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

  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-headline {
    font-size: 2.375rem;
  }

  .hero-bullets {
    align-items: center;
  }

  .hero-bullet-item {
    text-align: left;
    max-width: 540px;
  }

  .hero-cta-box {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }

  .mockup-container {
    max-width: 340px;
  }

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

  .preview-tab-pane.active {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sebi-stats-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .package-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-menu-wrap {
    display: none; /* Mobile users use sticky button and in-page sections */
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-headline {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .current-price {
    font-size: 2.25rem;
  }

  .problem-grid,
  .curriculum-grid,
  .difference-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .section-desc {
    font-size: 0.9375rem;
  }

  .preview-tab-pane {
    padding: 20px 16px;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ==========================================================================
   TABLE RESPONSIVENESS & CLEAN TABLET BREAKPOINTS
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.table-responsive .calc-table {
  min-width: 480px;
  width: 100%;
}

@media (max-width: 1024px) {
  .nav-menu-wrap {
    display: none !important; /* Keep tablet header uncluttered */
  }
}

@media (max-width: 600px) {
  .sizing-card {
    padding: 20px 14px !important;
  }
  .hero-headline {
    font-size: 1.75rem !important;
    overflow-wrap: break-word;
  }
}

@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

/* Responsive Header Fit for Desktop (<= 1366px) and Mobile (<= 480px) */
@media (max-width: 1366px) {
  .nav-menu {
    gap: 6px !important;
  }
  .nav-menu-item a {
    font-size: 0.8rem !important;
    padding: 5px 6px !important;
  }
  .header-cta-wrap .btn-primary {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 28px !important;
  }
  .header-inner {
    gap: 8px !important;
  }
  .header-cta-wrap .btn-primary {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
    gap: 6px !important;
  }
  .header-cta-wrap .btn-primary svg {
    width: 13px !important;
    height: 13px !important;
  }
}
