/* slider.css — нүүр хуудасны том зурагтай slider */
.hero-slider {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--charcoal);
}

.slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.slide.active { opacity: 1; transform: scale(1); }

/* Текст уншигдахаар зураг дээр бараан давхарга */
.hero-slider::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(31,35,35,0.45), rgba(31,35,35,0.6));
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 920px;
  padding: 48px 20px 72px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-icon { width: 90px; height: 54px; margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2rem, 4.4vw, 4rem); margin-bottom: 24px; max-width: 860px; text-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.hero-content p { font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 640px; line-height: 1.5; }
.hero-line { width: 1px; height: 56px; background: rgba(255,255,255,0.8); margin: 28px 0; }

/* Доорх цэгүүд */
.slider-dots {
  position: absolute; bottom: 28px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0;
  border: 2px solid var(--ivory); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.slider-dots button.active { background: var(--sand-gold); border-color: var(--sand-gold); }

/* Самбараас тохируулсан slider: видео, давхаргын градиент, текстийн өнгө/градиент */
.slide-yt { background-size: cover; overflow: hidden; }
.slide-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100%, calc(100vh * 16 / 9)); height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-slider.has-overlay::after { background: var(--hero-overlay); }
.hero-slider.has-overlay .hero-content { color: var(--hero-text, #fff); }
.hero-content h1.is-gradient {
  background: var(--hero-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.25));
}
.hero-content [hidden] { display: none !important; }
.hero-slider::after { z-index: 1; pointer-events: none; }
