/* ==========================================================================
   Advanced NLP (IUST - Semester 4051) Responsive Stylesheet
   Mobile Menu Drawer, Fluid Breakpoints & Adaptive Controls
   ========================================================================== */

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  /* Mobile Hamburger Button */
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    z-index: 1100;
  }

  .mobile-menu-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-hover);
  }

  /* Mobile Full-Screen Navigation Drawer */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem 3rem;
    gap: 0.65rem;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
    z-index: 1050;
  }

  .nav-links.open {
    display: flex;
    animation: drawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes drawerFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    padding: 0.95rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
  }

  .nav-link:hover, .nav-link.active {
    background-color: var(--badge-lecture-bg);
    color: var(--accent-primary);
    border-color: rgba(2, 132, 199, 0.3);
  }

  /* Schedule Cards Collapse to Stack */
  .schedule-card-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .session-meta-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.6rem 1rem;
  }

  .session-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-chips {
    justify-content: flex-start;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card-stats {
    grid-template-columns: 1fr;
  }
}
