/* =========================================================
   Responsive fixes - 3DS website
   Keep this file after style.css and header.css
========================================================= */

@media (max-width: 1199.98px) {
  .navbar-brand img {
    max-width: 130px;
    /* width: 130px; */
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cards-slider .slick-track {
    gap: 10px;
  }

  .testimonial-section,
  .stats-section {
    width: min(100% - 32px, 1120px);
  }
}

@media (max-width: 991.98px) {
  .navigation .navbar-collapse {
    background: #fff;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0,0,0,.12);
  }

  .navigation .navbar-nav {
    text-align: left;
    gap: 4px;
  }

  .navigation .nav-link,
  .navigation .dropdown-item {
    padding: 11px 12px;
    border-radius: 10px;
  }

  #hero {
    min-height: auto;
  }

  /* #hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 100%);
  } */

  .hero-inner {
    padding: 115px 0 70px;
  }

  .hero-left {
    padding-left: 34px;
  }

  .slide-title {
    max-width: 650px;
  }

  .slide-desc {
    max-width: 620px;
  }

  .cards-slider-wrap {
    padding-left: 4px;
  }

  .service-card,
  .service-card.slick-current {
    height: 260px;
  }

  .slick-slide {
    height: 300px !important;
  }

  .about-image {
    margin-bottom: 38px;
  }

  .about_img_1,
  .about_img_2 {
    max-width: 100%;
  }

  .section-title h1,
  .about-content h1,
  .testimonial-section h1,
  .stats-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-card {
    margin-top: 10px;
  }

  .slider-controls {
    position: static;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }

  .contact-form-box,
  .info-card {
    width: 100%;
  }

  .inner-hero {
    min-height: 340px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 30px;
  }

  .container,
  .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 50px;
  }

  .hero-inner {
    padding: 105px 0 56px;
  }

  .hero-left {
    padding-left: 0;
  }

  .dot-nav,
  .progress-bar-wrap,
  .slide-counter {
    display: none !important;
  }

  .slide-tag {
    font-size: .68rem;
    letter-spacing: 2px;
  }

  .slide-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .slide-desc {
    font-size: .95rem;
    margin-bottom: 24px;
  }

  .hero-right {
    margin-top: 26px;
  }

  .service-card,
  .service-card.slick-current {
    height: 320px;
    border-radius: 18px;
    transform: scale(1) !important;
    opacity: 1 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45) !important;
    border-color: rgba(255,255,255,0.28) !important;
  }

  .slick-slide {
    height: 360px !important;
  }

  .arrow-nav {
    justify-content: flex-start;
    padding-left: 0;
  }

  .block,
  .difference-of-us-item,
  .info-card,
  .contact-form-box,
  .testimonial-card,
  .process-card {
    border-radius: 18px;
  }

  .about-content .row > div,
  .footer .row > div,
  .contact-wrap .row > div {
    width: 100%;
  }

  .about_small_right {
    margin-top: 24px;
  }

  .help_box,
  .manager_box {
    width: 100%;
  }

  .portfolio_filter ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    /* padding-left: 0; */
  }

  .portfolio_filter li {
    width: 100%;
    text-align: center;
    margin: 0 !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-item.wide {
    grid-column: auto !important;
  }

  .stats-wrap {
    padding: 64px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-wrap {
    padding-top: 64px;
  }

  .testimonial-section {
    padding: 0 18px;
  }

  .testimonial-card {
    padding: 28px 22px;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .client-row {
    align-items: center;
  }

  .client-name {
    font-size: 1.2rem;
  }

  .inner-hero {
    min-height: 300px;
  }

  .inner-hero .container {
    padding-top: 120px;
  }

  .inner-hero h1 {
    font-size: 30px;
  }

  /* IMPORTANT:
     Do not hide service-nav-pills on mobile.
     Final sticky styling is added at the bottom of this file. */

  .service-detail-row {
    scroll-margin-top: 170px;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
    right: 18px;
    bottom: 18px;
  }

  .scroll-top {
    right: 18px;
    bottom: 84px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    /* width: 112px; */
    max-width: 112px;
  }

  .hero-inner {
    padding: 60px 20px 20px 20px;
  }

  .slide-title {
    line-height: 1.12;
  }

  .btn,
  .cf-btn,
  .gallery_btn,
  .gallery_link {
    min-height: 44px;
  }

  .service-card,
  .service-card.slick-current {
    height: 300px;
  }

  .slick-slide {
    height: 340px !important;
  }

  .card-label {
    padding: 34px 14px 14px;
  }

  .card-label h5 {
    font-size: .98rem;
  }

  .section-title,
  .about-content,
  .content {
    text-align: left;
  }

  .portfolio_filter ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-content h4 {
    font-size: 1.15rem;
  }

  .gallery-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-row {
    gap: 14px;
  }

  .client-photo {
    width: 64px;
    height: 64px;
  }

  .dots {
    justify-content: flex-start;
  }

  .contact-wrap .text-center {
    text-align: left !important;
  }

  .footer .col-6 {
    width: 100%;
  }
}

/* =========================================================
   About Home Section Responsive - Modern Partner Model
========================================================= */

@media (max-width: 1199.98px) {
  .about-content-modern h1 {
    font-size: 38px;
  }

  .partner-company-box {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 991.98px) {
  .about-home-section {
    padding: 70px 0;
  }

  .about-image-modern {
    min-height: 390px;
    max-width: 620px;
    margin: 0 auto 20px;
  }

  .about-content-modern {
    text-align: left;
  }

  .about-content-modern h1 {
    font-size: 36px;
  }
}

@media (max-width: 767.98px) {
  .about-home-section {
    padding: 55px 0;
  }
  .row > * {
    margin-top: 0 !important;
  }


  .about-image-modern {
    min-height: 350px;
  }

  .about-image-modern .about_img_1 {
    height: 310px;
  }

  .about-image-modern .about_img_2 {
    right: 18px;
    bottom: 8px;
    width: 54%;
    height: 135px;
    border-width: 5px;
  }

  .about-content-modern h1 {
    font-size: 32px;
  }

  .about-main-text {
    font-size: 15px;
  }

  .partner-company-box {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .partner-logo-wrap {
    min-height: 76px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-contact-person {
    grid-template-columns: 1fr;
  }

  .about-action-btn .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .about-home-section {
    padding: 45px 0;
  }

  .about-image-modern {
    min-height: 300px;
  }

  .about-image-modern .about_img_1 {
    height: 260px;
    border-radius: 16px;
  }

  .about-image-modern .about_img_2 {
    width: 58%;
    height: 110px;
    right: 12px;
    bottom: 4px;
    border-radius: 14px;
  }

  .about-content-modern h1 {
    font-size: 28px;
    line-height: 1.22;
  }

  .partner-content h5 {
    font-size: 16px;
  }

  .partner-content p {
    font-size: 13px;
  }

  .about-action-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .about-feature-item {
    min-height: auto;
    justify-content: flex-start;
    font-size: 14px;
  }

  .about-help-mini,
  .about-manager-mini {
    padding: 16px;
  }

  .about-help-mini i,
  .about-manager-mini i {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .about-help-mini strong,
  .about-manager-mini strong,
  .about-help-mini a,
  .about-manager-mini span {
    font-size: 14px;
  }
}

/* =========================================================
   About Section Responsive - Final Clean Model
   Paste this at the bottom of responsive.css
========================================================= */

@media (max-width: 1199.98px) {
  .about-content-modern h1 {
    font-size: 36px !important;
  }

  .partner-company-box {
    grid-template-columns: 140px 1fr !important;
  }

  .about-action-panel-clean {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .about-action-card {
    padding: 18px !important;
  }
}

@media (max-width: 991.98px) {
  .about-home-section {
    padding: 70px 0 !important;
  }

  .about-image-modern {
    max-width: 620px !important;
    min-height: 390px !important;
    margin: 0 auto 20px !important;
  }

  .about-content-modern h1 {
    font-size: 34px !important;
  }

  .about-action-panel-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 34px !important;
  }
  .section-badge{
    margin-bottom: 0px !important;
  }
}

@media (max-width: 767.98px) {
  .about-home-section {
    padding: 58px 0 !important;
  }

  .about-image-modern {
    min-height: 335px !important;
  }

  .about-image-modern .about_img_1 {
    height: 300px !important;
  }

  .about-image-modern .about_img_2 {
    right: 16px !important;
    bottom: 4px !important;
    width: 55% !important;
    height: 125px !important;
    border-width: 5px !important;
  }

  .about-content-modern h1 {
    font-size: 30px !important;
  }

  .about-main-text {
    font-size: 15px !important;
  }

  .partner-company-box {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }

  .partner-logo-wrap {
    min-height: 76px !important;
  }

  .about-readmore-wrap .btn {
    width: 100% !important;
    text-align: center !important;
  }

  .about-action-panel-clean {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 14px !important;
    border-radius: 20px !important;
  }

  .about-action-card {
    min-height: auto !important;
    padding: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .about-home-section {
    padding: 46px 0 !important;
  }

  .about-image-modern {
    min-height: 285px !important;
  }

  .about-image-modern .about_img_1 {
    height: 245px !important;
    border-radius: 16px !important;
  }

  .about-image-modern .about_img_2 {
    width: 58% !important;
    height: 102px !important;
    right: 10px !important;
    bottom: 0 !important;
    border-radius: 14px !important;
  }

  .about-content-modern h1 {
    font-size: 27px !important;
    line-height: 1.22 !important;
  }

  .partner-content h5 {
    font-size: 16px !important;
  }

  .partner-content p {
    font-size: 13px !important;
  }

  .about-action-panel-clean {
    margin-top: 28px !important;
    padding: 16px !important;
  }

  .about-action-card {
    align-items: flex-start !important;
    gap: 13px !important;
  }

  .about-action-card i {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    font-size: 15px !important;
  }

  .about-action-card-white i {
    width: auto !important;
    min-width: 20px !important;
    height: auto !important;
    font-size: 16px !important;
  }

  .about-action-card strong {
    font-size: 14px !important;
  }

  .about-action-card a,
  .about-action-card span {
    font-size: 13px !important;
  }

  .about-section {
    padding: 0px;
  }

  .section {
    padding-top: 0px;
  }

  .container,
  .container-fluid {
    padding-top: 20px !important;
  }

  .contact-wrap {
    padding-top: 0px !important;
  }
}

/* =========================================================
   FINAL HEADER / NAVBAR FIX
   Added at the bottom of responsive.css
========================================================= */

.navigation.glass-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent !important;
  padding: 24px 0 0;
}

.glass-navigation .navbar {
  padding: 0 !important;
  background: transparent !important;
}

.glass-navigation .nav-glass-container {
  width: min(100% - 40px, 1180px);
  max-width: 1180px;
  min-height: 82px;
  padding: 6px 16px !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-navigation .navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.glass-navigation .nav-logo {
  /* width: 88px !important; */
  height: 80px !important;
  object-fit: cover;
  border-radius: 4px;
}

.glass-navigation .navbar-collapse {
  justify-content: flex-end;
}

.glass-navigation .navbar-nav {
  align-items: center;
}

.nav-menu-glass {
  gap: 18px;
  padding-left: 0 !important;
}

.glass-navigation .nav-item {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.glass-navigation .nav-link {
  position: relative;
  padding: 10px 4px !important;
  color: #000 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.2;
}

.glass-navigation .nav-link:hover,
.glass-navigation .nav-link.active {
  color: #6A754A  !important;
}

.glass-navigation .nav-link::before {
  display: none !important;
}

.glass-navigation .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  border-radius: 20px;
  background: #6A754A ;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.glass-navigation .nav-link:not(.dropdown-toggle):hover::after,
.glass-navigation .nav-link:not(.dropdown-toggle).active::after {
  transform: scaleX(1);
}

.glass-navigation .dropdown-toggle::after {
  position: static !important;
  display: inline-block !important;
  margin-left: 8px !important;
  vertical-align: 2px !important;
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border: 2px solid currentColor !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  transform: rotate(45deg) !important;
}

.glass-dropdown {
  margin-top: 16px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  background: rgba(8, 12, 18, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-dropdown .dropdown-item {
  padding: 11px 14px !important;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.glass-dropdown .dropdown-item:hover,
.glass-dropdown .dropdown-item:focus {
  background: #8AA243 !important;
  color: #ffffff !important;
}

.nav-contact-item {
  margin-left: 8px !important;
}




.custom-toggler {
  width: 50px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: #6A754A !important;
  box-shadow: none !important;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0 !important;
}

.custom-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

.custom-toggler span {
  width: 22px;
  height: 2px;
  border-radius: 20px;
  background: #ffffff;
  display: block;
}

@media (max-width: 1199.98px) {
  .navigation.glass-navigation {
    padding-top: 16px;
  }

  .glass-navigation .nav-glass-container {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    min-height: 74px;
    padding: 10px 14px !important;
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .glass-navigation .nav-logo {
    /* width: 82px !important; */
    /* max-width: 82px !important; */
    height: 58px !important;
  }

  .custom-toggler {
    display: flex !important;
  }

  .glass-navigation .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(8, 12, 18, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .glass-navigation .navbar-nav {
    align-items: stretch;
    gap: 4px;
    text-align: left;
  }

  .glass-navigation .nav-item {
    display: block;
    width: 100%;
  }

  .glass-navigation .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 14px !important;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .glass-navigation .nav-link::before {
    display: none !important;
  }

  .glass-navigation .nav-link:not(.dropdown-toggle)::after {
    display: none !important;
  }

  .glass-navigation .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 10px !important;
  }

  .glass-navigation .nav-link:hover,
  .glass-navigation .nav-link.active {
    background: #6A754A ;
    color: #ffffff !important;
  }

  .glass-dropdown {
    position: static !important;
    transform: none !important;
    margin-top: 6px !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
  }

  .glass-dropdown .dropdown-item {
    text-align: left !important;
    color: rgba(255, 255, 255, 0.84) !important;
  }

  .nav-contact-item {
    margin-left: 0 !important;
    margin-top: 8px !important;
  }

  #hero .hero-inner {
    padding-top: 150px !important;
  }
}

@media (max-width: 991.98px) {
  .navigation .navbar-collapse {
    background: rgba(8, 12, 18, 0.96) !important;
  }
}

@media (max-width: 767.98px) {
  .navigation.glass-navigation {
    padding-top: 12px;
  }

  .glass-navigation .nav-glass-container {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-height: 68px;
    padding: 9px 12px !important;
    border-radius: 18px;
  }

  .glass-navigation .nav-logo {
    /* width: 72px !important; */
    /* max-width: 72px !important; */
    height: 52px !important;
  }

  .custom-toggler {
    width: 46px;
    height: 42px;
  }

  .custom-toggler span {
    width: 20px;
  }

  #hero .hero-inner {
    padding-top: 128px !important;
  }
}

@media (max-width: 575.98px) {
  .glass-navigation .nav-glass-container {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .glass-navigation .nav-logo {
    /* width: 66px !important; */
    /* max-width: 66px !important; */
    height: 48px !important;
  }

  #hero .hero-inner {
    padding-top: 118px !important;
  }
}

/* =========================================================
   FIX: Desktop Services Dropdown Position
========================================================= */

@media (min-width: 1200px) {
  .glass-navigation .nav-item.dropdown {
    position: relative !important;
  }

  .glass-navigation .dropdown-menu.glass-dropdown {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    min-width: 250px !important;
    margin-top: 0 !important;
    padding: 14px !important;

    border-radius: 18px !important;
    background: rgba(8, 12, 18, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;

    overflow: hidden !important;
    z-index: 10000 !important;
  }

  .glass-navigation .dropdown-menu.glass-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: rgba(8, 12, 18, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateX(-50%) rotate(45deg);
  }

  .glass-navigation .dropdown-menu.glass-dropdown .dropdown-item {
    position: relative;
    z-index: 1;
    padding: 13px 16px !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .glass-navigation .dropdown-menu.glass-dropdown .dropdown-item:hover,
  .glass-navigation .dropdown-menu.glass-dropdown .dropdown-item:focus {
    background: #8AA243 !important;
    color: #ffffff !important;
  }
}

/* =========================================================
   FINAL FIX - Sticky Service Navigation Pills
   This fixes:
   1. Pills hidden on mobile
   2. Sticky not working after scroll
   3. Active pill UI
   4. Horizontal scroll on small screens
========================================================= */

.service-detail-wrap {
  position: relative;
  overflow: visible !important;
  background: #ffffff;
}

/* Sticky service navigation */
.service-nav-pills {
  position: sticky !important;
  top: 20px !important;
  z-index: 999 !important;

  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: fit-content;
  max-width: 100%;

  margin: -34px auto 58px;
  padding: 14px;

  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(35, 50, 66, 0.1);
  box-shadow: 0 18px 55px rgba(35, 50, 66, 0.14);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Service pill item */
.service-nav-pills .service-pill,
.service-nav-pills a {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 48px;
  padding: 12px 18px;

  border-radius: 16px;
  background: transparent;
  color: #233242 !important;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;

  border: 1px solid transparent;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-nav-pills .service-pill i {
  width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  color: #8AA243;

  transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover and active style */
.service-nav-pills .service-pill:hover,
.service-nav-pills .service-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8AA243 0%, #6A754A 100%);
  border-color: #8AA243;
  box-shadow: 0 14px 30px #8aa2435e;
  transform: translateY(-2px);
}

.service-nav-pills .service-pill:hover i,
.service-nav-pills .service-pill.active i {
  color: #ffffff;
  transform: scale(1.08);
}

/* Correct section scroll position when clicking pill */
.service-detail-row {
  scroll-margin-top: 190px !important;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .service-nav-pills {
    position: sticky !important;
    top: 92px !important;

    width: 100%;
    justify-content: flex-start;

    margin: -22px auto 46px;
    padding: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .service-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .service-nav-pills .service-pill {
    flex: 0 0 auto;
  }

  .service-detail-row {
    scroll-margin-top: 175px !important;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .service-nav-pills {
    display: flex !important;
    position: sticky !important;
    top: 78px !important;

    width: calc(100% + 4px);
    max-width: calc(100% + 4px);

    margin: -14px -2px 32px;
    padding: 10px;

    justify-content: flex-start;
    gap: 8px;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(35, 50, 66, 0.14);

    overflow-x: auto;
    overflow-y: hidden;
  }

  .service-nav-pills .service-pill,
  .service-nav-pills a {
    flex: 0 0 auto;
    width: auto !important;

    min-height: 42px;
    padding: 10px 14px;

    border-radius: 14px;
    font-size: 13px;
    text-align: center;
  }

  .service-nav-pills .service-pill i {
    font-size: 13px;
  }

  .service-detail-row {
    scroll-margin-top: 135px !important;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .service-nav-pills {
    top: 72px !important;
    margin-bottom: 28px;
    padding: 9px;
  }

  .service-nav-pills .service-pill,
  .service-nav-pills a {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12.5px;
  }

  .service-nav-pills .service-pill span {
    display: inline-block;
  }

  .service-detail-row {
    scroll-margin-top: 135px !important;
  }
}

/* =========================================================
   FINAL FIX - Service nav sticky spacing like second model
   Added by ChatGPT
========================================================= */

/* Keep sticky pill bar closer and reduce big white gap */
.service-nav-pills {
  margin: -22px auto 38px !important;
  top: 20px !important;
}

/* Service wrapper should not clip sticky nav */
.service-detail-wrap {
  position: relative;
  overflow: visible !important;
  background: #ffffff;
}

/* Reduce empty space before each service section */
.service-detail-row {
  padding-top: 40px !important;
  margin-top: 0 !important;
  scroll-margin-top: 170px !important;
}

/* Clean divider between service sections */
.service-detail-row + .service-detail-row {
  border-top: 1px solid rgba(35, 50, 66, 0.12);
}

/* Number spacing closer to content */
.service-detail-content .colored-box {
  margin-bottom: 28px !important;
}

/* Desktop section alignment */
@media (min-width: 992px) {
  .service-detail-row {
    min-height: auto !important;
  }

  .service-detail-img {
    margin-top: 0 !important;
  }

  .service-detail-content {
    padding-top: 0 !important;
  }
}

/* Tablet */
@media (max-width: 1199.98px) {
  .service-nav-pills {
    margin: -18px auto 34px !important;
    top: 92px !important;
  }

  .service-detail-row {
    padding-top: 70px !important;
    scroll-margin-top: 175px !important;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .service-nav-pills {
    margin: -10px -2px 28px !important;
    top: 78px !important;
  }

  .service-detail-row {
    padding-top: 52px !important;
    scroll-margin-top: 145px !important;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .service-nav-pills {
    margin-bottom: 24px !important;
    top: 72px !important;
  }

  .service-detail-row {
    padding-top: 44px !important;
    scroll-margin-top: 135px !important;
  }
}

