/* ---------- Base page ---------- */
.cp-page {
  width: 100%;
}

/* Reusable site-width container (independent of any framework) */
.cp-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- HERO / Slider (FULL WIDTH) ---------- */
/* HERO BG can remain full width */
.cp-hero,
.cp-hero-bg {
  width: 100%;
  background: transparent;
}

/* If your header/footer are full-width, this will match them */
.cp-hero-inner {
  width: 100%;
}

/* IMPORTANT: slider should be 100% of the container, not 100vw */
.cp-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* viewport height stays responsive */
.cp-viewport {
  position: relative;
  width: 100%;
  height: clamp(240px, 32vw, 460px);
}


/* Slides */
.cp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
  margin: 0;
}

.cp-slide.is-active { opacity: 1; }

.cp-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 34px;
  line-height: 46px;
  text-align: center;
  z-index: 5;
}

.cp-prev { left: 14px; }
.cp-next { right: 14px; }

.cp-nav:hover {
  background: rgba(0,0,0,0.65);
}



/* Accessibility focus */
.cp-slider:focus {
  outline: 3px solid rgba(255, 200, 0, 0.6);
  outline-offset: 2px;
}

/* ---------- Body / Caption (SITE WIDTH) ---------- */
.cp-body {
  padding: 22px 0 10px;
}

.cp-caption {
  text-align: center;
  padding: 8px 0 6px;
}

.cp-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 300;
  letter-spacing: 0.2px;
}

.cp-meta {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.75;
}

.cp-desc {
  margin: 10px auto 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Trust strip */
.cp-trust {
  margin: 10px auto 0;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.75);
  font-size: 14px;
}

.cp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: inline-block;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .cp-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 40px;
  }

  .cp-prev { left: 10px; }
  .cp-next { right: 10px; }

.cp-desc {
  margin: 12px auto 0;
  max-width: 750px;     /* controls line length */
  line-height: 1.6;
}
}

/* Remove any border around slider */
.cp-slider,
.cp-viewport,
.cp-slide,
.cp-slide img {
  border: none !important;
  box-shadow: none !important;
}

/* Remove yellow focus outline from slider and arrows */
.cp-slider:focus,
.cp-nav:focus,
.cp-nav:active,
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

.cp-title,
.cp-meta,
.cp-desc {
  text-align: center;
}

.cp-hero-inner,
.cp-slider,
.cp-viewport {
  border: 0 !important;
  padding: 0 !important;
}

.cp-pill-link{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:#e1b12c;
  color:#222;
  text-decoration:none;
  font-weight:500;
}

.cp-pill-link:hover{
  background:#d4a324;
}
