/* Scoped fixes for the main promo slider (loads AFTER global style.css) */

/* Mobile stabilization ONLY for promo slider */
@media (max-width: 991px) {
  /* Stretch section to full width (override Bootstrap col-10) */
  #smm-promo-root.col-10,
  #smm-promo-root.col-12,
  #smm-promo-root[class^="col-"],
  #smm-promo-root[class*=" col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Owl items must occupy full width; remove gaps */
  #smm-promo-root .owl-stage { margin: 0 !important; }
  #smm-promo-root .owl-item { width: 100% !important; margin: 0 !important; padding: 0 !important; }

  /* Column layout, centered card */
  #smm-promo-root .swiper-slide {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image container without transforms; center via flex */
  #smm-promo-root .swiper-slide .circle-background,
  #smm-promo-root .swiper-slide .picture {
    transform: none !important;
    width: 100% !important;
    padding-bottom: 0 !important;
    min-height: 240px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  /* Image inside stays in flow and centers via flex */
  #smm-promo-root .swiper-slide .circle-background img,
  #smm-promo-root .swiper-slide .picture img {
    width: auto !important;
    height: auto !important;
    max-width: 85% !important;
    object-fit: contain !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  /* Text block */
  #smm-promo-root .swiper-slide .text {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 12px 8px 8px !important;
    margin: 0 !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Typography fixes - prevent awkward hyphenation and odd breaks */
  #smm-promo-root .swiper-slide .text .slide-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  #smm-promo-root .swiper-slide .text .slide-subtitle {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  /* CTA button - always inside flow and centered */
  #smm-promo-root .swiper-slide .text .slide-button {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin: 12px auto 6px !important;
    align-self: center !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
  }

  /* Strip decorative pseudo-elements that can overlap on mobile */
  #smm-promo-root .bubbles-overlay { display: none !important; }
  #smm-promo-root .swiper-slide::before,
  #smm-promo-root .swiper-slide::after,
  #smm-promo-root .swiper-slide .text::before,
  #smm-promo-root .swiper-slide .text::after,
  #smm-promo-root .swiper-slide .text .slide-subtitle::before,
  #smm-promo-root .swiper-slide .text .slide-subtitle::after {
    content: none !important;
    display: none !important;
  }
}


