/* ─── Default hero layering (slider above static hero-bg on other pages) ─── */
.hero_area > .bg-box {
  z-index: 0;
}

.hero_area > .header_section {
  position: relative;
  z-index: 3;
}

.hero_area > .slider_section {
  position: relative;
  z-index: 1;
}

.slider_section .carousel-inner {
  overflow: hidden;
}

.slider_section .carousel-item {
  position: relative;
  min-height: 50vh;
}

.slider_section .slider-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slider_section .carousel-item > .container {
  position: relative;
  z-index: 1;
}

/* ─── Full hero: no default hero-bg.jpg, one slide = full viewport band ─── */
.hero_area.hero-slider-only > .bg-box {
  display: none !important;
}

.hero_area.hero-slider-only {
  min-height: 100vh;
}

.hero_area.hero-slider-only > .header_section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero_area.hero-slider-only .slider_section.hero-slider {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

.hero_area.hero-slider-only .hero-slider__carousel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero_area.hero-slider-only .slider_section .carousel-inner {
  flex: 1 1 auto;
  min-height: 100vh;
  position: relative;
}

.hero_area.hero-slider-only .slider_section .carousel-item {
  min-height: 100vh;
}

.hero_area.hero-slider-only .slider_section .carousel-item:not(:has(.slider-slide-bg)) {
  background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 100%);
}

.hero_area.hero-slider-only .slider-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Dark veil for readable nav + text (replaces “double background” feel) */
.hero_area.hero-slider-only .slider-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.hero_area.hero-slider-only .hero-slider__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero_area.hero-slider-only .slider_section .detail-box {
  margin-bottom: 0;
}

/* Hero slider text – clean sans-serif; roomy line-height for multi-line titles */
.slider_section .detail-box h1,
.slider_section .detail-box h1.hero-slider__title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(2.65rem, 8.5vw, 4.75rem);
  line-height: 1.28;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 1.35rem;
  white-space: pre-line;
}

.slider_section .detail-box h2.hero-slider__subtitle,
.slider_section .detail-box h2 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 5.25vw, 2.9rem);
  line-height: 1.42;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: pre-line;
}

.slider_section .detail-box p {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36em;
  margin-top: 0.25rem;
}

.hero_area.hero-slider-only .slider_section .carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 5;
  justify-content: center;
}

.hero_area.hero-slider-only .slider_section .carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.5);
}

.hero_area.hero-slider-only .slider_section .carousel-indicators li.active {
  background-color: #ffbe33;
}
