/* ==========================================================================
   GOVERNMENT WEB PORTAL - RESPONSIVE STYLESHEET (responsive.css)
   Mobile First & Breakpoints for Smart Phones, Tablets & Desktops
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Displays (1200px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero-heading {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Tablets & Medium Screens (Under 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .header-actions-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-search {
    flex-grow: 1;
    width: auto;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   3. Mobile Navigation & Small Screens (Under 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .top-bar-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gov-tools-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  
  .header-branding {
    gap: 0.75rem;
  }
  
  .emblem-svg {
    width: 44px;
    height: 58px;
  }
  
  .board-title-hi {
    font-size: 0.95rem;
  }
  
  .board-title-en {
    font-size: 1.05rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    margin: 0.5rem 0;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--gov-primary-dark);
  }
  
  .nav-menu.mobile-open {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #04172a;
    border-top: none;
    border-left: 3px solid var(--gov-saffron);
    border-radius: 0;
  }
  
  .dropdown-item a {
    color: #e2e8f0;
    padding-left: 1.5rem;
  }
  
  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }
  
  .hero-heading {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.9375rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    divide-x: none;
  }
  
  .stat-box {
    border-bottom: 1px solid var(--gov-border-light);
    padding-bottom: 0.75rem;
  }
  
  .stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-input {
    width: 100%;
  }
  
  .gov-table-wrapper {
    overflow-x: auto;
  }
}

/* --------------------------------------------------------------------------
   4. Extra Small Phones (Under 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .helpline-box {
    display: none; /* Keep header clean on small phones, accessible via footer */
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}
