/* Scoped only to .hx-slider; no leakage to questionnaire.html */
/* Colors rely on existing CSS variables to preserve theme */
.hx-slider {
  --hx-gap: 24px;
  --hx-arrow-size: 44px;
  --hx-dot-size: 8px;
  --hx-dot-color: rgba(0,0,0,0.25);
  --hx-dot-active: var(--secondary, #439ad6);
  --hx-arrow-bg: rgba(255,255,255,0.9);
  --hx-arrow-fg: var(--hexadarkblue, #122b40);
  --hx-focus: var(--secondary, #439ad6);
  position: relative;
}

/* Structure */
.hx-slider [data-hx-viewport] {
  overflow: hidden;
  width: 100%;
}

.hx-slider [data-hx-track] {
  display: flex;
  gap: var(--hx-gap);
  will-change: transform;
  transition: transform 450ms ease-out;
}

.hx-slider .hx-slide {
  flex: 0 0 auto;
  width: 100%;
}

.hx-slider .service-card {
  height: auto;
}

/* Controls */
.hx-slider .hx-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--hx-arrow-size);
  height: var(--hx-arrow-size);
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--hx-arrow-bg);
  color: var(--hx-arrow-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.12); */
  /* transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; */
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.hx-slider .hx-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  /* box-shadow: 0 4px 14px rgba(0,0,0,0.18); */
}

.hx-slider .hx-arrow:focus-visible {
  outline: 3px solid var(--hx-focus);
  outline-offset: 2px;
}

.hx-slider .hx-prev { left: 8px; }
.hx-slider .hx-next { right: 8px; }

.hx-slider .hx-arrow[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Pagination */
.hx-slider .hx-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 14px;
  list-style: none;
}

.hx-slider .hx-dot {
  width: var(--hx-dot-size);
  height: var(--hx-dot-size);
  border-radius: 999px;
  background: var(--hx-dot-color);
  border: none;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.hx-slider .hx-dot[aria-current="true"] {
  background: var(--hx-dot-active);
  width: calc(var(--hx-dot-size) * 2);
}

.hx-slider .hx-dot:focus-visible {
  outline: 2px solid var(--hx-focus);
  outline-offset: 2px;
}

/* Pause/Play */
.hx-slider .hx-ctrl {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.hx-slider .hx-toggle {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--hexadarkblue, #122b40);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.hx-slider .hx-toggle:focus-visible {
  outline: 3px solid var(--hx-focus);
  outline-offset: 2px;
}

/* Active slide subtle elevation */
/* .hx-slider .hx-slide.is-active .service-card {
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
} */

/* Fixed media size inside cards: always 270x270, avoid cropping */
.hx-slider .service-content .service-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hx-slider .service-content .service-image-center img {
  width: 270px;
  height: 270px;
  object-fit: contain; /* no cropping */
}

/* Responsive item widths (Classic preset: 1 / 2 / 3) */
.hx-slider[data-hx-items="1"] .hx-slide { width: calc(100% - var(--hx-gap)); }
@media (min-width: 768px) {
  .hx-slider[data-hx-items="2"] .hx-slide { width: calc(50% - var(--hx-gap)); }
}
@media (min-width: 1024px) {
  .hx-slider[data-hx-items="3"] .hx-slide { width: calc(33.333% - var(--hx-gap)); }
}

/* Ensure original grid styles do not interfere inside slider */
.hx-slider .service-grid {
  display: block;
  gap: 0;
}

/* Reduce top overlap of arrows on small screens */
@media (max-width: 480px) {
  .hx-slider .hx-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hx-slider [data-hx-track] {
    transition: none;
  }
}
/* Enforce single-item layout at all widths */
.hx-slider .hx-slide { flex: 0 0 100%; width: 100%; }
/* Slider drift fix: enforce single centered slide without peek */
.hx-slider [data-hx-viewport] {
  overflow: hidden;
  width: 100%;
  padding: 0; /* remove inner padding to avoid showing next slide */
  box-sizing: border-box;
}

.hx-slider [data-hx-track] {
  display: flex;
  gap: 0; /* no spacing between slides */
  justify-content: flex-start;
  will-change: transform;
}

.hx-slider .hx-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Restore rounded corners on service cards within slider */
.hx-slider .service-card {
  border-radius: 10px; /* top corners rounded as before */
  overflow: hidden; /* keep inner content clipped to rounded corners */
}

/* Ensure benefits keeps same horizontal spacing as contact-card */
.hx-slider ~ .benefits {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px; /* preserve existing benefits padding */
}/* No-peek strict viewport: only one slide visible, no preview left/right */
.hx-slider [data-hx-viewport] {
  overflow: hidden;
  width: 100%;
  padding: 0; /* remove inner padding to avoid showing next slide */
  box-sizing: border-box;
}

.hx-slider [data-hx-track] {
  display: flex;
  gap: 0; /* no spacing between slides */
  justify-content: flex-start;
  will-change: transform;
}

.hx-slider .hx-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}
/* Ensure benefits block is centered like contact-card (scoped, no impact on questionnaire) */
.hx-slider ~ .benefits {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Toggle more content styles */

.toggle-more a{
  color: var(--secondary, #439ad6);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--secondary, #439ad6);
  border-radius: 25px;
  transition: all 0.3s ease;
}

/* .toggle-more:hover {
  background-color: var(--secondary, #439ad6);
  color: white;
} */

.service-more-content {
  padding: 15px 15px;
  /* margin: 0px 10px 0px 0px; */
 /* background-color: #f8f9fa; */
 /* background-color: #204366; */
  /* border-radius: 8px; */
  border-radius: 0 10px 0 10px ;
  border: 2px solid #439ad6;
  transition: all 0.4s ease;
}

.service-good-to-know {
  padding: 15px 15px;
 background-color: #ecf5ff;
 /* background-color: #204366; */
  /* border-radius: 8px; */
  border-radius: 0 10px 0 10px ;
  border: 2px solid #439ad6;
  transition: all 0.4s ease;
}
