/* ==========================================================================
   RESPONSIVE STYLES FOR IRCA GROUP
   ========================================================================== */

/* Breakpoint: Desktop Small / Tablet Landscape */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-visual {
    max-width: 650px;
    margin: 0 auto;
  }

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

  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .methodology-media {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .contact-card-wrapper {
    grid-template-columns: 1fr;
  }

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

/* Breakpoint: Tablets */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-user-portal {
    padding: 0.45rem 0.9rem;
    font-size: 0.825rem;
  }

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

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

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

  .hero-image-wrapper img {
    height: 380px;
  }

  .hero-badge-top {
    left: 10px;
    top: -15px;
  }
  .hero-badge-bottom {
    right: 10px;
    bottom: -15px;
  }

  .quiz-container-card {
    padding: 2rem 1.5rem;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

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

  .faculty-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-side, .contact-form-side {
    padding: 2.25rem 1.75rem;
  }

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

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

/* Breakpoint: Mobile Small */
@media (max-width: 480px) {
  .btn-user-portal {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
  }
  .btn-user-portal .btn-user-text {
    display: none;
  }

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

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

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stat-item {
    align-items: center;
  }

  .hero-image-wrapper img {
    height: 300px;
  }

  .hero-badge-floating {
    display: none; /* Hide floating badges on very small phones for clean layout */
  }

  .calc-wrapper {
    padding: 1.75rem 1.25rem;
  }

  .calc-result-time {
    font-size: 2.5rem;
  }

  .testi-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
  .testi-score-badge {
    margin: 0 auto 0.75rem auto;
  }
}
