.fpd-tabs-head {
  display: flex;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  gap: 0px;
  margin-bottom: 0px;
}

.tab-wrapper {
  margin: 0 auto 32px;
  max-width: 550px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #F0F0F0;
  background: transparent;
  overflow: hidden;
  overflow-x: auto;
}

.fpd-tab-button,
.all-tab-button{
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 0px;
  font-weight: bold;
  cursor: pointer;
  width: 126px;
  color: var(--www-justcoglobal-com-astronaut-blue, var(--color-azure-18, #003A5C));
  text-align: center;
  /* NEW/NEW Header 3 */
  font-family: var(--font-family-Font-2, "Open Sans");
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  /* 36px */
}

.fpd-tab-button.active {
  background-color: #003865;
  color: #fff;
}

.fpd-tab-button:last-child,
.all-tab-button:last-child
{
  background-color: #20b4ff;
  color: #fff;
}

.fpd-tab-button.active:last-child {
  background-color: #003865;
}


.fpd-tab-content {
  display: none;
}

.fpd-tab-content.active {
  display: block;
}

/* Swiper Controls */
.fpd-swiper-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  margin: 0 auto;
}

.fpd-swiper-prev,
.fpd-swiper-next {
  position: static !important;
  font-size: 24px;
}


.fpd-swiper-prev,
.fpd-swiper-next {
  width: 44px;
  height: 44px;
  background: #49A9F8;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fpd-swiper-prev:hover,
.fpd-swiper-next:hover {
  background: #003A5C;
}

/* Card Styling */
.fpd-tab-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #F0F0F0;
  background: #FFF;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
  height: 100%;
}

/* Updated for background-image */
.fpd-img-box {
  height: 240px;
  border-radius: 10px 10px 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Remove the old img style (not used anymore) */
.fpd-img-box img {
  display: none;
}

.fpd-detail {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fpd-detail h4 {
  color: #20B4FF;
  font-family: "Open Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  margin: 0;
}

.fpd-detail p {
  color: var(--color-azure-18, #003A5C);
  /* Current/Body */
  font-family: var(--font-family-Font-2, "Open Sans");
  font-size: var(--font-size-16, 16px);
  font-style: normal;
  font-weight: var(--font-weight-400, 400);
  line-height: var(--line-height-25_6, 25.6px);
  /* 160% */
}

.fpd-learn-more {
  color: var(--color-azure-18, #003A5C);
  text-align: right;
  font-family: var(--font-family-Font-2, "Open Sans");
  font-size: var(--font-size-16, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-25_6, 25.6px);
  /* 160% */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/* Fallback layout if Swiper not initialized */
.fpd-swiper-wrapper-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 20px !important;
  align-items: stretch;
}

.fpd-swiper-wrapper-fallback .swiper-slide {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Responsive Columns */
@media (min-width: 768px) {
  .fpd-swiper-wrapper-fallback .swiper-slide {
    width: calc(50% - 10px) !important;
  }
}

@media (min-width: 1024px) {
  .fpd-swiper-wrapper-fallback .swiper-slide {
    width: calc(25% - 15px) !important;
  }
}

/* View All Button */
.fpd-view-all-wrapper {
  text-align: center;
  margin: 0px auto 42px;
  width: 194px;
}

.fpd-view-all-btn {
  display: flex;
  width: 100%;
  height: 56px;
  padding: 0px 29.696px 0px 30px;
  justify-content: center;
  align-items: center;
  background-color: #21B5FF;
  color: #FFF;
  border-radius: 30px;
}


/* Swiper pagination */
.fpd-swiper-pagination {
  display: block !important;
  position: static !important;
}

.fwc-wrapper {
  margin: 0 auto;
  width: 520px;
}

.fwc-wrapper .fpd-swiper-pagination {
  max-width: 200px;
  margin: 0px;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%);
  bottom: -30px;
}

.fwc-wrapper .fpd-swiper-pagination .swiper-pagination-bullet {
  width: 35px;
  height: 6px;
  transform: scale(1) !important;
  background-color: #21B5FF;
  border-radius: 0%;
  opacity: 1;
  margin: 0 5px !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.fwc-wrapper .fpd-swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 40px;
}

.fwc-wrapper .fpd-swiper-pagination .swiper-pagination-bullet-active {
  background-color: #003A5C;
  transform: scale(1.2);
}

.max-three-lines {
  min-height: 100px;
}

.fpd-tabs-section .swiper-wrapper {
  margin-bottom: 32px;
}

.fpd-swiper-all .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
  bottom: 20px !important;
}

@media only screen and (max-width: 768px) {
  .fpd-tabs-section {
    padding: 0;
  }

  .fpd-tab-button {
    width: 25% !important;
    font-size: 16px !important;
    padding: 12px;
  }

  .fwc-wrapper {
    margin: 0 auto;
    width: 100%;
  }

  .fwc-wrapper svg {
    width: 35px;
  }

  .fpd-swiper-controls {
    justify-content: space-between !important;
  }
}
@media only screen and (max-width: 575.98px){
  .fpd-tab-button, .all-tab-button {
    font-size: 14px !important;
  }
}
@media only screen and (max-width: 344.98px){
  .fpd-tabs-head {
    width: 300px;
  }
}