.featured-projects {
  --featured-projects-tab-font-size: 18px;
  --featured-projects-tab-font-weight: 300;
  --featured-projects-tab-line-height: 24px;
  --featured-projects-tab-color: #ffffff;
  --featured-projects-tab-active-font-weight: 400;
  --featured-projects-tab-active-color: #002D72;
  --fp-stage-min-height: 1000px;
  --fp-chrome-padding-top: 120px;
  --fp-chrome-padding-bottom: 80px;
  --fp-slide-content-padding-top: 40px;
  --fp-slide-content-padding-bottom: 0;
  --fp-slide-content-align: center;
  --fp-tab-min-width: 0;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.featured-projects__stage {
  position: relative;
  min-height: var(--fp-stage-min-height);
  overflow: hidden;
}

.featured-projects__swiper,
.featured-projects__slide,
.featured-projects__media,
.featured-projects__image {
  width: 100%;
  height: 100%;
}

.featured-projects__swiper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.featured-projects__slide {
  position: relative;
  min-height: var(--fp-stage-min-height);
  overflow: hidden;
}

.featured-projects__media {
  position: absolute;
  inset: 0;
}

.featured-projects__image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.featured-projects__slide.swiper-slide-active .featured-projects__image {
  transform: scale(1);
}

.featured-projects__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.featured-projects__chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--fp-stage-min-height);
  padding: var(--fp-chrome-padding-top) 15px var(--fp-chrome-padding-bottom);
  pointer-events: none;
}

.featured-projects__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}

.featured-projects__header-text {
  max-width: min(520px, 100%);
}

.featured-projects__title {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 300;
  line-height: 1.2;
}

.featured-projects__subtitle {
  max-width: min(420px, 100%);
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.5;
}

.featured-projects__slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: var(--fp-slide-content-align);
  padding: var(--fp-slide-content-padding-top) 15px var(--fp-slide-content-padding-bottom);
}

.featured-projects__slide-inner {
  width: 100%;
  max-width: min(670px, 100%);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.featured-projects__slide.swiper-slide-active .featured-projects__slide-inner {
  opacity: 1;
  transform: translateY(0);
}

.featured-projects__slide-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 300;
  line-height: 1.25;
}
.featured-projects__slide-title a{
  color: #ffffff;
  text-decoration: none;
}
.featured-projects__slide-desc {
  max-width: min(670px, 100%);
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.5;
}

.featured-projects__slide-desc p {
  margin: 0;
  font-weight: 300;
}

.featured-projects__details {
  display: grid;
  gap: 18px;
  max-width: min(620px, 100%);
  margin-top: 28px;
}

.featured-projects__detail-label {
  color: #ffffff;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: bold;
  line-height: 1.4;
}

.featured-projects__detail-value {
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.55;
}

.featured-projects__slide-link {
  margin-top: 28px;
}

.featured-projects__link {
  margin-top: 0;
}

.featured-projects__link--header {
  flex-shrink: 0;
  margin-top: 0;
}

.featured-projects__tabs-wrap {
  position: relative;
  width: 100%;
  pointer-events: auto;
}

.featured-projects__tabs {
  display: grid;
  grid-template-columns: repeat(var(--featured-projects-tab-columns, 4), minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  pointer-events: auto;
  align-items: stretch;
}

.featured-projects__tab {
  position: relative;
  z-index: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: var(--fp-tab-min-width);
  min-height: 60px;
  font-size: var(--featured-projects-tab-font-size);
  font-weight: var(--featured-projects-tab-font-weight);
  line-height: var(--featured-projects-tab-line-height);
  color: var(--featured-projects-tab-color);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.featured-projects__tab:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(17.5px);
  backdrop-filter: blur(17.5px);
}

.featured-projects__tab-glass {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  box-sizing: border-box;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(17.5px);
  backdrop-filter: blur(17.5px);
  pointer-events: none;
}

.featured-projects__tab-glass.is-hovered {
  background-color: #ffb81c;
  border-color: #ffb81c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.featured-projects__tab.is-active {
  background: #FFB81C;
  border-color: #FFB81C;
  color: var(--featured-projects-tab-active-color);
  font-weight: var(--featured-projects-tab-active-font-weight);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.featured-projects__tab:hover:not(.is-active),
.featured-projects__tab:focus-visible:not(.is-active) {
  background: #ffb81c;
  border-color: #ffb81c;
  color: var(--featured-projects-tab-active-color);
  font-weight: var(--featured-projects-tab-active-font-weight);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.featured-projects__tab.is-active:hover,
.featured-projects__tab.is-active:focus-visible {
  background: #ffb81c;
  border-color: #ffb81c;
  color: var(--featured-projects-tab-active-color);
  font-weight: var(--featured-projects-tab-active-font-weight);
}

.featured-projects__tab-label {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.featured-projects__tab-label--sizer {
  visibility: hidden;
  pointer-events: none;
}

.featured-projects__tab.is-active .featured-projects__tab-label--sizer {
  visibility: visible;
}

.featured-projects__tab-label--portaled {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 31;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: var(--featured-projects-tab-font-size);
  font-weight: var(--featured-projects-tab-font-weight);
  line-height: var(--featured-projects-tab-line-height);
  color: var(--featured-projects-tab-color);
  pointer-events: none;
}

@media (max-width: 1500px) {
  .featured-projects {
    --fp-stage-min-height: 800px;
    --fp-chrome-padding-top: 80px;
  }
}

@media (max-width: 1300px) {
  .featured-projects {
    --featured-projects-tab-font-size: 18px;
  }
}

@media (max-width: 1200px) {
  .featured-projects {
    --featured-projects-tab-font-size: 16px;
  }

  .featured-projects__tab {
    padding: 5px 16px;
  }
}

@media (max-width: 1160px) {
  .featured-projects {
    --fp-stage-min-height: 720px;
    --featured-projects-tab-font-size: 13px;
    --featured-projects-tab-line-height: 17px;
    --fp-tab-min-width: 0;
  }

  .featured-projects__tab {
    min-height: 50px;
    padding: 8px 10px;
  }

  .featured-projects__tab-label {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: unset;
  }
}

@media (max-width: 992px) {
  .featured-projects {
    --fp-stage-min-height: max(680px, 85dvh);
    --fp-chrome-padding-top: 60px;
    --fp-chrome-padding-bottom: 40px;
    --fp-slide-content-padding-top: 210px;
    --fp-slide-content-padding-bottom: 130px;
    --fp-slide-content-align: flex-start;
  }

  .featured-projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .featured-projects__link--header {
    margin-top: 0;
  }

  .featured-projects__overlay {
    background:
      linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.65) 100%);
  }

  .featured-projects__slide-inner {
    max-height: calc(var(--fp-stage-min-height) - var(--fp-slide-content-padding-top) - var(--fp-slide-content-padding-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .featured-projects__slide-inner::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767px) {
  .featured-projects {
    --fp-stage-min-height: max(640px, 90dvh);
    --fp-chrome-padding-top: 48px;
    --fp-chrome-padding-bottom: 28px;
    --fp-slide-content-padding-top: 200px;
    --fp-slide-content-padding-bottom: 160px;
    --featured-projects-tab-font-size: 13px;
    --featured-projects-tab-line-height: 17px;
    --fp-tab-min-width: 0;
  }

  .featured-projects__header {
    gap: 10px;
  }

  .featured-projects__details {
    gap: 14px;
    margin-top: 20px;
  }

  .featured-projects__slide-link {
    margin-top: 20px;
  }

  .featured-projects__slide-title {
    margin: 0 0 10px;
  }

  .featured-projects__tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    width: 100%;
  }
  .featured-projects__tabs::-webkit-scrollbar {
    display: none;
  }

  .featured-projects__tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 30px;
  }

  .featured-projects__tab-label {
    -webkit-line-clamp: 2;
    white-space: nowrap;
    line-height: 1.35;
  }
}

@media (max-width: 479px) {
  .featured-projects {
    --fp-stage-min-height: max(680px, 92dvh);
    --fp-chrome-padding-top: 40px;
    --fp-chrome-padding-bottom: 24px;
    --fp-slide-content-padding-top: 185px;
    --fp-slide-content-padding-bottom: 170px;
    --featured-projects-tab-font-size: 12px;
    --featured-projects-tab-line-height: 16px;
  }

  .featured-projects__tab {
    min-height: 44px;
    padding: 7px 18px;
    border-radius: 24px;
  }

  .featured-projects__tabs {
    gap: 6px;
  }
}
