/* ==========================================================================
   CRS Real Alliance - Responsiveness Styles
   --------------------------------------------------------------------------
   TABLE OF CONTENTS:
   1. LAPTOP DEVICE GRID TRANSITIONS (<1200PX)
   2. TABLET PORTRAIT DEVICE STACKING & COLLAPSIBLES (<992PX)
   3. MOBILE SMARTPHONE VIEWPORT OVERRIDES (<768PX)
   ========================================================================== */

/* 1. LAPTOP DEVICE GRID TRANSITIONS (<1200PX) */
@media (max-width: 1199.98px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
}

/* 2. TABLET PORTRAIT DEVICE STACKING & COLLAPSIBLES (<992PX) */
@media (max-width: 991.98px) {
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  #crsNavbar {
    background-color: var(--crs-primary-light);
    padding: 20px;
    border-radius: var(--crs-radius-sm);
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav {
    align-items: flex-start !important;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 10px 0 !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .mega-menu-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 !important;
    border-top: none !important;
  }
  
  .border-end-lg {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 10px;
  }
  
  .mega-menu-banner {
    min-height: auto;
  }
}

/* 3. MOBILE SMARTPHONE VIEWPORT OVERRIDES (<768PX) */
@media (max-width: 767.98px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  
  body {
    font-size: 16px;
  }
  
  .hero-section {
    text-align: center;
    padding-top: 100px !important;
  }
  
  .hero-section .d-flex {
    justify-content: center !important;
  }
  
  .hero-img-container {
    margin-top: 40px;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-number {
    font-size: 38px;
  }
}
