.header-ai-service-right {
  position: relative;
  grid-column: span 3;
  overflow: hidden;
}

.header-ai-service-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}

.header-ai-service-right-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--container-space);
}

.header-ai-service-text {
  display: flex;
  max-width: 35.4375rem;
  font-size: 4rem;
  font-family: var(--font-family-headline);
  line-height: 100%;
  letter-spacing: -0.08rem;
}

.header-ai-service-right:before {
  content: "";
  position: absolute;
  width: 45.499rem;
  height: 22.66081rem;
  transform: rotate(-172.587deg);
  border-radius: 45.499rem;
  opacity: 0.2;
  background: #e8d58a;
  filter: blur(115px);
  left: -10%;
  bottom: -50%;
}

.h-sub-menu-services-item > a:hover span {
  color: var(--main-background);
}

.h-sub-menu-services-item > a:hover span:before {
  background: var(--main-background);
}

.h-sub-menu-services-item > a:hover span:after {
  border-right-color: var(--main-background);
  border-bottom-color: var(--main-background);
}

@media (max-width: 1200px) {
  .header-ai-service-text {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .header-ai-service-right {
    display: none;
  }

  .h-sub-menu-services-item > .h-item-name span {
    color: var(--main-background);
  }

  .h-sub-menu-services-item > a span:before {
    background: var(--main-background);
  }

  .h-sub-menu-services-item > a span:after {
    border-right-color: var(--main-background);
    border-bottom-color: var(--main-background);
  }
}
