/* =========================
   FULL-BLEED MODULE WRAPPER
   ========================= */
.drug-module-slider {
  position: relative;
  background: #EBF2F8;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 0;

  /* NEW: hard-cut anything that tries to bleed horizontally (zoom-out, transforms, etc.) */
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .drug-module-slider {
    overflow-x: hidden;
  }
}

/* =========================
   INNER CONSTRAINED GRID
   ========================= */
.drug-module-slider__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1/3 : 2/3 */
  gap: 80px;
  align-items: start;
}

/* =========================
   LEFT COLUMN
   ========================= */
.drug-module-slider__left {
  /* No special styles needed */
}

.drug-module-slider__heading {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.drug-module-slider__detail {
  font-size: 16px;
  line-height: 1.5;
}

.drug-module-slider__detail > *:first-child { margin-top: 0; }
.drug-module-slider__detail > *:last-child { margin-bottom: 0; }

.drug-module-slider__cta {
  margin-top: 20px;
}

/* =========================
   RIGHT COLUMN
   ========================= */
.drug-module-slider__right {
  overflow: hidden;  /* Hard cutoff on the right */
  position: relative;
}

/* =========================
   CAROUSEL STRUCTURE
   ========================= */
.drug-module-slider__viewport {
  /* gutter so left-most card shadow doesn't clip */
  --dms-gutter: 16px;

  overflow-x: clip;    /* Clip horizontally (hides left/right shadows) */
  overflow-y: visible; /* Allow shadows vertically */
  outline: none;

  padding: 24px 0 24px var(--dms-gutter);
  margin: -24px 0 -24px calc(var(--dms-gutter) * -1);
}

@supports not (overflow: clip) {
  .drug-module-slider__viewport {
    overflow-x: hidden;
  }
}

.drug-module-slider__track {
  display: flex;
  gap: 40px;
  transition: transform 280ms ease;
  will-change: transform;
  margin-left: 40px; /* your "shift cards right" fix */
}

/* =========================
   SLIDE CARDS
   ========================= */
.drug-module-slider__slide {
  flex: 0 0 40%;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 0px 20px rgba(0,0,0,0.1);
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Make entire card clickable when link exists */
.drug-module-slider__card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}

/* Neutralize global link hover styles */
.drug-module-slider__card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* Keyboard-only focus ring */
.drug-module-slider__card-link:focus-visible {
  outline: 2px solid #35BCB1;
  outline-offset: 4px;
  border-radius: 12px;
}

/* ADDED: For cards without links, keep consistent structure */
.drug-module-slider__slide:not(:has(a)) {
  /* no padding here anymore; padding lives in the bottom section */
}

/* Card layout sections */
.drug-module-slider__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
}

.drug-module-slider__card-top {
  flex: 3; /* 3/5 */
  background: linear-gradient(180deg, #00274D, #0B3670);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.drug-module-slider__card-image-slot {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  opacity: 0.25;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.drug-module-slider__card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 60px;
}

/* Bottom content area */
.drug-module-slider__card-bottom {
  flex: 2; /* 2/5 */
  background: #FFFFFF;
  padding: 20px;
  box-sizing: border-box;
}

.drug-module-slider__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.drug-module-slider__body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.drug-module-slider__body > *:first-child { margin-top: 0; }
.drug-module-slider__body > *:last-child { margin-bottom: 0; }

/* =========================
   CONTROLS
   ========================= */
.drug-module-slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
  padding-right: 20px;
}

/* Circular arrow buttons */
.drug-module-slider__btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #35BCB1;
  background: #35BCB1;
  color: #EBF2F8;
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.drug-module-slider__btn i {
  font-size: 16px;
  display: block;
  line-height: 1;
}

/* Hover/focus states */
.drug-module-slider__btn:hover,
.drug-module-slider__btn:focus-visible {
  background: #35BCB1;
  color: #EBF2F8;
}

.drug-module-slider__btn:focus-visible {
  outline: 1px solid #35BCB1;
  outline-offset: 3px;
}

/* Disabled: teal outline, transparent background, teal icon */
.drug-module-slider__btn[disabled] {
  background: transparent;
  color: #35BCB1;
  opacity: 1;
  cursor: not-allowed;
  border: 1px solid #35BCB1;
}

.drug-module-slider__btn[disabled]:hover,
.drug-module-slider__btn[disabled]:focus-visible {
  background: transparent;
  color: #35BCB1;
  outline: none;
}

/* =========================
   MOBILE STACK
   ========================= */
@media (max-width: 767px) {
  .drug-module-slider {
    padding: 40px 0;
    background: #EBF2F8;
  }

  .drug-module-slider__inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0 20px;
  }

  .drug-module-slider__right {
    /* On mobile, extend left to allow shadow breathing room */
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
  }

  /* Tighten breathing room and keep a strict right-edge cutoff */
  .drug-module-slider__viewport {
    --dms-gutter: 20px;
    overflow: hidden;  /* Clip both sides to match desktop */
    outline: none;
    padding: 20px 0 20px var(--dms-gutter);
    margin: -20px 0 -20px calc(var(--dms-gutter) * -1);
  }

  /* Mobile spacing + left inset so shadow still doesn't clip */
  .drug-module-slider__track {
    margin-left: 0;
    padding-left: 0;
    gap: 20px;
    /* Prevent percentage calculations from changing */
    width: max-content;
  }

  /* One full card + peek of next, capped width */
  .drug-module-slider__slide {
    flex: 0 0 calc(100vw - 80px);
    width: calc(100vw - 80px);
    max-width: 320px;
    min-height: 460px;
  }

  .drug-module-slider__card {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    height: 100%;
  }

  .drug-module-slider__card-top {
    flex: 3;
    min-height: 0;
    padding: 10px;
  }

  .drug-module-slider__card-bottom {
    flex: 1;
    padding: 20px;
    min-height: 0;
    overflow: visible;
  }

  .drug-module-slider__body {
    display: block;
    overflow: visible;
  }

  .drug-module-slider__controls {
    margin-top: 40px;
    justify-content: flex-start;
    padding-right: 0;
  }
}