/* Legacy content carousels (.sng-carousel) — previously in old theme Additional CSS */

.sng-btn {
  display: inline-block !important;
  background: linear-gradient(to bottom, #3a7fd4 0%, #1a52a8 50%, #123d8a 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  padding: 5px 12px !important;
  border-radius: 4px !important;
  font-family: Arial, sans-serif !important;
  box-shadow: 0 3px 8px rgba(18, 61, 138, 0.4) !important;
  border: 1px solid #0e3070 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.sng-btn:hover {
  background: linear-gradient(to bottom, #4a8fe4 0%, #2a62b8 50%, #1a4d9a 100%) !important;
  box-shadow: 0 5px 14px rgba(18, 61, 138, 0.6) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.sng-carousel {
  position: relative;
  overflow: hidden;
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
}

.sng-carousel.sng-carousel-wide,
.sng-carousel-wide {
  width: 100% !important;
  max-width: 100% !important;
}

.sng-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.sng-slide {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.sng-slide img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

.sng-carousel-wide .sng-slide img {
  height: 420px !important;
}

/* WP often wraps buttons in <p><br> — collapse that wrapper */
.sng-carousel > p {
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 0;
}

.sng-carousel > p br {
  display: none;
}

/* Scoped so header .sng-nav-btn is not affected */
.sng-carousel .sng-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 123, 171, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.sng-carousel .sng-nav-btn:hover {
  background: rgba(14, 123, 171, 1);
}

.sng-carousel .sng-nav-prev {
  left: 4px;
}

.sng-carousel .sng-nav-next {
  right: 4px;
}

@media (max-width: 767px) {
  .sng-carousel {
    width: 92% !important;
    max-width: 92% !important;
  }

  .sng-slide img {
    height: 200px !important;
  }

  .sng-carousel-wide .sng-slide img {
    height: 220px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sng-track {
    transition: none;
  }
}
