/**
 * FACES2 custom overrides - Solutions tabs mobile layout
 */

/* Margin above tabs - all screen sizes */
#solutions .solutions-tabs-col {
  margin-top: 32px;
}

/* Tabs font size */
#solutions .nav-project-tab .nav-link {
  font-size: 14px !important;
}

/* Solutions section - Mobile (tablet and below) */
@media only screen and (max-width: 991px) {
  #solutions .solutions-tabs-row {
    margin-bottom: 0;
  }

  /* Margin above tabs - tablet */
  #solutions .solutions-tabs-col {
    margin-top: 28px;
  }

  /* Tab content - reduce excessive margins on tablet/mobile */
  #solutions .solutions-tab-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 24px;
    padding-left: 0;
    padding-right: 0;
  }

  /* Tab pane content - ensure proper stacking and spacing */
  #solutions .solutions-tab-content .tab-pane .row {
    margin-left: 0;
    margin-right: 0;
  }

  #solutions .solutions-tab-content .tab-pane .col-lg-6 {
    margin-top: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Reset excessive top margin on text column (mt_sm--80, mt_md--80) */
  #solutions .solutions-tab-content .tab-pane .col-lg-6.mt_sm--80,
  #solutions .solutions-tab-content .tab-pane .col-lg-6.mt_md--80 {
    margin-top: 0 !important;
  }

  #solutions .solutions-tab-content .left-thumbnail-about-area-two img {
    width: 100%;
    height: auto;
  }
}

/* Solutions tabs - Mobile (phones) */
@media only screen and (max-width: 767px) {
  /* Tab wrapper - margin above, no scroll */
  #solutions .solutions-tabs-scroll {
    margin-top: 16px;
    margin-bottom: 20px;
  }

  /* Tabs - inline-block, wrap naturally */
  #solutions .nav-project-tab {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }

  #solutions .nav-project-tab .nav-item {
    display: inline-block !important;
    margin: 6px 4px !important;
  }

  #solutions .nav-project-tab .nav-link {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  /* Tab content - compact on mobile */
  #solutions .solutions-tab-content {
    padding-top: 20px;
  }

  /* Image column - add spacing above when stacked (mobile only) */
  #solutions .solutions-tab-content .tab-pane .col-lg-6:last-child {
    margin-top: 24px;
  }

  #solutions .solutions-tab-content .consultancy-style-one .title .title {
    /* font-size: 1.5rem; */
  }

  #solutions .solutions-tab-content .signle-consultancy {
    margin-bottom: 16px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  #solutions .solutions-tab-content .signle-consultancy .icon {
    flex-shrink: 0;
  }

  #solutions .solutions-tab-content .signle-consultancy.mt--40 {
    margin-top: 24px !important;
  }
}

/* Extra small mobile */
@media only screen and (max-width: 575px) {
  #solutions .nav-project-tab .nav-link {
    padding: 8px 14px !important;
    font-size: 14px !important;
  }

  #solutions .solutions-tab-content .tab-pane .col-lg-6:last-child {
    margin-top: 20px;
  }
}

/* ============================================
   Advantages slider (below solutions section)
   ============================================ */

/* Slider container - prevent overflow */
#advantages-slider .mySwiper-testimoanils-7 {
  overflow: hidden;
}

/* Reset excessive margins on mobile/tablet */
@media only screen and (max-width: 991px) {
  #advantages-slider .advantages-slide-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #advantages-slider .business-marklting-area-thumb img {
    width: 100%;
    height: auto;
  }
}

/* Advantages slider - stacking rules (mobile only, when cols stack) */
@media only screen and (max-width: 767px) {
  #advantages-slider .advantages-slide-row .col-lg-6 {
    margin-bottom: 20px;
  }

  #advantages-slider .advantages-slide-row .col-lg-6:last-child {
    margin-bottom: 0;
  }

  #advantages-slider .business-marklting-area-thumb.pl--20 {
    padding-left: 0 !important;
  }
}

/* Slider layout - text above image on mobile */
@media only screen and (max-width: 767px) {
  #advantages-slider .swiper-slide .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  #advantages-slider .boosting-business-right-area .title {
    /* font-size: 1.5rem; */
  }

  #advantages-slider .boosting-business-right-area .subtitle {
    /* font-size: 0.95rem; */
  }
}

/* Pagination - show on mobile when nav buttons hidden */
#advantages-slider .advantages-slider-pagination {
  position: relative;
  margin-top: 24px;
}

#advantages-slider .advantages-slider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
}

#advantages-slider .advantages-slider-pagination .swiper-pagination-bullet-active {
  background: #20282D;
  transform: scale(1.2);
}

/* Keep icons and text side-by-side on all mobile sizes (override global column stacking) */
@media only screen and (max-width: 479px) {
  #solutions .solutions-tab-content .signle-consultancy {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #solutions .solutions-tab-content .signle-consultancy .icon {
    min-width: 48px;
    height: 48px;
  }
}
