/* =========================
   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;
  overflow-x: clip;
}

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

/* =========================
   INNER CONSTRAINED LAYOUT
   ========================= */
.drug-module-slider__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =========================
   HEADER
   ========================= */
.drug-module-slider__header {
  max-width: 480px;
}

.drug-module-slider__eyebrow {
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* =========================
   RIGHT COLUMN (carousel)
   ========================= */
.drug-module-slider__right {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  margin-left: -20px;
  padding-left: 20px;
}

/* =========================
   CAROUSEL STRUCTURE
   ========================= */
.drug-module-slider__viewport {
  overflow: visible;
  outline: none;
}

.drug-module-slider__track {
  display: flex;
  gap: 40px;
  transition: transform 280ms ease;
  will-change: transform;
}

/* =========================
   SLIDE OUTER — animation wrapper
   ========================= */
.drug-module-slider__slide-outer {
  flex: 0 0 28%;
  height: 380px;
  display: flex;
  flex-direction: column;
}

/* =========================
   SLIDE CARDS
   ========================= */
.drug-module-slider__slide {
  flex: 1;
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.drug-module-slider__slide:hover {
  box-shadow: var(--shadow-md, 0 6px 8px 2px rgba(0,39,77,0.12));
  transform: translateY(-3px);
}

.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;
}

.drug-module-slider__card-link:hover {
  color: inherit;
  text-decoration: none;
}

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

.drug-module-slider__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

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

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

.drug-module-slider__card-bottom {
  flex: 1;
  background: #FFFFFF;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.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.65;
  color: var(--mid);
}

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

.drug-module-slider__arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.drug-module-slider__arrow i {
  font-size: 28px;
}

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

.drug-module-slider__btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.drug-module-slider__btn i {
  font-size: 40px;
  display: block;
  line-height: 1;
  color: #35BCB1;
}

.drug-module-slider__btn:not([disabled]) {
  transition: transform 0.18s ease, filter 0.18s ease;
}

.drug-module-slider__btn:not([disabled]):hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0, 39, 77, 0.18));
}

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

.drug-module-slider__btn[disabled] {
  background: transparent;
  cursor: not-allowed;
  transition: none;
}

.drug-module-slider__btn[disabled] i {
  color: var(--light-button);
}

.drug-module-slider__btn[disabled]:hover,
.drug-module-slider__btn[disabled]:focus-visible {
  transform: none;
  filter: none;
  outline: none;
}

/* =========================
   ANIMATION
   ========================= */
.dms-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dms-animate.dms-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dms-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 767px) {
  .drug-module-slider__slide:hover {
    box-shadow: none;
    transform: none;
  }
  
  .drug-module-slider__inner {
    gap: 40px;
    padding: 0 20px;
  }

  .drug-module-slider__right {
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: clip;
    overflow-y: visible;
    padding-left: 20px;
  }

  .drug-module-slider__viewport {
    overflow: visible;
    outline: none;
  }

  .drug-module-slider__track {
    margin-left: 0;
    padding-left: 0;
    gap: 20px;
    width: max-content;
  }

  .drug-module-slider__slide-outer {
    flex: 0 0 calc(100vw - 80px);
    width: calc(100vw - 80px);
    max-width: 320px;
    height: 420px;
  }

  .drug-module-slider__card-top {
    height: 220px;
    flex: none;
    padding: 10px;
  }

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

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

  .drug-module-slider__controls {
    justify-content: flex-start;
  }

  .dms-animate {
    transition-delay: 0ms;
  }
}