/*
  md/swiper Content Block styles
  - layout variants: standard, recommendations, reference
  - keeps styling reasonably neutral; relies on your global design system for colors
*/

.md-swiper {
  position: relative;
  overflow: visible;

  /* Standard (Hero) height presets */
  --md-swiper-hero-h: 520px;
  --md-swiper-hero-h-multi: 420px;
}

/* Height presets for Standard layout */
.md-swiper--h-small {
  --md-swiper-hero-h: 420px;
  --md-swiper-hero-h-multi: 340px;
}

.md-swiper--h-standard {
  --md-swiper-hero-h: 520px;
  --md-swiper-hero-h-multi: 420px;
}

.md-swiper--h-large {
  --md-swiper-hero-h: 660px;
  --md-swiper-hero-h-multi: 520px;
}

.md-swiper--h-fullscreen {
  --md-swiper-hero-h: 100vh;
  --md-swiper-hero-h-multi: 100vh;
}

@media (max-width: 768px) {
  .md-swiper {
    --md-swiper-hero-h: 360px;
    --md-swiper-hero-h-multi: 320px;
  }
  .md-swiper--h-small {
    --md-swiper-hero-h: 320px;
    --md-swiper-hero-h-multi: 300px;
  }
  .md-swiper--h-standard {
    --md-swiper-hero-h: 360px;
    --md-swiper-hero-h-multi: 320px;
  }
  .md-swiper--h-large {
    --md-swiper-hero-h: 440px;
    --md-swiper-hero-h-multi: 360px;
  }
  .md-swiper--h-fullscreen {
    --md-swiper-hero-h: 100vh;
    --md-swiper-hero-h-multi: 100vh;
  }
}



.md-swiper__stage {
  position: relative;
}

.md-swiper__slider {
  overflow: hidden;
}

/* If a background utility class is applied, give it breathing room */
.md-swiper.bg-primary,
.md-swiper.bg-secondary,
.md-swiper.bg-light,
.md-swiper.bg-dark {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .md-swiper.bg-primary,
  .md-swiper.bg-secondary,
  .md-swiper.bg-light,
  .md-swiper.bg-dark {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

.md-swiper__header {
  margin-bottom: 1rem;
}

.md-swiper__headerInner {
  display: grid;
  gap: 0.25rem;
}

.md-swiper__headline {
  margin: 0;
}

.md-swiper__subheadline {
  margin: 0;
  opacity: 0.8;
}

.md-swiper__slider {
  position: relative;
}

.md-swiper__controls {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.25rem;
}


.md-swiper__pagination {
  pointer-events: auto;
}

.md-swiper__nav {
  pointer-events: auto;
  position: absolute !important;
  /* visually a tiny bit lower than perfect 50% feels better with our layouts */
  /* move a bit further down for better optical centering */
  top: calc(50% + 1.25rem) !important;
  transform: translateY(-50%);
  width: 4.75rem;
  height: 4.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}


.md-swiper__nav::after {
  display: none !important; /* we use our own SVG icons */
}

.md-swiper__navIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.md-swiper__navIcon svg {
  width: 3.6rem;
  height: 3.6rem;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  color: var(--bs-primary, #0d6efd);
}
.md-swiper__nav--prev { left: 0.75rem !important; }
.md-swiper__nav--next { right: 0.75rem !important; }
@media (max-width: 576px) {
  .md-swiper__nav--prev { left: 0.25rem !important; }
  .md-swiper__nav--next { right: 0.25rem !important; }
}

/* STANDARD (Hero) */
.md-swiper--standard .swiper-slide {
  height: auto;
}

.md-swiper__hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

/* Media frame controls the visible height (prevents overly tall slides) */
.md-swiper__heroMedia {
  width: 100%;
  overflow: hidden;
  height: var(--md-swiper-hero-h);
}

/* When multiple slides are visible, go even flatter */
.md-swiper--standardMulti .md-swiper__heroMedia {
  height: var(--md-swiper-hero-h-multi);
}


.md-swiper__heroMedia picture,
.md-swiper__heroMedia img,
.md-swiper__heroImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.md-swiper__heroOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));

  justify-content: center;
}

.md-swiper__heroOverlayInner {
  max-width: 58rem;
  color: #fff;
}

.md-swiper--standard .md-swiper__title {
  margin: 0 0 0.5rem 0;
}

.md-swiper--standard .md-swiper__text {
  margin: 0;
  opacity: 0.95;
}

.md-swiper--standard .md-swiper__cta {
  margin-top: 0.75rem;
}

/* RECOMMENDATIONS */
.md-swiper__recommendation {
  padding: 0.5rem;
}

.md-swiper__recommendationInner {
  display: grid;
  grid-template-columns: minmax(12rem, 14rem) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: 0; /* outer card sharp */
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 15rem; /* fixed height (smaller) */
}

@media (max-width: 768px) {
  .md-swiper__recommendationInner {
    grid-template-columns: 1fr;
    height: auto; /* stack on mobile */
  }
}

.md-swiper__recMedia {
  border-radius: 1rem; /* allow rounding for image area */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  height: 100%;
}

.md-swiper__recMediaImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-swiper__quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.md-swiper__quoteText {
  position: relative;
  overflow: hidden;
  margin: 0;
  line-height: 1.5;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem; /* rounded text area */
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Quote marks: top-left opening + bottom-right closing (Unicode, no icon font needed) */
.md-swiper__quoteText::before {
  content: "„";
  position: absolute;
  top: 0.25rem;
  left: 0.5rem;
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.14;
  pointer-events: none;
}

.md-swiper__quoteText::after {
  content: "“";
  position: absolute;
  bottom: 0.15rem;
  right: 0.5rem;
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.14;
  pointer-events: none;
}

/* Recommendations: remove quote marks completely */
.md-swiper--recommendations .md-swiper__quoteText::before,
.md-swiper--recommendations .md-swiper__quoteText::after {
  content: none;
}

.md-swiper__quoteAuthor {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  opacity: 0.85;
}

/* REFERENCE */
.md-swiper__reference {
  padding: 0.5rem;
}

.md-swiper__referenceInner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .md-swiper__referenceInner {
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
  }
}

.md-swiper__referenceMedia {
  border-radius: 1rem;
  overflow: hidden;
}

.md-swiper__referenceImg {
  display: block;
  width: 100%;
  height: auto;
}

.md-swiper--imageText .md-swiper__title {
  margin: 0 0 0.5rem 0;
}

.md-swiper--imageText .md-swiper__text {
  margin: 0;
}

.md-swiper--imageText .md-swiper__cta {
  margin-top: 0.75rem;
}

/* Reference: move fraction to the right and give it more air */
.md-swiper--imageText .md-swiper__controls {
  margin-top: 0.9rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}


.md-swiper--imageText .swiper-pagination-fraction {
  display: inline-block;
  padding: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
}



/* Make Swiper's default arrows work with our buttons */
.md-swiper__nav.swiper-button-disabled {
  opacity: 0.35;
}

/* Small screens: slightly smaller nav */
@media (max-width: 576px) {
  .md-swiper__nav {
    width: 3.1rem;
    height: 3.1rem;
  }
  .md-swiper__nav--prev {
    left: 0.5rem !important;
  }
  .md-swiper__nav--next {
    right: 0.5rem !important;
  }
}

/* STANDARD: center overlay content */
.md-swiper--standard .md-swiper__heroOverlay {
  text-align: center;
}

.md-swiper--standard .md-swiper__heroOverlayInner {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.md-swiper--standard .md-swiper__heroCtas {
  justify-content: center;
}

/* Recommendations: keep pagination clearly below cards */
.md-swiper--recommendations .md-swiper__controls {
  margin-top: 1.25rem;
}
