.x-recent-posts.swiper {
    position: relative;
}

.x-recent-posts .swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: #5989c7;
}

.x-recent-posts {
  max-width: 1200px; /* or whatever max width you want */
  margin: 0 auto;    /* center horizontally */
  position: relative; /* for arrows positioning */
  padding: 20px 0;   /* optional spacing */
  box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
  color: #5989c7 !important;  /* dark arrows */
  width: 40px;
  height: 40px;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 1 !important;
  z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
}

.swiper-button-prev {
  left: 10px !important;
}

.swiper-button-next {
  right: 10px !important;
}

.x-recent-posts .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* keep natural height */
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}
