/*
  Industry pages (CPT: industry)
  This stylesheet is intentionally scoped so it won't affect the rest of the theme.
*/

.ast-industry {
  padding-top: 96px; /* room for fixed header/topbar */
  padding-bottom: 56px;
}

.ast-industry__container {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.ast-industry__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .85;
  text-decoration: none;
  font-size: 14px;
}

.ast-industry__back:hover { opacity: 1; }

.ast-industry__title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  margin: 14px 0 18px;
}

.ast-industry__row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: stretch;
}

.ast-industry__row.is-reverse {
  grid-template-columns: 1.35fr 1fr;
}

@media (max-width: 960px) {
  .ast-industry__row,
  .ast-industry__row.is-reverse {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.ast-industry__panel,
.ast-industry__video {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

@media (max-width: 960px) {
  .ast-industry__panel,
  .ast-industry__video { min-height: 360px; }
}

.ast-industry__video {
  background: rgba(0,0,0,.35);
}

.ast-industry__videoEl {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay that appears over the video */
.ast-industry__overlay {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(520px, 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.ast-industry__overlay.is-visible {
  opacity: 1;
}

/* Text panel inherits existing theme styles; only minor fix */
.ast-industry__panel {
  padding: 28px 28px 24px;
}

.ast-industry__panel h2 { margin: 0 0 10px; }
.ast-industry__panel p { margin: 0 0 14px; }

/* More Solutions section spacing on industry pages */
.more-solutions {
  margin-top: 26px;
}

/* Ensure cards are clickable (avoid pointer blockers) */
.more-solutions { position: relative; z-index: 50; }
.more-solutions .ms-card { position: relative; z-index: 51; }

.demo-overlay,
.overlay-cycle,
.safecity-overlay,
.demo-video::before,
.demo-video::after,
.hero-tabs::before,
.hero-tabs::after,
.ast-industry__overlay {
  pointer-events: none !important;
}
