/* TAQWA Home hero slider — accessible, square, responsive */
.hero-image-frame.hero-carousel {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  overflow: hidden;
  background: #fbf8f0;
}
.hero-carousel-track { position: absolute; inset: 0; }
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6%) scale(1.012);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.65,.25,1), visibility .85s;
  background: #fbf9f3;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 1;
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}
.hero-carousel-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,154,85,.45);
  background: rgba(255,253,245,.9);
  box-shadow: 0 6px 19px rgba(0,37,23,.13);
  color: #0b422c;
  font-size: 23px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-carousel-nav:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.hero-carousel-prev { left: 14px; }
.hero-carousel-next { right: 14px; }
.hero-carousel-bottom {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(255,253,247,.9);
  border: 1px solid rgba(184,154,91,.25);
  box-shadow: 0 8px 24px rgba(0,30,16,.08);
}
.hero-carousel-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7bcb0;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-carousel-dot.is-active { width: 27px; flex-basis: 27px; background: #0c5539; }
.hero-carousel-dot:hover { background: #a17b2c; }
.hero-carousel-pause {
  display: grid;
  place-items: center;
  padding: 0 0 0 6px;
  margin-left: 1px;
  min-width: 20px;
  height: 19px;
  background: none;
  border: 0;
  border-left: 1px solid #d8d8c9;
  color: #0b5036;
  font-size: 12px;
  cursor: pointer;
}
.hero-carousel a:focus-visible,.hero-carousel button:focus-visible { outline: 3px solid #c49436; outline-offset: 3px; }
.carousel-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* The old single-image caption is replaced by carousel controls. */
.hero-image-frame.hero-carousel .hero-image-label { display: none; }
@media (max-width: 520px) {
  .hero-carousel-nav { width: 35px; height: 35px; font-size: 20px; }
  .hero-carousel-prev { left: 8px; }
  .hero-carousel-next { right: 8px; }
  .hero-carousel-bottom { bottom: 11px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide, .hero-carousel-dot, .hero-carousel-nav { transition: none !important; transform: none !important; }
  .hero-carousel-nav:hover { transform: translateY(-50%); }
}
