/* --- Base Structure --- */
.sm_connect,
.hero-connect_column {
  position: relative;
}

.sm_connect .hero-button_group {
  display: flex;
  gap: 12px;
}

/* Row Direction Handling */
.sm_connect .content_first,
.sm_connect .content_first .hero-content_column {
  flex-direction: row-reverse;
}

.sm_connect .image_first .hero-content_column {
  margin-right: auto;
}

.sm_connect .content_first .hero-content_column {
  margin-left: auto;
}

/* --- AI Wheel Component --- */
.ai-component-wrapper {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 30px auto;
}

.ai-wheel-svg {
  width: 100%;
  height: 100%;
  border: 1px solid #0065A360;
  border-radius: 50%;
  background-color: #000;

  border: 2px solid transparent;
  border-radius: 400px;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(to bottom right, #0065A3, #bb3800) border-box;
}

/* SVG Segments */
.wheel-seg {
  fill: hsla(0, 0%, 100%, 0.06);
  stroke: #000;
  stroke-width: 11px;
  cursor: pointer;
  transition: fill 0.3s ease;
}

.wheel-seg:hover {
  fill: hsla(0, 0%, 100%, 0.12); /* Unified syntax: matches base fill format */
}

/* --- Icons Overlay --- */
.icons-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* Crucial: lets hover pass through to SVG */
}

.icon-block {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20%;
  height: 20%;
  transform: translate(-50%, -50%);
}

.icon-block img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

/* Specific Positions for the 6 slots */
.pos-wheel-1 { top: 22%; left: 34%; }
.pos-wheel-2 { top: 22%; left: 67%; }
.pos-wheel-3 { top: 50%; left: 82%; }
.pos-wheel-4 { top: 78%; left: 67%; }
.pos-wheel-5 { top: 78%; left: 34%; }
.pos-wheel-6 { top: 50%; left: 18%; }

/* --- Central Robot --- */
.robot-head {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background-color: #000;
  border-radius: 50%;
}

.robot-head img {
  width: 80%;
  height: auto;
}




/* --- Popup Modal Styles --- */
.ai-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Added via JS to show the popup */
.ai-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ai-popup-content {
  border: 1px solid #0065a320;
  border-radius: 12px;
  box-shadow: 0 0 30px #0065a330;
  color: #fff;
  max-height: 75svh;
  max-width: 800px;
  padding: 40px 30px 30px;
  position: relative;
  text-align: left;
  transform: translateY(20px);
  transition: transform .3s ease;
  width: 90%;
  background: radial-gradient(circle at top center, rgba(0, 101, 163, .09), transparent);
  backdrop-filter: blur(10px);
}

.ai-popup-overlay.active .ai-popup-content {
  transform: translateY(0);
}

.ai-popup-close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
  padding: 15px;
  line-height: 1;
}

.ai-popup-close:hover {
  color: #fff;
  background:transparent;
  border: none;
}

.ai-popup-content {
  color: #ccc;
}


/* --- Desktop Layout (>= 992px) --- */
@media (min-width: 992px) {
  /* Combined duplicate selectors */
  .sm_connect .hero-content_column {
    max-width: 800px;
    padding: 20px;
    background-color: transparent;
  }

  .ai-component-wrapper {
    margin: 50px 20px 50px auto;
  }

  .robot-head {
    width: 170px; 
    height: 170px;
  }
  .ai-popup-content {
    padding: 50px;
  }

  .icon-block {
    width: 16%;
    height: 16%;
  }