/* =========================================================
   board.css — Our Contributions page styles
   Extends about.css hero slider styles
   ========================================================= */

/* ── Content Section ──────────────────────────────────── */
.board-content-section {
  padding: 40px 0 48px;
  background: #fff;
}

.board-content-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Page Header ──────────────────────────────────────── */
.board-content-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--accent, #f39c12);
}

.board-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin: 0 0 12px;
}

.board-page-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ── Rich Body (CKEditor output) ─────────────────────── */
.board-rich-body {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

.board-rich-body h1,
.board-rich-body h2,
.board-rich-body h3,
.board-rich-body h4 {
  color: #111;
  font-weight: 700;
  margin: 32px 0 14px;
}

.board-rich-body h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.board-rich-body h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.board-rich-body p  { margin-bottom: 18px; }
.board-rich-body ul,
.board-rich-body ol { padding-left: 22px; margin-bottom: 18px; }
.board-rich-body li { margin-bottom: 8px; }

.board-rich-body strong { color: #111; }

.board-rich-body figure.image {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
}
.board-rich-body figure.image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.board-rich-body blockquote {
  border-left: 4px solid var(--accent, #f39c12);
  padding: 14px 20px;
  margin: 24px 0;
  background: #fef9ef;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.board-rich-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.board-rich-body table th,
.board-rich-body table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
.board-rich-body table th {
  background: #f8f8f8;
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .board-content-section { padding: 32px 0 42px; }
}

/* ================================================================
   Page Image Carousel  (contained, below breadcrumb)
   ================================================================ */
.board-page-carousel {
  padding: 16px 0 0;
}

.bpc-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 300px;
  background: #111;
  box-shadow: 0 10px 40px rgba(0,0,0,0.16);
}

.board-page-carousel--static .bpc-wrap--static{
  height: auto;
  min-height: 240px;
}

.bpc-wrap--static .bpc-img{
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

/* All slides: hidden by default */
.bpc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
}
.bpc-slide.is-active { opacity: 1; z-index: 1; }

.bpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Style: fade (default) ─────────────────────── */
[data-style="fade"] .bpc-slide {
  transition: opacity 0.75s ease;
}

/* ── Style: slide ──────────────────────────────── */
[data-style="slide"] .bpc-slide {
  transition: transform 0.62s cubic-bezier(.4,0,.2,1);
  opacity: 1;
  transform: translateX(100%);
}
[data-style="slide"] .bpc-slide.is-active    { transform: translateX(0); }
[data-style="slide"] .bpc-slide.bpc-out-left { transform: translateX(-100%) !important; }

/* ── Style: zoom ───────────────────────────────── */
[data-style="zoom"] .bpc-slide {
  transition: opacity 0.75s ease, transform 0.75s ease;
  transform: scale(1.07);
}
[data-style="zoom"] .bpc-slide.is-active { transform: scale(1); }

/* ── Style: kenburns ───────────────────────────── */
[data-style="kenburns"] .bpc-slide {
  transition: opacity 0.9s ease;
}
[data-style="kenburns"] .bpc-slide.is-active .bpc-img {
  animation: bpcKB 7s ease-in-out infinite alternate;
}
@keyframes bpcKB {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.1) translate(-2%, -1%); }
}

/* ── Control Buttons ───────────────────────────── */
.bpc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.32);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  backdrop-filter: blur(4px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.bpc-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}
.bpc-btn--prev { left: 14px; }
.bpc-btn--next { right: 14px; }

/* ── Dot Indicators ────────────────────────────── */
.bpc-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 20;
}
.bpc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer; padding: 0;
  transition: background 0.25s, width 0.25s;
}
.bpc-dot.is-active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 767px) {
  .bpc-wrap { height: 200px; border-radius: 10px; }
  .board-page-carousel { padding: 12px 0 0; }
}
@media (max-width: 480px) {
  .bpc-wrap { height: 155px; }
  .bpc-btn  { width: 34px; height: 34px; }
  .bpc-btn--prev { left: 8px; }
  .bpc-btn--next { right: 8px; }
}

