/* RM Post Slider Styles */
.rmps-section {
  position: relative;
  width: 100%;
  background: #348998;
  padding: 140px 0;
  overflow: visible;
  isolation: isolate;
}

.rmps-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.rmps-header__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #FEF5EF;
  line-height: 1.2;
}

.rmps.swiper {
  position: relative;
  overflow: hidden;
  padding: 0 15px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

.rmps .swiper-wrapper {
  align-items: stretch;
  display: flex;
}

.rmps .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.rmps-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  border-radius: 20px;
  padding: 24px;
  width: 310px;
  margin: 0 auto;
  box-sizing: border-box;
}

.rmps-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  width: 310px;
  height: 250px;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  border-radius: 35px;
  margin: 0 auto;
}

.rmps-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 35px;
}

.rmps-thumb__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.rmps-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #FEF5EF;
  text-align: center;
}

.rmps-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.rmps-title a:hover {
  color: lightgray;
  text-decoration: underline;
}

.rmps-excerpt {
  margin: 0;
  line-height: 1.6;
  color: #FEF5EF;
  font-size: 15px;
  flex-grow: 1;
}

.rmps-btn {
  background: #215761 !important;
  color: #FEF5EF !important;
  text-align: center;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: auto;
  align-self: center;
}
.rmps-section a:visited {
  color: #ffffff !important;
}

.rmps-btn:hover {
  background: rgba(58, 58, 58, 0.9);
  color: #ffffff;
}

.rmps-nav {
  position: absolute;
  top: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.rmps-nav svg {
  display: block;
  width: 50px;
  height: 50px;
  color: #FEF5EF !important;
}
.rmps-nav svg path {
  fill: #FEF5EF !important;
}

.rmps-nav:hover {
  opacity: 0.75;
}

.rmps-nav--prev {
  left: 280px;
  transform: translateY(-50%);
}

.rmps-nav--next {
  right: 280px;
  transform: translateY(-50%);
}

.rmps-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

.rmps-nav.swiper-button-disabled:hover {
  transform: translateY(-50%);
}

/* Medium Desktop / Large Tablet (1024px - 1400px) */
@media (min-width: 1024px) and (max-width: 1400px) {
  .rmps-nav--prev {
    left: 20px;
  }

  .rmps-nav--next {
    right: 20px;
  }

  .rmps.swiper {
    width: 90%;
  }
}

/* Large Desktop (1400px - 1600px) */
@media (min-width: 1400px) and (max-width: 1600px) {
  .rmps-nav--prev {
    left: 50px;
  }

  .rmps-nav--next {
    right: 50px;
  }
}

/* Tablet Responsive (768px - 1023px) */
@media (max-width: 1023px) {
  .rmps-section {
    padding: 96px 0 40px;
  }

  .rmps-header {
    margin-bottom: 30px;
  }

  .rmps-header__title {
    font-size: 28px;
  }

  .rmps.swiper {
    padding: 0 16px;
  }

  .rmps-nav-group {
    position: absolute;
    top: 24px;
    left: 50%;
    display: flex;
    gap: 14px;
    transform: translateX(-50%);
    z-index: 120;
  }

  .rmps-nav {
    position: relative;
    top: auto;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .rmps-nav svg {
    width: 50px;
    height: 50px;
  }

  .rmps-nav svg path {
    fill: #215761;
  }

  .rmps-nav--prev,
  .rmps-nav--next,
  .rmps-nav.swiper-button-disabled:hover {
    left: auto;
    right: auto;
    transform: none;
  }

  .rmps-card {
    padding: 20px;
  }

  .rmps-title {
    font-size: 18px;
  }

  .rmps-excerpt {
    font-size: 14px;
  }
}

/* Mobile Responsive (below 768px) */
@media (max-width: 767px) {
  .rmps-header {
    margin-bottom: 24px;
    padding: 0 15px;
  }

  .rmps-header__title {
    font-size: 24px;
  }

  .rmps.swiper {
    padding: 0 16px;
  }

  .rmps-card {
    padding: 16px;
    gap: 16px;
    width: 100%;
    max-width: none;
  }

  .rmps-thumb {
    width: 100%;
    max-width: none;
  }

  .rmps-title {
    font-size: 16px;
  }

  .rmps-excerpt {
    font-size: 13px;
  }

  .rmps-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 425px) {
  .rmps-section {
    padding-top: 108px;
  }

  .rmps-nav-group {
    top: 24px;
    gap: 14px;
  }

  .rmps-nav {
    width: 54px;
    height: 54px;
  }

  .rmps-nav svg {
    width: 50px;
    height: 50px;
  }
}
