/* ==========================================================================
   MSAJCE Result Portal - Responsive Breakpoint Rules
   Author: Autonomous Examination Cell
   ========================================================================== */

/* -------------------------------------------------------------
   1. Large Desktops & Ultrawide (1400px to 1920px+)
   ------------------------------------------------------------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 3.25rem;
  }

  .search-card {
    padding: 2.75rem;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1480px;
  }
  
  html {
    font-size: 17px;
  }
}

/* -------------------------------------------------------------
   2. Standard Laptops (992px to 1399px)
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* -------------------------------------------------------------
   3. Tablets & Small Laptops (768px to 991px)
   ------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .portal-brand {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .portal-header {
    text-align: center;
  }
}

/* -------------------------------------------------------------
   4. Phablets & Portrait Tablets (576px to 767px)
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  .top-utility-bar {
    text-align: center;
  }

  .top-utility-bar .d-flex {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-content h1 {
    font-size: 1.95rem;
  }

  .search-card {
    padding: 1.75rem 1.25rem;
  }

  .search-card-header h2 {
    font-size: 1.25rem;
  }

  .features-section,
  .portals-section,
  .steps-section,
  .portal-footer {
    padding: 3.5rem 0;
  }

  .footer-heading {
    margin-top: 1.5rem;
  }
}

/* -------------------------------------------------------------
   5. Standard Mobile Phones (375px to 575px)
   ------------------------------------------------------------- */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .portal-logo {
    height: 52px;
  }

  .portal-title-block h1 {
    font-size: 1.15rem;
  }

  .portal-title-block p {
    font-size: 0.78rem;
  }

  .btn-portal-primary,
  .btn-portal-accent,
  .btn-portal-outline {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

/* -------------------------------------------------------------
   6. Ultra-Compact Mobile Phones (320px to 360px)
   ------------------------------------------------------------- */
@media (max-width: 360px) {
  html {
    font-size: 14.5px;
  }

  .portal-logo {
    height: 44px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .search-card {
    padding: 1.25rem 1rem;
  }

  .btn-search-trigger {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .portal-grid-item {
    padding: 1.25rem 1rem;
  }
}
