/* Mobile Layout & Responsive Fixes (<= 767px) */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
  }

  /* 1. Testimonials: stack/full-width clean cards on mobile instead of 119px 3-up squeeze */
  .elementor-element-41fb0fa .jet-testimonials__instance {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__instance .slick-list {
    overflow: visible !important;
    width: 100% !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__instance .slick-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    gap: 20px !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__item {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    float: none !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__content {
    padding: 20px 18px !important;
    margin: 0 !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__comment {
    margin: 0 0 16px 0 !important;
    padding: 16px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .elementor-element-41fb0fa .jet-testimonials__name,
  .elementor-element-41fb0fa .jet-testimonials__position,
  .elementor-element-41fb0fa .jet-testimonials__figure {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 2. Client Logos Carousel: mask outer 32px arrow zones cleanly so no logo fragments peek */
  .elementor-31 .elementor-element.elementor-element-88b721a .elementor-image-carousel-wrapper.swiper {
    padding: 0 32px !important;
    overflow: hidden !important;
  }
  .elementor-31 .elementor-element.elementor-element-88b721a .elementor-swiper-button-prev,
  .elementor-31 .elementor-element.elementor-element-88b721a .elementor-swiper-button-next {
    width: 32px !important;
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }
  .elementor-31 .elementor-element.elementor-element-88b721a .elementor-swiper-button-prev {
    left: 0 !important;
  }
  .elementor-31 .elementor-element.elementor-element-88b721a .elementor-swiper-button-next {
    right: 0 !important;
  }

  /* 3. About Us Learn More button + arrow icon centered together */
  .elementor-31 .elementor-element.elementor-element-76dd86e > .elementor-widget-wrap {
    justify-content: center !important;
  }
  .elementor-31 .elementor-element.elementor-element-49d2d44,
  .elementor-31 .elementor-element.elementor-element-1eb645f {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .elementor-31 .elementor-element.elementor-element-49d2d44 {
    margin-right: 10px !important;
  }
  .elementor-31 .elementor-element.elementor-element-1eb645f > .elementor-widget-container {
    padding-left: 0 !important;
  }

  /* 4. Footer CTA Banner horizontal padding */
  .elementor-element-5365f9b .elementor-widget-container {
    padding: 0 20px !important;
    text-align: center !important;
  }

  /* 5. Footer lists: remove default 40px ul padding-left and center cleanly */
  footer .elementor-icon-list-items {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  footer .elementor-icon-list-item,
  footer .elementor-icon-list-item a {
    justify-content: center !important;
    text-align: center !important;
  }

  /* 6. Copyright clearance for Scroll-to-Top button */
  .elementor-element-4473b17 .elementor-widget-container {
    padding: 0 20px 64px 20px !important;
    text-align: center !important;
  }
  .jupiterx-scroll-top {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    right: 14px !important;
    bottom: 14px !important;
  }

  /* 7. Mobile Drawer Menu */
  #pec-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111625;
    color: #ffffff;
    z-index: 999999;
    overflow-y: auto;
    padding: 20px 24px 40px;
    display: none;
    font-family: 'Montserrat', sans-serif;
  }
  #pec-mobile-drawer.open {
    display: block;
  }
  #pec-mobile-drawer .pec-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
  }
  #pec-mobile-drawer .pec-drawer-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
  }
  #pec-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #pec-mobile-drawer li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  #pec-mobile-drawer ul ul {
    padding-left: 16px;
  }
  #pec-mobile-drawer ul ul li a {
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    padding: 9px 0;
  }
  #pec-mobile-drawer .pec-drawer-cta {
    display: inline-block;
    margin-top: 22px;
    background: #e51b24;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
  }
}
