/* ========================================
   RESPONSIVE — Adward Public School
   Mobile-first breakpoints
   ======================================== */

/* 992px – Tablets landscape & small desktops */
@media (max-width: 992px) {

  .top_container { height: auto; }
  .top_container.sub_pages { height: auto; min-height: 160px; }

  .hero-container {
    flex-direction: column;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .hero_detail-box { width: 100%; }
  .hero_img-container { width: 100%; }
  .hero_detail-box h1 { font-size: 2rem; }

  /* Modern Mobile Navbar Drawer */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    padding: 80px 20px 40px;
    z-index: 10000;
    transition: 0.4s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex !important;
    flex-direction: column;
  }

  .navbar-collapse.show {
    right: 0;
  }

  /* Overlay when drawer is open */
  .navbar-collapse.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
  }

  .custom_nav-container.navbar-expand-lg .navbar-nav {
    width: 100%;
    margin-bottom: 20px;
  }

  .custom_nav-container.navbar-expand-lg .navbar-nav .nav-link {
    color: #fff !important;
    padding: 15px 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    width: 100%;
  }

  .custom_nav-container.navbar-expand-lg .navbar-nav .nav-link::after {
    display: none !important;
  }

  .custom_nav-container.navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
    color: var(--secondary) !important;
  }

  .nav-whatsapp-btn { 
    margin: 20px 0 0 0 !important; 
    width: 100%;
    justify-content: center;
    padding: 14px !important;
    font-size: 0.95rem !important;
  }

  /* High-end Custom Navbar Icons */
  .navbar-toggler {
    display: none !important;
  }

  .mobile-nav-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
  }

  .mobile-nav-open:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.9);
  }

  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    font-family: Arial, sans-serif;
    font-weight: 300;
    transition: 0.2s;
  }

  .mobile-nav-close:active {
    transform: rotate(90deg) scale(0.8);
  }

  .navbar-nav {
    margin-top: 20px;
  }

  .about-content-grid {
    flex-direction: column;
    gap: 24px;
  }

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

  .section-cta-strip .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats { gap: 20px; }

  .admission-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* 820px – Tablets */
@media (max-width: 820px) {

  .contact-conversion-grid { grid-template-columns: 1fr; }

  .facility-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* 768px – Large phones / small tablets */
@media (max-width: 768px) {

  .hero_section { padding: 40px 0 60px; }
  .hero_detail-box { text-align: center; }
  .hero_detail-box .hero-tag { display: block; width: fit-content; margin: 0 auto 14px; }
  .hero_btn-container { justify-content: center; }
  .hero-stats { justify-content: center; gap: 16px; }

  .main-heading { font-size: 1.5rem; }

  .admission-cta-container h2 { font-size: 1.8rem; }

  .about-content-grid { gap: 20px; }

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

  .cbse-highlight { gap: 12px; }
  .cbse-item { min-width: 110px; }
  .cbse-item .cbse-num { font-size: 1.5rem; }

  .sub-page-header h1 { font-size: 1.6rem; }
  .sub-page-header { padding: 40px 0 20px; }

  .footer-main .row > div { margin-bottom: 24px; }
}

/* 576px – Small phones */
@media (max-width: 576px) {

  .layout_padding { padding: 50px 0; }
  .layout_padding2 { padding: 30px 0; }

  .urgency-bar { font-size: 0.78rem; padding: 8px 12px; }

  .hero_detail-box h1 { font-size: 1.65rem; }
  .hero_detail-box h3 { font-size: 0.92rem; }

  .btn-whatsapp-hero, .btn-call-hero {
    width: 100%;
    justify-content: center;
  }

  .btn-wa-large, .btn-call-large {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
  }

  .floating-wa-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .section-cta-strip .btn-wa-strip {
    width: 100%;
    justify-content: center;
  }

  .teacher-card-img { height: 200px; }

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

  .contact-cta-box { gap: 12px; }

  .admission-btn-group { gap: 12px; }

  .hero-stat-item .stat-number { font-size: 1.3rem; }
  .hero-stat-item .stat-label { font-size: 0.65rem; }

  .feature-icon { width: 56px; height: 56px; font-size: 1.35rem; }

  .admission-cta-container h2 { font-size: 1.5rem; }
  .admission-cta-container p { font-size: 0.88rem; }

  .quick-form { padding: 22px 18px; }

  .footer-brand-col h4 { font-size: 1.2rem; }
}

/* 400px – Very small phones */
@media (max-width: 400px) {
  .hero_detail-box h1 { font-size: 1.4rem; }
  .main-heading { font-size: 1.35rem; }
  .cbse-highlight { flex-direction: column; }
  .cbse-item { min-width: unset; }
}

/* 1200px+ – Large desktops */
@media (min-width: 1200px) {
  .container { max-width: 1170px; }
  .hero_detail-box h1 { font-size: 2.8rem; }
}