/* Component: services-panels */

.cbf-services-panels-header {
  margin-bottom: 2.5rem;
}

.cbf-services-panels-heading {
  color: #1a1a1a;
  font-size: 30px;
  line-height: 1.4;
  max-width: 850px;
}

.cbf-services-panels-heading .cbf-highlight {
  color: #0cfea7;
  display: block;
  font-weight: bold;
}

.cbf-services-panels-inner {
  position: relative;
}

/* Arrows: one each side of the blocks, level with the middle of the images.
   script.js sets this container's `top` to half the image height. Outside the
   blocks where there is room, over the outer image edges where there is not. */
.cbf-services-arrows {
  left: 0;
  position: absolute;
  right: 0;
  top: 110px;
  z-index: 2;
}

.cbf-services-arrows .cbf-services-arrow {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}

.cbf-services-arrows .cbf-services-arrow-prev {
  left: -64px;
}

.cbf-services-arrows .cbf-services-arrow-next {
  right: -64px;
}

@media (max-width: 1259.98px) {
  .cbf-services-arrows .cbf-services-arrow-prev {
    left: 0.5rem;
  }

  .cbf-services-arrows .cbf-services-arrow-next {
    right: 0.5rem;
  }
}

.cbf-services-arrow {
  background-color: #0cfea7;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  height: 44px;
  position: relative;
  transition: background-color 0.5s;
  width: 44px;
}

.cbf-services-arrow:hover {
  background-color: #1a1a1a;
}

.cbf-services-arrow::after {
  background-color: #1a1a1a;
  content: '';
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.5s;
  width: 12px;
  -webkit-mask: url('/wp-content/uploads/2026/09/Vector8.svg') no-repeat center / contain;
  mask: url('/wp-content/uploads/2026/09/Vector8.svg') no-repeat center / contain;
}

.cbf-services-arrow:hover::after {
  background-color: #ffffff;
}

.cbf-services-arrow-next::after {
  transform: translate(-50%, -50%) scaleX(-1);
}

.cbf-services-panels-slider {
  margin: 0 -1rem;
}

.cbf-services-panels-slider .slick-slide {
  height: auto;
  padding: 0 1rem;
}

/* Every block the same size and shape as the "Business connectivity insights"
   rectangles (.cbf-insight-image, insights-news), tops in one line. */
.cbf-services-panel-item {
  color: inherit;
  display: block;
  text-decoration: none;
}

.cbf-services-panel-item:hover,
.cbf-services-panel-item:focus {
  color: inherit;
  text-decoration: none;
}

.cbf-services-panel-image {
  aspect-ratio: 345 / 220;
  background-color: #ddd;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  transition: opacity 0.3s ease;
  width: 100%;
}

.cbf-services-panel-title {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.cbf-services-panel-description {
  color: #555555;
  margin-bottom: 0;
}

a.cbf-services-panel-item[href]:hover .cbf-services-panel-image {
  opacity: 0.85;
}

a.cbf-services-panel-item[href]:hover .cbf-services-panel-title {
  color: #0a9e6a;
}

/* A panel with no Link (script.js removes the empty href) is not clickable. */
.cbf-services-panel-nolink {
  cursor: default;
}

/* Fallback if the script has not run yet. */
.cbf-services-panel-item[href=""] {
  pointer-events: none;
}
