.div1 {
  text-align: center !important;
  font-family: "DM Sans", sans-serif !important;
  color: #6a6a6a !important;
  flex-shrink: 0; /* Prevents items from shrinking */
  min-width: fit-content; /* Ensures content fits properly */
}

.div1.active {
  border-bottom: 1px black solid;
  border-radius: 2px;
}
.service-tab.active .header-title-icon {
  font-weight: 600;
  font-size: 13px;
  font-family: "DM Sans", sans-serif !important;
  color: black;
}
.header-title-icon {
  font-size: 13px;
  font-family: "DM Sans", sans-serif !important;
}
/* Main container for the horizontal layout */
.category-tabs {
  display: flex !important;
  align-items: center;
  gap: 15px;
  position: relative;
  margin: 0px 50px 0px 50px;
}

/* Scrollable categories container */
.categories-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .category-tabs {
    margin: 0;
  }
  .service-tab.active .header-title-icon {
    font-weight: 600;
    font-size: 11px;
    font-family: "DM Sans", sans-serif !important;
    color: black;
  }
  .header-title-icon {
    font-size: 11px;
    font-family: "DM Sans", sans-serif !important;
  }
  .categories-container::before,
  .categories-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px; /* how wide the fade should be */
    pointer-events: none; /* let clicks pass through */
    z-index: 2;
  }

  .categories-container::before {
    left: 0;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .categories-container::after {
    right: 0;
    background: linear-gradient(
      to left,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .icon-container {
    position: relative;
    width: 22px !important; /* or your preferred fixed size */
    height: 22px !important;
  }

  .static-icon,
  .animated-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px !important;
    height: auto;
    object-fit: contain;
  }
}

.scrollable-row {
  display: flex !important;
  position: relative;
  white-space: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  gap: 40px; /* Adjustable spacing between div1 elements */
  padding: 0 10px; /* Optional: padding on sides */
}

.scrollable-row::-webkit-scrollbar {
  display: none !important;
}

.flex-five {
  display: block;
}
.span1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-label-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* spacing between icon and text */
}

.icon-container {
  position: relative;
  width: 28px; /* or your preferred fixed size */
  height: 28px;
}

.static-icon,
.animated-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: auto;
  object-fit: contain;
}
.header-slide-nav {
  position: sticky;
  height: 32px;
  background: white; /* plain white circle */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  visibility: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  overflow: visible;
  padding-top: 15px;
  padding-bottom: 30px;
}

.header-slide-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* common pseudo‐element for the fade */
.header-slide-nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px; /* how far the fade reaches */
  pointer-events: none; /* let clicks pass through */
  z-index: -1; /* behind the arrow icon */
}

/* left‐side button: fade from white → transparent on the left */
.header-slide-nav.prev {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* right‐side button: fade from white → transparent on the right */
.header-slide-nav.next {
  right: 0;
  top: 0;
  margin-left: 50px;
  position: absolute;
  z-index: 1;
}

/* hide by default; JS will toggle */
.header-slide-nav {
  visibility: hidden;
}

/* make the little arrows bigger/tappable */
.header-slide-nav a {
  font-size: 20px;
  padding-left: 15px;
  padding-right: 15px;
  line-height: 1;
  display: block;
}
/* ------------------------ */
.flex-three {
  height: 47px;
  /* border: 1px solid #6a6a6a; */
}
#footer-form .input-wrap {
  width: 100%;
  border: 1px solid #6a6a6a;
}
.search-bar-header {
  width: 40%;
}
@media (min-width: 990px) {
  .search-bar-header {
    width: 50%;
  }
}
@media (max-width: 768px) {

  .search-bar-header {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 100;
    transition: width 0.3s ease;
    background-color: transparent;
  }

  .search-bar-header .input-wrap {
    position: relative;
    border: transparent;
    width: 100%;
  }

  #footer-form .input-wrap {
    background-color: transparent;
    border: none;
  }

  .search-bar-header input {
    background-color: #222;
    height: 35px;
    color: white;
    border-radius: 30px;
    width: 100%;
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  }
  
  #footer-form .input-wrap input {
    padding: 0 0 0 30px;
    width: 100%;
  }
  .search-bar-header input::placeholder {
    color: white;
    opacity: 1;
    font-size: 12px;
  }
  .search-bar-header button {
    position: absolute;
    top: 50%;
    margin-top: 2px;
    left: 15px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
  }

  /* “Collapsed” state */
  .search-bar-header.collapsed {
    width: 35px;
  }
  .search-bar-header.collapsed input {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  .search-bar-header.collapsed button {
    right: 0;
    left: 0;
    margin: auto;
    width: 35px;
    height: 35px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 50%;
  }
  #footer-form .input-wrap button {
    border-radius: 30px;
    padding: 0px 0px;
    background-color: transparent !important;
  }
  .filtering-header {
    position: relative !important;
  }
}
@media (min-width: 990px) {
  .search-bar-header {
    width: 45%;
  }
}

/* ------------------- */
.filtering-header {
  position: absolute;
  right: 0;
  display: block;
}
.filtering-btn {
  border: 1px solid black;
  border-radius: 50%;
  padding: 8px;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.filtering-btn i {
  font-size: 18px;
}
.map-header {
  position: absolute;
  top: 22px;
}
.map-btn {
  border: 1px solid white;
  border-radius: 50%;
  padding: 8px;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.map-btn i {
  font-size: 18px;
  color: white;
}
.mobile-header-center {
  display: none;
}

@media (max-width: 768px) {
  .map-header {
    position: absolute;
    right: 10px;
    top: 18px;
  }
  .filtering-btn {
    border: 1px solid black;
    border-radius: 50%;
    padding: 8px;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .filtering-btn i {
    font-size: 15px;
  }

  .header-slide-nav {
    display: none;
  }
  .mobile-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: auto;
  }
}

@media only screen and (max-width: 575px) {
  .header-style2 .header-top {
    display: block;
  }
  .header-top-right {
    display: none;
  }
}

.header-lower {
  padding-top: 0 !important;
}
.join-us-description {
  color: white;
  font-size: 9px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 5px 0;
}
