/* Custom programs v7 */
.custom-programs-v7 {
  background-color: var(--programs-bg-color, #fff);
  color: var(--section-title-color, #000);
  text-align: center;
  padding: 4em 0 50px;
  width: 100%;
  overflow: hidden;
}

.custom-programs-v7 .see-all-container {
  padding-inline: 20px;

  @media only screen and (min-width: 600px) {
    padding: 32px;
  }

  .header-slot-container {
    color: var(--section-title-color, #000);
  }
}

.custom-programs-v7 .swiper {
  width: 100%;
  padding-bottom: 25px;
  overflow: visible;
}

.custom-programs-v7 .custom-programs-v7-list-wrapper:not(.swiper-initialized) .custom-programs-v7-list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.custom-programs-v7 .custom-programs-v7-list>div {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 350px;
}

.custom-programs-v7 .custom-programs-v7-list-wrapper.swiper-initialized .custom-programs-v7-list>div {  
  height: 400px;
}

.custom-programs-v7 .custom-programs-v7-list>div img {
  display: block;
  width: 100%;
}

.custom-programs-v7 .slide-wrap {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  padding: 0;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.25s linear;
}

.custom-programs-v7 .swiper-initialized .slide-wrap {
  transform: scale(0.8);
}

.custom-programs-v7 .slide-wrap .image-wrap {
  border: 5px solid var(--program-image-border-color, var(--primary-color));
  border-bottom: 0;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 5/4;
  position: relative;
  order: -1;

  .image {
    position: relative;
    height: 0;
    padding-top: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .custom-programs-v7 .slide-wrap .image-wrap {
    aspect-ratio: unset;
  }
}

.custom-programs-v7 .slide-wrap .image-wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
  object-fit: cover;
  inset: 0;
}

.custom-programs-v7 .slide-wrap .title-wrap {
  background-color: var(--program-title-background-color, var(--primary-color));
  border: 3px solid var(--program-title-border-color, var(--primary-color));
  color: var(--program-title-color, var(--primary-color-contrast));
  border-radius: 10px; 
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.custom-programs-v7 .slide-wrap .title-wrap h3 {
  font-size: 1.05em;
}

.custom-programs-v7 .slide-wrap .card-graphic {
  display: block;
  padding-bottom: 20px;
}

.custom-programs-v7 .slide-wrap .icon-wrap {
  width: 120px;
  height: 120px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.custom-programs-v7 .slide-wrap svg {
  fill: var(--program-text-color, var(--primary-color-contrast));
  max-width: 100%;
  max-height: 100%;
}

.custom-programs-v7 .slide-wrap .text-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65882353);
  color: var(--program-text-color, var(--primary-color-contrast));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* flex-wrap: wrap; */
  flex-direction: column;
  gap: 15px;
  padding: 20px 15px;
  box-sizing: border-box;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s linear;
}

.custom-programs-v7 .slide-wrap .text-wrap a {
  color: inherit;
}

.custom-programs-v7 .custom-swiper-navigation {
  display: none;
  height: 50px;
  margin-top: 0;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.custom-programs-v7 .swiper-initialized + .custom-swiper-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-programs-v7 .custom-swiper-navigation .swiper-pagination {
  position: static;
  margin-top: 0;
  width: auto;
  margin-left: 2em;
  margin-right: 2em;
}

.custom-programs-v7 .swiper-pagination-clickable .swiper-pagination-bullet {
  width: 16px;
  height: 12px;
}

.custom-programs-v7 .swiper-pagination-clickable .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 10px;
  background-color: var(--program-slider-dot-bg-color, var(--primary-color));
  opacity: 0.75;
}

.custom-programs-v7 .custom-swiper-next-7,
.custom-programs-v7 .custom-swiper-prev-7 {
  position: static;
  margin-top: 20px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  border-radius: 50%;
  z-index: 2;
  background-color: var(--program-slider-arrows-bg-color, var(--primary-color));
  color: var(--program-slider-arrows-color, var(--primary-color-contrast));
  aspect-ratio: 1/1;
  border: 2px solid var(--program-slider-arrows-color, var(--primary-color-contrast));
}

.custom-programs-v7 .custom-swiper-next-7:after,
.custom-programs-v7 .custom-swiper-prev-7:after {
  font-weight: 700;
  opacity: 0.75;
}

.custom-programs-v7 .custom-swiper-prev-7:after {
  margin-left: 10px;
}

.custom-programs-v7 .custom-swiper-next-7:after {
  margin-right: 10px;
}

@media only screen and (min-width: 550px) {
  .custom-programs-v7 .custom-swiper-navigation {
    margin-top: 25px;
  }

  .custom-programs-v7 .custom-swiper-next-7,
  .custom-programs-v7 .custom-swiper-prev-7 {
    position: absolute;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;

    &:hover {
      opacity: 1;
    }
  }

  .custom-programs-v7 .custom-swiper-prev-7 {
    right: auto;
    left: 0;
  }

  .custom-programs-v7 .custom-swiper-next-7 {
    left: auto;
    right: 0;
  }

}

.custom-programs-v7 .swiper-initialized .swiper-slide-active .slide-wrap {
  transform: scale(1.3);
}

.custom-programs-v7 .swiper-initialized .swiper-slide-active .slide-wrap .image-wrap .text-wrap,
.custom-programs-v7 .custom-programs-v7-list-wrapper:not(.swiper-initialized) .custom-programs-v7-list>div .slide-wrap:hover .image-wrap .text-wrap {
  opacity: 1;
  visibility: visible;
} 
.custom-programs-v7 .slide-wrap .image-wrap .text-wrap {
  &>span {
    white-space: normal !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 13;
    line-clamp: 13;
    -webkit-box-orient: vertical;
  }
}

.custom-programs-v7 .read-more-link:not(:has(a)) {
  display: none;
}

.custom-programs-v7 .read-more-link a {
  color:  var(--program-text-color, var(--primary-color-contrast));
  text-decoration: none;
  display: flex;
  gap: 5px;

  &::after {
    content: '»';
    transition: all .35s ease-in-out;
  }

  &::before {
    position: absolute;
    inset: 0;
    bottom: -60px;
    z-index: 1;
    content: '';
  }
}

.custom-programs-v7 .text-wrap:hover .read-more-link a::after {
  transform: translateX(5px);
}

@media only screen and (max-width: 767px) {
  .custom-programs-v7 .swiper-slide-active .slide-wrap {
    transform: none !important;
  }
}

/* END Custom programs v7 */