/* ========================================
   Hero Stats Banner (Image + Video)
   Full-width banner placed right after the Hero Banner.
   Left column: image + text. Right column: video.
   ======================================== */

.hs-section {
  background: linear-gradient(135deg, var(--color-header-bg) 0%, var(--color-header-accent) 100%);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(74, 111, 165, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hs-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* ── Right column: video ── */
.hs-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-text-primary);
  aspect-ratio: 16 / 9;
}

.hs-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive embed (YouTube / Vimeo iframes) */
.hs-media iframe,
.hs-media .wp-block-embed__wrapper iframe,
.hs-media embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback for direct file links */
.hs-video-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--spacing-lg);
  text-align: center;
}

.hs-video-link:hover {
  background: var(--color-highlight);
}

/* Placeholder when no video is set yet */
.hs-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: var(--spacing-lg);
  font-size: 0.875rem;
}

.hs-video-placeholder svg {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Left column: text + image ── */
.hs-content {
  display: flex;
  flex-direction: column;
}

.hs-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.hs-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
}

.hs-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

.hs-image {
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hs-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hs-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hs-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  /* On tablet, show video first then text for visual balance */
  .hs-media {
    order: -1;
    max-width: 720px;
  }

  .hs-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hs-section {
    padding: var(--spacing-2xl) 0;
  }

  .hs-title {
    font-size: 1.75rem;
  }

  .hs-desc {
    font-size: 1rem;
  }

  .hs-buttons {
    width: 100%;
  }

  .hs-buttons .btn {
    flex: 1;
  }
}
