/* News carousel styles */
.news-swiper {
  width: 95vw;
  padding: 20px 0;
  position: relative; /* for nav buttons positioning */
}

/* Ensure all slides same height */
.news-swiper .swiper-slide {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 420px; /* fixed height */
}

.news-swiper .swiper-slide:hover {
  transform: translateY(-5px);
}

/* Image wrapper fixed height */
.slide-image-wrap {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content area fills remaining space */
.slide-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Titles & date */
.slide-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.2;
  max-height: 3.6em; /* max 3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Excerpt with ellipsis if too long */
.slide-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.3;
  overflow: hidden;
  flex-grow: 1;
  max-height: 5.2em; /* about 4 lines */
  text-overflow: ellipsis;
}

/* Style navigation arrows */
.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next {
  color: #003366; /* dark blue */
  width: 40px;
  height: 40px;
  top: 45% !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.news-swiper .swiper-button-prev:hover,
.news-swiper .swiper-button-next:hover {
  background: #003366;
  color: #fff;
}

/* Position arrows slightly outside */
.news-swiper .swiper-button-prev {
  left: 10px;
}

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

/* Pagination dots style */
.news-swiper .swiper-pagination-bullet {
  background: #777;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.news-swiper .swiper-pagination-bullet-active {
  background: #003366;
  opacity: 1;
}
