html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

table {
  width: 100%;
}

@media (max-width: 980px) {
  .shell,
  .wrap,
  .main,
  .page-body,
  .hero-inner,
  .oe-footer-main,
  .oe-footer-bottom,
  .oe-shared-nav,
  .nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-grid,
  .mega-inner,
  .meta,
  .signatures,
  .info-strip,
  .trainer-grid,
  .plan-grid,
  .doc-grid,
  .res-grid,
  .courses-grid,
  .webinars-grid,
  .combos-grid,
  .server-grid,
  .module-grid,
  .feature-grid,
  .stats-grid,
  .action-grid,
  .cards-grid,
  .data-grid,
  .rights-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .topbar,
  .header-actions,
  .hero-stats,
  .hero-cta,
  .filter-row,
  .actions {
    flex-wrap: wrap;
  }

  .tab-bar,
  .cat-pills,
  .wallet-strip,
  .header-actions {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tab-bar::-webkit-scrollbar,
  .cat-pills::-webkit-scrollbar,
  .wallet-strip::-webkit-scrollbar,
  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .search-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .glass,
  .panel,
  .card,
  .auth-card,
  .certificate,
  .modal,
  .modal-sheet {
    border-radius: 22px !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .shell,
  .wrap,
  .main,
  .page-body,
  .hero-inner,
  .oe-footer-main,
  .oe-footer-bottom,
  .oe-shared-nav,
  .nav {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .topbar,
  .nav,
  .oe-shared-nav {
    gap: 10px !important;
  }

  .nav,
  .oe-shared-nav {
    height: auto !important;
    min-height: 68px;
    flex-wrap: wrap;
    align-items: flex-start !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .nav-brand,
  .oe-shared-brand,
  .brand {
    min-width: 0;
  }

  .nav-brand-text,
  .oe-shared-brand-text,
  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong,
  .brand-name,
  .nav-brand-name,
  .oe-shared-brand-name {
    font-size: 13px !important;
  }

  .brand-copy small,
  .brand-sub,
  .nav-tagline,
  .oe-shared-tagline {
    font-size: 10px !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-solid,
  .btn-ghost,
  .pill,
  .action-btn,
  .btn-enroll,
  .btn-browse,
  .btn-dashboard,
  .oe-shared-dashboard {
    min-height: 46px;
    justify-content: center;
  }

  .hero-cta > *,
  .actions > *,
  .signed-in-card .actions > *,
  .card-footer > *,
  .filter-row > * {
    width: 100%;
  }

  .card-footer {
    flex-direction: column !important;
  }

  .hero,
  .hero-inner,
  .page-hero {
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }

  h1,
  .title,
  .page-hero h1,
  .hero h1 {
    word-break: break-word;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .nav-tagline,
  .oe-shared-tagline,
  .brand-copy small {
    display: inline-flex !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    padding: 2px 6px !important;
    max-width: 100%;
    white-space: normal;
  }

  .logo,
  .nav-logo,
  .brand-logo,
  .oe-shared-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .hero-stats {
    gap: 12px !important;
  }

  .hero-stat {
    min-width: calc(50% - 8px);
  }
}
