:root {
  --h2-size: 1.75rem;
  --h5-size: 1.25rem;
  --text-base: 0.75rem;
  --nv-blue: #00568c;
  --nv-orange: #ff8204;
}

.slider-wrapper {
  max-width: 1250px;
  margin: 1.5em auto;
}

.slider-wrapper h2.section-title {
  text-align: center;
  font-size: var(--h2-size);
  margin-bottom: 1em;
}

.section-title .text-orange {
  color: var(--nv-orange);
}

.section-title .text-blue {
  color: var(--nv-blue);
}

.desktop-slider {
  display: flex;
  gap: 2em;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  height: auto;
  align-items: stretch;
}

.slider-image {
  flex: 1;
  height: 460px;
  min-width: 460px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  transition: transform 0.4s ease;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slider-image img:hover {
  transform: scale(1.05);
}

.slider-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 1.5em;
}

.slider-card {
  padding: 1em 0;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.slider-card.active {
  border-bottom: 2px solid #333;
}

.slider-card h5 {
  font-size: 1.25rem !important;
}

.slider-card h5 span {
  color: var(--nv-blue);
}

.slider-card p {
  font-size: 16px !important;
  color: #444;
  margin-top: 0.5em;
  display: none;
  line-height: 1.5;
}

.slider-card.active p {
  display: block;
}

.slider-card p a {
  text-decoration: underline;
  color: inherit;
}

.mobile-slider {
  display: none;
  padding: 0 1em;
}

.swiper {
  width: 100%;
  overflow: visible !important;
  touch-action: pan-y;
}

.swiper-slide {
  background: #fff;
  border-radius: 12px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75em;
}

.swiper-slide h5 {
  font-size: 1rem;
  color: #444;
  font-weight: 600;
  margin: 0;
  font-family: var(--wp--preset--font-family--heading, sans-serif);
}

.swiper-slide p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.4;
}

.swiper-pagination {
  margin-top: 1.5em;
  position: relative;
}

/* MOBILE OVERRIDES */
@media screen and (max-width: 768px) {
  .desktop-slider {
    display: none;
  }

  .mobile-slider {
    display: block;
  }

  .slider-wrapper h2.section-title {
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 1rem 1rem 0.25rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  .section-title .text-blue,
  .section-title .text-orange {
    font-size: 0.8em;
  }

  h5 {
    font-size: 1.125rem !important;
  }
}
