@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-collapse {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    margin-top: 15px;
  }

  .nav-link {
    margin: 10px 0;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-content h1 {
    font-size: 2.2rem !important;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.35;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    text-align: left !important;
    margin: 0 0 20px 0 !important;
    max-width: 100% !important;
  }
  
  .hero-btns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 15px !important;
  }
  
  .hero-btns .btn {
    font-size: 0.85rem !important;
    padding: 12px 0 !important;
    width: 48% !important;
    text-align: center !important;
    display: inline-block !important;
  }
}

/* Custom Responsive Hero Slider Styles */
.responsive-hero {
  height: 90vh;
  height: 90dvh;
  min-height: 600px;
}
.hero-slide-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 991.98px) {
  .responsive-hero {
    height: 60vh;
    height: 60dvh;
    min-height: 500px;
  }
}

@media (max-width: 767.98px) {
  .responsive-hero {
    height: auto;
    min-height: 500px;
    padding: 40px 0;
  }
  .hero-slide-bg {
    /* Focus the background more to the right so products remain visible */
    background-position: 70% center;
  }
  .responsive-hero h1.display-4 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }
  .responsive-hero p.lead {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .navbar .container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  .navbar-brand img {
    max-height: 35px !important;
    max-width: 140px !important;
  }
}

@media (max-width: 575.98px) {
  .responsive-hero {
    height: auto;
    min-height: 400px;
    padding: 30px 0;
  }
  .hero-slide-bg {
    /* Push background further right on very small screens */
    background-position: 80% center;
  }
  .responsive-hero h1.display-4 {
    font-size: 1.6rem !important;
  }
  .responsive-hero p.lead {
    font-size: 0.9rem !important;
  }
}

/* About Page Responsive Images */
.about-hero-img {
  min-height: 500px;
}
.gallery-img-large {
  height: 400px;
}
.gallery-img-small {
  height: calc(200px - 0.5rem);
}

@media (max-width: 991.98px) {
  .about-hero-img {
    min-height: 400px;
  }
  /* Facilities Gallery - tablet */
  .facilities-card {
    padding: 30px !important;
  }
  .facilities-card h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 767.98px) {
  .about-hero-img {
    min-height: 250px;
  }
  .gallery-img-large {
    height: 250px;
  }
  .gallery-img-small {
    height: 180px;
  }
  /* Facilities Gallery - mobile */
  .facilities-card {
    padding: 20px !important;
  }
  .facilities-card h2 {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
  }
  .facilities-card p {
    font-size: 0.rem !important;
  }
  .facilities-card .rounded-4 {
    padding: 0.75rem !important;
  }
  /* Page header - mobile */
  .page-header h1.display-3 {
    font-size: 1.75rem !important;
  }
  .page-header .lead {
    font-size: 0.95rem !important;
  }
  /* About section text */
  .about-text-content p {
    font-size: 0.rem !important;
    line-height: 1.9 !important;
  }
  .mentor-highlight {
    padding: 1rem !important;
  }
  /* Statistics counters stagger reset */
  .about-section .col.flex-fill {
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .about-hero-img {
    min-height: 200px;
  }
  .gallery-img-large {
    height: 200px;
  }
  .gallery-img-small {
    height: 150px;
  }
  .facilities-card {
    padding: 15px !important;
  }
  .facilities-card h2 {
    font-size: 1.3rem !important;
  }
  .page-header h1.display-3 {
    font-size: 1.4rem !important;
  }
}

/* Why Choose Us - Disable parallax on mobile */
@media (max-width: 767.98px) {
  .why-choose-us .pinned-scroll-track {
    height: auto !important;
  }
  .why-choose-us .pinned-viewport {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  .why-choose-us .cards-area {
    position: relative !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px 30px;
  }
  .parallax-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    padding: 24px !important;
  }
}
