* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f1f1f1;
  color: #111;
}

.newspaper-section {
  width: min(1180px, 94%);
  margin: 30px auto 60px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.subtitle {
  margin: 8px 0 0;
  color: #555;
}

.all-pages {
  color: #fff;
  background: #111;
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 5px;
  font-weight: 700;
}

.slider {
  position: relative;
  background: #151515;
  border-radius: 12px;
  overflow: hidden;
  padding: 22px 55px 60px;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.slides {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: 100%;
  text-align: center;
  position: relative;
}

.slide.active {
  display: block;
  animation: fade .35s ease;
}

.slide img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  background: #fff;
}

.open-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 55px;
  border-radius: 7px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 28px;
  cursor: pointer;
}

.arrow:hover { background: #fff; }
.prev { left: 10px; }
.next { right: 10px; }

.counter {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
}

.dot.active { background: #fff; transform: scale(1.3); }

.page-grid { margin-top: 45px; }
.page-grid h2 { font-family: Georgia, serif; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.page-card {
  display: block;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
  transition: transform .2s;
}

.page-card:hover { transform: translateY(-4px); }
.page-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}
.page-card span {
  display: block;
  padding: 10px;
  font-weight: 700;
}

@keyframes fade {
  from { opacity: .35; }
  to { opacity: 1; }
}

@media (max-width: 650px) {
  .newspaper-section { width: 96%; margin-top: 15px; }
  .slider-header { align-items: start; flex-direction: column; }
  .slider { padding: 10px 42px 58px; }
  .arrow { width: 34px; height: 46px; font-size: 22px; }
  .prev { left: 5px; }
  .next { right: 5px; }
  .open-label { font-size: 11px; }
}
