/* ==========================================================================
   VIJYORA EDUCATION - Responsive Stylesheet
   Mobile First & Progressive Breakpoint Enhancements
   ========================================================================== */

/* Tablet & Smaller Desktops (< 1120px) */
@media screen and (max-width: 1120px) {
  .hero-title {
    font-size: 2.85rem;
  }
  
  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .feature-item:nth-child(3) {
    border-right: none;
  }
  
  .feature-item:nth-child(4),
  .feature-item:nth-child(5) {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablet Portrait & Large Mobile (< 992px) */
@media screen and (max-width: 992px) {
  .header-inner {
    height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #061423;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    justify-content: space-between;
  }

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

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: none;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero adjustments */
  .hero-section {
    padding: 2.5rem 0 5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

  /* Stats banner */
  .stats-banner-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .stats-quote-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 0;
    padding-bottom: 2rem;
  }

  .quote-accent-bar {
    margin: 0 auto;
  }

  /* Trust Bar */
  .trust-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .trust-motto {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    width: 100%;
  }

  /* Form Grid */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

/* Mobile Screens (< 768px) */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-quote {
    font-size: 1.25rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .feature-bar-section {
    margin-top: -2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    padding-right: 0;
  }

  .feature-item:nth-child(4),
  .feature-item:nth-child(5) {
    border-top: none;
    padding-top: 0;
  }

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

  .stats-counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Small Mobile Screens (< 520px) */
@media screen and (max-width: 520px) {
  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle-line {
    font-size: 0.65rem;
  }

  .brand-trust {
    display: none;
  }

  .header-actions .btn-enquiry {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group a,
  .hero-cta-group button {
    width: 100%;
    justify-content: center;
  }

  .institutions-grid {
    grid-template-columns: 1fr;
  }

  .modal-window {
    border-radius: var(--radius-md);
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem;
  }
}
