.epaper_page {
  min-height: calc(100vh - 80px);
  padding: 30px 16px 56px;
  background:
    linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px) 0 0 / 45px 45px,
    linear-gradient(0deg, var(--theme-grid-line) 1px, transparent 1px) 0 0 / 45px 45px,
    linear-gradient(180deg, var(--theme-page), var(--theme-page-gradient-end));
  color: var(--theme-ink);
}

.epaper_hero,
.epaper_panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.epaper_hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-hero-gradient);
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  position: relative;
}

.epaper_hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--theme-news-lines);
  pointer-events: none;
}

.epaper_hero_text,
.epaper_hero_art {
  position: relative;
  z-index: 1;
}

.epaper_eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: var(--theme-radius);
  background: var(--theme-primary);
  color: var(--theme-on-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.epaper_hero h1 {
  margin: 0;
  color: var(--theme-on-dark);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.epaper_hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--theme-muted-on-dark);
  font-size: 18px;
  line-height: 1.6;
}

.epaper_hero_art {
  display: flex;
  justify-content: center;
}

.epaper_hero_art img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}

.epaper_panel {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.epaper_info_card,
.epaper_preview_card {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-surface);
  box-shadow: var(--theme-card-shadow);
}

.epaper_info_card {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.epaper_info_header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--theme-border);
}

.epaper_info_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--theme-radius);
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary-border);
  font-size: 22px;
}

.epaper_info_header h2,
.epaper_preview_header h2 {
  margin: 0;
  color: var(--theme-ink);
  font-size: 24px;
  font-weight: 900;
}

.epaper_info_header p {
  margin: 3px 0 0;
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 700;
}

.epaper_meta {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.epaper_meta_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-page);
}

.epaper_meta_item span {
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 800;
}

.epaper_meta_item strong {
  color: var(--theme-ink);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.dnld_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: var(--theme-radius);
  background: var(--theme-primary);
  color: var(--theme-on-dark);
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  box-shadow: var(--theme-primary-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dnld_btn:hover {
  background: var(--theme-primary-dark);
  color: var(--theme-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--theme-primary-shadow-strong);
}

.epaper_preview_card {
  padding: 22px;
}

.epaper_preview_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.epaper_preview_header span {
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.epaper_preview_header i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--theme-radius);
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary-border);
}

.images_flex {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border-radius: var(--theme-radius);
  background: var(--theme-page);
  border: 1px solid var(--theme-border);
}

#carouselExampleControls {
  width: min(420px, 100%);
}

#carouselExampleControls .carousel-inner {
  border-radius: var(--theme-radius);
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

#carouselExampleControls .carousel-item {
  height: 610px;
  position: relative;
}

#carouselExampleControls .carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--theme-primary);
  opacity: 1;
  box-shadow: var(--theme-primary-shadow);
}

#carouselExampleControls .carousel-control-prev {
  left: -16px;
}

#carouselExampleControls .carousel-control-next {
  right: -16px;
}

#carouselExampleControls .carousel-control-prev:hover,
#carouselExampleControls .carousel-control-next:hover {
  background: var(--theme-primary-dark);
}

#carouselExampleControls .carousel-control-prev-icon,
#carouselExampleControls .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 991px) {
  .epaper_panel {
    grid-template-columns: 1fr;
  }

  .epaper_info_card {
    position: static;
  }
}

@media (max-width: 700px) {
  .epaper_page {
    padding: 20px 12px 38px;
  }

  .epaper_hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .epaper_hero_art {
    display: none;
  }

  .epaper_hero p {
    font-size: 16px;
  }

  .epaper_info_card,
  .epaper_preview_card {
    padding: 16px;
  }

  .epaper_meta_item {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .epaper_meta_item strong {
    text-align: left;
  }

  .images_flex {
    padding: 10px;
  }

  #carouselExampleControls .carousel-item {
    height: 520px;
  }

  #carouselExampleControls .carousel-control-prev {
    left: 8px;
  }

  #carouselExampleControls .carousel-control-next {
    right: 8px;
  }
}
