/* ─────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   responsive.css
───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .course-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  body .header-default .navbar-menu { position: static; order: 3; width: 100%; }
  .navbar-nav .menu-item:not(:last-child) { width: 100%; }

  body .header-default .navbar-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.50);
    z-index: 190;
    transition: opacity .25s ease;
  }
  body .header-default .navbar-nav-overlay.active { display: block; opacity: 1; }

  body .header-default .navbar .navbar-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 290px;
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--c-border);
    padding: 18px 16px 26px;
    overflow-y: auto;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    list-style: none;
  }
  body .header-default .navbar .navbar-nav.active { transform: translateX(0); pointer-events: auto; }

  body .header-default .navbar .navbar-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
  }
  body .header-default .navbar .navbar-nav .menu-item > a:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
  }

  body .header-default .navbar-toggler { display: inline-flex; }

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

  /* Quiz hero stacked */
  .quiz-hero { flex-direction: column; padding: 48px 24px 40px; text-align: center; }
  .quiz-hero-inner { max-width: 100%; }
  .quiz-hero-subtitle { margin-left: auto; margin-right: auto; }
  .quiz-hero-stats { justify-content: center; }
  .quiz-hero-graphic { display: none; }
  .quiz-body { padding: 36px 20px 60px; }

  /* Footer centered */
  body .custom-footer,
  body .custom-footer * { text-align: center; }
  body .custom-footer .col-xl-4,
  body .custom-footer .col-lg-4,
  body .custom-footer .col-md-6,
  body .custom-footer .col-md-12,
  body .custom-footer .col-sm-12 { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  body .custom-footer .footer-brand { padding-right: 0; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
  body .custom-footer .footer-title::after { left: 50%; transform: translateX(-50%); }
  body .custom-footer .footer-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  body .custom-footer .footer-menu li { text-align: center; }
  body .custom-footer .footer-menu li a { justify-content: center; }
  body .custom-footer .footer-subscribe-form { margin-left: auto; margin-right: auto; }
  body .custom-footer .footer-social { justify-content: center; }
  body .custom-footer .footer-bottom-content { justify-content: center; text-align: center; }

  body .custom-footer .footer-widgets { padding: 70px 0 50px; }
  body .custom-footer .footer-brand { padding-right: 0; margin-bottom: 20px; }
  body .custom-footer .footer-title { margin-top: 10px; }
  body .custom-footer .footer-description { max-width: 100%; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0 !important; }
  .hero-section { padding: 56px 0 50px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--c-border); border-top: 1px solid var(--c-border); }
  .stat-item:last-child   { border-top: 1px solid var(--c-border); }

  .course-categories { grid-template-columns: repeat(2, 1fr); }
  .courses-grid      { grid-template-columns: 1fr; }
  .lessons-grid      { grid-template-columns: 1fr; }
  .process-grid      { grid-template-columns: 1fr; }
  .quiz-grid         { grid-template-columns: repeat(2, 1fr); }

  .lesson-card { flex-direction: column; gap: 14px; }
  .cta-inner   { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .language-skills .skills-header { margin-bottom: 24px; }

  .digital-products-header { flex-direction: column; align-items: flex-start; gap: 24px; padding: var(--space-7) 16px; }
  .digital-products-header .section-header { max-width: 100%; }
  .digital-products-header > div:last-child { max-width: 100%; }

  /* Quiz single responsive */
  .quiz-single-wrap { margin: 20px auto 60px; }
  .quiz-single-title { font-size: 1.25rem; padding: 20px 20px 18px; }
  .qsm-question-page { padding: 20px; }
  .qsm-question-wrapper { padding: 20px 0; }
  .qsm-navigation, .qsm-pagination { padding: 16px 20px; gap: 8px; }
  .qmn_btn, .qsm-btn { padding: 11px 18px; font-size: 0.88rem; min-width: 100px; }
  .qsm-page-counter { margin-right: 0; width: 100%; text-align: center; margin-bottom: 12px; }
  .qsm-error-message, .qmn_error_message_section { margin: 0 20px 14px; }
  .qmn_question_answer { padding: 16px 20px; }
  .qsm_retake_button, #qsm_retake_button { margin: 16px 20px 20px; }

  body .custom-footer { margin-top: 60px; }
  body .custom-footer .footer-widgets { padding: 60px 0 40px; }
  body .custom-footer .footer-title { font-size: 20px; margin-top: 25px; }
  body .custom-footer .footer-subscribe-form {
    flex-direction: column;
    background: transparent;
    gap: 12px;
    border-radius: 0;
    overflow: visible;
  }
  body .custom-footer .footer-subscribe-form input { background: #fff; border-radius: 12px; width: 100%; }
  body .custom-footer .footer-subscribe-form button { width: 100%; border-radius: 12px; }
  body .custom-footer .footer-social { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .quiz-grid { grid-template-columns: 1fr; gap: 16px; }
  .quiz-hero-title { font-size: 2rem; }
  .quiz-pagination a,
  .quiz-pagination span,
  .quiz-pagination .page-numbers { padding: 8px 12px; font-size: 0.80rem; }
  .qsm-navigation, .qsm-pagination { flex-direction: column; padding: 14px; }
  .qmn_btn, .qsm-btn { width: 100%; }
  .mlw_qmn_question iframe { width: 100%; }
  .qsm-text-correct-option,
  .qsm-text-simple-option,
  .qsm-text-wrong-option { font-size: 0.78rem; }
}

@media (max-width: 540px) {
  .hero-card--float { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  body .header-default .header-topbar { font-size: 0.76rem; }
  header.header-default .tutor-header-profile-submenu span[role=button] { display: none !important; }
  .course-categories { grid-template-columns: 1fr; gap: 12px; }
  .language-skills .skills-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
}

@media (max-width: 480px) {
  body .custom-footer .footer-widgets { padding: 50px 0 35px; }
  body .custom-footer .footer-logo img { max-width: 150px; }
  body .custom-footer .footer-title { font-size: 18px; }
  body .custom-footer .footer-description,
  body .custom-footer .footer-menu li a,
  body .custom-footer .footer-bottom p { font-size: 14px; }
  body .custom-footer .footer-social { gap: 10px; }
  body .custom-footer .footer-social a { width: 40px; height: 40px; font-size: 14px; }
  body .custom-footer .footer-subscribe-form input,
  body .custom-footer .footer-subscribe-form button { font-size: 14px; }
}
