/* V70 refinement pass: tighter hero flow, safer AI launcher, clickable Smart School map labels. */

.page-hero-inner {
  padding-bottom: 64px;
  padding-top: 44px;
}

.page-hero h1 {
  max-width: 900px;
}

.home-link {
  margin-bottom: 42px;
}

.guide-hero {
  min-height: auto;
}

.guide-hero-copy {
  padding-bottom: 64px;
  padding-top: 64px;
}

.guide-hero-visual {
  align-self: center;
}

.ai-launcher {
  bottom: 10px !important;
  height: 166px !important;
  right: 10px !important;
  width: 140px !important;
}

.ai-robot-stage {
  height: 166px !important;
  width: 140px !important;
}

.smart-campus-showcase {
  margin-top: -38px;
}

.smart-campus-frame {
  position: relative;
}

.smart-campus-overlays {
  pointer-events: none;
}

.campus-badge {
  align-items: center;
  background: rgba(7, 26, 61, 0.84);
  border: 1px solid rgba(49, 215, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(7, 26, 61, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: clamp(0.62rem, 0.86vw, 0.82rem);
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 30px;
  padding: 7px 11px;
  pointer-events: auto;
  position: absolute;
  text-decoration: none;
  white-space: nowrap;
}

.campus-badge:hover,
.campus-badge:focus-visible {
  background: #1267f3;
  border-color: #31d7ff;
  transform: translateY(-1px);
}

.campus-badge::before {
  background: #31d7ff;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 7px;
  width: 7px;
}

.campus-badge-anpr {
  left: 10%;
  top: 40%;
}

.campus-badge-attendance-gate {
  left: 25%;
  top: 73%;
}

.campus-badge-digital-library {
  left: 65%;
  top: 50%;
}

.campus-badge-classroom {
  left: 48%;
  top: 27%;
}

.campus-badge-key {
  left: 78%;
  top: 67%;
}

.smart-campus-module-strip span {
  scroll-margin-top: 110px;
}

.guide-structures .guide-hero-visual img,
.guide-structures .category-product-photo {
  object-fit: cover;
  object-position: center;
}

.guide-structures #display-mounts .category-product-photo,
.guide-structures #led-frame .category-product-photo,
.guide-structures #custom .category-product-photo {
  background: #f7f3ea;
}

.guide-structures #video-wall .category-product-photo {
  object-position: center;
}

.product-finder {
  background: #fffefa;
  border: 1px solid rgba(7, 26, 61, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7, 26, 61, 0.08);
  display: grid;
  gap: 10px;
  margin: -22px auto 34px;
  max-width: 760px;
  padding: 20px;
}

.product-finder label {
  color: #1267f3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-finder input {
  background: #f8fafc;
  border: 1px solid rgba(7, 26, 61, 0.18);
  border-radius: 12px;
  color: #071a3d;
  min-height: 50px;
  padding: 12px 15px;
  width: 100%;
}

.product-finder input:focus {
  border-color: #1267f3;
  outline: 3px solid rgba(18, 103, 243, 0.15);
}

.product-finder-status {
  color: #708097;
  font-size: 0.8rem;
  margin: 0;
}

.balanced-product-grid .product-card[hidden] {
  display: none !important;
}

.guide-structures .selection-section > div:first-child::before {
  display: none !important;
}

@media (max-width: 900px) {
  .page-hero-inner {
    padding-bottom: 54px;
    padding-top: 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 10vw, 4.25rem);
  }

  .smart-campus-showcase {
    margin-top: -16px;
  }

  .ai-launcher {
    height: 132px !important;
    width: 112px !important;
  }

  .ai-robot-stage {
    height: 132px !important;
    width: 112px !important;
  }
}

@media (max-width: 640px) {
  .page-hero-inner {
    padding-bottom: 44px;
    padding-top: 34px;
  }

  .home-link {
    margin-bottom: 30px;
  }

  .smart-campus-frame {
    overflow: visible;
  }

  .smart-campus-overlays {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
    position: static;
  }

  .campus-badge {
    border-radius: 12px;
    box-shadow: none;
    font-size: 0.68rem;
    justify-content: center;
    min-height: 34px;
    padding: 8px 9px;
    position: static;
    white-space: normal;
  }

  .campus-badge-key {
    grid-column: 1 / -1;
  }

  .ai-launcher {
    bottom: 4px !important;
    height: 102px !important;
    right: 2px !important;
    width: 86px !important;
  }

  .ai-robot-stage {
    height: 102px !important;
    width: 86px !important;
  }

  .guide-hero-copy {
    padding-bottom: 46px;
    padding-top: 46px;
  }
}
