/* ============================================================
   Responsive Fixes - Mobile & Tablet
   ============================================================ */

/* ---------- Hero Section Mobile ---------- */
@media (max-width: 575px) {
  .mhq-hero-1 .mhq-right-items .row {
    --bs-gutter-x: 0.5rem;
  }
  .mhq-hero-1 .mhq-right-items .mhq-hero-image,
  .mhq-hero-1 .mhq-right-items .mhq-hero-imag-2 {
    max-width: 100%;
  }
  .mhq-hero-1 .mhq-right-items .mhq-hero-image img,
  .mhq-hero-1 .mhq-right-items .mhq-hero-imag-2 img {
    width: 100%;
    height: auto;
  }
}

/* ---------- Hero: reduce top padding on small phones ---------- */
@media (max-width: 470px) {
  .mhq-hero-1 {
    padding: 60px 0;
  }
  .mhq-hero-1 .mhq-hero-content .theme-btn {
    margin-top: 30px;
  }
}

/* ---------- Newsletter form: fix button overlap on mobile ---------- */
@media (max-width: 575px) {
  .mhq-cta-new-wrapper {
    padding: 60px 20px;
  }
  .mhq-cta-new-wrapper form {
    margin-top: 20px;
  }
  .mhq-cta-new-wrapper form .theme-btn {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 12px;
    border-radius: 10px;
    padding: 19px 20px;
    display: block;
  }
  .mhq-cta-new-wrapper form input {
    padding: 20px 16px;
  }
}

/* ---------- Section title + button stacking ---------- */
@media (max-width: 575px) {
  .section-title-area {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }
  .section-title-area .theme-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Courses grid: 1 column on mobile ---------- */
@media (max-width: 575px) {
  .mhq-courses-section .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------- Why Choose Us: features stack on mobile ---------- */
@media (max-width: 575px) {
  .mhq-choose-us-wrapper .mhq-choose-us-content .mhq-choose-icon {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  .mhq-choose-us-wrapper .mhq-choose-us-content .mhq-choose-icon .mhq-icon-items {
    width: 100%;
  }
  .mhq-choose-us-wrapper .mhq-choose-us-content .mhq-choose-icon .mhq-icon-items .icon {
    max-width: 64px;
    height: 64px;
    line-height: 64px;
    flex-shrink: 0;
  }
  .mhq-choose-us-wrapper .mhq-choose-us-content .mhq-choose-icon .mhq-icon-items .icon i {
    font-size: 22px;
  }
}

/* ---------- Footer: better column stacking ---------- */
@media (max-width: 575px) {
  .mhq-footer-wrapper .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .mhq-footer-wrapper.style-2 .mhq-footer-widget-items .mhq-footer-content .social-icon {
    flex-wrap: wrap;
  }
  .mhq-footer-bottom .mhq-footer-bottom-wrapper p {
    font-size: 14px;
  }
}

/* ---------- Header: fix logo SVG size (SVG has 1270pt width) ---------- */
.header-1 .header-logo img,
.header-1 .header-logo2 img {
  max-width: 180px;
  height: auto;
}
@media (max-width: 575px) {
  .header-1 .header-logo img,
  .header-1 .header-logo2 img {
    max-width: 140px;
  }
}
@media (max-width: 375px) {
  .header-1 .header-logo img,
  .header-1 .header-logo2 img {
    max-width: 120px;
  }
}

/* ---------- Header: reduce container padding on small phones ---------- */
@media (max-width: 375px) {
  .header-1 .container-fluid {
    padding: 0 10px;
  }
  .header-1 .header-right {
    gap: 12px;
  }
}

/* ---------- Offcanvas: reduce width on very small phones ---------- */
@media (max-width: 380px) {
  .offcanvas__info {
    width: 290px;
  }
  .offcanvas__wrapper {
    padding: 16px;
  }
}

/* ---------- Category slider: better mobile styles ---------- */
@media (max-width: 575px) {
  .mhq-category-box-items {
    padding: 24px 16px;
  }
}

/* ---------- Team section: single column on mobile ---------- */
@media (max-width: 575px) {
  .mhq-team-section .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------- Testimonial: adjust padding ---------- */
@media (max-width: 575px) {
  .section-title-area .mhq-testimonial-author-items {
    flex-direction: column;
    align-items: flex-start;
  }
  .mhq-testimonial-box-items {
    padding: 20px 16px;
  }
  .mhq-testimonial-box-items h4 {
    font-size: 17px;
    margin-top: 20px;
  }
}

/* ---------- News section: single column on mobile ---------- */
@media (max-width: 575px) {
  .mhq-news-section1 .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------- Bootstrap container padding on mobile ---------- */
@media (max-width: 575px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
