/* ==========================================================================
   18. COMPREHENSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* --- LARGE LAPTOPS & DESKTOPS (1025px to 1200px) --- */
@media (max-width: 1200px) {
  .hero-slanted-bg {
    width: 58%;
  }

  .intersection-badges-grid {
    gap: 1rem;
  }

  .badge-card {
    padding: 1.1rem 1.2rem;
  }
}

/* --- TABLETS & SMALL LAPTOPS (769px to 1024px) --- */
@media (max-width: 1024px) {
  .hero-slanted-bg {
    width: 62%;
  }

  .hero-bg-wrapper {
    width: 50%;
  }

  .about-grid,
  .why-us-grid,
  .student-life-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- SMALL TABLETS & MOBILE DEVICES (Up to 768px) --- */
@media (max-width: 768px) {
  /* Fix horizontal overflow across all elements */
  html, body {
    overflow-x: hidden;
  }

  /* Navigation Mobile Toggle */
  .top-bar-left .divider,
  .top-bar-left span:nth-child(3) {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue-dark);
    padding: 1.5rem 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  /* Hero Section Mobile Adaptation */
  .hero-section {
    padding: 3rem 16px 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  /* Stack background behind content as solid overlay on mobile */
  .hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-slanted-bg {
    width: 100%;
    height: 100%;
    clip-path: none;
    transform: none;
    opacity: 0.55;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hero-slanted-bg::after {
    display: none;
  }

  .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-badge {
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-hero-white,
  .btn-hero-outline {
    width: 100%;
    box-sizing: border-box;
  }

  /* Hero Metric Badges Floating Reset */
  .hero-intersection-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: translateY(2rem);
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .intersection-badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Structural Section Adjustments */
  .about-section {
    padding-top: 5rem;
  }

  .branches-grid,
  .form-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .form-wrapper {
    padding: 1.5rem;
  }
}

/* --- SMALL MOBILE PHONES (Up to 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge,
  .section-badge {
    white-space: normal;
    word-break: break-word;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    bottom: 18px;
    left: 18px;
  }

  .media-floating-badge {
    left: 15px;
    bottom: 15px;
    padding: 10px 16px;
  }

  .life-main-img {
    height: 320px;
  }
}