/**
 * Custom Mobile Carousel Styles
 * Only for mobile devices (max-width: 991px)
 */

@media only screen and (max-width: 991px) {
  /* Mobile Carousel Wrapper */
  .mobile-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .mobile-carousel-container {
    position: relative;
    width: 100%;
  }
  
  /* Mobile Carousel Items */
  .mobile-carousel-items {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 0.4s ease;
  }
  
  .mobile-carousel-items .single-choose-us-box,
  .mobile-carousel-items .single-testimonials {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px 15px;
  }
  
  /* Choose Us Box Mobile Styles */
  .mobile-carousel-items .single-choose-us-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    min-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-right: 0;
  }
  
  .mobile-carousel-items .single-choose-us-box.bg-color-1 {
    background-color: #fff7ea;
  }
  
  .mobile-carousel-items .single-choose-us-box.bg-color-2 {
    background-color: #fff1f1;
  }
  
  .mobile-carousel-items .single-choose-us-box.bg-color-3 {
    background-color: #eef9ff;
  }
  
  .mobile-carousel-items .single-choose-us-box i {
    display: block;
    font-size: 40px;
    color: #0383ff;
    margin-bottom: 15px;
  }
  
  .mobile-carousel-items .single-choose-us-box span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    text-align: center;
  }
  
  /* Testimonials Mobile Styles */
  .mobile-carousel-items .single-testimonials {
    text-align: center;
    padding: 25px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 0;
    color: #000000 !important;
  }
  
  .mobile-carousel-items .single-testimonials * {
    color: inherit !important;
  }
  
  .mobile-carousel-items .single-testimonials h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000 !important;
  }
  
  .mobile-carousel-items .single-testimonials p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #000000 !important;
    flex-grow: 1;
  }
  
  .mobile-carousel-items .single-testimonials h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0383ff !important;
  }
  
  .mobile-carousel-items .single-testimonials span {
    font-size: 12px;
    color: #000000 !important;
  }
  
  /* Mobile Carousel Dots */
  .mobile-carousel-dots {
    display: flex;
    height: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
  }
  
  .mobile-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
    margin: 0;
  }
  
  .mobile-carousel-dot:hover {
    background-color: #999;
    transform: scale(1.1);
  }
  
  .mobile-carousel-dot.active {
    background-color: #0383ff;
    transform: scale(1.2);
  }
  
  /* Ensure touch/swipe works */
  .mobile-carousel-items {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Partner Slider Mobile Styles */
  .mobile-carousel-items .partner-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
  }
  
  .mobile-carousel-items .partner-item img {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  
  .mobile-carousel-items .partner-item:hover img {
    opacity: 1;
  }
  
  /* Blog Slider Mobile Styles */
  .mobile-carousel-items .single-blog-post {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    margin-right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .mobile-carousel-items .single-blog-post .post-image {
    width: 100%;
    overflow: hidden;
  }
  
  .mobile-carousel-items .single-blog-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content {
    padding: 20px;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content .date {
    font-size: 13px;
    margin-bottom: 10px;
    color: #0383ff;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content h3 a {
    color: #333;
    text-decoration: none;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
  }
  
  .mobile-carousel-items .single-blog-post .blog-content .default-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

