/* Hero Background Video & Slider Styles for Stoon Theme (Turner Construction Benchmark) */

.stoon-hero-slider,
.hero-news-slider,
.hero-slider-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background-color: #0f172a;
  overflow: hidden;
}

/* Architectural Grid Lines Overlay */
.hero-architectural-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  pointer-events: none;
}

.hero-architectural-grid .grid-line {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  height: 100%;
}

.hero-architectural-grid .grid-line:last-child {
  border-right: none;
}

/* Rotated Vertical Scroll Text (Bottom Left) */
.hero-scroll-indicator {
  position: absolute;
  left: 2rem;
  bottom: 3.5rem;
  z-index: 5;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

/* Right Accent Edge Line */
.hero-right-accent-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #e11d48 100%);
  z-index: 10;
  pointer-events: none;
}

.stoon-hero-slider .hero-news-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.stoon-hero-slider .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.stoon-hero-slider .hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hitbox overlay for full slide clickability */
.hero-slide__hitbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

/* Media Container & Video/Image elements */
.hero-slide__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: #0f172a;
}

.hero-slide__image img,
.hero-slide__image video.hero-bg-video,
.hero-slide__image iframe.hero-bg-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  border: none;
}

/* Subtle Gradient Mask Overlay for optimal video visibility & text legibility */
.hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.12) 45%,
    rgba(15, 23, 42, 0.6) 100%
  );
  pointer-events: none;
}

/* Category Badge Wrapper */
.hero-slide__category-wrapper {
  position: absolute;
  top: 6rem;
  left: 3rem;
  z-index: 4;
  pointer-events: auto;
}

.hero-slide__category {
  display: inline-block;
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff !important;
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slide__category:hover {
  background: #b45309;
  transform: translateY(-2px);
}

/* Main Content Text Overlay & Action CTA */
.hero-slide__content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 8rem 0 6rem 0;
  pointer-events: auto;
}

.hero-slide__body {
  max-width: 680px;
}

.hero-slide__title {
  font-family: var(--font-display, 'Marcellus', serif) !important;
  font-size: clamp(1.6rem, 3.2vw, 2.75rem) !important;
  font-weight: 300 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-title-prefix {
  font-weight: 300;
}

/* Turner Benchmark Script Accent Font & Red Brush Underline */
.hero-title-script {
  font-family: 'Caveat', cursive, serif !important;
  display: inline-block;
  position: relative;
  font-style: italic;
  font-weight: 700;
  color: #ffffff !important;
  margin-left: 0.35rem;
  padding-bottom: 2px;
}

.hero-title-script::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
  border-radius: 2px;
  transform: rotate(-1.2deg);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.5);
}

.hero-slide__title a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hero-slide__cta-wrapper {
  margin-bottom: 1.25rem;
}

.hero-slide__subhead {
  font-family: var(--font-ui, 'Outfit', sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-slide__subhead-link {
  color: #ffffff !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-slide__subhead-link:hover {
  color: #f8fafc !important;
}

.hero-cta-arrow {
  color: #e11d48;
  font-weight: 900;
  font-size: 1.2em;
  transition: transform 0.25s ease;
}

.hero-slide__cta-wrapper:hover .hero-cta-arrow {
  transform: translateX(6px);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--stoon-accent, #d97706) !important;
  color: #ffffff !important;
  font-family: var(--font-ui, 'Outfit', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.08em !important;
  padding: 0.95rem 2.4rem !important;
  border-radius: 4px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transition: all 0.25s ease !important;
}

.btn-amber:hover {
  background-color: #b45309 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(217, 119, 6, 0.65);
}

/* Bottom Bar: Turner Style Controls (Bottom Right) & Pagination */
.hero-slider__bottom-bar {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.hero-news-swiper-button-prev,
.hero-news-swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-news-swiper-button-prev:hover,
.hero-news-swiper-button-next:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Swiper Pagination Bullets */
.hero-news-swiper-pagination {
  position: static !important;
  width: auto !important;
}

.hero-news-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 5px !important;
  display: inline-block;
  cursor: pointer;
}

.hero-news-swiper-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--stoon-accent, #d97706) !important;
  border-color: var(--stoon-accent, #d97706) !important;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .stoon-hero-slider,
  .hero-news-slider,
  .hero-slider-shell {
    height: 72vh;
    min-height: 560px;
  }

  .hero-slider__controls {
    left: 1.75rem;
    top: 1.75rem;
  }

  .hero-slide__category-wrapper {
    top: 1.75rem;
    left: 1.75rem;
  }

  .hero-slide__content {
    padding: 5rem 0 4.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .stoon-hero-slider,
  .hero-news-slider,
  .hero-slider-shell {
    height: 65vh;
    min-height: 480px;
  }

  .hero-slider__controls {
    left: 1rem;
    top: 1rem;
  }

  .hero-news-swiper-button-prev,
  .hero-news-swiper-button-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-slide__content {
    padding: 3.5rem 0 3.5rem 0;
  }

  .hero-slide__title {
    font-size: 1.45rem !important;
    margin-bottom: 0.75rem;
  }

  .hero-slide__text {
    font-size: 1.02rem !important;
    margin-bottom: 1.6rem;
  }
}
