/* ===========================================================================
   NEW SERVICE TEMPLATE — CANONICAL HERO
   This is the single owner of the first section for every page using
   page-ai-development-new-template.php. Do not add service-hero overrides to
   style.css or page-specific templates; use this file so all ten pages stay
   visually and behaviourally identical.
   =========================================================================== */

body.page-template-page-ai-development-new-template #aid-hero.aid-hero-section--case-study {
  --aid-hero-image-top: 66px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--aid-npt-hero-height, 600px);
  padding: 220px 0 120px !important;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  text-align: center;
  background: #0a0e27 !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-background-image {
  position: absolute;
  top: var(--aid-hero-image-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: calc(100% - var(--aid-hero-image-top));
  object-fit: contain !important;
  object-position: center;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 26, 38, 0.7);
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-container {
  position: relative;
  z-index: 2;
  width: min(92%, 1240px);
  max-width: 1240px;
  transform: translateY(50px);
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-case-study-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-eyebrow {
  margin: 0 0 18px;
  color: #1aa4f1;
  font-family: "Lato", sans-serif;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: capitalize;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title {
  max-width: 980px;
  margin: 0 auto 22px;
  color: #ffffff;
  font-family: "Lato", sans-serif;
  font-size: clamp(42px, 4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
  text-shadow: none;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title__main,
body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title__accent {
  display: block;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title__accent {
  color: #1aa4f1;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-desc {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Lato", sans-serif;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-shadow: none;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-primary {
  color: #ffffff !important;
  background: #1aa4f1 !important;
  border-color: #1aa4f1 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-primary span {
  color: #ffffff !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-primary:hover {
  color: #061127 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-primary:hover span {
  color: #061127 !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-ghost {
  color: #061127 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-ghost span {
  color: #061127 !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-ghost:hover {
  color: #ffffff !important;
  background: #1aa4f1 !important;
  border-color: #1aa4f1 !important;
}

body.page-template-page-ai-development-new-template #aid-hero .aid-btn-ghost:hover span {
  color: #ffffff !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.page-template-page-ai-development-new-template #aid-hero.aid-hero-section--case-study {
    --aid-hero-image-top: 76px;
  }
}

@media (max-width: 991px) {
  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-container {
    transform: translateY(34px);
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title {
    max-width: 760px;
    font-size: clamp(36px, 6vw, 50px);
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-desc {
    max-width: 650px;
  }
}

@media (max-width: 767px) {
  body.page-template-page-ai-development-new-template #aid-hero.aid-hero-section--case-study {
    --aid-hero-image-top: 0px;
    min-height: 760px;
    padding: 150px 0 92px !important;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-background-image {
    height: 100%;
    object-fit: cover !important;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-container {
    transform: translateY(20px);
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-eyebrow {
    margin-bottom: 12px;
    font-size: 17px;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-title {
    margin-bottom: 16px;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.14;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-desc {
    font-size: 15px;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-actions {
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
    gap: 10px;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-actions .aid-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.page-template-page-ai-development-new-template #aid-hero .aid-hero-actions .aid-arrow {
    display: none;
  }
}
