/* Search and FILTERS */
.filter-wrapper {
  max-width: 100%;
  width: 100%;
  padding: 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.filter-wrapper form ul {
  padding: 0;
}
.filter-wrapper form.searchandfilter ul li {
  padding: 0;
  line-height: normal;
}

.filter-wrapper form > ul li > ul {
  display: flex;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}

.filter-wrapper form > ul li > ul li label {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  color: rgba(255, 255, 255, 0.5);
}

.filter-wrapper form > ul li > ul li:first-of-type label::before {
  content: '';
  display: inline-block;
  height: 20px;
  width: 20px;
  background-image: url(./assets/filter-icon.svg);
  background-position: center center;
  background-repeat: no-repeat;
}

.filter-wrapper form > ul li > ul li.sf-option-active label,
.filter-wrapper form > ul li > ul li label:hover {
  color: white;
  text-decoration: underline;
  transition: all 0.5 ease-in-out;
}
.filter-wrapper form > ul li > ul li input[type='radio'] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 767px) {
  .filter-wrapper form > ul li > ul {
    gap: 0;
  }
}

@media (min-width: 1199px) {
  .filter-wrapper form {
    max-width: 85%;
    margin: 0 auto;
  }
}

/* End FILTERS */

.main-cards__wrapper {
  padding: 80px 0;
  padding-bottom: 34px;
}

.swiper.gesprekskaarten {
  max-width: 450px;
}

.swiper.gesprekskaarten .swiper-slide {
  position: static;
  width: auto;
  aspect-ratio: 444/627;
  border-radius: 16px;
  border: 8px solid white;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #fff;
  box-shadow: -5px 5px 25px rgba(0 0 0 / 5%);
  position: static;
  overflow: visible;
}

.swiper.gesprekskaarten .swiper-slide .gesprekskaart {
  width: 100%;
  height: 100%;
  transform-origin: center;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.swiper.gesprekskaarten .swiper-slide .front {
  background-color: var(--kleur);
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 40px;
  background-size: 27.5% 27.5%;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.swiper.gesprekskaarten .swiper-slide {
  /* opacity: 0; */
  pointer-events: none;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
  background-color: #fff;
}

.swiper.gesprekskaarten .swiper-slide-active,
.swiper.gesprekskaarten .swiper-slide-active + .swiper-slide,
.swiper.gesprekskaarten .swiper-slide-active + .swiper-slide + .swiper-slide {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 767px) {
  .swiper.gesprekskaarten .swiper-slide .front {
    background-size: 25.5% 20%;
    /* padding: 140px 30px 40px 30px; */
  }
}

.swiper.gesprekskaarten .swiper-slide .back {
  background-color: var(--kleur);
  border-radius: 20px;
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: rotateY(-180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.swiper.gesprekskaarten .swiper-slide h3 {
  color: inherit;
}

.swiper.gesprekskaarten .swiper-slide .dialog-button {
  display: block;
  width: fit-content;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 999px;
  background-color: #3d0a85;
}

.swiper.gesprekskaarten
  .swiper-slide:has(dialog.gespreksPopup[style*='3D0A85'])
  .dialog-button {
  color: #3d0a85;
  border: 1px solid #fff;
  background-color: #fff;
}

.swiper-nav {
  max-width: 1312px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding: 0 20px;
  margin: 0 auto;
  transform: translate(0, -50%);
  display: flex;
  justify-content: space-between;
  transition: opacity 300ms ease-in-out;
}

.swiper-nav .swiper_next_button {
  border: 1px solid white;
  width: fit-content;
  border-radius: 2em;
  padding: 0.5em 1.5em;
  margin-top: 40px;
  color: white;
  transition: opacity 300ms ease-in-out;
}

.swiper-nav .swiper_prev_button {
  border: 1px solid white;
  width: fit-content;
  border-radius: 2em;
  padding: 0.5em 1.5em;
  margin-top: 40px;
  color: white;
  transition: opacity 300ms ease-in-out;
}

.swiper-nav .swiper-button-disabled,
.swiper-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.swiper-nav .icon {
  display: none;
}

.swiper-nav .swiper_prev_button .icon svg,
.swiper-nav .swiper_next_button .icon svg {
  display: inline-block;
  width: 25px;
  height: 25px;
}

.cards-download__btn a.fl-button .fl-button-text {
  display: flex;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  align-items: center;
}

.cards-download__btn a.fl-button .fl-button-text::after {
  content: '';
  display: inline-block;
  height: 25px;
  width: 25px;
  background-image: url(./assets/download-icon.svg);
  background-position: center center;
  background-repeat: no-repeat;
}

@keyframes openDialog {
  from {
    translate: 0 100%;
  }
  to {
    translate: 0 0;
  }
}
@keyframes closeDialog {
  to {
    translate: 0 100%;
  }
}
@keyframes openDialogBG {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes closeDialogBG {
  to {
    opacity: 0;
  }
}

/* .swiper.gesprekskaarten .swiper-slide:first-child dialog.gespreksPopup {
  color: white;
  background: #3d0a85;
} */
/* .swiper.gesprekskaarten
  .swiper-slide:has(dialog.gespreksPopup[style*='3D0A85']) {
  color: white;
  background: #3d0a85;
} */

.swiper.gesprekskaarten
  .swiper-slide:has(dialog.gespreksPopup[style*='3D0A85'])
  dialog.gespreksPopup {
  color: white;
  background: #3d0a85;
}

/* .swiper.gesprekskaarten .swiper-slide:first-child dialog.gespreksPopup {
  color: white;
  background: #3d0a85;
} */
/* Kaart popup */
body dialog.gespreksPopup {
  color: #3d0a85;
  top: 100vh;
  bottom: unset;
  padding: 40px;
  border-radius: 20px 20px 0 0;
  transform: translateY(-100%);
  width: 100%;
  max-width: 650px;
  max-height: 80vh;
  aspect-ratio: 3/4;
  border: none;
  background: none;
}

body dialog.gespreksPopup .popup-header {
  display: flex;
  justify-content: flex-end;
}

body dialog.gespreksPopup .popup-header .close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  border: 1px solid #3d0a85;
  outline: none !important;
  background: #3d0a85;
}

body dialog.gespreksPopup[style*='3D0A85'] .popup-header .close-button {
  color: white;
  color: #3d0a85;
  border: 1px solid white;
  background: #fff;
}

body dialog.gespreksPopup[style*='3D0A85'] .popup-header .close-button svg * {
  fill: #3d0a85;
}

.gespreksPopup .kaart-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 30px;
  margin: 0 auto;
  font-weight: 500;
  font-size: 18px;
}

.gespreksPopup .kaart-content .content {
  font-size: 22px;
}

body dialog.gespreksPopup[style*='3D0A85'] .kaart-content,
body dialog.gespreksPopup[style*='F9B000'] .kaart-content {
  color: white;
}

.gespreksPopup .content-tip {
  padding: 30px;
  border: 1px solid currentColor;
  border-radius: 10px;
}

body dialog.gespreksPopup::backdrop {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.3);
  pointer-events: all;
}
body dialog[open]::backdrop {
  animation: openDialogBG 500ms ease-in-out normal;
  -webkit-animation: openDialogBG 500ms ease-in-out normal;
}
body dialog.hideDialog::backdrop {
  animation: closeDialogBG 500ms ease-in-out normal;
  -webkit-animation: closeDialogBG 500ms ease-in-out normal;
}

body dialog[open] {
  animation: openDialog 0.5s ease normal;
  -webkit-animation: openDialog 0.5s ease normal;
}

body dialog.hideDialog {
  animation: closeDialog 0.5s ease normal;
  -webkit-animation: closeDialog 0.5s ease normal;
}

@media (max-width: 767px) {
  body dialog.gespreksPopup {
    max-width: 95%;
    padding: 40px 20px 100px 20px;
    border-radius: 20px 20px 0 0;
  }

  .gespreksPopup .kaart-content {
    font-size: 16px;
  }
}

/* End kaart popup */

/* .gespreksPopup .kaart-content div:nth-child(3) {
  font-weight: 600;
  font-size: 1.4em;
  padding: 5px 0px 10px 0px;
} */

@media (max-width: 767px) {
  .swiper.gesprekskaarten .swiper-slide .front h3 + span {
    font-size: 1.2em;
  }

  .swiper-nav {
    display: none;
  }

  .main-cards__wrapper {
    padding: 60px 35px;
    padding-bottom: 20px;
  }

  .swiper.gesprekskaarten .swiper-slide .dialog-button {
    font-size: 15px;
    padding: 12px 15px;
  }

  .swiper-nav {
    position: relative;
    top: unset;
    transform: unset;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .swiper-nav .swiper_prev_button,
  .swiper-nav .swiper_next_button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 9999px;
    border: unset;
    background: rgba(255, 255, 255, 0.18);
  }

  .swiper-nav .text {
    display: none;
  }
  .swiper-nav .icon {
    display: block;
  }

  .swiper-nav .swiper_prev_button .icon svg,
  .swiper-nav .swiper_next_button .icon svg {
    display: inline-block;
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 991px) {
  .post-type-archive-gesprekskaart .swiper-nav .swiper_next_button:hover,
  .post-type-archive-gesprekskaart .swiper-nav .swiper_prev_button:hover {
    border: 1px solid white;
    background-color: white;
    color: #3d0a85;
  }

  .swiper.gesprekskaarten .swiper-slide .dialog-button:hover {
    opacity: 0.9;
  }

  body dialog.gespreksPopup {
    padding: 40px 80px;
  }
}
