/* ==========================================================================
   Mobile responsive overrides for Samsung AEM landing + navbar
   Only applies at <= 768px. Keeps desktop untouched.
   ========================================================================== */

@media (max-width: 768px) {

  /* Prevent any horizontal page scroll */
  html, body { overflow-x: hidden !important; max-width: 100% !important; }

  /* ── Hero feature-kv: stop text clipping at top ───────────────── */
  .co76-feature-kv {
    min-height: auto !important;
    height: auto !important;
  }
  .co76-feature-kv__inner {
    position: relative !important;
    height: auto !important;
    min-height: 420px !important;
    display: flex !important;
    align-items: flex-end !important;
  }
  .co76-feature-kv__background-media-wrap {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
  }
  .co76-feature-kv__background-media-wrap .image,
  .co76-feature-kv__background-media-wrap .image__main {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .co76-feature-kv__text-wrap {
    position: relative !important;
    z-index: 2 !important;
    padding: 24px !important;
    width: 100% !important;
  }
  .co76-feature-kv__headline {
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }
  .co76-feature-kv__desc {
    font-size: 14px !important;
    margin: 0 0 16px !important;
  }
  .co76-feature-kv__cta-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  /* Hide the duplicate clone CTA row on mobile (causes doubled buttons) */
  .co76-feature-kv__cta-wrap-clone { display: none !important; }

  /* ── Feature cards: force a clean horizontal scroll, no half-cut ─ */
  .co73-feature-cards__wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .co73-feature-cards__wrap::-webkit-scrollbar { display: none !important; }
  .co73-feature-cards__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    padding: 0 20px 8px !important;
    transform: none !important;
    width: max-content !important;
  }
  .co73-feature-cards__item {
    flex: 0 0 68% !important;
    max-width: 280px !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    left: auto !important;
  }
  .co73-feature-cards__image { width: 100% !important; }
  .co73-feature-cards__image img { width: 100% !important; height: auto !important; }
  /* Hide the swiper prev/next arrows on mobile (swipe instead) */
  .co73-feature-cards .screen-indicator-wrap { display: none !important; }

  /* ── Navbar: keep logo + auth on one row, no overflow ─────────── */
  .nv00-gnb-v5__utility-list {
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .gnb-auth {
    gap: 8px !important;
    margin-inline-start: 6px !important;
  }
  .gnb-auth__link {
    font-size: 12px !important;
  }
  .gnb-auth__link--cta {
    padding: 5px 12px !important;
  }

}

/* Extra-small phones */
@media (max-width: 400px) {
  .co76-feature-kv__headline { font-size: 26px !important; }
  .co73-feature-cards__item { flex-basis: 74% !important; }
  .gnb-auth__link { font-size: 11px !important; }
  .gnb-auth { gap: 6px !important; }
}
