/**
 * @file
 * Styles for Next Highlights Block.
 */

.nextdc-highlights-block {
  width: 100%;
  padding: 96px 0;
  @media (max-width: 767.98px) {
    padding: 48px 0;
  }
}

.nextdc-highlights-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 0 120px;
  @media (max-width: 1279.98px) {
    padding: 0 60px;
  }
  @media (max-width: 767.98px) {
    padding: 0 30px;
  }
  @media (max-width: 479.98px) {
    padding: 0 16px;
  }
  @media (max-width: 374.98px) {
    padding: 0 8px;
  }
}

.nextdc-highlights-block__title {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 120%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0;
}

.nextdc-highlights-block__cta {
  flex-shrink: 0;
}

.nextdc-highlights-block__button {
  display: inline-block;
  padding: 20px;
  color: #201850;
  background-color: #ffffff;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 130%;
  letter-spacing: 0.032em;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  position: relative;
}

.nextdc-highlights-block__button:hover {
  background-color: #ffffff;
  color: #201850;
  text-decoration: none;
  border: none;
  &::before{
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: transparent;
    border: 2px solid #201850;
  }
}

/* Swiper Container */
.nextdc-highlights-block__slider {
  position: relative;
  padding: 0 0 0 120px;
  @media (max-width: 1279.98px) {
    padding: 0 0 0 60px;
  }
  @media (max-width: 767.98px) {
    padding: 0 0 0 30px;
  }
  @media (max-width: 479.98px) {
    padding: 0 0 0 16px;
  }
  @media (max-width: 374.98px) {
    padding: 0 0 0 8px;
  }
}

.nextdc-highlights-swiper {
  overflow: hidden;
  width: 100%;
}

.nextdc-highlights-swiper .swiper-wrapper {
  align-items: stretch;
  display: flex;
  position: unset !important;
}

.nextdc-highlights-swiper .swiper-slide {
  height: auto;
  display: flex;
  max-width: 440px !important;
}

/* Card Styles */
.nextdc-highlights-block__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #1a3a5f;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 440px;
  @media (max-width: 767.98px) {
    max-width: 352px;
  }
}

.nextdc-highlights-block__card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.nextdc-highlights-block__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  aspect-ratio: 4 / 3;
}

.nextdc-highlights-block__card:hover .nextdc-highlights-block__card-image img {
  transform: scale(1.05);
}

.nextdc-highlights-block__card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #201850;
  row-gap: 1.5rem;
}

.nextdc-highlights-block__card-title {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0.032em;
  text-transform: uppercase;
  color: #3BB7B3;
}


.nextdc-highlights-block__card-body {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0.032em;
  color: #ffffff;
  flex: 1;
}

.nextdc-highlights-block__card-body p {
  margin: 0 0 1rem 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}

.nextdc-highlights-block__card-body p:last-child {
  margin-bottom: 0;
}

.nextdc-highlights-block__card-cta {
  margin-top: auto;
}

.nextdc-highlights-block__card-cta .link--cta {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0.032em;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nextdc-highlights-block__card-cta .link--cta::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 20px;
  background-image: url('/themes/custom/nextdc/images/arrow-right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.nextdc-highlights-block__card-link {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nextdc-highlights-block__card-link:hover {
  opacity: 0.8;
}

/* Navigation Buttons */
.nextdc-highlights-block__slider {
  padding-bottom: 4rem;
}

.nextdc-highlights-block__nav-button {
  width: 56px;
  height: 56px;
  background-color: #ffffff;
  color: #1a3a5f;
  margin-top: 0;
  position: absolute;
  bottom: 0;
  top: calc(100% - 48px);
  transform: none;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  font-size: 0;
  &:hover{
    cursor: pointer;
  }
}

.nextdc-highlights-block__nav-button::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nextdc-annual-review-block .nextdc-highlights-block__nav-button::after {
  content: '';
  width: 48px;
  height: 48px;
}

.swiper-button-prev.nextdc-highlights-block__nav-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='32' viewBox='0 0 36 32' fill='none'%3E%3Cpath d='M0 15.9971L16.1953 32L20.3027 27.9404L11.1221 18.8682H36V13.127H11.123L20.3027 4.06055L16.1953 0L0 15.9971Z' fill='%23201850'/%3E%3C/svg%3E");
}

.swiper-button-next.nextdc-highlights-block__nav-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='32' viewBox='0 0 36 32' fill='none'%3E%3Cpath d='M36 15.9971L19.8047 32L15.6973 27.9404L24.8779 18.8682H0V13.127H24.877L15.6973 4.06055L19.8047 0L36 15.9971Z' fill='%23201850'/%3E%3C/svg%3E");
}


.nextdc-annual-review-block .swiper-button-prev.nextdc-highlights-block__nav-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none'%3E%3Crect width='56' height='56' fill='%23201850'/%3E%3Cpath d='M10 27.9971L26.1953 44L30.3027 39.9404L21.1221 30.8682H46V25.127H21.123L30.3027 16.0605L26.1953 12L10 27.9971Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.nextdc-annual-review-block .swiper-button-next.nextdc-highlights-block__nav-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none'%3E%3Crect width='56' height='56' fill='%23201850'/%3E%3Cpath d='M46 27.9971L29.8047 44L25.6973 39.9404L34.8779 30.8682H10V25.127H34.877L25.6973 16.0605L29.8047 12L46 27.9971Z' fill='%23ffffff'/%3E%3C/svg%3E");
}




.nextdc-highlights-block__nav-button:hover {
  background-color: #f0f0f0;
}

.swiper-button-prev.nextdc-highlights-block__nav-button {
  left: 50%;
  transform: translateX(-68px);
}

.swiper-button-next.nextdc-highlights-block__nav-button {
  right: 50%;
  transform: translateX(68px);
}

/* Responsive Styles */
@media (max-width: 1024px) {

  .swiper-button-prev.nextdc-highlights-block__nav-button {
    left: 50%;
    transform: translateX(-68px);
  }

  .swiper-button-next.nextdc-highlights-block__nav-button {
    right: 50%;
    transform: translateX(68px);
  }
}

@media (max-width: 767.98px) {

  .nextdc-highlights-block__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  .nextdc-highlights-block__title {
    font-size: 36px;
  }


  .swiper-button-prev.nextdc-highlights-block__nav-button {
    left: 50%;
    transform: translateX(-68px);
  }

  .swiper-button-next.nextdc-highlights-block__nav-button {
    right: 50%;
    transform: translateX(68px);
  }

  .nextdc-highlights-block__card-image {
    height: 250px;
  }

  .nextdc-highlights-block__card-content {
    padding: 1.25rem;
  }

}

.swiper {
  position: unset !important;
}

.nextdc-block--inline-blocknext-highlights-block{
  .swiper-button-prev.nextdc-highlights-block__nav-button {
    transform: translateX(-60px);
    &:hover{
      border: 3px solid #201850;
      background-color: #ffffff;
      &::after{
        transform: translateX(-1px);
      }
    }
  }

    .swiper-button-next.nextdc-highlights-block__nav-button {
    transform: translateX(60px);
    &:hover{
      border: 3px solid #201850;
      background-color: #ffffff;
      &::after{
        transform: translateX(1px);
      }
    }
  }
}