
/* ============================================================
   NEWSPAPER SLIDER — Full-page horizontal section slider
   ============================================================ */

/* ── Slider container ───────────────────────────────────── */
.nws-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #C4BAA0; /* outer desk color */
}

/* ── Track (moves horizontally) ─────────────────────────── */
.nws-track {
  display: flex;
  height: 100%;
  /* RTL: slides go from right to left visually */
  transform: translateX(0%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Individual slide ────────────────────────────────────── */
.nws-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;       /* Center newspaper page horizontally */
  justify-content: flex-start; /* Start from top to support scrolling correctly */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  background: #E5E2DA;        /* Table backdrop color */
  padding: 1.5rem 0.5rem;     /* Reduced margin around the paper page */
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(43,43,43,0.25) transparent;
}

/* ── Newspaper page — the white/cream inner area ─────────── */
.nws-page {
  flex: none;
  height: auto;
  width: 100%;
  max-width: 1000px;         /* Rectangular proportions resembling a broadsheet */
  background-color: #F1ECE1;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.05) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(165,145,115,0.04),
      rgba(165,145,115,0.04) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(165,145,115,0.04),
      rgba(165,145,115,0.04) 1px,
      transparent 1px,
      transparent 24px
    );
  border: 2px dashed #8B7E74;
  margin: 0;
  overflow: visible;         /* Scroll outside */
  position: relative;
  box-sizing: border-box;
  padding: 0 1rem 1.5rem;     /* Reduced padding on left/right and bottom */
  /* Paper drop shadow and internal ink glow */
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), inset 0 0 120px rgba(110,85,60,0.15);
}

@media (max-width: 767px) {
  .nws-page {
    border: none;             /* Seamless borders on mobile */
    padding: 0 0.5rem 1rem;   /* Reduced padding on mobile */
    box-shadow: none;
  }
}
.nws-slide::-webkit-scrollbar { width: 6px; }
.nws-slide::-webkit-scrollbar-thumb { background: rgba(43,43,43,0.25); }

/* ── Section band (top strip per slide) ─────────────────── */
.nws-band {
  border-top: 1.5px dashed #8B7E74;
  border-bottom: 1.5px dashed #8B7E74;
  background: #F1ECE1;
  padding: 0.4rem 1.25rem;
  flex-shrink: 0;
  position: relative; /* Changed from sticky to relative so it scrolls with the page */
  z-index: 10;
}
.nws-band-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1240px;
  margin: 0 auto;
}
.nws-band-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nws-band-rule { flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
.nws-band-ornament { font-size: 1rem; color: #2B2B2B; opacity: 0.4; }
.nws-band-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.nws-band-link:hover { opacity: 0.7; }

/* ── Navigation Arrows ──────────────────────────────────── */
.nws-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(244,241,234,0.95);
  border: 2px solid #2B2B2B;
  color: #2B2B2B;
  font-size: 2.5rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: serif;
  padding: 0;
}
.nws-arrow:hover { background: #2B2B2B; color: #F4F1EA; }
.nws-arrow--prev { right: 0.75rem; }
.nws-arrow--next { left: 0.75rem; }

/* ── Section badge (top right) ──────────────────────────── */
.nws-section-badge {
  position: absolute;
  top: 0.5rem;
  right: 4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.15rem 0.6rem;
  background: rgba(244,241,234,0.9);
  z-index: 60;
}

/* ── Dot navigation ─────────────────────────────────────── */
.nws-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 60;
}
.nws-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--dot-color, #2B2B2B);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.nws-dot--active {
  background: var(--dot-color, #2B2B2B);
  transform: scale(1.3);
}

/* ── Slide counter ──────────────────────────────────────── */
.nws-counter {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(43,43,43,0.5);
  z-index: 60;
  letter-spacing: 0.05em;
}

/* ── Loading screen ─────────────────────────────────────── */
.nws-loading {
  position: absolute;
  inset: 0;
  background: #F4F1EA;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 0.5s ease;
}
.nws-loading-inner { text-align: center; }
.nws-loading-logo {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: #2B2B2B;
  letter-spacing: 0.1em;
}
.nws-loading-rule { width: 200px; height: 3px; background: #2B2B2B; margin: 0.5rem auto; }
.nws-loading-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #4A4A4A;
  margin-top: 0.5rem;
}
.nws-loading-dots { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: center; }
.nws-loading-dots span {
  width: 8px; height: 8px; background: #2B2B2B; border-radius: 50%;
  animation: loadpulse 1.2s infinite ease-in-out;
}
.nws-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.nws-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadpulse { 0%,80%,100% { opacity: 0.2; } 40% { opacity: 1; } }


/* ============================================================
   ARTICLE CARDS (na = newspaper article)
   ============================================================ */

.na {
  padding: 0.75rem 0.8rem;
  overflow: hidden;
}

/* Image + text row (img on right in RTL) */
.na--row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.na--row .na-img-wrap { flex: 0 0 42%; max-width: 42%; }
.na--row .na-text { flex: 1; min-width: 0; }

/* Image on left in RTL (row-reverse) */
.na--row-rev {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.75rem;
  align-items: flex-start;
}
.na--row-rev .na-img-wrap { flex: 0 0 42%; max-width: 42%; }
.na--row-rev .na-text { flex: 1; min-width: 0; }

/* Image top (centered above text) */
.na--top {
  display: flex;
  flex-direction: column;
}
.na--top .na-img-wrap { width: 100%; }

/* Text-only */
.na--text-only { display: block; }
.na--sm .na-title { font-size: 0.95rem; }

/* ── Image ──────────────────────────────────────────────── */
.na-img-wrap { position: relative; }
.na-img {
  width: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #2B2B2B;
  /* Halftone B&W newspaper print effect */
  filter: grayscale(100%) contrast(140%) brightness(95%);
}
.na-img-cap {
  display: block;
  font-style: italic;
  font-size: 0.65rem;
  color: #4A4A4A;
  padding: 0.15rem 0.4rem;
  background: #E5E2DA;
  border: 1px solid rgba(43,43,43,0.2);
  border-top: none;
  line-height: 1.3;
  text-align: center;
}

/* ── Text block ─────────────────────────────────────────── */
.na-text { display: flex; flex-direction: column; gap: 0.3rem; }

.na-text-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.na-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.na-title-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: right;
  line-height: inherit;
  transition: color 0.2s;
}
.na-title-btn:hover { color: var(--accent); }

.na-excerpt {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #2B2B2B;
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.na-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.na-more {
  background: none;
  border: none;
  padding: 0.15rem 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.na-more:hover { color: var(--accent-hover); }
.na-author {
  font-size: 0.65rem;
  color: #4A4A4A;
  font-style: italic;
}


/* ============================================================
   TEMPLATE 1 — Asymmetric Hero Grid
   ============================================================ */
.tpl-1 {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tpl1-top {
  flex: 0 0 52%;
  border-bottom: 3px double #2B2B2B;
  overflow: hidden;
}
.tpl1-top-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0.25rem;
  height: 100%;
}
.tpl1-top .na--top .na-img { max-height: 200px; }
.tpl1-top .na-title { font-size: 1.5rem; }
.tpl1-top .na-excerpt { -webkit-line-clamp: 3; }

.tpl1-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
}
.tpl1-col {
  padding: 0;
  overflow: hidden;
}
.tpl1-col + .tpl1-col { border-right: 1px solid #2B2B2B; }
.tpl1-col--b { background: #EEEBE3; } /* middle column slightly shaded */


/* ============================================================
   TEMPLATE 2 — Balanced 2×2 Grid
   ============================================================ */
.tpl-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 0;
}
.tpl2-quad {
  overflow: hidden;
  position: relative;
}
/* Borders */
.tpl2-quad--tr { border-left: 1px solid #2B2B2B; border-bottom: 3px double #2B2B2B; }
.tpl2-quad--tl { border-bottom: 3px double #2B2B2B; }
.tpl2-quad--br { border-left: 1px solid #2B2B2B; }
.tpl2-quad--bl { background: #EEEBE3; }


/* ============================================================
   TEMPLATE 3 — Editorial Magazine Column
   ============================================================ */
.tpl-3 {
  display: grid;
  grid-template-columns: 58% 42%;
  height: 100%;
  gap: 0;
}
.tpl3-main {
  border-left: 3px double #2B2B2B;
  overflow: hidden;
  padding: 0;
}
.tpl3-main .na--top .na-img { max-height: 230px; }
.tpl3-main .na-title { font-size: 1.4rem; }
.tpl3-main .na-excerpt { -webkit-line-clamp: 6; }

.tpl3-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F0EDE5;
}
.tpl3-item {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.tpl3-item--last { flex: 0 0 auto; }
.tpl3-divider {
  height: 1px;
  background: #2B2B2B;
  margin: 0 0.8rem;
  flex-shrink: 0;
}


/* ============================================================
   ARTICLE MODAL — Double-page Book Spread
   ============================================================ */
.nws-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nws-modal.open {
  opacity: 1;
  pointer-events: all;
}

.nws-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,25,18,0.75);
  backdrop-filter: blur(3px);
}

/* The "open book" spread */
.nws-modal-spread {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(92vw, 1100px);
  height: min(88vh, 700px);
  background: #F4F1EA;
  border: 3px double #2B2B2B;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 8px #E5E2DA,
    0 0 0 9px #2B2B2B;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}
.nws-modal.open .nws-modal-spread {
  transform: scale(1) translateY(0);
}

/* Left page: visual side */
.nws-modal-page--left {
  width: 38%;
  flex-shrink: 0;
  overflow-y: auto;
  background: #EEEBE3;
  background-image: repeating-linear-gradient(
    transparent 0px, transparent 26px,
    rgba(43,43,43,0.03) 26px, rgba(43,43,43,0.03) 27px
  );
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px double #2B2B2B;
}

/* Spine */
.nws-modal-spine {
  width: 6px;
  background: linear-gradient(to left, rgba(0,0,0,0.15), rgba(0,0,0,0.05), rgba(0,0,0,0.15));
  flex-shrink: 0;
}

/* Right page: content side */
.nws-modal-page--right {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem;
  background: #F4F1EA;
  background-image: repeating-linear-gradient(
    transparent 0px, transparent 26px,
    rgba(43,43,43,0.025) 26px, rgba(43,43,43,0.025) 27px
  );
}
.nws-modal-page--right::-webkit-scrollbar { width: 5px; }
.nws-modal-page--right::-webkit-scrollbar-thumb { background: rgba(43,43,43,0.3); }
.nws-modal-page--left::-webkit-scrollbar { width: 5px; }
.nws-modal-page--left::-webkit-scrollbar-thumb { background: rgba(43,43,43,0.2); }

/* Close button — styled as stamp */
.nws-modal-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid #2B2B2B;
  background: #F4F1EA;
  color: #2B2B2B;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s;
  font-family: serif;
  /* Stamp effect */
  box-shadow: 1px 1px 0 #2B2B2B, 2px 2px 0 rgba(43,43,43,0.2);
}
.nws-modal-close:hover { background: #2B2B2B; color: #F4F1EA; }

/* Modal left page content */
.nws-ml-top { text-align: center; }
.nws-ml-section {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.nws-ml-rule { width: 60px; height: 2px; background: var(--accent); margin: 0.4rem auto; }
.nws-ml-img-wrap { overflow: hidden; border: 2px solid #2B2B2B; }
.nws-ml-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(135%) brightness(95%);
  transition: filter 0.3s;
}
.nws-ml-img:hover { filter: grayscale(0%) contrast(100%) brightness(100%); }
.nws-ml-meta {
  font-size: 0.78rem;
  color: #4A4A4A;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px dashed rgba(43,43,43,0.3);
  padding-top: 0.75rem;
}
.nws-ml-ornament {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(43,43,43,0.5);
  text-align: center;
  border-top: 1px dashed rgba(43,43,43,0.3);
  border-bottom: 1px dashed rgba(43,43,43,0.3);
  padding: 0.35rem;
}
.nws-ml-link {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.4rem;
  transition: all 0.2s;
}
.nws-ml-link:hover { background: var(--accent); color: #fff; }

/* Modal right page content */
.nws-mr-section-header {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.nws-mr-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2B2B2B;
  margin-bottom: 0.5rem;
}
.nws-mr-rule {
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, transparent, #2B2B2B 20%, #2B2B2B 80%, transparent);
  margin-bottom: 1rem;
}
.nws-mr-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.85;
  color: #2B2B2B;
  text-align: justify;
  columns: 2;
  column-gap: 1.5rem;
  column-rule: 1px solid rgba(43,43,43,0.15);
}
.nws-mr-body p { margin-bottom: 0.8rem; }
.nws-mr-body .lettrine { font-size: 3.5em; float: right; line-height: 0.8; margin-left: 0.2em; font-family: var(--font-serif); color: var(--accent); }


/* ============================================================
   REAL VINTAGE NEWSPAPER LAYOUT (tpl-real-newspaper)
   ============================================================ */
.tpl-real-newspaper {
  min-height: 100%;
  padding: 1.5rem 1rem 3rem; /* Reduced left/right and bottom margins */
  box-sizing: border-box;
  background: #F4F1EA;
  display: block !important;
}

/* ── Masthead ── */
.news-masthead {
  margin-bottom: 2rem;
  text-align: center;
}
.news-masthead-top {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  align-items: center;
  margin-bottom: 1rem;
}
.masthead-side-col {
  padding: 0.5rem;
}
.side-box-inner {
  border: 1px solid rgba(43,43,43,0.3);
  padding: 0.6rem;
  background: rgba(238,235,227,0.5);
  font-family: var(--font-sans);
  text-align: center;
}
.side-box-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(43,43,43,0.2);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}
.side-box-text {
  font-size: 0.7rem;
  margin: 0;
  line-height: 1.4;
  color: #2B2B2B;
}
.masthead-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.masthead-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  color: #2B2B2B;
  letter-spacing: 0.05em;
  line-height: 1;
}
.masthead-subtitle {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
  color: #4A4A4A;
  font-style: italic;
}
.masthead-info-bar {
  border-top: 3px double #2B2B2B;
  border-bottom: 3px double #2B2B2B;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #2B2B2B;
}
.info-item-sep {
  opacity: 0.3;
}
.info-center {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

/* ── Main Article (Article 1) ── */
.news-main-article {
  margin-bottom: 2rem;
}
.main-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  text-align: center;
  color: #2B2B2B;
}
.main-headline .na-title-btn {
  text-align: center;
  width: 100%;
}
.main-byline {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 1.25rem;
}
.main-content-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 1.5rem;
}
.main-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.main-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 1px solid #2B2B2B;
  filter: grayscale(100%) contrast(140%) brightness(95%);
}
.main-img-cap {
  display: block;
  font-style: italic;
  font-size: 0.7rem;
  color: #4A4A4A;
  padding: 0.25rem 0.5rem;
  background: #E5E2DA;
  border: 1px solid rgba(43,43,43,0.2);
  border-top: none;
  text-align: center;
}
.main-text-cols {
  display: flex;
  flex-direction: column;
}
.main-excerpt {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--accent);
  text-align: justify;
}
.main-body-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: #2B2B2B;
  text-align: justify;
  column-count: 2;
  column-gap: 1.25rem;
  column-rule: 1px solid rgba(43,43,43,0.15);
  max-height: 180px;            /* Contain first article height within the sheet */
  overflow: hidden;
  position: relative;
}
.main-body-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #F4F1EA);
  pointer-events: none;
}

/* ── Divider lines ── */
.news-row-divider {
  height: 4px;
  border-top: 1px dashed #8B7E74;
  border-bottom: 1px dashed #8B7E74;
  margin: 2rem 0;
}

/* ── Middle Row (Articles 2 & 3) ── */
.news-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.news-mid-col {
  display: flex;
  flex-direction: column;
}
.news-mid-right {
  border-left: 1px dashed rgba(139,126,116,0.5);
  padding-left: 1.5rem;
}
.col-section-header {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  color: #fff;
  display: inline-block;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.green-header {
  background: #2e7d32;
}
.blue-header {
  background: #1565c0;
}
.col-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4rem 0;
  color: #2B2B2B;
}
.red-title .na-title-btn {
  color: #c62828;
}
.col-byline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.col-text-cols {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #2B2B2B;
  text-align: justify;
  column-count: 2;
  column-gap: 1rem;
  column-rule: 1px solid rgba(43,43,43,0.12);
}
.col-excerpt {
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.col-body-text {
  margin: 0;
  max-height: 130px;            /* Contain columns height within sheet grid */
  overflow: hidden;
  position: relative;
}
.col-body-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, #F4F1EA);
  pointer-events: none;
}
.col-content-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.col-img-wrap-small {
  flex: 0 0 35%;
  max-width: 35%;
}
.col-img-wrap-small img {
  width: 100%;
  border: 1px solid #2B2B2B;
  filter: grayscale(100%) contrast(140%) brightness(95%);
}
.col-text-wrap-small {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: justify;
  max-height: 130px;            /* Contain columns height within sheet grid */
  overflow: hidden;
  position: relative;
}
.col-text-wrap-small::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, #F4F1EA);
  pointer-events: none;
}

/* ── Bottom Row (Articles 4 & 5) ── */
.news-bot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.news-bot-col {
  display: flex;
  flex-direction: column;
}
.news-bot-left {
  border-right: 1px dashed rgba(139,126,116,0.5);
  padding-right: 1.5rem;
}
.news-bot-right {
  padding-left: 1.5rem;
}

/* ============================================================
   RESPONSIVE — Mobile & Tablet Optimizations
   ============================================================ */
@media (max-width: 900px) {
  .nws-slider {
    height: calc(100dvh - 75px);
    min-height: 540px;
  }
}

@media (max-width: 767px) {
  /* Slider preserved — slides stacked horizontally */
  .nws-slider {
    height: calc(100dvh - 70px);
    min-height: 500px;
  }
  .nws-slide {
    padding: 0.5rem 0.25rem 2.5rem !important;
  }
  .nws-page {
    border: none !important;
    padding: 0.5rem 0.35rem 2rem !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }

  .nws-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
    opacity: 0.75;
    background: rgba(244,241,234,0.92);
  }
  .nws-arrow:active {
    opacity: 1;
    transform: translateY(-50%) scale(0.95);
  }
  .nws-arrow--prev { right: 0.2rem; }
  .nws-arrow--next { left: 0.2rem; }

  /* ── Vintage Control Bar (Responsive) ── */
  .nws-ctrl-bar {
    width: auto;
    max-width: 94vw;
    top: 6px;
    padding: 6px 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.75rem;
  }
  .nws-ctrl-bar select, .nws-ctrl-bar button {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
  }

  /* ── Mobile: collapse to single column ── */
  .tpl-real-newspaper {
    padding: 0.5rem 0.25rem 2.5rem !important;
  }
  .news-masthead-top {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .masthead-side-col {
    display: none !important;
  }
  .masthead-col {
    width: 100% !important;
    border: none !important;
    padding: 0.25rem 0 !important;
  }
  .masthead-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  .main-content-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .main-body-text {
    column-count: 1 !important;
  }
  .grid-3-col {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .col-divider-left,
  .col-divider-right,
  .col-divider-both {
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px dashed rgba(43,43,43,0.2) !important;
    padding-bottom: 1.25rem !important;
  }
  .news-mid-row, .news-bot-row {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .news-mid-right {
    border-left: none !important;
    padding-left: 0 !important;
    border-bottom: 1px solid rgba(43,43,43,0.15);
    padding-bottom: 1.25rem;
  }
  .news-bot-left {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid rgba(43,43,43,0.15);
    padding-bottom: 1.25rem;
  }
  .news-bot-right {
    padding-left: 0 !important;
  }
  .col-text-cols {
    column-count: 1 !important;
  }
  .col-content-wrap {
    flex-direction: column !important;
  }
  .col-img-wrap-small {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Article cards in slider */
  .na--row, .na--row-rev {
    flex-direction: column !important;
  }
  .na--row .na-img-wrap, .na--row-rev .na-img-wrap {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 0.5rem;
  }

  /* Modal → single column scrollable */
  .nws-modal-spread {
    flex-direction: column !important;
    width: 94vw !important;
    height: 88vh !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .nws-modal-page--left {
    width: 100% !important;
    max-height: 220px !important;
    border-left: none !important;
    border-bottom: 2px dashed #2B2B2B !important;
    padding: 1rem !important;
  }
  .nws-modal-page--right {
    width: 100% !important;
    padding: 1rem 1.25rem 2rem !important;
  }
  .nws-modal-spine { display: none; }
  .nws-ml-img { height: 120px !important; }
  .nws-mr-body { columns: 1 !important; font-size: 1rem !important; line-height: 1.8 !important; }
  .nws-mr-title { font-size: 1.25rem !important; }
  .nws-modal-close {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  /* Torn scrap clipping modal */
  .torn-scrap {
    max-width: 92vw !important;
    padding: 1.5rem 1rem !important;
    margin: 0.5rem auto !important;
  }
  .torn-scrap-title {
    font-size: 1.25rem !important;
  }
  .torn-scrap-body {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }
}

@media (max-width: 480px) {
  .nws-band-ornament { display: none; }
  .nws-band-name { font-size: 0.95rem; }
  .nws-section-badge { display: none; }
  .nws-counter { font-size: 0.65rem; bottom: 0.4rem; left: 0.4rem; }
  .nws-dots { bottom: 0.4rem; gap: 0.35rem; }
  .nws-dot { width: 8px; height: 8px; }
  .lettrine::first-letter {
    font-size: 2.2rem !important;
    margin-left: 0.35rem !important;
  }
}

/* ============================================================
   Time Machine Epoch Styles
   ============================================================ */

/* --- Epoch 1950s --- */
.epoch-1950 .nws-page {
  font-family: 'Aref Ruqaa', 'Amiri', serif !important;
  --accent: #5c3d2e !important;
  border: 1.5px solid #5c3d2e !important;
}
.epoch-1950 .nws-page h2, 
.epoch-1950 .nws-page button, 
.epoch-1950 .nws-page span,
.epoch-1950 .nws-page a {
  font-family: 'Aref Ruqaa', 'Amiri', serif !important;
}
.epoch-1950 .nws-page .vintage-image {
  filter: grayscale(100%) contrast(75%) brightness(95%) sepia(20%) !important;
}
.epoch-1950 .nws-page .col-divider-left,
.epoch-1950 .nws-page .col-divider-both,
.epoch-1950 .nws-page .border-b-double,
.epoch-1950 .nws-page .border-t-double {
  border-color: rgba(92, 61, 46, 0.4) !important;
  border-style: solid !important;
  border-width: 1px !important;
}

/* --- Epoch 1960s --- */
.epoch-1960 .nws-page {
  font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif !important;
  --accent: #111111 !important;
  border: 3.5px solid #111111 !important;
}
.epoch-1960 .nws-page h2, 
.epoch-1960 .nws-page button, 
.epoch-1960 .nws-page span,
.epoch-1960 .nws-page a {
  font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif !important;
  font-weight: 700 !important;
}
.epoch-1960 .nws-page .vintage-image {
  filter: grayscale(100%) contrast(150%) brightness(85%) !important;
  border: 3px solid #111111 !important;
}
.epoch-1960 .nws-page .col-divider-left,
.epoch-1960 .nws-page .col-divider-both,
.epoch-1960 .nws-page .border-b-double,
.epoch-1960 .nws-page .border-t-double {
  border-color: #111111 !important;
  border-style: solid !important;
  border-width: 2.5px !important;
}

/* --- Epoch 1970s --- */
.epoch-1970 .nws-page {
  font-family: 'Reem Kufi', 'Cairo', sans-serif !important;
  --accent: #2c3e50 !important;
  border: 2px dashed #2c3e50 !important;
  background-image: url('../Textures%20papier/70s.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.epoch-1970 .nws-page h2, 
.epoch-1970 .nws-page button, 
.epoch-1970 .nws-page span,
.epoch-1970 .nws-page a {
  font-family: 'Reem Kufi', 'Cairo', sans-serif !important;
}
.epoch-1970 .nws-page .vintage-image {
  filter: grayscale(100%) contrast(120%) brightness(100%) !important;
  background-image: radial-gradient(circle, #333 1px, transparent 1.5px) !important;
  background-size: 3px 3px !important;
  background-repeat: repeat !important;
  background-blend-mode: multiply !important;
}
.epoch-1970 .nws-page .col-divider-left,
.epoch-1970 .nws-page .col-divider-both,
.epoch-1970 .nws-page .border-b-double,
.epoch-1970 .nws-page .border-t-double {
  border-color: #2c3e50 !important;
  border-style: dotted !important;
  border-width: 2px !important;
}

/* --- Epoch 1980s --- */
.epoch-1980 .nws-page {
  font-family: 'Lateef', 'Noto Naskh Arabic', serif !important;
  --accent: #c0392b !important;
  border: 3px double #c0392b !important;
  background-image: url('../Textures%20papier/80s.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.epoch-1980 .nws-page h2, 
.epoch-1980 .nws-page button, 
.epoch-1980 .nws-page span,
.epoch-1980 .nws-page a {
  font-family: 'Lateef', 'Noto Naskh Arabic', serif !important;
  font-size: 1.1em !important;
}
.epoch-1980 .nws-page h2 button {
  color: #2980b9 !important; /* Blue headlines */
}
.epoch-1980 .nws-page .vintage-image {
  filter: sepia(35%) contrast(110%) brightness(95%) !important;
  border: 2px solid #c0392b !important;
}
.epoch-1980 .nws-page .col-divider-left,
.epoch-1980 .nws-page .col-divider-both,
.epoch-1980 .nws-page .border-b-double,
.epoch-1980 .nws-page .border-t-double {
  border-color: #c0392b !important;
  border-style: double !important;
  border-width: 3px !important;
}

/* --- Epoch 1990s --- */
.epoch-1990 .nws-page {
  font-family: Arial, sans-serif !important;
  --accent: #2b2b2b !important;
  border: 2px solid #7f8c8d !important;
  background-image: url('../Textures%20papier/90s.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.epoch-1990 .nws-page h2, 
.epoch-1990 .nws-page button, 
.epoch-1990 .nws-page span,
.epoch-1990 .nws-page a {
  font-family: Arial, sans-serif !important;
}
.epoch-1990 .nws-page h2 button {
  color: #8e44ad !important; /* Purple highlights */
}
.epoch-1990 .nws-page .vintage-image {
  filter: saturate(1.2) contrast(1.1) !important;
  border: 1px solid #7f8c8d !important;
}
.epoch-1990 .nws-page .col-divider-left,
.epoch-1990 .nws-page .col-divider-both,
.epoch-1990 .nws-page .border-b-double,
.epoch-1990 .nws-page .border-t-double {
  border-color: #7f8c8d !important;
  border-style: solid !important;
  border-width: 1.5px !important;
}

/* --- Epoch 2000s --- */
.epoch-2000 .nws-page {
  font-family: 'Cairo', sans-serif !important;
  --accent: #e74c3c !important;
  border: 1px solid #dcdde1 !important;
  border-radius: 8px !important;
  background-image: url('../Textures%20papier/2000s.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.epoch-2000 .nws-page h2, 
.epoch-2000 .nws-page button, 
.epoch-2000 .nws-page span,
.epoch-2000 .nws-page a {
  font-family: 'Cairo', sans-serif !important;
}
.epoch-2000 .nws-page .vintage-image {
  filter: none !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  border-radius: 6px !important;
}
.epoch-2000 .nws-page .col-divider-left,
.epoch-2000 .nws-page .col-divider-both,
.epoch-2000 .nws-page .border-b-double,
.epoch-2000 .nws-page .border-t-double {
  border-color: #dcdde1 !important;
  border-style: solid !important;
  border-width: 1px !important;
}

/* ============================================================
   Paper Textures Styles
   ============================================================ */

.nws-page.tex-rough {
  background-color: #E2DCCF !important;
  background-image: 
    radial-gradient(rgba(120, 100, 80, 0.08) 15%, transparent 20%),
    repeating-linear-gradient(rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 10px) !important;
  background-size: 6px 6px, 100% 10px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), inset 0 0 140px rgba(90,70,50,0.2) !important;
}
.nws-page.tex-sepia {
  background-color: #E5CCA2 !important;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2) 0%, rgba(139,112,68,0.2) 100%) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18), inset 0 0 160px rgba(100,80,40,0.3) !important;
}
.nws-page.tex-yellow {
  background-color: #ECE5C6 !important;
  background-image: 
    repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important;
  background-size: 100% 28px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), inset 0 0 100px rgba(80,75,40,0.15) !important;
}
.nws-page.tex-smooth {
  background-color: #F8F5EE !important;
  background-image: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 80px rgba(0,0,0,0.02) !important;
}

/* ============================================================
   Magnifying Glass
   ============================================================ */

.magnifier-lens {
  position: absolute;
  border: 4px solid #b8860b;
  border-radius: 50%;
  cursor: none;
  width: 240px;
  height: 240px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,0,0,0.3);
  display: none;
  pointer-events: none;
  z-index: 9999;
  background-repeat: no-repeat;
  background-color: #F1ECE1;
  overflow: hidden;
}
.nws-slider.magnifying-active .nws-page {
  cursor: crosshair;
}

/* ── Vintage Control Bar ────────────────────────────────── */
.nws-ctrl-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: none; /* Hidden by default */
  gap: 0.75rem;
  background: #2B2B2B;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #8B7E74;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  color: #F4F1EA;
  align-items: center;
  direction: rtl;
  transition: all 0.3s ease;
}
.nws-ctrl-bar.open {
  display: flex !important;
}

/* ============================================================
   Torn Scrap Clippings
   ============================================================ */

.torn-scrap {
  background-color: #f6f3eb;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.02) 100%),
    repeating-linear-gradient(rgba(165,145,115,0.03) 0px, rgba(165,145,115,0.03) 1px, transparent 1px, transparent 24px);
  padding: 2.5rem;
  border: 1px dashed rgba(139,126,116,0.5);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  position: relative;
  max-width: 550px;
  margin: 1.5rem auto;
  filter: drop-shadow(2px 4px 10px rgba(0,0,0,0.15));
  clip-path: polygon(
    0% 2%, 3% 0%, 7% 3%, 12% 0%, 17% 2%, 22% 0%, 28% 3%, 33% 0%, 39% 2%, 44% 0%, 50% 3%, 56% 0%, 61% 2%, 67% 0%, 72% 3%, 78% 0%, 83% 2%, 89% 0%, 94% 3%, 100% 0%,
    98% 8%, 100% 15%, 97% 22%, 100% 30%, 98% 38%, 100% 45%, 97% 53%, 100% 61%, 98% 68%, 100% 76%, 97% 83%, 100% 90%, 98% 97%, 100% 100%,
    94% 98%, 89% 100%, 83% 97%, 78% 100%, 72% 98%, 67% 100%, 61% 97%, 56% 100%, 50% 98%, 44% 100%, 39% 97%, 33% 100%, 28% 98%, 22% 100%, 17% 97%, 12% 100%, 7% 97%, 3% 100%, 0% 98%,
    2% 90%, 0% 83%, 3% 76%, 1% 68%, 3% 61%, 0% 53%, 2% 45%, 0% 38%, 3% 30%, 1% 22%, 3% 15%, 0% 8%
  );
}
.torn-scrap-title {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2b2b2b;
  text-align: center;
  line-height: 1.3;
}
.torn-scrap-meta {
  font-family: 'Cairo', sans-serif;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  padding-bottom: 0.5rem;
}
.torn-scrap-body {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

/* ============================================================
   3D Page Flip Transitions
   ============================================================ */

.nws-track-3d {
  perspective: 2000px;
  transform-style: preserve-3d;
}
.nws-slide-3d {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease !important;
  transform-origin: right center;
}
.nws-slide-3d.flip-out {
  transform: rotateY(-90deg) scale(0.9);
  opacity: 0;
}
.nws-slide-3d.flip-in {
  transform: rotateY(90deg) scale(0.9);
  opacity: 0;
}

/* ============================================================
   PDF / Print Overrides
   ============================================================ */

@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .site-header, 
  .site-footer, 
  .nws-band-link,
  .nws-arrow, 
  .nws-dots, 
  .nws-badge,
  .read-more-btn,
  .scissors-btn,
  .radio-broadcast-btn,
  .nws-header-actions,
  .nws-ctrl-bar,
  .magnifier-lens,
  #epochSelectorContainer {
    display: none !important;
  }
  .nws-slider {
    height: auto !important;
    min-height: auto !important;
  }
  .nws-track {
    transform: none !important;
    display: block !important;
  }
  .nws-slide {
    width: 100% !important;
    display: none !important;
  }
  .nws-slide.active-print {
    display: block !important;
    page-break-after: always;
  }
  .nws-page {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    background: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* --- Real Newspaper 3D Page Turn Animation --- */
.nws-slider {
  perspective: 1800px;
}

.nws-page {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.nws-page.page-turn-out-left {
  animation: pageTurnOutLeft 0.52s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  pointer-events: none;
}

.nws-page.page-turn-in-right {
  animation: pageTurnInRight 0.52s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  pointer-events: none;
}

.nws-page.page-turn-out-right {
  animation: pageTurnOutRight 0.52s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  pointer-events: none;
}

.nws-page.page-turn-in-left {
  animation: pageTurnInLeft 0.52s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  pointer-events: none;
}

@keyframes pageTurnOutLeft {
  0% {
    transform-origin: left center;
    transform: perspective(1400px) rotateY(0deg) scale(1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
  50% {
    transform-origin: left center;
    transform: perspective(1400px) rotateY(-12deg) scale(0.98) skewY(-0.8deg);
    box-shadow: -15px 12px 35px rgba(0,0,0,0.22);
  }
  100% {
    transform-origin: left center;
    transform: perspective(1400px) rotateY(-6deg) scale(0.99);
    box-shadow: -8px 8px 25px rgba(0,0,0,0.15);
  }
}

@keyframes pageTurnInRight {
  0% {
    transform-origin: right center;
    transform: perspective(1400px) rotateY(12deg) scale(0.97) skewY(0.8deg);
    box-shadow: 15px 12px 35px rgba(0,0,0,0.22);
  }
  100% {
    transform-origin: center center;
    transform: perspective(1400px) rotateY(0deg) scale(1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
}

@keyframes pageTurnOutRight {
  0% {
    transform-origin: right center;
    transform: perspective(1400px) rotateY(0deg) scale(1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
  50% {
    transform-origin: right center;
    transform: perspective(1400px) rotateY(12deg) scale(0.98) skewY(0.8deg);
    box-shadow: 15px 12px 35px rgba(0,0,0,0.22);
  }
  100% {
    transform-origin: right center;
    transform: perspective(1400px) rotateY(6deg) scale(0.99);
    box-shadow: 8px 8px 25px rgba(0,0,0,0.15);
  }
}

@keyframes pageTurnInLeft {
  0% {
    transform-origin: left center;
    transform: perspective(1400px) rotateY(-12deg) scale(0.97) skewY(-0.8deg);
    box-shadow: -15px 12px 35px rgba(0,0,0,0.22);
  }
  100% {
    transform-origin: center center;
    transform: perspective(1400px) rotateY(0deg) scale(1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
}


