/* ==========================================================================
   BRIGHT FUTURE ACADEMY — Responsive Stylesheet
   Breakpoints: Mobile (320px - 576px), Tablet (577px - 991px), 
   Laptop (992px - 1199px), Desktop (1200px+)
   ========================================================================== */

/* --- Extra Large Screens (>= 1400px) --- */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  .hero-main-img {
    height: 520px;
  }
}

/* --- Laptops & Desktops (992px to 1199px) --- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.1rem;
  }
  .floating-badge-1 {
    left: -15px;
  }
  .floating-badge-2 {
    right: -15px;
  }
  .floating-badge-3 {
    right: -20px;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}

/* --- Tablets & Small Laptops (768px to 991px) --- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.1rem;
  }

  /* Navbar Mobile Layout */
  .bfa-navbar {
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(16px);
    padding: 14px 0;
  }

  .navbar-collapse {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .navbar-nav {
    gap: 8px;
    margin-bottom: 18px;
  }

  .nav-link {
    padding: 10px 16px !important;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero Section Stacking */
  .hero-section {
    padding: 120px 0 70px;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-highlights {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual-wrapper {
    margin-top: 50px;
  }

  .hero-image-main-card {
    transform: none !important;
  }

  .hero-main-img {
    height: 400px;
  }

  /* Stats Section in Tablet */
  .stats-section {
    margin-top: 0;
    padding-top: 50px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    border-bottom: 1px solid var(--border-light);
  }

  /* Learning Process Timeline on Tablet */
  .process-timeline-line {
    display: none;
  }

  .process-step-item {
    margin-bottom: 30px;
  }

  /* Success Story */
  .success-story-card {
    padding: 35px 25px;
  }

  .success-story-img {
    height: 300px;
    margin-bottom: 30px;
  }

  /* Admission CTA */
  .admission-cta-banner {
    padding: 40px 25px;
    text-align: center;
  }
}

/* --- Mobile Landscape & Large Phones (576px to 767px) --- */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .floating-badge {
    padding: 10px 14px;
    gap: 10px;
  }

  .floating-badge-1 {
    top: 15px;
    left: -10px;
  }

  .floating-badge-2 {
    bottom: 20px;
    right: -10px;
  }

  .floating-badge-3 {
    display: none; /* Avoid visual clutter on smaller screens */
  }

  .badge-text-val {
    font-size: 1.05rem;
  }

  .badge-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

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

  .about-exp-badge {
    position: static;
    margin-top: 20px;
    display: inline-block;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* --- Small Mobile Devices (320px to 575px) --- */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 55px 0;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    padding: 105px 0 50px;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-main-img {
    height: 320px;
  }

  .floating-badge-1,
  .floating-badge-2 {
    position: static;
    margin: 10px auto;
    width: 90%;
    animation: none;
  }

  .stats-card-container {
    padding: 24px 15px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .testimonial-card {
    padding: 26px 18px;
  }

  .admission-cta-banner .cta-title {
    font-size: 2rem;
  }

  .form-card {
    padding: 26px 18px;
  }

  .score-box {
    padding: 10px 8px;
  }

  .score-val {
    font-size: 1.4rem;
  }

  .gallery-filter-btn {
    padding: 7px 14px;
    font-size: 0.825rem;
  }

  .footer-section {
    padding: 50px 0 25px;
  }
}
