/* Evde Sağlık — site içi açılış duyurusu */
.ebi {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.ebi.is-open { opacity: 1; visibility: visible; }
.ebi[hidden] { display: none !important; }

.ebi__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 48, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ebi__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 64px rgba(12, 28, 64, 0.4);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.32s ease;
}
.ebi.is-open .ebi__dialog { transform: none; }

.ebi__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ebi__art,
.ebi__art img {
  display: block;
  width: 100%;
  height: auto;
}

.ebi__close {
  position: absolute;
  top: 2.4%;
  right: 2.2%;
  z-index: 4;
  width: 5.2%;
  max-width: 42px;
  min-width: 32px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.ebi__close:focus-visible {
  outline: 3px solid #9cc3f0;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.ebi__hit {
  position: absolute;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.ebi__hit--cta {
  left: 18%;
  right: 18%;
  bottom: 4.5%;
  height: 11%;
  border-radius: 999px;
}
.ebi__hit--cta:focus-visible {
  outline: 3px solid #9cc3f0;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .ebi {
    padding: 8px;
    align-items: flex-end;
  }
  .ebi__dialog {
    width: min(440px, 100%);
    max-height: 94vh;
    overflow: auto;
    border-radius: 18px 18px 12px 12px;
  }
  .ebi__close {
    top: 1.6%;
    right: 3.2%;
    width: 9%;
    max-width: 40px;
  }
  .ebi__hit--cta {
    left: 8%;
    right: 8%;
    bottom: 3.2%;
    height: 8.5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebi, .ebi__dialog { transition: none; }
}
