/* ==========================================================================
   THE JAIN WORLD SCHOOL - RESPONSIVE STYLESHEET
   Supports: Desktop, Laptop, Tablet, Mobile (Clean Breakpoints)
   ========================================================================== */

/* Laptop & Tablet Large (max-width: 1199px) */
@media (max-width: 1199px) {
  .nav-link {
    padding: 14px 9px;
    font-size: 12px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  }
}

/* Tablet Portrait & Mobile (max-width: 991px) */
@media (max-width: 991px) {
  /* Utility Bar */
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  
  .top-contact-info {
    justify-content: center;
    gap: 12px;
  }
  
  .top-social-icons {
    margin-top: 4px;
  }

  /* Main School Header */
  .main-header-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .header-brand {
    flex-direction: column;
    text-align: center;
  }

  .school-logo-img {
    height: 65px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-tagline {
    font-size: 12.5px;
  }

  .header-actions {
    justify-content: center;
  }

  /* Navigation Bar Mobile Conversion */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
  }

  .main-menu {
    display: none; /* Controlled by JS toggle */
    flex-direction: column;
    width: 100%;
    background-color: var(--color-maroon-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-menu.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    font-size: 13.5px;
  }

  .dropdown-arrow {
    transform: rotate(0deg);
  }

  .nav-item.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Mobile Dropdowns */
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: #520912;
    border-top: none;
    border-left: 3px solid var(--color-gold-bright);
    padding: 4px 0 6px 15px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .dropdown-link {
    color: #F7EFE9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    font-size: 13px;
  }

  .dropdown-link:hover {
    background-color: transparent;
    color: var(--color-gold-bright);
    padding-left: 16px;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: 440px;
  }

  .hero-content {
    padding: 45px 0;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 16px auto;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    margin: 0 auto 25px auto;
    font-size: 15px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Grids */
  .welcome-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Phone Screen (max-width: 576px) */
@media (max-width: 576px) {
  .top-contact-info {
    flex-direction: column;
    gap: 6px;
  }
  
  .hero-title {
    font-size: 27px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

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

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

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

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

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .feature-check-list {
    grid-template-columns: 1fr;
  }
}
