/** Vertical Card Overlay start **/

.Vertical_Card_Overlay {
  background-color: var(--ozarks-blue);
  padding: 80px 0;
  width: 100%;
}

section.Vertical_Card_Overlay .container {
  max-width: 96.5%;
}

.Vertical_Card_Overlay .tabs_section_heading h2 {
  margin-bottom: 40px;
}

.Vertical_Card_Overlay .tabs_section_heading h2 span {
  margin-top: 0;
}


/* ----------------------------
   Card Buttons
----------------------------- */

.Vertical_Card_Overlay .cardList .flip-card button {
  padding: 8px 8px 28px 8px;
}

.cardList .flip-card button {
  width: 100%;
  background-color: transparent;
  border: none;
  color: var(--transparent-white-70);
  font-size: 23px;
  line-height: 120%;
  font-weight: 500;
  padding: 21px 10px;
  position: relative;
  margin-bottom: 40px;
  cursor: pointer;
}

.cardList .flip-card.active button {
  color: var(--white);
}

/* Underline effect */

.cardList .flip-card button:after {
  content: "";
  background:  url(/wp-content/themes/ozarks/assets/images/vector.svg) no-repeat center;
  background-size: contain;
  width: calc(100% - 16px);
  height: 16px;
  position: absolute;
  left: 8px;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cardList .flip-card.active button:after {
  opacity: 1;
}


/* ----------------------------
   Owl Navigation
----------------------------- */

.cardList .owl-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-block-start: 1.75rem;
  margin-inline: auto;
  padding-inline: 50px;
  max-width: 388px;
}

.cardList .owl-nav button {
  width: calc(50% - 1rem);
}

.cardList .owl-nav button.owl-prev.nav-btn, .cardList .owl-nav button.owl-next.nav-btn {
  height: 16px;
  width: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
}

.cardList .owl-prev.nav-btn.prev-slide {
  background-image: url(/wp-content/themes/ozarks/assets/images/left-arrow-white.png);
  background-color: var(--ozarks-blue);
}

.cardList .owl-next.nav-btn.next-slide {
  background-image: url(/wp-content/themes/ozarks/assets/images/right-arrow-white.png);
  background-color: var(--ozarks-blue);
}

.cardList .disabled.nav-btn {
  opacity: 0.5;
}


/* ----------------------------
   Card Panel
----------------------------- */

.Vertical_Card_Overlay .new_tab_inner {
  background-color: transparent;
  padding: 0 8px;
  text-align: center;
}

.Vertical_Card_Overlay .new_tab_inner a {
  margin: 0;
  background: none;
  padding: 0;
}


/* ----------------------------
   Card Image
----------------------------- */

.Vertical_Card_img {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
}

/* Grayscale default */

.cardList .flip-card .Vertical_Card_img img {
  filter: grayscale(75%);
  transition: filter 0.8s ease;
}

/* Active state */

.cardList .flip-card.active .Vertical_Card_img {
  border: 1px solid var(--honors-yellow);
}

.cardList .flip-card.active .Vertical_Card_img img {
  filter: grayscale(0%);
}

.cardList .flip-card.active .Vertical_Card_img:after {
  content: "";
  background: url(/wp-content/themes/ozarks/assets/images/goals.png) no-repeat left top;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}


/* ----------------------------
   Card Details
----------------------------- */

.card_det {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  padding: 0 32px 64px 32px;
  z-index: 2;
}

.card_det p {
  margin: 0;
  color: var(--white);
  text-align: left;
}

.card_link {
  letter-spacing: calc(18px * 0.03);
  font-family: var(--montserrat);
  font-weight: 700;
  font-size: 18px;
  line-height: 120%;
  color: var(--honors-yellow) !important;
  position: relative;
  margin-top: 24px !important;
  padding-right: 24px;
}

.card_link:after {
  content: "";
  background: var(--arrow-yellow) no-repeat center;
  width: 24px;
  height: 24px;
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -12px;
}

/* Show details when active */

.cardList .flip-card.active .Vertical_Card_img .card_det {
  display: block;
}


/* ----------------------------
   Desktop Layout
----------------------------- */

@media (min-width: 992px) {

  .cardList {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
  }

  .cardList .flip-card {
    width: 25%;
    margin-bottom: 20px;
  }

  /* Prevent clicking inactive cards */

  .cardList .flip-card:not(.active) a {
    pointer-events: none;
  }
}


/* ----------------------------
   Mobile Carousel
----------------------------- */

@media (max-width: 991px) {

  .cardList .flip-card button {
    color: var(--white);
  }

  .cardList.owl-carousel .owl-stage {
    display: flex !important;
    align-items: flex-end;
  }

  .cardList .owl-item.active .flip-card button:after {
    opacity: 1;
  }

  .cardList .owl-item.active .Vertical_Card_img {
    border: 1px solid var(--honors-yellow);
  }

  .cardList .owl-item.active .Vertical_Card_img:after {
    content: "";
    background: var(--gradient-gray) no-repeat left top;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
  }

  .cardList .owl-item.active .Vertical_Card_img .card_det {
    display: block;
  }
}


/** Vertical Card Overlay end **/