
/* Activation is reversible through one Drupal flag and a body class. */
body.vesta-home-slider-live #carousel-2 { display: none !important; }
body.vesta-home-slider-live #block-views-vesta-home-slider-block,
body.vesta-home-slider-live .view-vesta-home-slider { display: block !important; }
/* Contain FlexSlider's positioned slides/controls below the service cards. */
body.vesta-home-slider-live #section12 { position: relative; z-index: 0; }
body.vesta-home-slider-live .bd-containereffect-1 { position: relative; z-index: 1; }
@media (min-width: 992px) {
  body.vesta-home-slider-live #vesta-home-slider .views-field-nothing { box-sizing: border-box; padding-bottom: 140px; }
  body.vesta-home-slider-live #vesta-home-slider .flex-control-nav,
  body.vesta-home-slider-live #vesta-home-slider .flex-pauseplay a { bottom: 150px; }
}
@media (max-width: 991px) {
  /* No overlap in adaptive layouts: preserve content and controls in full. */
  body.vesta-home-slider-live .bd-containereffect-1 .bd-drupalregion-22 { top: 0 !important; }
}

/* Restore the legacy red emphasis and its translucent light background. */
.view-vesta-home-slider .vhs-copy .text-red h2,
.view-vesta-home-slider .vhs-copy .text-red h3,
.view-vesta-home-slider .vhs-copy span.text-red {
  display: inline-block; max-width: 100%; box-sizing: border-box;
  padding: 0 5px; margin: 0; line-height: 1.1;
  color: #E31E24 !important; background: rgba(255, 255, 255, 0.19);
  text-shadow: none; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.vesta-home-slider-live .view-vesta-home-slider .vhs-copy { padding-left: 52px; padding-right: 52px; }
}

@media (max-width: 991px) {
  /* The legacy negative H1 margin compensated for lifted cards. Both
     sections now use normal flow, so do not pull the heading under them. */
  body.vesta-home-slider-live #section4 .bd-drupalregion-23 h1 { margin-top: 20px; }
}

/* Historical Conversus button placement, preserved from the original theme. */
body.front .smartquiz__open-btn[class*="smartquiz__open-btn_"].smartquiz__position-left_center {
  top: 50% !important;
  left: auto !important;
  right: 0 !important;
  margin-top: -17px !important;
  transform: rotate(-90deg) translateX(50%) !important;
  transform-origin: right bottom !important;
}

body.front #vesta-home-slider .flex-direction-nav .flex-next { right: 52px; }
@media (max-width: 991px) {
  body.front #vesta-home-slider .flex-direction-nav a { top: auto; bottom: 12px; margin-top: 0; height: 40px; line-height: 40px; }
}
