/* ================================================================
   NEW HEIGHTS ACADEMY — RESPONSIVE OVERRIDES
   Mobile-first media queries for 320px → 1280px+
   ================================================================ */

/* ── 1. HAMBURGER FIX — ensure drawer works on mobile ────────── */

/* On mobile, drawer is block by default (hidden via max-height:0) */
@media (max-width: 1100px) {
  #nha-mobile-drawer {
    display: block !important;
    /* always in DOM, controlled by max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
  }

  #nha-mobile-drawer.is-open {
    max-height: 100dvh;
    overflow-y: auto;
  }

  /* Push drawer below the sticky navbar (accent 4px + navbar 70px) */
  #nha-mobile-drawer {
    top: 74px;
    /* 4px strip + 70px navbar */
    position: fixed;
    left: 0;
    right: 0;
    z-index: 990;
  }

  .nha-drawer-inner {
    padding: 16px 0 32px;
    /* reduced top since we dropped fixed top-offset */
  }

  /* Make sure desktop menu is gone */
  .nha-menu {
    display: none !important;
  }

  /* Hamburger visible */
  #nha-hamburger {
    display: flex !important;
  }
}

/* ── 2. TOPBAR — hide on mobile ──────────────────────────────── */
@media (max-width: 1100px) {
  #nha-topbar {
    display: none !important;
  }

  #nha-accent-strip {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  #nha-navbar {
    top: 4px;
  }

  /* sit below the 4px accent strip */
}

/* ── 3. NAVBAR PADDING ON SMALL SCREENS ─────────────────────── */
@media (max-width: 768px) {
  #nha-navbar {
    padding: 0 16px;
  }
}

/* ── 4. LOGO — shrink on very small screens ──────────────────── */
@media (max-width: 400px) {
  .nha-logo-name {
    font-size: 14px !important;
  }

  .nha-logo-sub {
    display: none !important;
  }

  .nha-logo-emblem {
    width: 36px !important;
    height: 36px !important;
  }

  .nha-logo a {
    padding: 4px 10px 4px 4px !important;
  }
}

/* ================================================================
   5. HERO SLIDER — Fully Responsive
   ================================================================ */

/* Tablet 768-1024 */
@media (max-width: 1024px) {
  .hero-slides {
    height: 68vh;
    min-height: 460px;
  }

  .hero-content {
    left: 6%;
    max-width: 80%;
  }

  .hero-content h1 {
    font-size: clamp(26px, 4vw, 44px);
  }
}

/* Mobile 480-768 */
@media (max-width: 768px) {
  .hero-slides {
    height: 70vh;
    min-height: 420px;
    max-height: 600px;
  }

  /* Re-center text on mobile */
  .hero-content {
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 0 22px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Pull overlay gradient to full center blur */
  .hero-overlay {
    background: rgba(10, 31, 68, 0.65);
  }

  .hero-content h1 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  /* Center the CTA button */
  .btn.btn-gold {
    display: inline-flex;
    margin: 0 auto;
  }

  /* Smaller arrows on mobile */
  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }
}

/* Small Mobile 320-480 */
@media (max-width: 480px) {
  .hero-slides {
    height: 65vh;
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: clamp(20px, 7vw, 28px);
  }

  .hero-content p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-content .hero-tag {
    font-size: 10px;
  }
}

/* ================================================================
   6. INFRA CARDS — stack properly on mobile
   ================================================================ */
@media (max-width: 768px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-card {
    border-right: none;
    border-bottom: 1px solid #eaecf0;
  }
}

@media (max-width: 400px) {
  .infra-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   7. ABOUT SECTION
   ================================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img {
    height: 280px;
  }

  .about-badge {
    bottom: auto;
    top: 12px;
    left: 12px;
  }

  .about-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    min-width: 80px;
  }
}

/* ================================================================
   8. ADMISSIONS SECTION
   ================================================================ */
@media (max-width: 900px) {
  .admissions-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .admissions-card {
    padding: 28px 20px;
  }

  .admissions-left h2 {
    font-size: 26px;
  }
}

/* ================================================================
   9. ACTIVITIES TABS
   ================================================================ */
@media (max-width: 768px) {
  .tab-panel {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .tab-image img {
    height: 240px;
  }

  .tabs-nav {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

/* ================================================================
   10. LEADERSHIP CARDS
   ================================================================ */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    padding: 28px 20px 22px;
  }
}

/* ================================================================
   11. NEWS / EVENTS GRID
   ================================================================ */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   12. CTA SECTION
   ================================================================ */
@media (max-width: 768px) {
  .cta-content {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  .cta-phone {
    font-size: 30px;
    letter-spacing: 0;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-btns .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ================================================================
   13. SECTION TYPOGRAPHY SCALING
   ================================================================ */
@media (max-width: 768px) {
  .section-heading h2 {
    font-size: 24px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .p-section {
    padding: 52px 0;
  }
}

@media (max-width: 480px) {
  .section-heading h2 {
    font-size: 22px;
  }

  .p-section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }
}

/* ================================================================
   14. RESULTS / GALLERY SECTION
   ================================================================ */
@media (max-width: 768px) {
  .results-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
  }

  .results-gallery .gallery-item {
    grid-row: auto !important;
    grid-column: auto !important;
  }
}

@media (max-width: 480px) {
  .results-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   15. FOOTER RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-copyright-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .copy-social-icons {
    justify-content: center;
  }
}

/* ================================================================
   16. POSTERS / IMAGE SCALING
   ================================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   17. GENERAL OVERFLOW PREVENTION
   ================================================================ */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}