/*
  NOA Tecnología — Responsive System v2
  Breakpoints:
    xxs  < 380px   (Galaxy A-series, iPhone SE)
    xs   < 480px
    sm   < 576px
    md   < 768px
    lg   < 992px
  Complementa Bootstrap 5 + noa-modern + noa-layout-fix
*/

/* =============================================
   BASE — overflow control universal
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* NO overflow-x: hidden en html — rompe position:fixed en iOS Safari */
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-width: 0;
}

img, video, iframe, canvas, svg, embed, object {
  max-width: 100%;
  height: auto;
}

/* =============================================
   NAVBAR — body padding para la barra fija
   ============================================= */
@media (max-width: 991px) {
  body { padding-top: 64px; }

  .navbar {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(232, 168, 74, 0.22) !important;
  }

  .navbar-brand {
    flex-shrink: 0;
    max-width: calc(100vw - 120px);
    overflow: hidden;
  }
}

@media (max-width: 379px) {
  body { padding-top: 58px; }
  .navbar-brand span { font-size: 0.88rem !important; }
}

/* =============================================
   HERO PRINCIPAL (index.html)
   ============================================= */
@media (max-width: 991px) {
  .hero-section,
  .hero-cinematic {
    min-height: auto !important;
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .hero-section .row.min-vh-100 { min-height: auto !important; }
  .hero-left-col { padding-right: 0 !important; text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-section .hero-anim-3 p {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-section .d-flex.flex-wrap.gap-3,
  .hero-section .d-flex.flex-wrap.gap-2 { justify-content: center; }
  .hero-scroll-indicator { display: none !important; }
  .hero-brand-col { order: -1; margin-bottom: 16px; }
  .hero-brand-image-wrap { max-width: 320px !important; margin: 0 auto !important; }
}

@media (max-width: 767px) {
  .hero-gradient-text {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    letter-spacing: -0.5px;
  }
}

@media (max-width: 575px) {
  .hero-gradient-text {
    font-size: clamp(1.6rem, 8.5vw, 2.1rem) !important;
  }
  .hero-section p[style*="font-size:17px"],
  .hero-section p[style*="font-size: 17px"] { font-size: 15px !important; }
  .hero-section .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-section .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
    max-width: 320px;
  }
  .hero-brand-image-wrap { max-width: 240px !important; }
  .btn-hero { padding: 12px 20px !important; font-size: 14px !important; }
}

@media (max-width: 379px) {
  .hero-gradient-text { font-size: clamp(1.4rem, 9vw, 1.8rem) !important; }
  .hero-brand-image-wrap { max-width: 200px !important; }
}

/* =============================================
   HERO SUBPÁGINAS
   ============================================= */
@media (max-width: 767px) {
  .topics-listing-hero-section,
  .contact-hero-section,
  .detail-hero {
    min-height: auto !important;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  .topics-listing-hero-section h1,
  .contact-hero-section h1,
  .detail-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem) !important;
  }
  .topics-listing-hero-section p,
  .contact-hero-section p,
  .detail-hero p {
    font-size: 15px !important;
    max-width: 100% !important;
  }
}

@media (max-width: 575px) {
  .topics-listing-hero-section h1,
  .detail-hero h1 {
    font-size: clamp(1.3rem, 7.5vw, 1.75rem) !important;
  }
}

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap { overflow: hidden; max-width: 100vw; }

@media (max-width: 575px) {
  .ticker-item { font-size: 11px !important; }
  .ticker-track { gap: 40px; }
}

/* =============================================
   SECTION SPACING
   ============================================= */
@media (max-width: 991px) {
  .section-padding { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 767px) {
  .section-padding { padding-top: 36px; padding-bottom: 36px; }
}
@media (max-width: 575px) {
  .section-padding { padding-top: 28px; padding-bottom: 28px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .row.g-4 { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
  .row.g-3 { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
}

/* =============================================
   HEADINGS — escala fluida
   ============================================= */
@media (max-width: 767px) {
  .gradient-heading,
  h2.gradient-heading { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
}
@media (max-width: 575px) {
  .gradient-heading,
  h2.gradient-heading { font-size: clamp(1.25rem, 6.5vw, 1.65rem); }
  h3 { font-size: clamp(1.15rem, 5.5vw, 1.4rem); }
  h4 { font-size: clamp(1.05rem, 5vw, 1.25rem); }
  h5 { font-size: clamp(0.95rem, 4.5vw, 1.1rem); }
}

/* Inline style font-size overrides en móvil */
@media (max-width: 767px) {
  [style*="font-size:2.2rem"],
  [style*="font-size: 2.2rem"],
  [style*="font-size:1.9rem"],
  [style*="font-size:2rem"],
  [style*="font-size: 2rem"] {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
  }
}
@media (max-width: 575px) {
  [style*="font-size:18px"],[style*="font-size: 18px"] { font-size: 15px !important; }
  [style*="font-size:17px"],[style*="font-size: 17px"] { font-size: 15px !important; }
  [style*="font-size:16px"],[style*="font-size: 16px"] { font-size: 14px !important; }
  [style*="max-width:440px"],[style*="max-width:580px"],
  [style*="max-width:620px"],[style*="max-width:560px"],
  [style*="max-width:520px"],[style*="max-width:420px"] {
    max-width: 100% !important;
  }
}

/* =============================================
   SECTION LABEL
   ============================================= */
@media (max-width: 575px) {
  .section-label { font-size: 10px; letter-spacing: 1.5px; }
}

/* =============================================
   STATS SECTION
   ============================================= */
@media (max-width: 767px) {
  .stat-box { padding: 16px 12px; }
  .stat-box h3, .counter-value { font-size: 2rem !important; }
  .stat-box p { font-size: 12px; }
}
@media (max-width: 480px) {
  .section-stats .col-6 { flex: 0 0 50%; max-width: 50%; }
}

/* =============================================
   CARDS — why, curso-mini, testimonial
   ============================================= */
@media (max-width: 767px) {
  .why-card, .testimonial-card, .curso-mini-card { min-height: auto; }
}
@media (max-width: 575px) {
  .why-card { padding: 22px 18px; }
  .why-icon { width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
  .curso-mini-card { padding: 16px; }
  .testimonial-card { padding: 20px; }
}

/* =============================================
   AVAL BOXES
   ============================================= */
@media (max-width: 767px) {
  .aval-box, .aval-box--equal {
    min-height: 100px;
    padding: 16px 12px;
  }
  .aval-box i, .aval-box--equal i { font-size: 1.6rem; }
  .aval-box p, .aval-box--equal p { font-size: 12px; }
}
@media (max-width: 575px) {
  .aval-box--equal { min-height: 88px; padding: 12px; }
  .aval-box--equal p { font-size: 11px; }
}

/* =============================================
   GLASS CARD
   ============================================= */
@media (max-width: 575px) {
  .glass-card { padding: 20px 16px !important; border-radius: 16px; }
}

/* =============================================
   BUTTONS
   ============================================= */
@media (max-width: 575px) {
  .btn.custom-btn { padding: 10px 18px; font-size: 13px; }
  .btn.custom-btn.btn-lg { padding: 11px 22px; font-size: 14px; }
  .btn.custom-btn.btn-hero { padding: 11px 20px; font-size: 14px; }
}
@media (max-width: 480px) {
  .btn.btn-lg { padding: 10px 18px; font-size: 14px; }
}
@media (max-width: 379px) {
  .btn.custom-btn { padding: 9px 14px; font-size: 12px; }
}

/* =============================================
   BADGES
   ============================================= */
@media (max-width: 575px) {
  .badge-modalidad { font-size: 11px; padding: 4px 10px; }
  .modality-pill { font-size: 11px; padding: 3px 10px; }
  .duracion-badge { font-size: 12px; padding: 4px 12px; }
  .badge.rounded-pill { font-size: 10px; padding: 3px 8px; }
}

/* =============================================
   VIDEOS
   ============================================= */
video { max-width: 100%; height: auto; display: block; }

@media (max-width: 767px) {
  video[style*="max-height:440px"],
  video[style*="max-height: 440px"] {
    max-height: 260px !important;
    width: 100% !important;
  }
  div[style*="width:fit-content"],
  div[style*="width: fit-content"] {
    width: 100% !important;
    max-width: 100%;
  }
}
@media (max-width: 575px) {
  .col-lg-3.col-md-4.col-8 {
    max-width: 220px;
    margin: 0 auto !important;
    flex: 0 0 220px;
  }
  .col-lg-5.col-md-7 { text-align: center; }
}

/* =============================================
   COURSE DETAIL PAGES
   ============================================= */
@media (max-width: 991px) {
  .sticky-cta { position: static !important; top: auto !important; }
}
@media (max-width: 767px) {
  .detail-hero {
    min-height: auto !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .modulo-item { padding: 14px 16px; }
  .modulo-num { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }
}
@media (max-width: 575px) {
  .row.g-3.mt-4.text-center .col-4 > div { padding: 12px 6px !important; }
  .row.g-3.mt-4.text-center .col-4 > div strong { font-size: 10px !important; }
}

/* =============================================
   CURSOS PAGE
   ============================================= */
@media (max-width: 991px) {
  .curso-card-body .d-flex.gap-2 { flex-wrap: wrap; }
  .curso-card-body .d-flex.gap-2 .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 767px) {
  .curso-card-header { padding: 20px 16px; }
  .curso-card-body { padding: 20px 16px; }
  .curso-card-full .col-lg-4 { text-align: center; }
  .curso-card-full img { max-height: 140px; margin: 0 auto 16px; }
  .curso-card-body .d-flex.gap-2 {
    flex-direction: column;
    align-items: stretch;
    gap: 8px !important;
  }
  .curso-card-body .d-flex.gap-2 .btn { width: 100%; text-align: center; }
}
@media (max-width: 575px) {
  .table-comparison { font-size: 12px; }
  .table-comparison th,
  .table-comparison td { padding: 10px 8px; white-space: nowrap; }
  .table-comparison th:first-child,
  .table-comparison td:first-child { white-space: normal; min-width: 110px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
  .curso-card-full .curso-card-header { padding: 16px; }
  .curso-card-full .curso-card-body { padding: 16px; }
  .curso-card-full .curso-card-header span[style*="font-size:2.6rem"] { font-size: 1.8rem !important; }
  .curso-card-full h3 { font-size: 1.1rem; }
  .curso-card-full img { max-height: 120px; }
}

/* =============================================
   NOSOTROS PAGE
   ============================================= */
@media (max-width: 991px) {
  .video-nosotros-wrap {
    position: static !important;
    top: auto !important;
    max-width: 400px;
    margin: 0 auto;
  }
}
@media (max-width: 575px) {
  .timeline-nosotros { padding-left: 28px; }
  .timeline-nosotros-item::before { left: -22px; width: 12px; height: 12px; }
  .mision-card { padding: 22px 18px; min-height: auto; }
  .team-card { max-width: 280px; margin: 0 auto; min-height: auto; }
  .col-lg-8.col-12.mx-auto.text-center .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Sidebar: mantener flex-row, nunca apilar verticalmente */
.contact-sidebar .contact-info-item {
  height: auto !important;
  min-height: 0 !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

/* contact-brand-card — sin altura fija en móvil */
@media (max-width: 575px) {
  .contact-brand-card {
    min-height: 0 !important;
    padding: 18px !important;
  }
  .contact-brand-logo {
    width: 62px !important;
    height: 62px !important;
  }
}

/* Botón de sidebar: responsive */
.contact-sidebar .contact-info-item .btn {
  width: auto !important;
  min-width: 180px;
  max-width: 100%;
  padding: 10px 18px;
}
@media (max-width: 480px) {
  .contact-sidebar .contact-info-item .btn {
    min-width: 0;
    width: 100% !important;
  }
}

/* Mapa en móvil */
@media (max-width: 767px) {
  .contact-section iframe,
  iframe[src*="google.com/maps"] { height: 240px !important; }
}
@media (max-width: 575px) {
  .contact-info-item { padding: 12px; gap: 10px; }
  .contact-info-item i { font-size: 1.2rem; }
  .contact-note-card { padding: 12px !important; }
}

/* =============================================
   BLOG
   ============================================= */
@media (max-width: 767px) {
  .blog-featured .col-lg-7 h2 { font-size: clamp(1.2rem, 5vw, 1.5rem) !important; }
  .blog-featured .col-lg-4 span { font-size: clamp(3rem, 12vw, 5rem) !important; }
  .blog-featured .d-flex.align-items-center.gap-4 { gap: 16px !important; flex-wrap: wrap; }
}
@media (max-width: 575px) {
  .blog-card-img { height: 160px; }
  .blog-card-body h5 { font-size: 14px; }
  .blog-card-body .d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner .container { position: relative; z-index: 2; }

@media (max-width: 767px) {
  .cta-banner .col-lg-8 { text-align: center; }
  .cta-banner .col-lg-4 { text-align: center !important; }
  .cta-banner h2 { font-size: clamp(1.3rem, 5vw, 1.65rem) !important; }
  .cta-banner .d-flex.gap-3 { flex-direction: column; align-items: center; }
  .cta-banner .btn { width: 100%; max-width: 300px; }
}
@media (max-width: 575px) {
  .cta-banner h2 { font-size: clamp(1.2rem, 6vw, 1.4rem) !important; }
}

/* =============================================
   FAQ
   ============================================= */
@media (max-width: 991px) {
  .faq-section .accordion-button { font-size: 14px !important; padding: 16px 18px; }
}
@media (max-width: 575px) {
  .faq-section .accordion-button { font-size: 13px !important; padding: 14px 16px; }
  .faq-section .accordion-body { font-size: 14px; padding: 0 16px 16px; }
}

/* =============================================
   NAV TABS
   ============================================= */
@media (max-width: 767px) {
  .nav-tabs { flex-wrap: wrap; justify-content: center; }
  .nav-tabs .nav-link { padding: 8px 12px !important; font-size: 12px !important; }
}

/* =============================================
   FOOTER
   ============================================= */
@media (max-width: 767px) {
  .site-footer { padding-top: 40px; padding-bottom: 40px; }
  .site-footer .col-lg-4 { text-align: center; }
  .site-footer .col-lg-4 .d-flex.gap-2 { justify-content: center; }
}
@media (max-width: 575px) {
  .site-footer h6.site-footer-title { font-size: 13px; margin-bottom: 10px !important; }
  .site-footer-link { font-size: 13px; }
  .site-footer-link-item { margin-bottom: 6px; }
  .copyright-text { text-align: center; margin-top: 16px; }
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
@media (max-width: 575px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; font-size: 1.5rem; }
}

/* =============================================
   HOVER — desactivar en dispositivos touch
   ============================================= */
@media (hover: none) {
  .why-card:hover,
  .curso-mini-card:hover,
  .glass-card:hover,
  .aval-box:hover,
  .aval-box--equal:hover,
  .team-card:hover,
  .valor-card:hover,
  .blog-card:hover,
  .stat-box:hover,
  .contact-info-item:hover,
  .curso-card-full:hover,
  .accordion-item:hover,
  .custom-btn:hover {
    transform: none !important;
  }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .whatsapp-float,
  #scroll-progress,
  .hero-particles,
  .hero-canvas,
  .navbar { display: none !important; }
  body { padding-top: 0 !important; }
}

/* =============================================
   SAFE AREA INSETS — iPhone X / notch / home bar
   ============================================= */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .whatsapp-float {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* =============================================
   TABLA COMPARATIVA — scroll horizontal en pantallas
   muy pequeñas (< 400px) para evitar overflow
   ============================================= */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575px) {
  .table-comparison {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =============================================
   FOCUS VISIBLE — accesibilidad con teclado
   ============================================= */
:focus-visible {
  outline: 2px solid #e8a84a;
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.custom-btn:focus-visible {
  outline: 2px solid rgba(232, 168, 74, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(232, 168, 74, 0.2);
}

.nav-link:focus-visible {
  outline: 2px solid #e8a84a;
  outline-offset: 2px;
  border-radius: 6px;
}

/* =============================================
   TYPEWRITER — desactivar efecto en móvil
   para evitar overflow y problemas de ancho
   ============================================= */
@media (max-width: 767px) {
  .noa-typewriter {
    animation: none !important;
    border-right: none !important;
    white-space: normal !important;
    overflow: visible !important;
    width: auto !important;
  }
}

/* =============================================
   INNOVATIONS — ajustes extra para tablet/móvil
   ============================================= */
@media (max-width: 991px) {
  /* Deshabilitar tilt 3D de cards en touch */
  .noa-cursor,
  .noa-cursor-ring { display: none !important; }
}

@media (max-width: 767px) {
  /* Blob sections: ocultar blobs en mobile */
  .noa-blob { opacity: 0.3; }

  /* Toast: ancho completo en mobile pequeño */
  .noa-toast { min-width: 260px; max-width: calc(100vw - 32px); }

  /* Scroll hint: oculto en mobile */
  .noa-scroll-hint { display: none !important; }
}

/* =============================================
   IMAGEN LOGO NAVBAR — tamaño correcto en todos
   ============================================= */
.noa-nav-logo {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 379px) {
  .noa-nav-logo { width: 34px !important; height: 34px !important; }
}

/* =============================================
   VIDEO — playsinline attribute + object-fit
   ============================================= */
@media (max-width: 575px) {
  video {
    object-fit: cover;
  }
}

/* =============================================
   GRID BENTO — stack en mobile
   ============================================= */
@media (max-width: 767px) {
  .noa-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .noa-bento-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

/* =============================================
   NUEVOS COMPONENTES — Responsive completo
   Agregado en auditoría v3 — Abril 2026
   ============================================= */

/* ── CURSOS PAGE — course cards ── */
@media (max-width: 767px) {
  /* Card grid: 1 columna en móvil */
  .noa-course-card {
    border-radius: 12px !important;
  }
  .noa-course-card__body {
    padding: 18px 16px 16px !important;
  }
  .noa-course-card__title {
    font-size: 1.05rem !important;
  }
  .noa-course-card__desc {
    font-size: 13px !important;
  }
  .noa-course-card__stats {
    gap: 6px !important;
  }
  .noa-course-card__stats span {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  .noa-course-card__actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .noa-btn-primary,
  .noa-btn-wa {
    width: 100% !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 12px !important;
  }
  .noa-course-card__price {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .noa-course-card__price-main {
    font-size: 1.1rem !important;
  }
  /* Category dividers on mobile */
  .noa-cat-divider {
    margin-top: 24px !important;
  }
  .noa-cat-divider__icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }
  .noa-cat-divider__label {
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
  }
  /* Page hero */
  .page-hero {
    padding: 32px 0 24px !important;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  .page-hero p {
    font-size: 15px !important;
  }
  /* Filter tabs: scrollable on mobile */
  .filter-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 0 !important;
  }
  .filter-wrap .d-flex {
    flex-wrap: nowrap !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
  }
  .ftab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
  }
}

@media (max-width: 479px) {
  .noa-course-card__badge {
    display: none !important;
  }
}

/* ── SERVICIOS PAGE — cards ── */
@media (max-width: 767px) {
  .srv-card {
    padding: 20px 18px !important;
    animation: none !important; /* disable stagger on mobile for perf */
  }
  .srv-card-icon {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }
  .srv-card h3 {
    font-size: 15px !important;
  }
  .srv-card p {
    font-size: 13px !important;
  }
  .srv-hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  .srv-hero p {
    font-size: 15px !important;
  }
  .srv-hero-pills {
    gap: 6px !important;
  }
  .srv-hero-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .srv-advantage {
    padding: 24px 18px !important;
  }
  .srv-advantage h2 {
    font-size: 1.3rem !important;
  }
  .srv-client-item {
    padding: 12px 14px !important;
  }
  .srv-client-item:hover {
    transform: none !important; /* no slide on touch */
  }
}

/* ── CURSO PAGES — cp-* components ── */
@media (max-width: 767px) {
  .cp-hero {
    padding: 28px 0 22px !important;
  }
  .cp-hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  .cp-hero p {
    font-size: 14px !important;
  }
  .cp-hero-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
  }
  .cp-layout {
    padding: 32px 0 !important;
  }
  .cp-benefit {
    padding: 14px !important;
    gap: 10px !important;
  }
  .cp-benefit i {
    font-size: 1.3rem !important;
  }
  .cp-benefit strong {
    font-size: 13px !important;
  }
  .cp-benefit p {
    font-size: 12px !important;
  }
  .cp-module {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .cp-mod-title {
    font-size: 13px !important;
  }
  .cp-mod-desc {
    font-size: 12px !important;
  }
  .cp-modal-card {
    padding: 18px 16px !important;
  }
  .cp-modal-card h5 {
    font-size: 14px !important;
  }
  .cp-sidebar {
    position: static !important; /* no sticky on mobile */
    top: auto !important;
    margin-top: 24px !important;
  }
  .cp-wa-btn {
    font-size: 14px !important;
    padding: 12px !important;
  }
  .cp-rows {
    padding: 10px 12px !important;
  }
  .cp-row {
    font-size: 13px !important;
  }
  /* Others section */
  .cp-others {
    padding: 36px 0 !important;
  }
  .cp-others-grid {
    gap: 8px !important;
  }
  .cp-other-btn {
    font-size: 12px !important;
    padding: 7px 12px !important;
  }
  .cp-see-all {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}

/* ── BLOG PAGE ── */
@media (max-width: 767px) {
  .blog-featured {
    padding: 20px !important;
  }
  .blog-featured .col-lg-4 {
    display: none !important; /* hide image on mobile featured */
  }
  .blog-card-img {
    height: 140px !important;
  }
}

/* ── WHY CARDS (index) ── */
@media (max-width: 767px) {
  .why-card {
    padding: 20px 18px !important;
  }
  .why-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
  }
  .why-card h5 {
    font-size: 15px !important;
  }
  .why-card p {
    font-size: 13px !important;
  }
  .why-card:hover {
    transform: none !important; /* no lift on touch */
  }
}

/* ── CARDS CATEGORY HOME ── */
@media (max-width: 575px) {
  .noa-cat-card {
    border-radius: 12px !important;
  }
  .noa-cat-name {
    font-size: 18px !important;
  }
  .noa-cat-cta {
    font-size: 11px !important;
  }
}

/* ── GLOBAL TOUCH/HOVER ── */
@media (hover: none) {
  /* Disable complex hover transforms on touch devices */
  .noa-course-card:hover,
  .srv-card:hover,
  .why-card:hover,
  .cp-benefit:hover,
  .cp-module:hover,
  .cp-modal-card:hover,
  .noa-cat-card:hover {
    transform: none !important;
  }
}

/* ── VERY SMALL (< 380px) ── */
@media (max-width: 379px) {
  .noa-btn-primary,
  .noa-btn-wa {
    font-size: 13px !important;
    padding: 10px !important;
  }
  .cp-other-btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
  .noa-cat-name {
    font-size: 16px !important;
  }
  .filter-wrap .ftab {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
}

