/* Shared template for simple content pages (Story, Society, Events...) */

.cp-hero {
  position: relative;
  width: 100%;
  height: 95vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-hero img,
.cp-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 11%;
  filter: grayscale(1) contrast(1.02) brightness(0.95);
}

.cp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.9) 100%);
}

.cp-hero-body {
  position: relative;
  z-index: 2;
  padding: 32px clamp(20px, 4vw, 48px);
  text-align: center;
}

.cp-hero-eyebrow {
  color: var(--muted-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cp-hero h1 {
  color: #fff;
  font-size: clamp(40px, 8vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.cp-body {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: justify;
}

.cp-body p {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 18px;
  text-align: justify;
}

.cp-body p:last-child {
  margin-bottom: 0;
}

/* Chapters: alternating image/text timeline */
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.chapter--reverse {
  direction: rtl;
}

.chapter--reverse > * {
  direction: ltr;
}

.chapter-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--white);
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) contrast(0.98) brightness(1.02);
}

.chapter-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.chapter-media-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255,255,255,0.25);
  background: var(--black);
}

.chapter-text {
  position: relative;
  z-index: 2;
  padding: 56px clamp(24px, 5vw, 72px);
}

.chapter-year {
  display: block;
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--grey);
  margin-bottom: 12px;
}

.chapter-text p {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--grey);
  margin-bottom: 20px;
  text-align: justify;
}

.chapter-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .chapter,
  .chapter--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .chapter-media { aspect-ratio: 16/10; }
  .chapter-text { padding: 32px 20px; }
  .chapter-year { font-size: 64px; margin-bottom: 10px; }
}

.cp-pull {
  background: var(--black);
  padding: 72px 32px;
  text-align: center;
}

.cp-pull p {
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.cp-pull .accent {
  color: #fff;
}

@media (max-width: 700px) {
  .cp-hero { height: 70vh; min-height: 420px; }
  .cp-body { padding: 56px 20px; }
  .cp-pull { padding: 48px 20px; }
}
