/* ── Berita Carousel Widget CSS ── */

.bc-section {
  padding: 2.5rem 1rem;
  font-family: inherit;
}

.bc-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a9e75;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bc-section-line {
  width: 60px;
  height: 3px;
  background: #1a9e75;
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

/* Wrapper: clipping container */
.bc-wrapper {
  position: relative;
  overflow: hidden;
  padding: 44px 0;
}

/* Track: flex strip yang di-translate */
.bc-track {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Kartu */
.bc-card {
  flex: 0 0 calc(33.333% - 11px);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.bc-card img {
  width: 100%;
  height: 220px;        /* override via style attribute dari PHP */
  object-fit: cover;
  display: block;
}

/* Overlay gradient */
.bc-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  padding: 56px 14px 16px;
}

.bc-date {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 4px;
}

.bc-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
}

.bc-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #1a9e75;
  color: #fff !important;
  border-radius: 6px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  line-height: 1.5;
}
.bc-btn:hover { opacity: 0.85; }

/* Kartu aktif (tengah) */
.bc-card.active {
  transform: scale(1.22);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Kartu samping */
.bc-card.side {
  transform: scale(0.82);
  opacity: 0.55;
}

/* Tombol navigasi */
.bc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 22px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  line-height: 1;
  transition: background 0.2s;
}
.bc-nav:hover { background: #fff; }
.bc-prev { left: 6px; }
.bc-next { right: 6px; }

/* Dots */
.bc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.bc-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  display: inline-block;
  transition: background 0.25s, transform 0.25s;
}

.bc-dots .dot.active {
  background: #1a9e75;
  transform: scale(1.3);
}

/* Responsive: mobile 1 kartu */
@media (max-width: 640px) {
  .bc-card {
    flex: 0 0 80%;
  }
  .bc-card.active {
    transform: scale(1.05);
  }
  .bc-card.side {
    transform: scale(0.88);
    opacity: 0.5;
  }
}
