/* ===== PAGE BANNER SLIDER ===== */
/* Appears between header and page hero on all main pages */

.page-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-dark);
  /* height set by JS based on images */
  min-height: 0;
}
.page-banner:empty { display: none; }

/* Slides wrapper */
.pb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Single slide */
.pb-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: 320px;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 640px) { .pb-slide { min-height: 200px; } }

/* Background image */
.pb-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}
.pb-slide.active .pb-slide-bg { transform: scale(1.06); }

/* Dark overlay */
.pb-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 55%,
    rgba(0,0,0,0.08) 100%
  );
}

/* Content */
.pb-slide-content {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  max-width: 640px;
}
@media (max-width: 640px) { .pb-slide-content { padding: 28px 24px; } }

.pb-slide-label {
  display: inline-block;
  background: var(--accent);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pb-slide-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
@media (max-width: 900px) { .pb-slide-title { font-size: 30px; } }
@media (max-width: 640px) { .pb-slide-title { font-size: 22px; } }

.pb-slide-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}
@media (max-width: 640px) { .pb-slide-subtitle { font-size: 14px; margin-bottom: 16px; } }

.pb-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s;
  font-family: var(--font-th);
  border: none;
  cursor: pointer;
}
.pb-slide-btn:hover {
  background: #ffb93e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

/* Prev / Next arrows */
.pb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  backdrop-filter: blur(4px);
}
.pb-arrow:hover { background: rgba(0,0,0,0.55); border-color: #fff; }
.pb-arrow.prev { left: 18px; }
.pb-arrow.next { right: 18px; }
.pb-arrow:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 480px) {
  .pb-arrow { width: 34px; height: 34px; font-size: 13px; }
  .pb-arrow.prev { left: 10px; }
  .pb-arrow.next { right: 10px; }
}

/* Dots */
.pb-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
}
.pb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  padding: 0;
}
.pb-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Slide-in animation for content */
@keyframes pbSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pb-slide.active .pb-slide-content { animation: pbSlideIn 0.5s 0.15s both; }
