/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}

body.has-bg-scroller {
  background: transparent;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  background-image: 
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), 
    url('../images/1000089462.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #ddd;
}

header img.logo {
  height: 90px;
  vertical-align: middle;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
  color: #f3f4f6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

/* Header specific for article pages */
header.article-header {
  text-align: center;
  padding: 2.2rem 1rem;
  color: white;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), 
    url('../images/1000089462.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #ddd;
}

header.article-header img.logo {
  height: 80px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

header.article-header h1 {
  font-size: 1.8rem;
  color: white;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Navigation */
nav {
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: white;
  padding: 0.5rem 1rem;
  margin: 0;
  border-radius: 4px;
  display: inline-flex;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
  background-color: #f0f0f0;
  border-radius: 4px;
  color: #a67c00;
}

/* ----- HERO SECTION (Editorial) ----- */
.hero {
  background: linear-gradient(to bottom, #fff6e5, #ffffff);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  max-width: 2000px;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero h2 {
  font-size: 2.2rem;
  color: #2e2e2e;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  max-width: 1890px;
  margin: 0.8rem auto;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  text-align: justify;
}

/* Main Content */
main {
  max-width: 1300px;
  margin: auto;
  padding: 2rem;
}

/* ----- ARTICLE GRID ----- */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0 3rem;
  max-width: 1300px;
  margin: auto;
}

.articles a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.articles article {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.articles article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.articles img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.articles article:hover img {
  transform: scale(1.05);
}

.articles h3 {
  font-size: 1.4rem;
  margin: 1rem 1rem 0.5rem;
  color: #2e2e2e;
}

.article-card-meta {
  margin: 0 1rem 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

.article-card-meta .batch-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

.articles p.article-summary {
  margin: 0 1rem 1.5rem;
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
}

/* ----- SINGLE ARTICLE VIEW ----- */
.article-container {
  max-width: 900px;
  margin: auto;
  padding: 3rem 2rem;
  line-height: 1.8;
}

.article-container h2 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #2e2e2e;
}

.article-meta {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-meta .batch-tag {
  background: #e2e8f0;
  color: #334155;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
}

.article-container img.featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-container .article-body {
  margin-top: 1.5rem;
}

.article-container .article-body p {
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1.05rem;
  text-align: justify;
}

.article-container .article-body h3 {
  font-size: 1.4rem;
  color: #2e2e2e;
  margin: 1.75rem 0 0.75rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: #a67c00;
  font-weight: bold;
  transition: color 0.3s;
}

.back-link:hover {
  color: #704c00;
}

/* ----- FOOTER ----- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #f9f9f9;
  color: #777;
  font-size: 0.95rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

/* ----- COMIC & GRAPHIC NOVEL STYLES ----- */
.comic-main-container,
.about-main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.comic-text-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #d4af37;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.comic-text-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.comic-text-content p {
  margin-bottom: 0.8rem;
}

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

.comic-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  margin: 2rem 0;
}

.comic-empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.comic-empty-state h3 {
  font-size: 1.6rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.comic-empty-state p {
  color: #64748b;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.btn-comic-action {
  display: inline-block;
  background: #1e293b;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-comic-action:hover {
  background: #0f172a;
}

/* Sequential Comic Stream Layout (One image per row) */
.comic-stream {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  width: 100%;
}

.comic-panel-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comic-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comic-panel-num {
  background: #1e293b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  font-family: sans-serif;
}

.comic-panel-title {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 600;
  margin: 0;
}

.comic-image-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.comic-image-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.11);
}

.comic-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ----- ABOUT US, BTS VIDEO & CONTRIBUTORS STYLES ----- */
.about-section {
  margin-bottom: 3.5rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-title-wrap h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: #d4af37;
  margin: 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.about-rich-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2rem;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.about-rich-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.about-rich-content p:last-child {
  margin-bottom: 0;
}

/* Behind The Scenes Video Section */
.bts-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.03);
}

.bts-description {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.video-player-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.btn-video-watch {
  display: inline-block;
  background: #e11d48;
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

.btn-video-watch:hover {
  background: #be123c;
  transform: translateY(-2px);
}

/* Contributors Grid */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contributor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contributor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.card-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributor-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.contributor-name {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.contributor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.role-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid #bae6fd;
}

.contributor-bio {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }
  .hero h2 {
    font-size: 1.75rem;
  }
  .articles {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  nav ul {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  .book-perspective-area {
    padding: 1rem 0.5rem;
  }
  .book-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .book-nav-arrow.arrow-left {
    left: 0.25rem;
  }
  .book-nav-arrow.arrow-right {
    right: 0.25rem;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: center;
  }
  .toolbar-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ============================================================
   FULL-BODY BACKGROUND SCROLLER & ATMOSPHERIC OVERLAYS
   ============================================================ */
.bg-scroller,
.bg-overlay {
  pointer-events: none;
  user-select: none;
}

.bg-scroller {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  filter: brightness(0.65) saturate(0.9);
}

.bg-slide.active {
  opacity: 1;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

.bg-overlay-warm_amber {
  background: linear-gradient(
    to bottom,
    rgba(24, 18, 12, 0.30) 0%,
    rgba(38, 26, 15, 0.45) 45%,
    rgba(255, 248, 238, 0.65) 85%,
    rgba(255, 248, 238, 0.85) 100%
  );
}

.bg-overlay-dark_atmospheric {
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 25, 0.45) 0%,
    rgba(10, 15, 25, 0.60) 45%,
    rgba(15, 23, 42, 0.78) 85%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.bg-overlay-deep_teal {
  background: linear-gradient(
    to bottom,
    rgba(15, 35, 40, 0.35) 0%,
    rgba(20, 50, 55, 0.50) 45%,
    rgba(240, 248, 250, 0.65) 85%,
    rgba(240, 248, 250, 0.85) 100%
  );
}

.bg-overlay-glass_minimal {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0.75) 100%
  );
}

