/* ==========================================================================
   iSathi.com - Responsive Stylesheet
   ========================================================================== */

/* Large Screens (1200px and down) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.3rem;
  }

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

/* Medium Screens - Tablets (991.98px and down) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 1rem 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn-group {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .hero-img-box {
    margin-top: 1.5rem;
  }

  .hero-slide-content {
    padding: 0rem 1rem;
  }

  .hero-floating-card {
    display: none;
    /* Hide floating badges on mobile/tablet to avoid overlap */
  }

  .hero-stats-bar {
    margin-top: 2rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* Mega Menu Mobile Behavior */
  .has-mega-menu {
    position: relative !important;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 1rem;
    box-shadow: none;
    border-top: none;
    background-color: var(--light-blue);
    border-radius: var(--radius-sm);
  }

  .has-mega-menu.open .mega-menu {
    display: block;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0 !important;
  }

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

  .pathway-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pathway-nav::before {
    display: none;
  }

  .pathway-step-btn {
    width: 100%;
    justify-content: center;
  }

  .search-category-select {
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
  }

  .search-input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Small Screens - Mobile (767.98px and down) */
@media (max-width: 767.98px) {
  .top-header {
    font-size: 0.78rem;
  }

  .section-padding {
    padding: 1rem 0;
  }

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

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

  .hero-stats-bar {
    padding: 1rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  .riasec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-quiz-card {
    padding: 1.25rem;
  }
}

/* Extra Small Mobile (575.98px and down) */
@media (max-width: 575.98px) {
  .riasec-grid {
    grid-template-columns: 1fr;
  }

  .btn-custom-primary,
  .btn-custom-secondary,
  .btn-custom-outline {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

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

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}