/* =============================================================================
   Bitur Expertises stack (section_expertises / mwg_effect031)
   Layout + Bitur themes — keeps cards airy (not cramped) and scoped.
   ============================================================================= */

.section_expertises {
  --bitur-teal: #1bb1bc;
  --bitur-teal-dark: #127780;
  --bitur-navy: #1e3162;
  --bitur-navy-dark: #152447;
  --bitur-mint: #a6d6d9;
  --bitur-mint-soft: #d9eef0;
  --bitur-cream: #f4fafa;
  --bitur-ink: #2e2e2e;
}

.section_expertises .padding-global {
  width: 100%;
}

.section_expertises .container-col-12 {
  margin-inline: auto;
}

.section_expertises .mwg_effect031 {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}

.section_expertises .expertises-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section_expertises .expertise-slide {
  height: calc(100vh - 4em);
  min-height: 34rem;
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.section_expertises .expertise-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 250vw;
}

.section_expertises .expertise-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.25rem, 2vw, 2rem);
  padding: 4em;
  overflow: hidden;
  border-radius: 2.5em;
  background-color: var(--_theme---background);
  color: var(--_theme---body-text);
  transform-origin: 50% 10%;
  transform-style: preserve-3d;
  box-sizing: border-box;
  pointer-events: none;
}

/* --- Themes --- */
.section_expertises .theme-white {
  --_theme---background: #f7feff;
  --_theme---body-text: var(--bitur-ink);
  --_theme---heading: var(--bitur-ink);
  --_theme---label-bg: var(--bitur-mint-soft);
  --_theme---accent-2: #c5e4e7;
  --_theme---card-outline: var(--bitur-teal);
  --_theme---accent-1: var(--bitur-cream);
}

.section_expertises .theme-pink {
  --_theme---background: var(--bitur-mint-soft);
  --_theme---body-text: var(--bitur-ink);
  --_theme---heading: var(--bitur-ink);
  --_theme---label-bg: #ffffff;
  --_theme---accent-2: #b5dce0;
  --_theme---card-outline: #ffffff;
  --_theme---accent-1: var(--bitur-cream);
}

.section_expertises .theme-green {
  --_theme---background: var(--bitur-mint);
  --_theme---body-text: var(--bitur-ink);
  --_theme---heading: var(--bitur-ink);
  --_theme---label-bg: #ffffff;
  --_theme---accent-2: #8dcbcf;
  --_theme---card-outline: #ffffff;
  --_theme---accent-1: var(--bitur-mint-soft);
}

.section_expertises .theme-blue {
  --_theme---background: var(--bitur-teal);
  --_theme---body-text: #ffffff;
  --_theme---heading: #ffffff;
  --_theme---label-bg: rgb(255 255 255 / 0.22);
  --_theme---accent-2: rgb(255 255 255 / 0.35);
  --_theme---card-outline: #ffffff;
  --_theme---accent-1: var(--bitur-teal-dark);
}

.section_expertises .theme-navy {
  --_theme---background: var(--bitur-navy);
  --_theme---body-text: #ffffff;
  --_theme---heading: #ffffff;
  --_theme---label-bg: rgb(255 255 255 / 0.18);
  --_theme---accent-2: rgb(255 255 255 / 0.28);
  --_theme---card-outline: #ffffff;
  --_theme---accent-1: var(--bitur-navy-dark);
}

/* --- Top --- */
.section_expertises .expertise-content_top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.4vw, 1.35rem);
  /* Full card width so the absolute number sits on the RIGHT of the card */
  width: 100%;
  max-width: none;
  padding-right: 0;
}

.section_expertises .bitur-exp-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45em 1em;
  border-radius: 0.5rem;
  background: var(--_theme---label-bg, var(--bitur-mint-soft));
  color: var(--_theme---body-text, var(--bitur-ink));
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section_expertises .expertise-content_top > .bitur-exp-title,
.section_expertises .expertise-content_heading.bitur-exp-title {
  margin: 0;
  max-width: min(40rem, 58%);
  color: var(--_theme---heading, var(--bitur-ink));
  font-family: inherit;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section_expertises .expertise-content_number {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  display: flex;
  color: var(--_theme---accent-2);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.section_expertises .expertise-content_number .expertise-content_heading {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

/* --- Image / video — original sizing restored --- */
.section_expertises .expertise-content_img {
  position: absolute;
  right: 4em;
  bottom: 4em;
  z-index: 2;
  padding: 8px;
  border-radius: var(--_layout---radius--border-radius-medium, 1.25rem);
  background-color: var(--_theme---card-outline);
  transform: rotate(2.5deg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.section_expertises .expertise-content_img.is-img-hover {
  transform: rotate(-2deg) scale(1.02);
}

.section_expertises .medium-image {
  position: relative;
  width: 36em;
  max-height: 65vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--_layout---radius--border-radius-small, 1rem);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.section_expertises .medium-image .image,
.section_expertises .medium-image .video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section_expertises .medium-image .image.w-condition-invisible {
  display: none;
}

/* --- Bottom copy --- */
.section_expertises .expertise-content_bottom,
.section_expertises .bitur-exp-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.15rem, 1.75vw, 1.75rem);
  max-width: 35em;
}

.section_expertises .bitur-exp-lead .bitur-as-h3 {
  margin: 0;
  color: var(--_theme---heading, var(--bitur-ink));
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section_expertises .bitur-exp-copy {
  max-width: 100%;
}

.section_expertises .bitur-exp-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--_theme---body-text, var(--bitur-ink)) 72%, transparent);
}

.section_expertises .bitur-exp-copy strong {
  color: var(--_theme---body-text, var(--bitur-ink));
  font-weight: 600;
}

.section_expertises .bitur-exp-cta {
  margin-top: 0.35rem;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.section_expertises .bitur-exp-cta .button {
  background-color: var(--bitur-teal);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.section_expertises .bitur-exp-cta .button .background {
  background-color: var(--bitur-teal-dark);
}

.section_expertises .bitur-exp-cta .button svg {
  fill: #ffffff;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.section_expertises .bitur-exp-cta .button:hover,
.section_expertises .bitur-exp-cta .button:focus-visible {
  background-color: transparent;
}

.section_expertises .bitur-exp-cta .button:hover .background,
.section_expertises .bitur-exp-cta .button:focus-visible .background {
  left: 0;
  width: 100%;
  transform: scale(1);
}

.section_expertises .bitur-exp-cta .button:hover svg,
.section_expertises .bitur-exp-cta .button:focus-visible svg {
  transform: rotate(90deg);
}

.section_expertises .theme-blue .bitur-exp-cta .button,
.section_expertises .theme-navy .bitur-exp-cta .button {
  background-color: #ffffff;
  color: var(--bitur-teal-dark);
}

.section_expertises .theme-blue .bitur-exp-cta .button .background,
.section_expertises .theme-navy .bitur-exp-cta .button .background {
  background-color: var(--bitur-mint-soft);
}

.section_expertises .theme-blue .bitur-exp-cta .button svg,
.section_expertises .theme-navy .bitur-exp-cta .button svg {
  fill: var(--bitur-teal-dark);
}

.section_expertises .theme-navy .bitur-exp-cta .button {
  color: var(--bitur-navy);
}

.section_expertises .theme-navy .bitur-exp-cta .button svg {
  fill: var(--bitur-navy);
}

.section_expertises .expertise-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* --- Tablet: same stack as mobile (media top, copy below) — slide height unchanged --- */
@media screen and (max-width: 991px) {
  .section_expertises .mwg_effect031 {
    padding-top: 0;
  }

  .section_expertises .expertise-slide {
    height: calc(100svh - 4em);
  }

  .section_expertises .expertise-content {
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow: hidden;
  }

  .section_expertises .expertise-content_top {
    gap: 0.85rem;
    padding-right: 4rem;
  }

  .section_expertises .expertise-content_top > .bitur-exp-title {
    max-width: min(20em, 100%);
    font-size: clamp(2.6rem, 5.5vw, 3.5rem);
  }

  .section_expertises .expertise-content_number .expertise-content_heading {
    font-size: clamp(2.75rem, 6vw, 4rem);
  }

  /* Flow layout like mobile — do not use absolute corner placement */
  .section_expertises .expertise-content_img {
    position: static;
    z-index: 1;
    right: auto;
    bottom: auto;
    width: min(14em, 42%);
    padding: 5px;
    border-radius: 1.5em;
    transform: rotate(-2deg);
    transform-origin: 0 0;
    flex-shrink: 0;
  }

  .section_expertises .medium-image {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .section_expertises .expertise-content_bottom,
  .section_expertises .bitur-exp-bottom {
    flex: none;
    max-width: min(34em, 100%);
    gap: 1.15em;
  }

  .section_expertises .bitur-exp-lead .bitur-as-h3 {
    max-width: 22em;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  }

  .section_expertises .bitur-exp-copy {
    max-width: 34em;
  }

  .section_expertises .bitur-exp-copy p {
    font-size: clamp(1.05rem, 1.9vw, 1.25rem);
    line-height: 1.5;
  }
}

/* --- Small tablet polish --- */
@media screen and (max-width: 767px) {
  .section_expertises .expertise-content {
    padding: 2em;
  }

  .section_expertises .expertise-content_img {
    width: min(13em, 48%);
    padding: 4px;
  }

  .section_expertises .expertise-content_top > .bitur-exp-title {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }
}

/* --- Mobile --- */
@media screen and (max-width: 479px) {
  .section_expertises .mwg_effect031 {
    padding-bottom: 2em;
  }

  .section_expertises .expertise-slide {
    padding-top: 3em;
  }

  .section_expertises .expertise-content {
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.35rem 1.35rem;
    border-radius: 1.75rem;
    box-shadow: 0 18px 40px -24px rgb(30 49 98 / 0.35);
  }

  .section_expertises .theme-white {
    box-shadow:
      inset 0 0 0 1px rgb(27 177 188 / 0.18),
      0 18px 40px -24px rgb(30 49 98 / 0.35);
  }

  .section_expertises .expertise-content_top {
    gap: 0.75rem;
    padding-right: 0;
    flex-shrink: 0;
  }

  .section_expertises .bitur-exp-label {
    min-height: 2.25rem;
    padding: 0.4em 0.9em;
    font-size: 0.9rem;
  }

  .section_expertises .expertise-content_top > .bitur-exp-title {
    max-width: 100%;
    font-size: clamp(1.6rem, 7.2vw, 2rem);
    line-height: 1.1;
  }

  .section_expertises .expertise-content_number .expertise-content_heading {
    font-size: 2.5rem;
  }

  /* Media fills the free height between title and copy so the CTA never gets clipped */
  .section_expertises .expertise-content_img {
    position: relative;
    z-index: 1;
    right: auto;
    bottom: auto;
    flex: 1 1 0%;
    width: 100%;
    min-height: 7rem;
    max-height: 15rem;
    margin-block: auto;
    padding: 5px;
    border-radius: 1.25rem;
    transform: rotate(-1.5deg);
    transform-origin: 50% 50%;
  }

  .section_expertises .medium-image,
  .section_expertises .medium-image.is-expertise-content {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0.95rem;
  }

  .section_expertises .medium-image .image,
  .section_expertises .medium-image .video {
    position: absolute;
    inset: 0;
  }

  .section_expertises .expertise-content_bottom,
  .section_expertises .bitur-exp-bottom {
    flex: none;
    max-width: 100%;
    gap: 0.65rem;
  }

  .section_expertises .bitur-exp-lead .bitur-as-h3 {
    max-width: none;
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.3;
  }

  .section_expertises .bitur-exp-copy {
    max-width: 100%;
  }

  .section_expertises .bitur-exp-copy p {
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .section_expertises .bitur-exp-cta {
    margin-top: 0.25rem;
  }
}

/* --- Mobile, short screens --- */
@media screen and (max-width: 479px) and (max-height: 700px) {
  .section_expertises .expertise-slide {
    padding-top: 2.25em;
  }

  .section_expertises .expertise-content {
    gap: 0.8rem;
    padding: 1.15rem 1.15rem 1.15rem;
  }

  .section_expertises .expertise-content_top > .bitur-exp-title {
    font-size: clamp(1.45rem, 6.6vw, 1.75rem);
  }

  .section_expertises .expertise-content_number .expertise-content_heading {
    font-size: 2.15rem;
  }

  .section_expertises .expertise-content_img {
    min-height: 5.5rem;
  }

  .section_expertises .bitur-exp-copy p {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}
