.channeltronic-services {
  max-width: 1100px;
  margin: 60px auto;
  padding: 25px;
  text-align: center;
}
.channeltronic-services .carousel-stage {
  height: 250px;
  position: relative;
  perspective: 900px;
  overflow: hidden;
}
.channeltronic-services .service-icon {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 180px;
  height: 145px;
  margin-left: -90px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .6s, opacity .6s;
}
.channeltronic-services .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.channeltronic-services .service-icon[data-offset="0"] {
  transform: translateX(0) scale(1.25);
  z-index: 5;
  opacity: 1;
}
.channeltronic-services .service-icon[data-offset="-1"] {
  transform: translateX(-195px) rotateY(-25deg) scale(.85);
  z-index: 4;
  opacity: .85;
}
.channeltronic-services .service-icon[data-offset="1"] {
  transform: translateX(195px) rotateY(25deg) scale(.85);
  z-index: 4;
  opacity: .85;
}
.channeltronic-services .service-icon[data-offset="-2"] {
  transform: translateX(-355px) rotateY(-35deg) scale(.65);
  z-index: 3;
  opacity: .6;
}
.channeltronic-services .service-icon[data-offset="2"] {
  transform: translateX(355px) rotateY(35deg) scale(.65);
  z-index: 3;
  opacity: .6;
}
.channeltronic-services .service-description {
  max-width: 760px;
  min-height: 140px;
  margin: 0 auto;
  line-height: 1.7;
}
.channeltronic-services .service-description h2 {
  color: #82a3ff;
  font-size: 26px;
}
.channeltronic-services .carousel-controls button {
  background: #4165ce;
  color: white;
  border: 0;
  padding: 12px 18px;
  margin: 8px;
  cursor: pointer;
  border-radius: 5px;
}
@media (max-width: 700px) {
  .channeltronic-services .service-icon[data-offset="-1"] {
    transform: translateX(-110px) scale(.6);
  }
  .channeltronic-services .service-icon[data-offset="1"] {
    transform: translateX(110px) scale(.6);
  }
  .channeltronic-services .service-icon[data-offset="-2"],
  .channeltronic-services .service-icon[data-offset="2"] {
    opacity: 0;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .channeltronic-services .service-icon { transition: none; }
}

.channeltronic-services .carousel-stage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 220px;
  overflow: visible;
  perspective: none;
}
.channeltronic-services .service-icon,
.channeltronic-services .service-icon[data-offset] {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
  width: 19%;
  height: 145px;
  flex: 0 0 19%;
  transform: none;
  opacity: 1;
  transition: transform .25s ease;
}
.channeltronic-services .service-icon:hover,
.channeltronic-services .service-icon:focus-visible {
  transform: translateY(-8px);
}
@media (max-width:700px) {
  .channeltronic-services .carousel-stage {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    height: auto;
  }
  .channeltronic-services .service-icon,
  .channeltronic-services .service-icon[data-offset] {
    width: 30%;
    flex-basis: 30%;
    height: 105px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.channeltronic-services .service-icon {
  overflow: visible;
}
.channeltronic-services .service-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 240px;
  max-width: 90vw;
  transform: translate(-50%, 8px);
  padding: 14px;
  background: rgba(15, 27, 52, .96);
  color: white;
  border: 1px solid #4165ce;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s;
  z-index: 20;
  pointer-events: none;
}
.channeltronic-services .service-tooltip strong {
  display: block;
  color: #82a3ff;
  font-size: 15px;
  margin-bottom: 8px;
}
.channeltronic-services .service-tooltip span {
  display: block;
}
.channeltronic-services .service-icon:hover,
.channeltronic-services .service-icon:focus-visible {
  z-index: 30;
}
.channeltronic-services .service-icon:hover .service-tooltip,
.channeltronic-services .service-icon:focus-visible .service-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (max-width:700px) {
  .channeltronic-services .service-tooltip {
    width: 190px;
    font-size: 12px;
  }
}

/* Lower the five service icons over the background */
.channeltronic-services .carousel-stage {
    transform: translateY(140px);
}

/* Position icons lower and reserve space beneath them */
.channeltronic-services .carousel-stage {
    transform: none;
    padding-top: 280px;
    padding-bottom: 40px;
}

/* Manual navigation arrows for the services panel */
.channeltronic-services {
    position: relative;
}

.channeltronic-services .service-nav {
    position: absolute;
    top: 280px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    background: rgba(0,60,110,0.55);
    color: white;
    font-size: 34px;
    line-height: 34px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.channeltronic-services .service-nav:hover,
.channeltronic-services .service-nav:focus-visible {
    background: #168bd2;
}

.channeltronic-services .service-nav.previous {
    left: 10px;
}

.channeltronic-services .service-nav.next {
    right: 10px;
}

/* Show the description for the selected service,
   including when selected using navigation arrows */
.channeltronic-services .service-icon[aria-pressed="true"] .service-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Match service navigation arrows to Channeltronic theme */
.channeltronic-services .service-nav {
    background: #4164C8;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.channeltronic-services .service-nav:hover,
.channeltronic-services .service-nav:focus-visible {
    background: #527BE5;
    border-color: #ffffff;
}

/* Lower mobile navigation arrows to icon level */
@media screen and (max-width: 640px) {
    .channeltronic-services .service-nav {
        top: 190px;
    }
}
