/* Homepage carousel: shared slide geometry keeps content and controls steady. */
#waphHeroSlider {
  display: grid;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  background: #092038;
  border: 0;
}
#waphHeroSlider .waph-slide {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  background-image: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 0s linear 1.2s;
}
#waphHeroSlider .waph-slide.active { opacity: 1; visibility: visible; transition-delay: 0s; }
#waphHeroSlider .waph-slide-image {
  inset: 0;
  left: auto;
  right: 0;
  width: 70%;
  object-position: center;
  animation: none;
  transform: none;
  will-change: auto;
}
#waphHeroSlider .slide-community .waph-slide-image { object-position: 57% center; }
#waphHeroSlider .slide-patient-care .waph-slide-image { object-position: 64% center; }
#waphHeroSlider .waph-overlay {
  background: linear-gradient(90deg, #092038 0%, #092038 22%, rgb(9 32 56 / 96%) 36%, rgb(9 32 56 / 82%) 48%, rgb(9 32 56 / 45%) 64%, rgb(9 32 56 / 18%) 100%);
}
#waphHeroSlider .waph-slide-inner {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 64px));
  min-height: 550px;
  height: 100%;
  align-items: center;
  padding: 52px 0 92px;
}
#waphHeroSlider .waph-slide-content { width: 65%; max-width: 720px; padding: 0; text-shadow: none; }
#waphHeroSlider .waph-tag {
  display: block;
  margin: 0 0 20px;
  padding: 0 0 0 13px;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--green);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#waphHeroSlider h1, #waphHeroSlider h2 {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}
#waphHeroSlider h1 span, #waphHeroSlider h2 span { display: block; text-wrap: balance; }
#waphHeroSlider h1 span:last-child, #waphHeroSlider h2 span:last-child { color: var(--green); }
#waphHeroSlider .waph-slide p { min-height: 4.65em; max-width: 510px; margin: 0 0 16px; font-size: 18px; line-height: 1.55; color: #e0e8ef; }
#waphHeroSlider .waph-slide-note { display: flex; align-items: baseline; gap: 9px; margin-bottom: 24px; color: var(--green); font-size: 16px; font-weight: 700; }
#waphHeroSlider .waph-slide-note i { flex-shrink: 0; }
#waphHeroSlider .button-row { gap: 12px; margin: 0; }
#waphHeroSlider .btn { min-width: 176px; width: auto; min-height: 50px; padding: 13px 20px; font-size: 16px; border-radius: 6px; }
#waphHeroSlider .btn.primary { background: linear-gradient(135deg, var(--green), #60ae32); border: 1px solid var(--green); color: #fff; box-shadow: 0 13px 28px rgb(122 193 66 / 28%); }
#waphHeroSlider .btn.secondary { background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 55%); }
#waphHeroSlider .btn:hover { transform: none; background: #2466a7; }
#waphHeroSlider .btn.primary:hover { background: linear-gradient(135deg, var(--navy), var(--blue)); }
#waphHeroSlider .btn:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
#waphHeroSlider .slide-survey .waph-slide-image { object-position: 60% center; }
#waphHeroSlider .waph-progress {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  height: 5px;
  overflow: hidden;
  background: rgb(122 193 66 / 25%);
  pointer-events: none;
}
#waphHeroSlider .waph-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}
@keyframes waph-slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#waphHeroSlider .waph-controls {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100% - 1180px) / 2));
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 30px;
  background: rgb(5 24 42 / 70%);
}
#waphHeroSlider .waph-nav, #waphHeroSlider .waph-dots { position: static; inset: auto; display: flex; align-items: center; transform: none; padding: 0; background: none; pointer-events: auto; backdrop-filter: none; }
#waphHeroSlider .waph-nav { gap: 5px; }
#waphHeroSlider .waph-dots { gap: 0; }
#waphHeroSlider .waph-dots button { display: grid; place-items: center; width: 28px; height: 40px; border: 0; border-radius: 5px; background: none; transform: none; }
#waphHeroSlider .waph-dots button::after { content: ''; display: block; width: 7px; height: 7px; border-radius: 8px; background: #b5c5d3; transition: width .2s; }
#waphHeroSlider .waph-dots button.active::after { width: 20px; background: var(--green); }
#waphHeroSlider .waph-arrow { position: static; inset: auto; display: grid; width: 40px; height: 40px; transform: none; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; background: transparent; box-shadow: none; backdrop-filter: none; font-size: 15px; }
#waphHeroSlider .waph-arrow:hover { background: #2974be; }
#waphHeroSlider .waph-arrow:focus-visible, #waphHeroSlider .waph-dots button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.home-slider-links { background: #fff; border-bottom: 1px solid #dce7ef; }
.home-slider-links .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; font-weight: 700; }
.home-slider-links span, .home-slider-links a { display: inline-flex; align-items: center; gap: 10px; }
.home-slider-links span { color: #456176; }
.home-slider-links span i { color: #c62828; }
.home-slider-links a { color: #205f96; text-decoration: none; }
.home-slider-links a:hover { text-decoration: underline; }
.home-slider-links .home-slider-cafe { display: none; }
.home-slider-links + .community-section { padding-top: 42px; }
@media (max-width: 1080px) {
  #waphHeroSlider .waph-slide-content { width: 78%; }
  #waphHeroSlider .waph-slide-inner { min-height: 510px; }
  #waphHeroSlider .waph-slide p { font-size: 18px; }
  .home-slider-links .home-slider-cafe { display: inline-flex; }
}
@media (max-width: 600px) {
  #waphHeroSlider .waph-slide-inner { width: calc(100% - 40px); min-height: 0; padding: 36px 0 86px; }
  #waphHeroSlider .waph-slide-content { width: 100%; }
  #waphHeroSlider .waph-slide-note { gap: 7px; font-size: 14px; margin-bottom: 22px; }
  #waphHeroSlider .waph-slide-image { width: 100%; object-position: 65% center; }
  #waphHeroSlider .waph-overlay { background: linear-gradient(90deg, rgb(5 25 45 / 96%), rgb(5 25 45 / 83%)); }
  #waphHeroSlider .waph-tag { margin-bottom: 18px; font-size: 10px; letter-spacing: .08em; }
  #waphHeroSlider h1, #waphHeroSlider h2 { font-size: clamp(32px, 8.5vw, 44px); margin-bottom: 18px; }
  #waphHeroSlider .waph-slide p { min-height: 4.65em; max-width: 34ch; font-size: 16px; margin-bottom: 16px; }
  #waphHeroSlider .button-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  #waphHeroSlider .btn { width: 100%; min-width: 0; min-height: 46px; padding: 11px 16px; }
  #waphHeroSlider .waph-controls { right: 20px; bottom: 15px; gap: 10px; padding: 3px 5px 3px 10px; }
  .home-slider-links .wrap { justify-content: center; padding-top: 12px; padding-bottom: 12px; gap: 8px 18px; font-size: 14px; }
  .home-slider-links .wrap > span { width: 100%; justify-content: center; }
  .home-slider-links + .community-section { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the requested slide crossfade; only disable decorative dot motion. */
  #waphHeroSlider .waph-dots button::after { transition: none; }
}
