/* === Scoped Swiper Styles for .balai-kadence-swiper === */

.balai-kadence-swiper {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  position: relative;
  box-sizing: border-box;
}

/* === Slide Card === */
.balai-kadence-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}
.balai-kadence-swiper .swiper-slide:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* === Image Wrapper === */
.balai-kadence-swiper .post-thumbnail.kadence-thumbnail-ratio-2-3 {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
}
.balai-kadence-swiper .post-thumbnail-inner {
  width: 100%;
  height: 100%;
}
.balai-kadence-swiper .swiper-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 8px;
}

/* === Content === */
.balai-kadence-swiper .entry-content-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.balai-kadence-swiper .entry-taxonomies .category-links a {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #005b96;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: 4px;
}
.balai-kadence-swiper .entry-taxonomies .category-links a:hover {
  text-decoration: underline;
}
.balai-kadence-swiper .entry-title {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
}
.balai-kadence-swiper .entry-title a {
  text-decoration: none;
  color: inherit;
}
.balai-kadence-swiper .entry-title a:hover {
  color: #0073aa;
}
.balai-kadence-swiper .entry-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
}

/* === Swiper Navigation Buttons === */
.balai-kadence-swiper .swiper-button-prev,
.balai-kadence-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px; /* BUKAN BULAT */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.balai-kadence-swiper .swiper-button-prev:hover,
.balai-kadence-swiper .swiper-button-next:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.balai-kadence-swiper .swiper-button-prev {
  left: 8px;
}
.balai-kadence-swiper .swiper-button-next {
  right: 8px;
}

/* SVG Ikon */
.balai-kadence-swiper .swiper-button-prev svg,
.balai-kadence-swiper .swiper-button-next svg {
  width: 20px;
  height: 20px;
  stroke: #333;
  stroke-width: 2.5;
}

/* Hilangkan ikon default Swiper */
.balai-kadence-swiper .swiper-button-prev::after,
.balai-kadence-swiper .swiper-button-next::after {
  display: none;
}

/* === Pagination === */
.balai-kadence-swiper .swiper-pagination {
  margin-top: 12px;
  text-align: center;
}
.balai-kadence-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #aaa;
  opacity: 0.4;
  margin: 0 5px;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}
.balai-kadence-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #333;
}

/* === Responsive === */
@media (max-width: 768px) {
  .balai-kadence-swiper .entry-title {
    font-size: 1rem;
    min-height: 4em;
  }
  .balai-kadence-swiper .swiper-button-prev,
  .balai-kadence-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .balai-kadence-swiper .swiper-button-prev svg,
  .balai-kadence-swiper .swiper-button-next svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .balai-kadence-swiper .entry-content-wrap {
    padding: 12px;
  }
  .balai-kadence-swiper .entry-title {
    font-size: 0.95rem;
  }
}
