/* ==========================================================================
   SAATACADEMY — Responsive Stylesheet
   Desktop, Laptop, Tablet, Mobile & Small Screen Media Queries
   Vanilla CSS3 (No Frameworks)
   ========================================================================== */

/* Laptop & Medium Desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

/* Tablet & iPad (max-width: 768px) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  /* Mobile Navigation Drawer */
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 14px;
    align-items: stretch;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 12px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-heading {
    font-size: 2.1rem;
  }

  .hero-subheading {
    font-size: 1.15rem;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 24px;
  }

  /* Sections */
  .section {
    padding: 52px 0;
  }

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

  /* Grids */
  .courses-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Policy Card */
  .policy-card {
    padding: 28px 20px;
  }

  /* Dashboard summary cards */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media screen and (max-width: 480px) {
  .logo-img {
    height: 38px;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-subheading {
    font-size: 1rem;
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-card {
    padding: 26px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quiz-controls-bar {
    flex-direction: column;
    gap: 12px;
  }

  .quiz-controls-bar .btn {
    width: 100%;
  }

  .timer-box {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
}
