/* ==========================================================================
   Antardhara Newsletter & Flipbook Stylesheet
   IIT (ISM) Dhanbad — Media Highlights
   ========================================================================== */

:root {
  --nl-brand: #7a0019;
  --nl-brand-dark: #4a000f;
  --nl-brand-deep: #2e0009;
  --nl-accent: #d4a017;
  --nl-accent-light: #f7e9c9;
  --nl-accent-dark: #a1780d;
  --nl-bg-canvas: #fbf9f4;
  --nl-bg-card: #ffffff;
  --nl-text-main: #1f2937;
  --nl-text-muted: #64748b;
  --nl-border-gold: rgba(212, 160, 23, 0.35);
  --nl-shadow-book: 0 24px 48px -12px rgba(46, 0, 9, 0.28), 0 12px 24px -8px rgba(0, 0, 0, 0.16);
  --nl-spine-gradient: linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 6%, transparent 12%);
}

/* Base resets & typography */
.nl-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.nl-sans {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Hero Showcase Section
   ========================================================================== */
.nl-hero {
  position: relative;
  background: var(--nl-bg-canvas);
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(212, 160, 23, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(122, 0, 25, 0.06) 0%, transparent 50%);
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.nl-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nl-brand-dark), var(--nl-accent), var(--nl-brand));
}

/* Watermark background: IIT ISM Heritage Building Outline (anchored behind 3D cover) */
.nl-hero-watermark {
  position: absolute;
  right: -2%;
  bottom: 0;
  left: auto;
  transform: none;
  width: 52%;
  max-width: 720px;
  height: auto;
  opacity: 0.25;
  pointer-events: none;
  filter: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 55%, #000 35%, transparent 95%);
  mask-image: radial-gradient(ellipse 70% 70% at 65% 55%, #000 35%, transparent 95%);
}

.nl-hero-content {
  position: relative;
  z-index: 1;
}

/* Edition Badges */
.nl-badge-edition {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--nl-brand-dark), var(--nl-brand));
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 4px 14px rgba(74, 0, 15, 0.2);
  margin-bottom: 1.25rem;
}

.nl-badge-edition i {
  color: var(--nl-accent);
}

.nl-hero-title-accent {
  display: inline-block;
  white-space: nowrap;
}

.nl-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1a1515;
  margin-bottom: 1rem;
}

.nl-hero-title .brand-accent {
  color: var(--nl-brand);
  position: relative;
}

.nl-hero-title .callout-script {
  font-style: italic;
  font-weight: 900;
  background: linear-gradient(135deg, var(--nl-brand), var(--nl-accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nl-hero-subtitle {
  font-size: 1.05rem;
  color: var(--nl-text-muted);
  font-style: italic;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nl-hero-subtitle .sub-sep {
  color: var(--nl-accent);
}
.nl-hero-subtitle .sub-vol {
  white-space: nowrap;
  font-style: normal;
  font-weight: 600;
  color: var(--nl-brand-dark);
}

.nl-hero-desc {
  font-size: 1rem;
  color: var(--nl-text-muted);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

/* Highlights pill list */
.nl-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.nl-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.nl-hero-pill i {
  color: var(--nl-brand);
  font-size: 1.05rem;
}

.nl-hero-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 160, 23, 0.7);
}
  .nl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.btn-nl-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--nl-brand), var(--nl-brand-dark));
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.5);
  box-shadow: 0 6px 18px rgba(122, 0, 25, 0.28);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-nl-primary:hover {
  background: linear-gradient(135deg, #91001e, #5a0013);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 0, 25, 0.35);
  color: #ffffff !important;
}

.btn-nl-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #ffffff;
  color: var(--nl-brand-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1.5px solid rgba(122, 0, 25, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-nl-secondary:hover {
  border-color: var(--nl-brand);
  background: #fdf8f4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 0, 25, 0.15);
  color: var(--nl-brand) !important;
}

.btn-nl-secondary .badge-size {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-nl-fullscreen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #ffffff;
  color: var(--nl-brand-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.45rem;
  border-radius: 8px;
  border: 1.5px solid rgba(212, 160, 23, 0.75);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-nl-fullscreen i {
  color: var(--nl-accent-dark);
}

.btn-nl-fullscreen:hover {
  background: var(--nl-brand);
  color: #ffffff !important;
  border-color: var(--nl-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 0, 25, 0.3);
}

.btn-nl-fullscreen:hover i {
  color: #ffffff;
}

/* 3D Hero Book Showcase (Right Column) */
.nl-hero-book-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.nl-3d-book {
  position: relative;
  width: 290px;
  height: 410px;
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.nl-3d-book:hover {
  transform: rotateY(-6deg) rotateX(2deg) translateY(-8px);
}

.nl-3d-cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow: 
    -10px 20px 40px rgba(0,0,0,0.35),
    -2px 0 6px rgba(0,0,0,0.2);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
}

.nl-3d-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Realistic spine highlight & edge pages */
.nl-3d-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(255,255,255,0.2) 20%, rgba(0,0,0,0.1) 80%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.nl-3d-book::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -14px;
  width: 14px;
  height: calc(100% - 8px);
  background: repeating-linear-gradient(
    to bottom,
    #f8f8f8 0px,
    #e9e9e9 1px,
    #f8f8f8 2px
  );
  transform: rotateY(90deg) translateZ(0);
  transform-origin: left;
  border: 1px solid #ddd;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
}

.nl-3d-badge-pulse {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nl-brand-dark);
  color: #fff;
  border: 1.5px solid var(--nl-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  transition: all 0.3s ease;
}

.nl-3d-book:hover .nl-3d-badge-pulse {
  background: var(--nl-brand);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 20px rgba(122,0,25,0.4);
}

.nl-3d-badge-pulse .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--nl-accent);
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

/* ==========================================================================
   Interactive 2-Page Folding Flipbook Reader Stage
   ========================================================================== */
.nl-reader-section {
  position: relative;
  background: #181514; /* Deep rich velvet/charcoal default */
  color: #f1f5f9;
  padding: 3rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
  overflow: hidden;
}

.nl-reader-section.theme-light {
  background: #eee8de;
  color: #1e293b;
}

/* Top bar above reader */
.nl-reader-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nl-reader-title-area h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.nl-reader-section.theme-light .nl-reader-title-area h3 {
  color: #1a1515;
}

.nl-reader-title-area p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.nl-reader-section.theme-light .nl-reader-title-area p {
  color: #64748b;
}

/* Quick utility buttons on top of reader */
.nl-reader-tools-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reader-tool {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reader-tool:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: var(--nl-accent);
}

.nl-reader-section.theme-light .btn-reader-tool {
  background: rgba(0, 0, 0, 0.06);
  color: #334155;
  border-color: rgba(0, 0, 0, 0.15);
}

.nl-reader-section.theme-light .btn-reader-tool:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

/* Main Reader Viewport Stage */
.nl-reader-stage {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

/* Center book wrapper with dynamic single-page cover centering */
.nl-flipbook-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: 792px; /* 1120 / 1.414 = 792px for exact 2-page A4 spread */
  margin: 0 auto;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 992px) {
  .nl-flipbook-container.cover-front {
    transform: translateX(-25%);
  }
  .nl-flipbook-container.cover-back {
    transform: translateX(25%);
  }
  .nl-flipbook-container.spread-open {
    transform: translateX(0);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65);
  }
}

@media (max-width: 991px) {
  .nl-flipbook-container {
    transform: none !important;
  }
}

@media (min-width: 1600px) {
  .nl-flipbook-container {
    max-width: 1240px;
    height: 876px;
  }
}

/* Flipbook elements */
.nl-flipbook {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.nl-page {
  background: #ffffff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.65), inset 0 0 10px rgba(0,0,0,0.06);
}

.nl-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Center gutter shadow between 2 pages */
.nl-flipbook .--right .nl-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 25px;
  background: linear-gradient(to right, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.nl-flipbook .--left .nl-page::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 25px;
  background: linear-gradient(to left, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Floating Navigation Arrows */
.nl-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30, 24, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(212, 160, 23, 0.55);
  color: #fff;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.25s ease;
}

.nl-nav-arrow:hover {
  background: var(--nl-brand);
  border-color: var(--nl-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(122, 0, 25, 0.55);
}

.nl-nav-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.nl-nav-arrow.prev {
  left: 12px;
}

.nl-nav-arrow.next {
  right: 12px;
}

.nl-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Reader Bottom Control Dock */
.nl-reader-dock {
  margin-top: 1.5rem;
  background: rgba(26, 21, 20, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.nl-reader-section.theme-light .nl-reader-dock {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dock-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nl-reader-section.theme-light .dock-btn {
  color: #475569;
}

.nl-reader-section.theme-light .dock-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.dock-btn.active {
  background: var(--nl-brand);
  color: #fff;
}

/* Page Slider & Indicator */
.dock-page-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  min-width: 100px;
  text-align: center;
}

.nl-reader-section.theme-light .dock-page-info {
  color: #0f172a;
}

.dock-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.nl-reader-section.theme-light .dock-slider {
  background: rgba(0, 0, 0, 0.15);
}

.dock-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--nl-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.dock-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--nl-accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   FULLSCREEN MODE STYLING
   ========================================================================== */
.nl-reader-section:fullscreen,
.nl-reader-section:-webkit-full-screen {
  background: #0f0d0c !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 1rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  overflow: hidden !important;
}

.nl-reader-section:fullscreen .nl-reader-header,
.nl-reader-section:-webkit-full-screen .nl-reader-header {
  width: 100%;
  max-width: 1400px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.nl-reader-section:fullscreen .nl-reader-stage,
.nl-reader-section:-webkit-full-screen .nl-reader-stage {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: unset;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-reader-section:fullscreen .nl-flipbook-container,
.nl-reader-section:-webkit-full-screen .nl-flipbook-container {
  max-width: calc(100vw - 140px);
  height: calc(100vh - 140px);
}

.nl-reader-section:fullscreen .nl-reader-dock,
.nl-reader-section:-webkit-full-screen .nl-reader-dock {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Thumbnails Drawer / Modal Overlay
   ========================================================================== */
.nl-thumb-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.nl-thumb-drawer.active {
  display: flex;
}

.nl-thumb-modal {
  background: #1c1817;
  color: #fff;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
}

.nl-thumb-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nl-thumb-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nl-thumb-header h4 i {
  color: var(--nl-accent);
}

.nl-thumb-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nl-thumb-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nl-thumb-grid {
  padding: 1.5rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}

.nl-thumb-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease;
}

.nl-thumb-item:hover {
  transform: translateY(-4px);
}

.nl-thumb-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  border-radius: 4px;
  overflow: hidden;
  background: #2a2422;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nl-thumb-item:hover .nl-thumb-img-wrap {
  border-color: var(--nl-accent);
  box-shadow: 0 8px 18px rgba(212, 160, 23, 0.35);
}

.nl-thumb-item.active .nl-thumb-img-wrap {
  border-color: var(--nl-brand);
  box-shadow: 0 0 0 3px rgba(122, 0, 25, 0.5);
}

.nl-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nl-thumb-label {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   Newsletter Archive Section
   ========================================================================== */
.nl-archive-section {
  background: #fbf9f4;
  padding: 4.5rem 0 5rem;
  position: relative;
}

.nl-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto 3rem;
  width: 100%;
}

.nl-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.nl-ornament-line {
  height: 1.5px;
  width: 50px;
  background: linear-gradient(90deg, transparent, var(--nl-accent));
}

.nl-ornament-line.right {
  background: linear-gradient(90deg, var(--nl-accent), transparent);
}

.nl-ornament-icon {
  color: var(--nl-accent);
  font-size: 1.1rem;
}

.nl-section-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--nl-brand-dark);
  margin-bottom: 0.65rem;
  text-align: center;
  width: 100%;
}

.nl-section-subtitle {
  font-size: 1.05rem;
  color: var(--nl-text-muted);
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.55;
  width: auto;
}

@media (max-width: 991px) {
  .nl-section-subtitle {
    white-space: normal;
    font-size: 0.95rem;
    max-width: 680px;
  }
}

/* Filter pills */
.nl-archive-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.nl-filter-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nl-filter-btn:hover {
  background: #f8fafc;
  color: var(--nl-brand);
  border-color: rgba(122, 0, 25, 0.3);
}

.nl-filter-btn.active {
  background: var(--nl-brand);
  color: #fff;
  border-color: var(--nl-brand);
  box-shadow: 0 4px 12px rgba(122, 0, 25, 0.25);
}

.nl-archive-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nl-archive-notice {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--nl-text-muted);
  background: rgba(212, 160, 23, 0.08);
  border: 1px dashed rgba(212, 160, 23, 0.45);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   High-Res Zoom Lightbox
   ========================================================================== */
.nl-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 8, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nl-zoom-modal.active {
  display: flex;
}

.nl-zoom-header {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.nl-zoom-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.nl-zoom-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nl-zoom-close:hover {
  background: var(--nl-brand);
  border-color: var(--nl-accent);
}

.nl-zoom-body {
  max-width: 94vw;
  max-height: 88vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.nl-zoom-body img {
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  display: block;
  image-rendering: high-quality;
}

.nl-card {
  background: #ffffff;
  flex: 0 0 280px;
  width: 280px;
  max-width: 100%;
  margin: 0;
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.nl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(122, 0, 25, 0.12);
  border-color: rgba(122, 0, 25, 0.4);
}

/* Current Edition highlighted border */
.nl-card.is-current {
  border: 1.5px solid var(--nl-accent);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.18);
  background: linear-gradient(to bottom, #fffdfa, #ffffff);
}

/* Card Cover Preview */
.nl-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414; /* True A4 aspect ratio */
  border-radius: 6px;
  overflow: hidden;
  background: #f1ede4;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.nl-card-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Full uncropped cover */
  background: #ffffff;
  display: block;
  transition: transform 0.4s ease;
}

.nl-card:hover .nl-card-cover-wrap img {
  transform: scale(1.03);
}

/* Spine shadow on card cover */
.nl-card-cover-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(255,255,255,0.15) 25%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Badge on cover */
.nl-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--nl-brand-dark);
  color: var(--nl-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 3;
}

.nl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.nl-card-edition {
  font-size: 0.85rem;
  color: var(--nl-text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.nl-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.nl-card-theme {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 1.15rem;
  flex: 1;
}

/* Card Action Buttons */
.nl-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-card-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--nl-brand);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-card-read:hover {
  background: var(--nl-brand-dark);
  transform: translateY(-1px);
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #f8fafc;
  color: #334155 !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-card-download:hover {
  background: #f1f5f9;
  border-color: rgba(122, 0, 25, 0.3);
  color: var(--nl-brand) !important;
}

/* ==========================================================================
   Editorial About Section
   ========================================================================== */
.nl-about-section {
  background: #ffffff;
  border-top: 1px solid rgba(212, 160, 23, 0.2);
  padding: 4.5rem 0 4rem;
}

.nl-about-card {
  background: linear-gradient(135deg, #fdfbf7, #f7f2ea);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 16px;
  padding: 2.75rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.nl-about-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.12), transparent 70%);
  pointer-events: none;
}

.nl-about-tagline {
  letter-spacing: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nl-accent-dark);
  margin-bottom: 0.75rem;
}

.nl-about-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--nl-brand-dark);
  margin-bottom: 1.25rem;
}

.nl-about-text {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

/* Tablet (Large & Medium) */
@media (max-width: 1199.98px) {
  .nl-hero-title-accent {
  display: inline-block;
  white-space: nowrap;
}

.nl-hero-title {
    font-size: 2.45rem;
  }

  .nl-flipbook-container {
    height: 620px;
  }
}

@media (max-width: 991.98px) {
  .nl-hero {
    padding: 2.5rem 0 2rem;
  }
  .nl-hero-title-accent {
  display: inline-block;
  white-space: nowrap;
}

.nl-hero-title {
    font-size: 2.15rem;
  }
  .nl-hero-book-wrap {
    margin-top: 2rem;
  }
  .nl-3d-book {
    width: 240px;
    height: 340px;
    transform: rotateY(-12deg) rotateX(4deg);
  }

  .nl-flipbook-container {
    height: 520px;
  }
}

/* ==========================================================================
   MOBILE SCREEN RESPONSIVE PERFECTION (Smartphones < 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 1. Hero Mobile Tuning */
  .nl-hero {
    padding: 1.75rem 0 1.5rem;
    text-align: center;
  }
  .nl-hero-watermark {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 10px;
    width: 95%;
    max-width: 400px;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 30%, transparent 95%);
    mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 30%, transparent 95%);
  }
  .nl-hero-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.85rem;
  }
  .nl-hero-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem);
    line-height: 1.22;
    margin-bottom: 0.75rem;
  }
  .nl-hero-title-accent {
    display: inline-block;
    white-space: nowrap;
  }
  .nl-hero-subtitle {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto 0.85rem;
    text-align: center;
    white-space: nowrap;
  }
  .nl-hero-subtitle .sub-lead,
  .nl-hero-subtitle .sub-vol {
    white-space: nowrap;
  }
  .nl-hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 auto 1.25rem;
    padding: 0 0.5rem;
  }
  .nl-hero-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem 0.6rem !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 1.35rem !important;
    padding: 0 !important;
  }
  .nl-hero-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(212, 160, 23, 0.45) !important;
    border-radius: 8px !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }
  .nl-hero-pill i {
    color: var(--nl-brand, #800000) !important;
    font-size: 0.95rem !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }
  .nl-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1.35rem;
    gap: 0.5rem;
  }
  .btn-nl-primary {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.94rem;
    border-radius: 8px;
    font-weight: 700;
  }
  .btn-nl-secondary, .btn-nl-fullscreen {
    width: 100%;
    justify-content: center;
    padding: 0.58rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  .btn-nl-secondary .badge-size {
    font-size: 0.68rem;
    padding: 1px 4px;
    margin-left: 2px;
  }
  .nl-hero-book-wrap {
    margin-top: 1rem;
  }
  .nl-3d-book {
    width: 200px;
    height: 285px;
    margin: 0 auto;
    transform: none; /* Flat crisp card on mobile */
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }
  .nl-3d-book::after { display: none; }

  /* 2. Reader Stage & Single-Page Flipbook */
  .nl-reader-section {
    padding: 1.25rem 0 1.75rem;
  }
  .nl-reader-header {
    text-align: center;
    margin-bottom: 0.75rem;
  }
  .nl-reader-header h3 {
    font-size: 1.15rem;
  }
  .nl-reader-stage {
    padding: 0.25rem 0;
    min-height: unset;
    position: relative;
    overflow: hidden;
  }
  .nl-flipbook-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nl-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* Subtle floating navigation arrows */
  .nl-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    background: rgba(26, 21, 20, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 15;
  }
  .nl-nav-arrow.prev { left: 4px; }
  .nl-nav-arrow.next { right: 4px; }

  /* 3. Bottom Seek Line Control Dock: Two-Tier Mobile Layout */
  .nl-reader-dock {
    border-radius: 16px;
    padding: 0.65rem 0.85rem;
    margin: 0.85rem auto 0;
    width: calc(100% - 1rem);
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nl-reader-dock .dock-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nl-reader-dock .dock-group:first-child {
    display: none; /* Merged into bottom control bar */
  }
  .nl-reader-dock .dock-group:nth-child(2) {
    /* Top row of dock: slider & page text */
    gap: 0.75rem;
  }
  .dock-slider {
    flex: 1;
    width: 100%;
    min-width: 120px;
    height: 6px;
  }
  .dock-page-info {
    font-size: 0.82rem;
    white-space: nowrap;
    min-width: 95px;
    text-align: right;
  }
  .nl-reader-dock .dock-group:last-child {
    /* Bottom row of dock: clean, touch-friendly icon buttons */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.45rem;
    margin-top: 0.25rem;
    justify-content: space-between;
  }
  .nl-reader-section.theme-light .nl-reader-dock .dock-group:last-child {
    border-top-color: rgba(0, 0, 0, 0.08);
  }
  .dock-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 4. Archive on Mobile */
  .nl-archive-section {
    padding: 2.5rem 0;
  }
  .nl-section-title {
    font-size: 1.65rem;
  }
  .nl-section-subtitle {
    white-space: normal !important;
    font-size: 0.92rem;
    padding: 0 0.5rem;
  }
  .nl-archive-filters {
    margin-bottom: 1.75rem;
  }
  .nl-archive-grid {
    padding: 0 0.75rem;
  }
  .nl-card {
    flex: 0 1 280px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* 5. About Section on Mobile */
  .nl-about-section {
    padding: 2.5rem 0;
  }
  .nl-about-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .nl-about-title {
    font-size: 1.5rem;
  }
  .nl-about-text {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* 6. Modals on Mobile */
  .nl-thumb-modal {
    width: 95vw;
    max-height: 85vh;
    padding: 1rem 0.75rem;
  }
  .nl-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

