:root{
  --green:#6d8c2c;
  --green-dark:#4f6a1f;
  --green-light:#8fae46;
  --gold:#cfa52d;
  --white:#ffffff;
  --text:#26311c;
  --muted:#6a7461;
  --line:#dfe7d4;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family:"Noto Sans Devanagari", sans-serif;
  background:linear-gradient(180deg,#f8faf5 0%, #eef3e8 100%);
  color:var(--text);
}

img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }

.container { width:min(1120px, calc(100% - 32px)); margin:auto; }
.section { padding:34px 0; }

.card {
  background:var(--white);
  border:1px solid rgba(109,140,44,.14);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.topbar { position:sticky; top:0; z-index:100; background:#ffffff; border-bottom:3px solid var(--green); box-shadow:0 2px 10px rgba(0,0,0,.04); }
.nav-wrap { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px; position:relative; }
.brand img { width:180px; height:auto; }

.site-nav { display:flex; align-items:center; gap:10px; }
.site-nav a {
  padding:10px 14px;
  border-radius:999px;
  color:var(--green-dark);
  font-weight:700;
  font-size:15px;
  transition:.2s ease;
}
.site-nav a:hover, .site-nav a.active { background:rgba(109,140,44,.14); color:var(--green-dark); }

.menu-toggle { display:none; width:46px; height:42px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; padding:8px; }
.menu-toggle span { display:block; width:100%; height:2px; background:var(--green-dark); margin:5px 0; }

/* HERO - EXACTLY YOUR ORIGINAL (Image 2) */
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:center; }
.hero-copy { padding:34px; }
.hero-copy h1 { font-size:clamp(2rem, 4vw, 3rem); color:var(--green-dark); margin-bottom:10px; line-height:1.1; }
.hero-copy h2 { font-size:clamp(1.2rem, 2.8vw, 1.8rem); margin-bottom:20px; color:#31411b; }
.quick-read { display:inline-flex; align-items:center; gap:12px; padding:12px 16px; background:linear-gradient(135deg, rgba(109,140,44,.18), rgba(207,165,45,.25)); border-radius:14px; margin-bottom:22px; }
.quick-read img { width:34px; height:34px; }
.quick-read a { font-weight:800; color:var(--green-dark); }
.edition-links { display:grid; gap:10px; }
.edition-links a { padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fbfcfa; color:var(--green-dark); font-weight:700; transition:.2s ease; }
.edition-links a:hover { transform:translateY(-2px); border-color:rgba(109,140,44,.35); background:#ffffff; }
.hero-cover { padding:18px; }
.hero-cover img { border-radius:14px; width:100%; }

/* INFO SECTION */
.info-section { background:linear-gradient(180deg, rgba(109,140,44,.06), rgba(207,165,45,.10)); }
.info-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:20px; }
.info-card { padding:22px; }
.info-title { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.info-title img { width:36px; height:36px; }
.info-title h3 { color:var(--green-dark); }
.info-card p { line-height:1.8; }

/* READER - FIXED & SHARP */
.reader-shell { padding:20px; }

.book-viewer {
  background:linear-gradient(180deg,#eef3e7,#e4ecd9);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
  min-height:65vh;
  overflow:auto;
  max-width:100%;
  min-height: 70vh;  
  max-height: 85vh;  
  overflow-y: auto;  
  overflow-x: hidden;
}

.page-sheet {
  background:#fff;
  border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.15);
  padding:12px;
  max-width:none;
  width:auto;
  min-width:320px;
  max-height: none;   
  overflow: visible;  
  margin-bottom: 20px;
}
.page-sheet.single { max-width:70vw; }
.page-sheet.dual { max-width:48vw; }

.page-sheet canvas {
  max-height: none !important;
  height: auto !important;     
  display:block;
  width:100% !important;
  height:auto !important;
  image-rendering:crisp-edges;
}

.right-sheet.hidden { display:none; }

/* Bottom Controls */
.reader-controls {
  margin-top:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  background:var(--white);
  padding:16px 24px;
  border-radius:16px;
  box-shadow:0 8px 25px rgba(0,0,0,.06);
  border:1px solid var(--line);
}

.zoom-group {
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(109,140,44,.08);
  padding:6px 12px;
  border-radius:999px;
}

.zoom-level { min-width:70px; text-align:center; font-weight:800; color:var(--green-dark); font-size:1.1rem; }

.btn {
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition:all .2s ease;
}
.btn-primary { background:linear-gradient(180deg,#6d8c2c,#4f6a1f); color:#fff; }
.btn-secondary { background:#fff; color:var(--green-dark); border:1px solid var(--line); }

.page-indicator { min-width:110px; text-align:center; font-weight:800; color:var(--green-dark); font-size:1.1rem; }

.reader-footer { margin-top:20px; display:flex; justify-content:center; align-items: center; }
.pdf-loading { margin-top:14px; text-align:center; color:var(--muted); font-weight:600; }
.reader-footer a.btn.btn-primary {
  min-width: 220px;                /* wider button */
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(109,140,44,0.3);
  transition: all 0.25s ease;
  text-align: center;
}
.reader-footer a.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109,140,44,0.4);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(109,140,44,0.3);
  border-top: 3px solid var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.reader-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);   /* responsive size */
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

/* Underline / decorative line effect */
.reader-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green), var(--green-light), var(--green), transparent);
  border-radius: 4px;
}

.reader-title {
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* rest of the styles remain the same */
}

/* Optional: subtle shadow + hover animation */
.reader-title:hover {
  color: var(--green);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/* Make the paragraph more readable and elegant */
.section-head.center p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}


/* New line */
.section-head.center .reader-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #4f6a1f !important;                /* var(--green-dark) */
  margin: 0 auto 16px auto !important;
  letter-spacing: -0.4px;
  line-height: 1.15;
  text-align: center;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* Attractive gradient underline */
.section-head.center .reader-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #6d8c2c, #8fae46, #6d8c2c, transparent);
  border-radius: 5px;
}

/* Optional: subtle glow/shadow on hover */
.section-head.center .reader-title:hover {
  color: #6d8c2c !important;
  text-shadow: 0 2px 8px rgba(109,140,44,0.4);
  transform: translateY(-3px);
  transition: all 0.35s ease;
}

/* Improve paragraph too */
.section-head.center p {
  font-size: 1.1rem !important;
  color: #6a7461 !important;               /* var(--muted) */
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 500;
}

.section-head.center .reader-title {
  background: linear-gradient(90deg, #4f6a1f, #6d8c2c, #8fae46);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* keep the rest the same */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width:980px) {
  .hero-grid, .info-grid { grid-template-columns:1fr; }
}
@media (max-width:900px) {
  .book-viewer { flex-direction:column; gap:20px; }
  .page-sheet.single, .page-sheet.dual { max-width:90vw; }
}
@media (max-width:760px) {
  .menu-toggle { display:block; }
  .site-nav { display:none; position:absolute; left:16px; right:16px; top:76px; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:16px; padding:10px; box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }
}