.auto-load-tabs {
  width: 100%;
  padding: 95px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}

.auto-load-tabs .background-overlay {
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: 100%;
}

.tab-container {
  display: flex;
}

.tab-container.left-alignment {
  flex-direction: row;
}

@media only screen and (max-width: 992px) {
  .tab-container.left-alignment {
    flex-direction: column;
  }
}

.tab-container .buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: center;
  white-space: nowrap;
  justify-content: start;
  overflow-y: auto;
  width: calc(100% + 40px);
  position: relative;
  flex-wrap: nowrap;
  margin: 0 -20px 30px;
}

.tab-container .buttons::-webkit-scrollbar-track {
  background: transparent;
  transition: all 0.3s ease;
}

.tab-container .buttons::-webkit-scrollbar-thumb {
  background: transparent;
  transition: all 0.3s ease;
}

.tab-container .buttons:hover::-webkit-scrollbar-track {
  background: #a299dd;
}

.tab-container .buttons:hover::-webkit-scrollbar-thumb {
  background: #412cc8;
}

.tab-container.top-alignment .buttons {
  padding: 0 20px 20px;
  flex: unset;
  max-width: calc(100% + 40px);
  overflow-x: auto;
}

.tab-container .buttons.left-alignment {
  flex-direction: column;
  margin: 0;
  width: 100%;
  white-space: unset;
}

.tab-container .content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.tab-container.left-alignment .content {
  justify-content: start;
}

.tab-container.top-alignment .content {
  max-width: 1120px;
  margin: auto;
}

.tab-button {
  position: relative;
  font-size: 20px;
  padding: 16px 40px;
  border: 1px solid #3c10a6;
  border-radius: 200px;
  background-color: #fff;
  color: #3c10a6;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  min-width: fit-content;
  min-width: min-content;
  flex-shrink: 0;
}

.tab-button:first-child {
  margin-left: auto;
}

.tab-button:last-child {
  margin-right: auto;
}

.left-alignment .tab-button {
  width: 100%;
  padding: 16px 30px;
  text-align: left;
  font-weight: bold;
}

@media only screen and (max-width: 992px) {
  .left-alignment .tab-button {
    width: unset;
    padding: 16px 40px;
    text-align: center;
  }
  .left-alignment {
    margin: 0 !important;
  }
  .left-alignment .content {
    margin: 0 !important;
    padding: 0 !important;
  }
  .tab-button {
    border-radius: 200px !important;
  }
}

@media only screen and (max-width: 992px) {
  .tab-container .buttons.left-alignment {
    flex-direction: row;
    margin: 0 -20px 30px !important;
    width: calc(100% + 40px);
    white-space: nowrap;
    padding: 0 20px 20px;
    flex: unset;
    max-width: unset;
  }
}

.tab-button .loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* Place the loading bar behind the button text */
  transition: none; /* Initially, no transition */
}

.tab-button .subtitle {
  font-size: 18px;
  margin-top: 10px;
  opacity: 0.6;
  display: none;
  font-weight: 400;
}

.tab-button.active .subtitle {
  display: block;
}

.top-alignment .tab-button.active .subtitle {
  display: none;
}

@media only screen and (max-width: 992px) {
  .tab-button.active .subtitle {
    display: none;
  }
}

.tab-button.active {
  background-color: #623bbf;
  color: #ffffff; /* Optional: Change text color for better contrast */
  filter: drop-shadow(4px 4px 4px rgb(0 0 0 / 16%));
}

.tab-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease-out, visibility 300ms;
  width: 100%;
}

.tab-content.active {
  max-height: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease-in, visibility 300ms;
  overflow: visible;
}

.tab-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-meta .title {
  font-size: 34px;
  font-weight: bold;
  text-align: center;
}

.tab-meta .subtitle {
  font-size: 18px;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.tab-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.tab-more-btn {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  background: #3c10a6;
  padding: 16px 40px;
  border-radius: 200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border: 2px solid transparent;
  align-items: center;
  transition: all 0.3s ease;
}

.tab-content img {
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-content--inner.row {
  margin-top: -10px;
}

.tab-box {
  padding: 30px;
}

.tab-box--inner {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  /*border: 1px solid rgb(39 35 101 / 60%);
    filter: drop-shadow(rgb(39 35 101 / 80%) 4px 4px 4px);*/
  border-radius: 12px;
  padding: 30px 18px;
  height: 100%;
  max-height: 271px;
  position: relative;
}

.tab-box--inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgb(39 35 101 / 100%);
  border-radius: 12px;
  filter: drop-shadow(rgb(39 35 101 / 80%) 4px 4px 4px);
  z-index: -1;
}

.tab-box--inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border-radius: 12px;
  background: #fff;
  z-index: -2;
}

.tab-box--text {
  font-family: "Avenir", sans-serif;
  font-size: 18px;
  font-weight: 500;
  max-width: 200px;
  min-height: 90px;
  margin: 16px auto 0;
}

.tab-content .tab-box img {
  max-width: 105px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-content .splide__slide {
  display: flex;
  flex-wrap: wrap;
}

.tab-image.mobile {
  display: none;
}

.tab-content--inner .arrows-space,
.tab-content--inner button.splide__arrow {
  min-height: 58px;
  min-width: 58px;
  display: flex;
}

@media only screen and (max-width: 540px) {
  .tab-content--inner .arrows-space,
  .tab-content--inner button.splide__arrow {
    display: none;
  }
}

.tab-content--inner .splide__arrow {
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #c6c4ea;
  background-color: rgb(38 35 101 / 9%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  filter: drop-shadow(4px 4px 4px rgba(39, 35, 101, 0.38));
}

.tab-content--inner .splide__arrow svg {
  display: none;
}

.tab-content--inner .splide__arrow:after {
  content: url("../../public/images/arrow-circle-v2.svg");
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.tab-content--inner .splide__arrow--prev {
  left: -4vw;
}

.tab-content--inner .splide__arrow--prev:after {
  transform: rotate(180deg);
}

.tab-content--inner .splide__arrow--next {
  right: -4vw;
}

.tab-content--inner ul.splide__pagination {
  bottom: -15px;
}

.tab-content--inner ul.splide__pagination li button {
  min-width: 50px;
  border-radius: 200px;
  background: #623bbf;
  opacity: 26%;
  margin: 4px;
}

.tab-content--inner ul.splide__pagination li button.splide__pagination__page.is-active {
  background: #3c10a6;
  opacity: 100%;
  border: none;
  transform: unset;
}

.tab-text {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.tab-text--top {
  margin-bottom: 26px;
}

.tab-text--bottom {
  margin-top: 26px;
}

@media only screen and (max-width: 1440px) {
  .tab-content--inner {
    padding: 0 60px;
    max-width: 100vw;
    margin: 0 auto;
    margin-left: -20px;
  }

  .tab-content--inner .splide__arrow--prev {
    left: 1vw;
  }

  .tab-content--inner .splide__arrow--next {
    right: 1vw;
  }
}

@media only screen and (max-width: 992px) {
  .tab-content--inner {
    padding: 0px;
  }

  .tab-content--inner .arrows-space,
  .tab-content--inner button.splide__arrow {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .tab-image.mobile {
    display: block;
  }
  .tab-image.desktop {
    display: none;
  }
}
