/* Root and general styles */
:root {
  --grayColor: #6B7280;
}

strong {
  font-weight: bold;
}

.btn-success:hover {
  color: #fff;
}

.headingH2 {
  font-weight: 700;
  color: #fff;
}

.headingSub {
  color: #fff;
  font-weight: 400;
}

.navbar-nav .nav-link {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 1rem;
}

/* Tabs CSS */
.customTab {
  border: 0 !important;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
}

.customTab .nav-link {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
}

.customTab .nav-link:hover {
  color: #fff !important;
  border: 1px solid #fff !important;
  background: none !important;
}

.customTab .nav-link.active {
  border-color: #28A396 !important;
  background: none !important;
  color: #28A396 !important;
  box-shadow: none !important;
}

.customTab .nav-link img {
  margin-right: 5px;
}

/* Ensure only active tab content is visible */
.tab-content-custom .tab-pane {
  display: none;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.tab-content-custom .tab-pane.active {
  display: block;
}

.tabBoxPic img {
  width: 100% !important;
  height: auto !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
  margin-left: 0 !important;
}

/* Home Page (unrelated to tabs) */
@media (max-width: 768px) {
  .icon-container:nth-child(n) {
    top: 43%;
    left: 44%;
  }
  .circle-container .icon-img {
    max-width: 340px;
  }
  .icon-container .icon-label {
    font-size: 10px;
    margin-left: -3px;
    top: 37px;
  }
}

/* Modern Mobile Tabs */
@media (max-width: 768px) {
  .customTab {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
    padding: 0 1rem 15px;
    gap: 20px;
    justify-content: flex-start !important;
    position: relative;
    background: transparent;
    border: none !important;
  }

  /* Remove the bottom line from original implementation */
  .customTab::after {
    display: none;
  }

  .customTab li.col-auto {
    scroll-snap-align: center;
    flex: 0 0 auto;
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  /* Tab link styling for mobile */
  .customTab .nav-link {
    border: none !important;
    width: auto !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    text-align: center;
    white-space: nowrap;
    background: transparent !important;
    color: #9f9f9f !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    font-weight: 500;
  }

  /* Active tab styling for mobile */
  .customTab .nav-link.active {
    color: #fff !important;
    background: transparent !important;
    font-weight: 600;
  }

  /* Add indicator bar (like values component) */
  .customTab .nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 3px;
  }

  .customTab .nav-link.active::after {
    background-color: #28A396;
  }

  /* Hide scrollbar */
  .customTab::-webkit-scrollbar {
    display: none;
  }
  .customTab {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Image adjustments for mobile */
  .tabBoxPic img {
    border-radius: 12px !important;
  }
}
