.banner-item {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-image {
  position: absolute;
  inset: 0;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay */

.banner-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

/* text */

.banner-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  z-index: 2;
  max-width: 600px;
}

.banner-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 14px;
  opacity: 0.9;
}

/* swiper fix */

.percasi-news .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.percasi-news .swiper-slide {
  height: auto;
  display: flex;
}

/* card */

.news-card {
  height: 100%;
  display: flex;
}

.news-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

/* image */

.news-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* content */

.news-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-content h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.news-content p {
  font-size: 13px;
  opacity: 0.7;
  margin-top: auto;
}

@media (max-width: 768px) {
  .banner-item {
    height: 280px;
  }

  .banner-content {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .banner-content h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .banner-content p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .banner-item {
    height: 220px;
  }
}
