/* V10 – Buddhist Temple Gate Hero Slider with 3 proportional scenic layers & dynamic copywriting */

/* Stage & Layers */
.temple-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1966 / 800 !important;
  min-height: 0 !important;
  isolation: isolate;
  overflow: hidden;
  background: #f6d5a0;
}

.temple-stage .gate-overlay {
  position: absolute !important;
  z-index: 5 !important;
  inset: 0 !important;
  background: url('../img/gate-overlay.png') center top / 100% 100% no-repeat !important;
  pointer-events: none !important;
}

.temple-stage .hero-art {
  position: absolute !important;
  inset: 0 !important;
  background-size: 100% 100% !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}

.temple-stage .hero-art.is-active {
  opacity: 1 !important;
}

.temple-stage .hero-art-a {
  background-image: url('../img/tuong-phat-bon-su-thich-ca-khai-tam.webp?v=20261018');
}

.temple-stage .hero-art-b {
  background-image: url('../img/tuong-quan-the-am-bo-tat-khai-tam.webp?v=20261018');
}

/* Dynamic Copywriting & Quote */
.temple-stage .hero-copy {
  position: absolute !important;
  z-index: 7 !important;
  left: 33.5% !important;
  top: 29% !important;
  width: 33% !important;
  text-align: center !important;
  transform: none !important;
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

.temple-stage .hero h1 {
  font-size: clamp(14px, 3.8vw, 76px) !important;
  line-height: 1.15 !important;
  margin: 0 0 clamp(2px, 0.4vw, 10px) 0 !important;
  color: #fff8e8 !important;
  text-shadow: 0 2px 8px rgba(45, 17, 3, 0.8), 0 0 20px rgba(217, 158, 84, 0.5) !important;
  font-family: 'Playfair Display', serif !important;
}

.temple-stage .hero-tagline {
  font-size: clamp(7.5px, 1.1vw, 22px) !important;
  margin: 0 0 clamp(4px, 1vw, 20px) 0 !important;
  color: #faeccf !important;
  text-shadow: 0 1px 4px rgba(35, 12, 2, 0.9) !important;
  line-height: 1.2 !important;
}

.temple-stage .gold-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #8a481c, #4a210b) !important;
  border: 1px solid #d99e54 !important;
  color: #fff2d1 !important;
  font-size: clamp(7px, 0.82vw, 15px) !important;
  font-weight: 600 !important;
  padding: clamp(2px, 0.45vw, 9px) clamp(6px, 1.1vw, 22px) !important;
  border-radius: 99px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  white-space: nowrap !important;
}

.temple-stage .hero-quote {
  position: absolute !important;
  z-index: 7 !important;
  top: 32% !important;
  right: 17.5% !important;
  width: 13% !important;
  text-align: center !important;
  font-size: clamp(7px, 0.75vw, 14px) !important;
  line-height: 1.35 !important;
  color: #faeccf !important;
  text-shadow: 0 1px 4px rgba(40, 15, 2, 0.9) !important;
  font-style: italic !important;
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

.temple-stage .hero-quote div {
  font-size: clamp(8px, 1vw, 18px) !important;
  color: #e5a95d !important;
  margin-top: clamp(1px, 0.3vw, 8px) !important;
}

/* Arrows & Dots */
.temple-stage .hero-arrow {
  position: absolute !important;
  z-index: 8 !important;
  top: 54% !important;
  width: clamp(20px, 2.2vw, 42px) !important;
  height: clamp(20px, 2.2vw, 42px) !important;
  font-size: clamp(12px, 1.4vw, 22px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(74, 33, 11, 0.65) !important;
  border: 1px solid #d99e54 !important;
  color: #ffe6aa !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
}

.temple-stage .hero-arrow:hover {
  background: rgba(138, 72, 28, 0.9) !important;
  transform: scale(1.08) !important;
}

.temple-stage .hero-arrow.prev {
  left: 10.9% !important;
}

.temple-stage .hero-arrow.next {
  right: 10.9% !important;
}

.temple-stage .hero-dots {
  position: absolute !important;
  z-index: 8 !important;
  bottom: 2.8% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: clamp(4px, 0.5vw, 10px) !important;
}

.temple-stage .hero-dots button {
  width: clamp(6px, 0.7vw, 12px) !important;
  height: clamp(6px, 0.7vw, 12px) !important;
  border-radius: 50% !important;
  border: 1px solid #d99e54 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: background 0.3s, transform 0.3s !important;
}

.temple-stage .hero-dots button.active {
  background: #f7ca6d !important;
  transform: scale(1.25) !important;
}

/* Option A Responsive Scaling: Tablet & Mobile keep 1966/800 ratio */
@media (max-width: 1024px) {
  .temple-stage {
    aspect-ratio: 1966 / 800 !important;
  }
}

@media (max-width: 768px) {
  .temple-stage {
    aspect-ratio: 1966 / 800 !important;
    height: auto !important;
  }
  .temple-stage .gate-overlay,
  .temple-stage .hero-art {
    background-size: 100% 100% !important;
    background-position: center top !important;
  }
  .temple-stage .header-tools {
    top: 45% !important;
    right: 14% !important;
  }
  .temple-stage .main-nav {
    top: 15% !important;
    left: 16% !important;
    width: 68% !important;
    height: 6.5% !important;
    min-height: 0 !important;
    padding: 0 4px !important;
  }
  .temple-stage .nav-links {
    gap: clamp(2px, 0.8vw, 8px) !important;
  }
  .temple-stage .nav-links a {
    font-size: clamp(6px, 0.7vw, 9px) !important;
  }
  .temple-stage .nav-zalo {
    font-size: clamp(6px, 0.7vw, 9px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .temple-stage .hero-art,
  .temple-stage .hero-copy,
  .temple-stage .hero-quote {
    transition: none !important;
  }
}
