/* ============================================================
   MOBILE HORIZONTAL SCROLL INDICATORS
   Shared visual treatment for horizontal swipe sections only.
   Reference: #F1F5F9 track + #26D06A rounded thumb.
   Desktop/tablet layouts above 768px are intentionally untouched.
   ============================================================ */

.dc-mobile-scroll-indicator {
  display: none;
}

@media (max-width: 768px) {
  /* Home: reuse the existing Product Development Process progress bar. */
  html.page-home .pdv8-mobile-scrollbar {
    height: 23px !important;
    background: #F1F5F9 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  html.page-home .pdv8-mobile-scrollbar-thumb {
    top: 0 !important;
    width: 29.4% !important;
    min-width: 29.4% !important;
    max-width: 29.4% !important;
    height: 23px !important;
    background: #26D06A !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  /* Shared custom indicator inserted after mobile horizontal scrollers. */
  .dc-mobile-scroll-indicator {
    display: block;
    position: relative;
    width: calc(100% - 48px);
    height: 23px;
    margin: 12px auto 18px;
    border: 0;
    border-radius: 999px;
    background: #F1F5F9;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
  }

  .dc-mobile-scroll-indicator[hidden] {
    display: none !important;
  }

  .dc-mobile-scroll-indicator-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 29.4%;
    min-width: 29.4%;
    max-width: 29.4%;
    height: 100%;
    border-radius: 999px;
    background: #26D06A;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  /* Hide native horizontal bars only on the swipe sections we replace. */
  html.page-service .product-process-svg-section,
  html.page-service .premium-mobile-solutions-svg-section,
  html.page-service .development-process-uploaded-svg-section,
  html.page-service .past-projects-section .projects-track,
  html.page-web-development .middle-svg-inner,
  html.page-web-development .dev-process-svg-wrap,
  html.page-web-development .past-projects-section .projects-viewport,
  html.page-about .timeline,
  html.page-about .six-steps-section,
  html.page-about #journeySection .oj-wrap,
  body .timeline,
  body .six-steps-section,
  body #journeySection .oj-wrap {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html.page-service .product-process-svg-section::-webkit-scrollbar,
  html.page-service .premium-mobile-solutions-svg-section::-webkit-scrollbar,
  html.page-service .development-process-uploaded-svg-section::-webkit-scrollbar,
  html.page-service .past-projects-section .projects-track::-webkit-scrollbar,
  html.page-web-development .middle-svg-inner::-webkit-scrollbar,
  html.page-web-development .dev-process-svg-wrap::-webkit-scrollbar,
  html.page-web-development .past-projects-section .projects-viewport::-webkit-scrollbar,
  html.page-about .timeline::-webkit-scrollbar,
  html.page-about .six-steps-section::-webkit-scrollbar,
  html.page-about #journeySection .oj-wrap::-webkit-scrollbar,
  body .timeline::-webkit-scrollbar,
  body .six-steps-section::-webkit-scrollbar,
  body #journeySection .oj-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* ============================================================
   SERVICE RESPONSIVE SAFETY FIXES
   Keep the verified legacy motion/scroll behavior, while preventing
   the full-cycle media panel from clipping on narrow phones and the
   web-development two-column stage from overlapping on small tablets.
   ============================================================ */
@media (max-width: 767px) {
  html.page-service body .fullcycle-section .video-box,
  html.page-service body section.fullcycle-section .video-box {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1050px) {
  html.page-web-development .fullcycle-section .cards-area {
    width: min(411.88px, 100%) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html.page-web-development .fullcycle-section .video-box {
    width: min(454.5px, 100%) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
