.home-featured-degrees {
  background-color: #FFFFFF;
  font-family: var(--font-outfit);
  position: relative;
}

.home-featured-degrees .container {
  position: relative;
}

.home-featured-degrees-header {
  margin-bottom: 32px;
  max-width: 850px;
}

.home-featured-degrees-header p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-content-mid);
  margin: 0;
}

.home-featured-degrees .swiper-featured-degrees {
  position: relative;
}

.home-featured-degrees .swiper-slide.auto-height {
  height: auto;
}

.home-featured-degrees-slider-wrapper {
  position: relative;

  @media (min-width: 1024px) {
    padding: 0 54px;
  }

  @media (min-width: 1280px) {
    padding: 0 30px;
  }

  @media (min-width: 1440px) {
    padding: 0 0;
  }
}

.home-featured-degrees .slide-single-card {
  background: #F2F3F6;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-featured-degrees .card-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.home-featured-degrees .card-image-container img.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-featured-degrees .card-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, rgba(0, 23, 69, 0) 0%, rgba(0, 23, 69, 0.6) 100%);
}

.home-featured-degrees .card-image-container .card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FFFFFF;
  color: var(--primary-color);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.home-featured-degrees .card-image-container .card-modality {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}

.home-featured-degrees .card-image-container .card-modality img {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
}

.home-featured-degrees .card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.home-featured-degrees .card-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--primary-color);
  margin: 0 0 8px;
  min-height: 56px;
}

.home-featured-degrees .card-body .card-family {
  font-size: 14px;
  color: var(--color-content-mid);
  margin-bottom: 24px;
  display: block;
}

.home-featured-degrees .card-body .btn-azul {
  width: 100%;
  text-align: center;
  margin-top: auto;

  border: unset;
}

/* Swiper Controls */
.home-featured-degrees .swiper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-primary-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #134C8F;
  }

  &:active {
    background: #0F3C71;
  }
}

.home-featured-degrees .swiper-nav-btn::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #FFFFFF;
  border-right: 2.5px solid #FFFFFF;
}

.home-featured-degrees .swiper-nav-btn.prev {
  left: -22px;

  @media (min-width: 1440px) {
    left: -70px;
  }
}

.home-featured-degrees .swiper-nav-btn.prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.home-featured-degrees .swiper-nav-btn.next {
  right: -22px;

  @media (min-width: 1440px) {
    right: -70px;
  }
}

.home-featured-degrees .swiper-nav-btn.next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

.home-featured-degrees-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.home-featured-degrees-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-primary-mid);
  background: transparent;
  opacity: 1;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.home-featured-degrees-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary-mid);
  width: 40px;
  border-radius: 10px;
}

@media (max-width: 1023px) {
  .home-featured-degrees .swiper-nav-btn {
    display: none;
  }
}