/* ==========================================================================
   Marketing Pages Showcase – full-screen carousel view
   ========================================================================== */

/* ── Root wrapper ── */
.mp-showcase-root {
  position: relative;
}

.mp-showcase {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  background: url("../../images/marketing_page_background.jpg") center / cover
    no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

.mp-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(247, 247, 247), transparent);
  pointer-events: none;
}

/* ── Inner layout ── */
.mp-showcase__inner {
  position: relative;
  z-index: 1;
  max-width: 50%;
  width: 50%;
  margin: 0;
  padding: 60px 40px 60px 120px;
}

/* ── Heading ── */
.mp-showcase__heading {
  max-width: 700px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 30px;
}
.mp-showcase__heading h2 {
  color: var(--core-color);
  font-size: 30px !important;
}

/* ── Carousel wrapper ── */
.mp-showcase__carousel-wrapper {
  position: relative;
}

/* Track: horizontal scroll, shows ~3 cards */
.mp-showcase__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* Hide scrollbar but keep scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mp-showcase__track::-webkit-scrollbar {
  display: none;
}

/* ── Individual slide ── */
.mp-showcase__slide {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

/* ── Arrow buttons ── */
.mp-showcase__arrow {
  position: absolute;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s;
}

.mp-showcase__arrow--next {
  right: -40px;
}

.mp-showcase__arrow--prev {
  left: -40px;
}

.mp-showcase__arrow:hover {
  opacity: 0.8;
}

.mp-showcase__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Teaser card styling ── */
.marketing-teaser {
  color: #222;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.marketing-teaser__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  padding: 15px;
  box-sizing: border-box;
  background: #fff;
}

.marketing-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Strip extra wrappers from Drupal media field */
.marketing-teaser__image .field,
.marketing-teaser__image .field__item,
.marketing-teaser__image .media,
.marketing-teaser__image .media-image-field-media-image,
.marketing-teaser__image .media-image-field-media-image__value {
  width: 100%;
  height: 100%;
}

.marketing-teaser__body {
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.marketing-teaser__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--accent-1) !important;
  font-size: 24px !important;
  font-weight: bold !important;
}

.marketing-teaser__summary {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--accent-1);
  flex: 1;
}

.marketing-teaser__summary .field {
  margin: 0;
}

.marketing-teaser__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--core-color) !important;
  text-decoration: none;
  margin-top: auto;
}

.marketing-teaser__link:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mp-showcase__inner {
    max-width: 70%;
    width: 70%;
  }

  .mp-showcase__slide {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 820px) {
  .mp-showcase__inner {
    max-width: 85%;
    width: 85%;
    padding-left: 80px;
  }

  .mp-showcase__slide {
    flex: 0 0 calc((100% - 16px) / 3);
  }
}

@media (max-width: 640px) {
  .mp-showcase__inner {
    max-width: 100%;
    width: 100%;
    padding: 40px 20px 40px 35px;
  }

  .mp-showcase__heading {
    font-size: 24px !important;
    margin-bottom: 20px;
  }

  .mp-showcase__track {
    max-width: calc(50vw + 15px);
  }

  .mp-showcase__slide {
    flex: 0 0 100%;
    max-width: 50vw;
  }

  .marketing-teaser__image {
    padding: 10px;
  }

  .mp-showcase__arrow--next {
    right: 35px;
  }

  .mp-showcase__arrow--prev {
    left: 4px;
  }
}
