/* ============================================
   DNYAN SETU — Digital Library
   COMPLETE FINAL CSS — v5 PRODUCTION
   Palette: Navy #1B2A56, Orange #F5851F, Gold #FBB04F,
            Off-white #F7F6F2, White #FFFFFF
============================================ */

:root{
  --navy: #1B2A56;
  --navy-soft: #34467A;
  --orange: #F5851F;
  --gold: #FBB04F;
  --cream: #F7F6F2;
  --white: #FFFFFF;
  --ink: #1C1F2A;
  --muted: #6B7280;
  --border: rgba(27,42,86,0.10);
  --shadow: 0 12px 32px rgba(27,42,86,0.10);
  --shadow-hover: 0 20px 48px rgba(27,42,86,0.18);
  --radius: 16px;
  --display: 'Tiro Devanagari Marathi', serif;
  --body: 'Poppins', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Consistent section spacing */
  --section-pad: 88px;
  --section-pad-sm: 56px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height:1.6;
  overflow-x:hidden;
}

.container{
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }

:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Pixel canvas background ===== */
#pixelCanvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 22px;
  border-radius:999px;
  font-weight:600;
  font-size:0.92rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn.lg{ padding:14px 30px; font-size:1rem; }
.btn-primary{
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color:#fff;
  box-shadow: 0 8px 20px rgba(245,133,31,0.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,133,31,0.45); }
.btn-outline{
  background:transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover{ background: var(--navy); color:#fff; transform: translateY(-2px); }
.btn-ghost{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color:#fff;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-mini{
  display:block;
  text-align:center;
  width:100%;
  padding:8px 0;
  border-radius:10px;
  background: var(--navy);
  color:#fff;
  font-size:0.82rem;
  font-weight:600;
  margin-top:10px;
  transition: background .25s ease, transform .25s ease;
}
.btn-mini:hover{ background: var(--orange); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled{
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(27,42,86,0.06);
}

.site-header:not(.scrolled) .main-nav a{ color:#fff; }
.site-header:not(.scrolled) .main-nav a:hover,
.site-header:not(.scrolled) .main-nav a.active{ color: var(--gold); }
.site-header:not(.scrolled) .icon-btn{ border-color: rgba(255,255,255,0.4); }
.site-header:not(.scrolled) .icon-btn svg{ stroke:#fff; }
.site-header:not(.scrolled) .btn-outline{ border-color:#fff; color:#fff; }
.site-header:not(.scrolled) .btn-outline:hover{ background:#fff; color:var(--navy); }
.site-header:not(.scrolled) .nav-toggle span{ background:#fff; }
.site-header:not(.scrolled) .brand-logo{ filter: brightness(0) invert(1); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:88px;
}

.brand-logo{ height:80px; width:auto; }

.main-nav{
  display:flex;
  gap:26px;
  font-weight:500;
  font-size:0.92rem;
}
.main-nav a{
  position:relative;
  padding:6px 2px;
  color: var(--navy);
  transition: color .2s ease;
}
.main-nav a::after{
  content:'';
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:2px;
  background: var(--orange);
  transition: width .25s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--orange); }
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.icon-btn{
  width:40px; height:40px;
  border-radius:50%;
  border:1.5px solid var(--border);
  background:transparent;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn svg{ width:18px; height:18px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; }
.icon-btn:hover{ background: var(--navy); border-color: var(--navy); transform: scale(1.05); }
.icon-btn:hover svg{ stroke:#fff; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px; height:40px;
  background:transparent;
  border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:22px; height:2px;
  background: var(--navy);
  border-radius:2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; transform:scaleX(0); }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Search panel */
.search-panel{
  max-height:0;
  overflow:hidden;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: max-height .35s ease, border-color .35s ease;
}
.search-panel.open{ max-height:100px; border-bottom-color: var(--border); }
.search-form{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 0;
}
.search-form svg{ width:20px; height:20px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; flex-shrink:0; }
.search-form input{
  flex:1;
  border:none;
  outline:none;
  font-size:1.05rem;
  font-family:var(--body);
  background:transparent;
  color:var(--ink);
}
.search-form button{
  padding:10px 22px;
  border-radius:999px;
  border:none;
  background: var(--navy);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition: background .2s ease;
}
.search-form button:hover{ background: var(--orange); }

/* ===== Eyebrow ===== */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color: var(--orange);
  font-weight:600;
  margin-bottom:18px;
}
.eyebrow.light{ color: var(--gold); }
.eyebrow::before{
  content:'';
  width:28px; height:2px;
  background: var(--orange);
  display:inline-block;
}
.eyebrow.light::before{ background: var(--gold); }

/* ===== Scroll cue ===== */
.scroll-cue{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-family:var(--mono);
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  text-align:center;
}
.scroll-cue svg{ width:18px; height:18px; fill:none; stroke:var(--orange); stroke-width:2; stroke-linecap:round; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(6px); } }
@keyframes floatY{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ===================================================
   HERO SLIDER
=================================================== */
.hero-slider{
  position:relative;
  width:100%;
  height:100vh;
  height:100svh;
  min-height:680px;
  overflow:hidden;
}

.slides{ position:relative; width:100%; height:100%; }

.slide{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  background-size:cover;
  background-position:center;
  opacity:0;
  visibility:hidden;
  transition: opacity 1.1s ease;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.slide.active{ opacity:1; visibility:visible; }

.slide-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(100deg, rgba(27,42,86,0.82) 0%, rgba(27,42,86,0.55) 45%, rgba(27,42,86,0.25) 100%);
}

.slide-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:720px;
  padding-top: 150px;
  padding-bottom: 100px;
  overflow: visible;
}

.slide-content h1{
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.35;
  color:#fff;
  font-weight:400;
  margin-bottom:22px;
  padding-top: 14px;
  overflow: visible;
}
.slide-content .accent{
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip:text;
  color:transparent;
}
.slide-content .eyebrow{ color: var(--gold); }
.slide-content .eyebrow::before{ background: var(--gold); }
.slide-content .hero-sub{ color: rgba(255,255,255,0.86); max-width:520px; margin-bottom:32px; }

/* Slide animations */
.slide-anim{
  opacity:0;
  transform: translateY(34px);
}
.slide.active .slide-anim{
  animation: slideUpIn .85s cubic-bezier(.22,.8,.32,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes slideUpIn{ to{ opacity:1; transform:translateY(0); } }

/* Hero search bar */
.hero-search{
  display:flex;
  align-items:center;
  gap:12px;
  background: rgba(255,255,255,0.96);
  border:1.5px solid transparent;
  border-radius:999px;
  padding:8px 8px 8px 22px;
  box-shadow: var(--shadow);
  max-width:520px;
  margin-bottom:36px;
  transition: box-shadow .25s ease;
}
.hero-search:hover, .hero-search:focus-within{ box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.hero-search svg{ width:20px; height:20px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; flex-shrink:0; }
.hero-search input{ flex:1; border:none; outline:none; font-size:0.98rem; font-family:var(--body); background:transparent; }
.hero-search button{
  padding:12px 26px;
  border:none;
  border-radius:999px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-search button:hover{ transform: translateY(-1px); box-shadow:0 8px 18px rgba(245,133,31,0.4); }

/* Hero stats */
.hero-stats{
  display:grid;
  grid-template-columns: repeat(4, auto);
  gap:34px;
}
.stat{ display:flex; flex-direction:column; }
.stat-num{
  font-family: var(--mono);
  font-size:1.7rem;
  font-weight:700;
  color:#fff;
}
.stat-label{
  font-size:0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top:4px;
}

/* Slider controls */
.slider-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:3;
  width:48px; height:48px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.35);
  background: rgba(27,42,86,0.35);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.slider-arrow svg{ width:20px; height:20px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.slider-arrow:hover{ background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev{ left:24px; }
.slider-arrow.next{ right:24px; }

.slider-dots{
  position:absolute;
  bottom:36px;
  left:50%;
  transform: translateX(-50%);
  z-index:3;
  display:flex;
  gap:10px;
}
.dot{
  width:10px; height:10px;
  border-radius:50%;
  background: rgba(255,255,255,0.4);
  cursor:pointer;
  transition: background .25s ease, width .25s ease;
}
.dot.active{ background: var(--orange); width:28px; border-radius:6px; }

.hero-slider .scroll-cue{
  position:absolute;
  bottom:10px;
  left:50%;
  transform: translateX(-50%);
  margin-top:0;
  color: rgba(255,255,255,0.8);
  z-index:3;
}
.hero-slider .scroll-cue svg{ stroke: var(--gold); }

/* ===== Marquee ===== */
.marquee{
  background: var(--navy);
  overflow:hidden;
  padding:14px 0;
}
.marquee-track{
  display:flex;
  gap:14px;
  white-space:nowrap;
  font-family: var(--mono);
  font-size:0.85rem;
  letter-spacing:0.04em;
  color: var(--gold);
  animation: marquee 38s linear infinite;
}
.marquee-track span{ flex-shrink:0; }
.marquee-track span:nth-child(2n){ color: rgba(255,255,255,0.55); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ===================================================
   CONSISTENT SECTION SPACING
=================================================== */
.section{
  padding: var(--section-pad) 0;
}

/* ===== Section heads ===== */
.section-head{ max-width:680px; margin-bottom:48px; }
.section-head.row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  max-width:none;
  gap:24px;
  margin-bottom:40px;
}
.section-head h2{
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy);
  font-weight:400;
  line-height:1.3;
}

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible{ opacity:1; transform: translateY(0); }

/* ===================================================
   POPULAR BOOKS SECTION
=================================================== */
.popular-books{
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pop-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:20px;
}

.pop-card{
  position:relative;
  cursor:pointer;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--cream);
  border:1px solid var(--border);
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s cubic-bezier(.22,.8,.32,1);
}

.pop-card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  z-index:2;
}

/* Click ripple / press effect */
.pop-card:active{
  transform: translateY(-2px) scale(0.98);
  transition-duration: .1s;
}

.pop-cover{
  position:relative;
  width:100%;
  aspect-ratio: 3/4;
  overflow:hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  display:flex;
  align-items:stretch;
}

.pop-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .4s ease;
}

.pop-card:hover .pop-cover img{
  transform: scale(1.06);
}

.pop-cover-fallback{
  position:absolute;
  inset:0;
  background: linear-gradient(150deg, var(--fc1), var(--fc2));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  text-align:center;
}

.pop-cover-fallback span{
  font-family: var(--display);
  color:#fff;
  font-size:0.9rem;
  line-height:1.3;
  font-weight:600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pop-info{
  padding:10px 12px 14px;
}

.pop-info h4{
  font-size:0.8rem;
  color: var(--navy);
  font-weight:600;
  margin-bottom:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pop-author{
  font-size:0.72rem;
  color: var(--muted);
}

/* Hover overlay with button */
.pop-hover-overlay{
  position:absolute;
  inset:0;
  background: rgba(27,42,86,0.72);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity .28s ease;
  padding:16px;
  border-radius: var(--radius);
}

.pop-card:hover .pop-hover-overlay{
  opacity:1;
}

.pop-hover-overlay .btn-mini{
  margin-top:0;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border-radius:999px;
  padding:10px 20px;
  font-size:0.82rem;
  color:#fff;
  font-weight:700;
  box-shadow: 0 6px 20px rgba(245,133,31,0.5);
  transform: translateY(8px);
  transition: transform .28s cubic-bezier(.22,.8,.32,1) .04s, background .2s ease;
}

.pop-card:hover .pop-hover-overlay .btn-mini{
  transform: translateY(0);
}

/* ===== Click ripple animation ===== */
.ripple-effect{
  position:absolute;
  border-radius:50%;
  background: rgba(245,133,31,0.28);
  pointer-events:none;
  transform: scale(0);
  animation: rippleAnim .55s ease-out forwards;
  z-index:10;
}
@keyframes rippleAnim{
  to{ transform: scale(4); opacity:0; }
}

/* ===================================================
   LIBRARY SHOWCASE (Our Centre)
=================================================== */
.library-show{
  background: var(--cream);
}

.library-inner{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:60px;
  align-items:center;
}
.library-copy h2{
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy);
  font-weight:400;
  line-height:1.3;
  margin:14px 0 18px;
}
.lib-text{ color: var(--muted); margin-bottom:22px; max-width:480px; }
.lib-points{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:30px;
}
.lib-points li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:0.92rem;
  color: var(--navy);
  font-weight:500;
}
.lib-dot{
  width:10px; height:10px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  flex-shrink:0;
}
.lib-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.library-visual{ position:relative; }
.lib-img-main{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lib-float-badge{
  position:absolute;
  bottom:-20px; left:-20px;
  background: var(--navy);
  color:#fff;
  border-radius:14px;
  padding:16px 22px;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}
.lib-float-badge strong{ display:block; font-size:0.92rem; }
.lib-float-badge span{ font-size:0.76rem; color: var(--gold); }

/* ===================================================
   CATEGORIES
=================================================== */
.categories{
  background: var(--cream);
}

.cat-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
}
.cat-card{
  background: var(--white);
  border-radius: var(--radius);
  padding:28px 24px;
  border:1px solid var(--border);
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s cubic-bezier(.22,.8,.32,1);
}
.cat-card::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0; height:4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.cat-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.cat-card:active{ transform: translateY(-2px) scale(0.98); transition-duration:.1s; }
.cat-icon{ font-size:2.1rem; margin-bottom:14px; display:inline-block; transition: transform .3s ease; }
.cat-card:hover .cat-icon{ transform: scale(1.15) rotate(-6deg); }
.cat-card h3{ font-size:1.05rem; color: var(--navy); margin-bottom:8px; font-weight:600; }
.cat-card p{ font-size:0.86rem; color: var(--muted); margin-bottom:16px; }
.cat-count{
  display:inline-block;
  font-family: var(--mono);
  font-size:0.74rem;
  font-weight:600;
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 10%, transparent);
  padding:5px 12px;
  border-radius:999px;
}

/* ===================================================
   FEATURED BOOKS CAROUSEL
=================================================== */
.featured{
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.carousel-controls{ display:flex; gap:10px; flex-shrink:0; }
.carousel-btn{
  width:42px; height:42px;
  border-radius:50%;
  border:1.5px solid var(--border);
  background: var(--white);
  font-size:1.1rem;
  color: var(--navy);
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.carousel-btn:hover{ background: var(--navy); color:#fff; border-color: var(--navy); transform: scale(1.05); }

.book-carousel{
  display:flex;
  gap:22px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  padding-bottom:10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.book-carousel::-webkit-scrollbar{ height:6px; }
.book-carousel::-webkit-scrollbar-thumb{ background: var(--gold); border-radius:6px; }

.book-card{
  flex: 0 0 220px;
  scroll-snap-align:start;
  background: var(--white);
  border-radius: var(--radius);
  border:1px solid var(--border);
  padding:16px;
  cursor:pointer;
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s cubic-bezier(.22,.8,.32,1);
}
.book-card:hover{ transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.book-card:active{ transform: translateY(-3px) scale(0.98); transition-duration:.1s; }

.book-cover{
  position:relative;
  height:200px;
  border-radius:12px;
  background: linear-gradient(150deg, var(--cv1), var(--cv2));
  margin-bottom:14px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  transition: transform .32s ease;
}
.book-card:hover .book-cover{
  transform: scale(1.03);
}
.book-cover::after{
  content:'';
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 26px);
}
.book-badge{
  position:absolute;
  top:10px; left:10px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size:0.66rem;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  z-index:1;
}
.book-title-on-cover{
  position:relative;
  z-index:1;
  font-family: var(--display);
  color:#fff;
  font-size:1.2rem;
  padding:16px;
  line-height:1.15;
}
.book-card h4{ font-size:0.98rem; color: var(--navy); margin-bottom:2px; }
.book-author{ font-size:0.8rem; color: var(--muted); margin-bottom:10px; }
.book-meta{ display:flex; justify-content:space-between; font-size:0.76rem; color: var(--muted); font-family:var(--mono); }

/* ===================================================
   AUTHORS
=================================================== */
.authors{
  background: var(--cream);
}

.author-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
}
.author-card{
  background: var(--white);
  border-radius: var(--radius);
  border:1px solid var(--border);
  padding:26px 20px;
  text-align:center;
  cursor:pointer;
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s cubic-bezier(.22,.8,.32,1);
}
.author-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.author-card:active{ transform: translateY(-2px) scale(0.98); transition-duration:.1s; }
.author-avatar{
  width:64px; height:64px;
  margin:0 auto 14px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display);
  font-size:1.3rem;
  font-weight:700;
  color:#fff;
  background: linear-gradient(135deg, var(--av), color-mix(in srgb, var(--av) 60%, white));
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s ease;
}
.author-card:hover .author-avatar{
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(27,42,86,0.2);
}
.author-card h4{ font-size:0.96rem; color: var(--navy); margin-bottom:4px; }
.author-card span{ font-size:0.78rem; color: var(--muted); display:block; margin-bottom:10px; }
.author-link{ font-size:0.82rem; font-weight:600; color: var(--orange); transition: letter-spacing .25s ease; }
.author-link:hover{ letter-spacing:0.04em; }
.author-cta-row{ text-align:center; margin-top:40px; }

/* ===================================================
   CTA BRIDGE
=================================================== */
.cta-bridge{
  position:relative;
  background: linear-gradient(135deg, var(--navy) 0%, #243869 60%, var(--navy-soft) 100%);
  overflow:hidden;
  padding: var(--section-pad) 0;
}
.cta-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:50px;
  align-items:center;
  position:relative;
  z-index:2;
}
.cta-copy h2{
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color:#fff;
  font-weight:400;
  margin-bottom:16px;
  line-height:1.3;
}
.cta-copy p{ color: rgba(255,255,255,0.72); max-width:480px; margin-bottom:30px; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.cta-visual{ display:flex; justify-content:center; }
.cta-bridge-svg{ width:100%; max-width:480px; height:auto; }
#ctaCable{ stroke-dasharray: 6 8; animation: dashFlow 6s linear infinite; }
@keyframes dashFlow{ to{ stroke-dashoffset: -140; } }

/* ===================================================
   STATS BAND
=================================================== */
.stats-band{
  background: var(--cream);
  padding: var(--section-pad) 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.stats-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:50px;
  align-items:center;
}
.stats-text h2{
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--navy);
  font-weight:400;
  margin:14px 0 18px;
  line-height:1.3;
}
.stats-text p{ color: var(--muted); max-width:520px; }
.stats-band .eyebrow.light{ color: var(--orange); }
.stats-band .eyebrow.light::before{ background: var(--orange); }
.stats-cards{ display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }

.stats-card{
  background: var(--white);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:26px 20px;
  text-align:center;
  cursor:pointer;
  transition: transform .32s cubic-bezier(.22,.8,.32,1), box-shadow .32s ease;
}
.stats-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.stats-card:active{ transform: translateY(-1px) scale(0.98); transition-duration:.1s; }
.stats-card h3{ font-family: var(--mono); font-size:1.9rem; color: var(--orange); font-weight:700; }
.stats-card p{ font-size:0.84rem; color: var(--muted); margin-top:6px; }

/* ===================================================
   NEWSLETTER
=================================================== */
.newsletter{
  background: var(--cream);
}

.newsletter-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  background: var(--white);
  border:1px solid var(--border);
  border-radius: 24px;
  padding:46px 50px;
  flex-wrap:wrap;
}
.newsletter-inner h2{ font-family: var(--display); font-size:1.7rem; color: var(--navy); font-weight:400; margin-bottom:8px; }
.newsletter-inner p{ color: var(--muted); font-size:0.92rem; }
.newsletter-form{ display:flex; gap:10px; flex-wrap:wrap; }
.newsletter-form input{
  border:1.5px solid var(--border);
  border-radius:999px;
  padding:12px 22px;
  font-family: var(--body);
  font-size:0.92rem;
  outline:none;
  min-width:240px;
  transition: border-color .2s ease;
}
.newsletter-form input:focus{ border-color: var(--orange); }

/* ===================================================
   FOOTER
=================================================== */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding:70px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-logo{ height:90px; margin-bottom:16px; filter: brightness(0) invert(1); }
.footer-brand p{ font-size:0.88rem; max-width:280px; line-height:1.7; margin-bottom:18px; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center;
  font-size:0.74rem;
  font-weight:700;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.social-row a:hover{ background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }
.footer-col h4{ color:#fff; font-size:0.9rem; margin-bottom:18px; letter-spacing:0.03em; text-transform:uppercase; }
.footer-col a{ display:block; font-size:0.88rem; margin-bottom:10px; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover{ color: var(--gold); padding-left:4px; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  padding:24px 0;
  font-size:0.8rem;
  flex-wrap:wrap;
  gap:10px;
}

/* ===== Back to top ===== */
.back-to-top{
  position:fixed;
  bottom:28px; right:28px;
  width:48px; height:48px;
  border-radius:50%;
  background: var(--navy);
  border:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  opacity:0; visibility:hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease, visibility .3s ease;
  z-index:90;
  box-shadow: var(--shadow);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background: var(--orange); }
.back-to-top svg{ width:20px; height:20px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ===================================================
   BOOK DETAIL MODAL
=================================================== */
.book-modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  pointer-events:none;
  opacity:0;
  transition: opacity .3s ease;
}
.book-modal.open{
  pointer-events:all;
  opacity:1;
}
.book-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(27,42,86,0.6);
  backdrop-filter: blur(6px);
  cursor:pointer;
}
.book-modal-box{
  position:relative;
  background: var(--white);
  border-radius: 24px;
  padding:40px;
  max-width:460px;
  width:100%;
  box-shadow: 0 32px 80px rgba(27,42,86,0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform .35s cubic-bezier(.22,.8,.32,1);
  z-index:1;
}
.book-modal.open .book-modal-box{
  transform: translateY(0) scale(1);
}
.modal-close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  border-radius:50%;
  border:1.5px solid var(--border);
  background:transparent;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease;
}
.modal-close:hover{ background: var(--navy); border-color: var(--navy); }
.modal-close:hover svg{ stroke:#fff; }
.modal-close svg{ width:16px; height:16px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; }
.modal-cover{
  width:100%;
  height:200px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:24px;
  font-family: var(--display);
  color:#fff;
  font-size:1.4rem;
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
}
.modal-content h3{
  font-family: var(--display);
  font-size:1.4rem;
  color: var(--navy);
  margin-bottom:6px;
}
.modal-content .modal-author{
  font-size:0.88rem;
  color: var(--muted);
  margin-bottom:14px;
}
.modal-content .modal-genre{
  display:inline-block;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange);
  font-size:0.76rem;
  font-weight:600;
  font-family: var(--mono);
  padding:5px 12px;
  border-radius:999px;
  margin-bottom:22px;
}
.modal-actions{ display:flex; gap:12px; }
.modal-actions .btn{ flex:1; justify-content:center; }

/* ===================================================
   TABLET 768px – 1080px
=================================================== */
@media (max-width:1080px){
  .pop-grid{ grid-template-columns: repeat(4, 1fr); }
  .library-inner{ grid-template-columns:1fr; gap:36px; }
  .library-visual{ order:-1; }
  .lib-img-main{ height:320px; }
  .cat-grid{ grid-template-columns: repeat(2, 1fr); gap:18px; }
  .author-grid{ grid-template-columns: repeat(2, 1fr); gap:18px; }
  .cta-inner{ grid-template-columns:1fr; text-align:center; gap:36px; }
  .cta-copy p{ margin-inline:auto; }
  .cta-actions{ justify-content:center; }
  .stats-grid{ grid-template-columns:1fr; gap:40px; }
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:28px; }
}

/* ===================================================
   MOBILE NAV BREAKPOINT ≤ 860px
=================================================== */
@media (max-width:860px){

  :root{
    --section-pad: var(--section-pad-sm);
  }

  .header-inner{ height:68px; }
  .brand-logo{ height:54px; }
  .header-actions .btn-outline{ display:none; }
  .header-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }

  .site-header:not(.scrolled) .nav-toggle span{ background:#fff; }

  .main-nav{
    position:fixed;
    top:68px; left:0; right:0;
    background: var(--white);
    flex-direction:column;
    padding:0 20px;
    gap:0;
    border-bottom:1px solid var(--border);
    max-height:0;
    overflow:hidden;
    transition: max-height .35s ease, padding .35s ease;
    z-index:99;
    box-shadow: 0 10px 30px rgba(27,42,86,0.12);
  }
  .main-nav.open{
    max-height:400px;
    padding:16px 20px;
  }
  .main-nav a{
    color: var(--navy) !important;
    padding:10px 4px;
    border-bottom:1px solid var(--border);
    font-size:0.95rem;
  }
  .main-nav a:last-child{ border-bottom:none; }

  .hero-slider{
    height:100vh;
    height:100svh;
    min-height:600px;
  }
  .slides{ height:100%; }
  .slide{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
  }
  .slide:not(.active){ display:none; }

  .slide-content{
    padding-top:100px;
    padding-bottom:90px;
    max-width:100%;
  }
  .slide-content h1{
    font-size: clamp(1.9rem, 6.5vw, 3rem);
    line-height:1.3;
    margin-bottom:12px;
    padding-top:12px;
  }
  .hero-sub{ font-size:0.9rem; margin-bottom:20px; max-width:100%; }
  .hero-search{ max-width:100%; margin-bottom:22px; }
  .hero-stats{
    grid-template-columns: repeat(2, 1fr);
    gap:14px;
  }
  .stat-num{ font-size:1.3rem; }
  .stat-label{ font-size:0.72rem; }

  .slider-dots{ bottom:30px; }
  .hero-slider .scroll-cue{ display:none; }
  .slider-arrow{ width:40px; height:40px; }
  .slider-arrow.prev{ left:10px; }
  .slider-arrow.next{ right:10px; }

  /* Popular books - 3 cols on tablet */
  .pop-grid{ grid-template-columns: repeat(3, 1fr); gap:14px; }

  .section-head.row{ flex-direction:column; align-items:flex-start; gap:12px; max-width:none; }
  .carousel-controls{ align-self:flex-end; }
  .lib-img-main{ height:260px; }
  .lib-float-badge{ bottom:-14px; left:14px; }
  .newsletter-inner{ flex-direction:column; align-items:flex-start; padding:30px 24px; gap:18px; }
  .newsletter-form{ width:100%; }
  .newsletter-form input{ min-width:0; flex:1; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:26px; padding-bottom:36px; }
  .footer-brand{ grid-column:1 / -1; }
}

/* ===================================================
   SMALL MOBILE ≤ 480px
=================================================== */
@media (max-width:480px){

  :root{ --section-pad: 48px; }

  .container{ padding:0 18px; }

  .header-inner{ height:60px; }
  .brand-logo{ height:46px; }
  .main-nav{ top:60px; }

  .hero-slider{ min-height:560px; }
  .slide-content{
    padding-top: 84px;
    padding-bottom: 80px;
  }
  .slide-content h1{
    font-size: clamp(1.55rem, 7.5vw, 2.2rem);
    line-height:1.28;
    padding-top:10px;
    margin-bottom:10px;
  }
  .eyebrow{ font-size:0.68rem; margin-bottom:8px; }
  .hero-sub{ font-size:0.8rem; margin-bottom:14px; }
  .hero-search{
    padding:5px 5px 5px 12px;
    gap:6px;
    margin-bottom:16px;
  }
  .hero-search svg{ width:15px; height:15px; }
  .hero-search input{ font-size:0.76rem; }
  .hero-search button{ padding:8px 13px; font-size:0.76rem; }
  .hero-stats{ gap:10px; }
  .stat-num{ font-size:1.1rem; }
  .stat-label{ font-size:0.62rem; }
  .slider-dots{ bottom:22px; }
  .slider-arrow{ width:34px; height:34px; }
  .slider-arrow svg{ width:14px; height:14px; }
  .slider-arrow.prev{ left:8px; }
  .slider-arrow.next{ right:8px; }

  /* Popular books - 2 cols on mobile */
  .pop-grid{ grid-template-columns: repeat(2, 1fr); gap:12px; }
  .pop-info h4{ font-size:0.72rem; }
  .pop-author{ font-size:0.64rem; }

  .section-head{ margin-bottom:24px; }
  .section-head h2{ font-size:clamp(1.4rem, 5vw, 1.8rem); }

  .lib-img-main{ height:200px; border-radius:12px; }
  .lib-float-badge{ bottom:-10px; left:10px; padding:10px 14px; border-radius:10px; }
  .lib-float-badge strong{ font-size:0.76rem; }
  .lib-float-badge span{ font-size:0.68rem; }
  .lib-actions{ flex-direction:column; }
  .lib-actions .btn{ justify-content:center; }

  .marquee-track{ font-size:0.74rem; gap:10px; }

  .cat-grid{ grid-template-columns:1fr; gap:10px; }
  .cat-card{ padding:18px 14px; }
  .cat-icon{ font-size:1.7rem; }

  .book-card{ flex:0 0 160px; }
  .book-cover{ height:150px; }
  .book-title-on-cover{ font-size:0.88rem; padding:10px; }

  .author-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .author-card{ padding:14px 10px; }
  .author-avatar{ width:46px; height:46px; font-size:0.9rem; margin-bottom:8px; }
  .author-card h4{ font-size:0.78rem; }
  .author-card span{ font-size:0.7rem; }
  .author-link{ font-size:0.76rem; }

  .cta-bridge{ padding: var(--section-pad) 0; }
  .cta-copy h2{ font-size:clamp(1.35rem,5vw,1.85rem); }
  .cta-actions{ flex-direction:column; align-items:center; }
  .cta-actions .btn{ width:100%; max-width:260px; justify-content:center; }
  .cta-visual{ display:none; }

  .stats-cards{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .stats-card{ padding:16px 10px; }
  .stats-card h3{ font-size:1.3rem; }
  .stats-card p{ font-size:0.76rem; }

  .newsletter-inner{ padding:22px 16px; border-radius:14px; }
  .newsletter-inner h2{ font-size:1.2rem; }
  .newsletter-inner p{ font-size:0.84rem; }
  .newsletter-form{ flex-direction:column; gap:8px; }
  .newsletter-form input{ width:100%; min-width:0; border-radius:999px; padding:11px 16px; }
  .newsletter-form .btn{ width:100%; justify-content:center; border-radius:999px; }

  .footer-grid{ grid-template-columns:1fr; gap:22px; padding-bottom:24px; }
  .footer-brand{ grid-column:auto; }
  .footer-logo{ height:68px; }
  .footer-brand p{ font-size:0.82rem; }
  .footer-col h4{ font-size:0.82rem; margin-bottom:12px; }
  .footer-col a{ font-size:0.82rem; margin-bottom:8px; }
  .footer-bottom{ flex-direction:column; align-items:center; text-align:center; padding:14px 0; font-size:0.72rem; }

  .back-to-top{ bottom:14px; right:14px; width:40px; height:40px; }

  .book-modal-box{ padding:24px 20px; }
  .modal-actions{ flex-direction:column; }
}
/* ============================================================
   DNYAN SETU — NEW SECTIONS CSS
   Add this after your existing style.css
   Consistent with: Navy #1B2A56, Orange #F5851F, Gold #FBB04F
============================================================ */

/* ===== Indian Bookshelf ===== */
.indian-bookshelf {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.shelf-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-top: -8px;
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 44px;
  justify-content: center;
}

.lang-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,.8,.32,1);
  justify-content: center;
  padding: 0;
}

.lang-pill:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(245,133,31,0.18);
  transform: translateY(-4px);
}

.lang-pill.active {
  background: var(--navy);
  border-color: var(--navy);
}

.lang-pill.active .lang-script,
.lang-pill.active .lang-label {
  color: #fff;
}

.lang-script {
  font-family: 'Tiro Devanagari Marathi', 'Noto Sans', serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  transition: color .2s;
}

.lang-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color .2s;
}

.lang-pill.regional {
  border-style: dashed;
  border-color: var(--orange);
}

.lang-pill.regional .lang-script { color: var(--orange); }

/* Shelf book strip */
.shelf-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  margin-bottom: 36px;
}

.shelf-strip::-webkit-scrollbar { height: 4px; }
.shelf-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.shelf-book {
  flex: 0 0 150px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22,.8,.32,1);
}

.shelf-book:hover { transform: translateY(-6px); }

.shelf-cover {
  width: 150px;
  height: 200px;
  background: linear-gradient(150deg, var(--sc1), var(--sc2));
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(27,42,86,0.15);
}

.shelf-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 22px);
}

.shelf-cover span {
  font-family: var(--display);
  color: #fff;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.shelf-title {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-auth {
  font-size: 0.74rem;
  color: var(--muted);
}

.shelf-book.hidden { display: none; }

.shelf-cta-row {
  text-align: center;
  margin-top: 16px;
}

/* ===== Top Publishers ===== */
.top-publishers {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .32s cubic-bezier(.22,.8,.32,1);
  text-align: center;
}

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}

.pub-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--pb, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(27,42,86,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.pub-card:hover .pub-logo-wrap {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245,133,31,0.2);
}

.pub-logo-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pub-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pf, #1B2A56);
  background: transparent;
}

.pub-name {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

.pub-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 600;
}

/* ===== Language Row Sliders ===== */
.lang-row-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.bg-white-section {
  background: var(--white) !important;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.marathi-badge {
  background: rgba(27,42,86,0.08);
  color: var(--navy);
}

.hindi-badge {
  background: rgba(245,133,31,0.10);
  color: var(--orange);
}

.children-badge {
  background: rgba(39,174,96,0.10);
  color: #27ae60;
}

.smart-badge {
  background: rgba(142,68,173,0.10);
  color: #8e44ad;
}

.lang-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.lang-row::-webkit-scrollbar { height: 4px; }
.lang-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.lr-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22,.8,.32,1), box-shadow .3s ease;
}

.bg-white-section .lr-card { background: var(--cream); }

.lr-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.lr-cover {
  height: 150px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--lr1), var(--lr2));
  display: flex;
  align-items: flex-end;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.lr-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 22px);
}

.lr-cover span {
  font-family: var(--display);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.lr-card h4 {
  font-size: 0.84rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-card p {
  font-size: 0.74rem;
  color: var(--muted);
}

.lr-children .lr-cover { height: 170px; }

/* ===== Promo Split Block ===== */
.promo-split {
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
}

.promo-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.promo-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

/* Gift card */
.promo-gift {
  background: linear-gradient(135deg, #fff0e8, #fff8f0);
  border-color: rgba(245,133,31,0.2);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.promo-left {
  padding: 28px 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-right {
  background: rgba(245,133,31,0.06);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.promo-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-book-stack {
  display: flex;
  align-items: flex-end;
  position: relative;
  height: 130px;
  width: 130px;
}

.promo-mini-card {
  position: absolute;
  width: 72px;
  height: 96px;
  background: linear-gradient(150deg, var(--mc), color-mix(in srgb, var(--mc) 70%, white));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-mini-card:nth-child(1) { bottom: 0; left: 0; }
.promo-mini-card:nth-child(2) { bottom: 0; left: 28px; }
.promo-mini-card:nth-child(3) { bottom: 0; left: 56px; }

/* Bundle card */
.promo-bundle {
  background: var(--white);
}

.promo-bundle-img {
  font-size: 2.5rem;
  line-height: 1;
}

.promo-bundle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promo-bundle-chips span {
  font-family: var(--mono);
  font-size: 0.68rem;
  background: rgba(27,42,86,0.07);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Mystery card */
.promo-mystery {
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
}

.promo-mystery h3 { color: #fff; }
.promo-mystery p { color: rgba(255,255,255,0.72); }

.promo-mystery-icon {
  font-size: 2.8rem;
  line-height: 1;
}

/* Script to Screen */
.promo-script {
  background: #1a1a2e;
}

.promo-script h3 { color: #fff; }

.promo-script-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.promo-tagline {
  font-family: var(--mono);
  font-size: 0.8rem !important;
  color: var(--gold) !important;
  font-weight: 600;
}

.btn-ghost-dark {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all .25s ease;
  align-self: flex-start;
}

.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

/* ===== Books by Age Group ===== */
.age-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.age-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 36px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,.8,.32,1);
}

.age-btn:hover, .age-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245,133,31,0.3);
}

.age-num {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s;
}

.age-sub {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}

.age-btn:hover .age-num,
.age-btn.active .age-num,
.age-btn:hover .age-sub,
.age-btn.active .age-sub {
  color: #fff;
}

/* ===================================================
  RESPONSIVE — NEW SECTIONS
=================================================== */
@media (max-width: 1080px) {
  .pub-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .promo-gift { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .lang-grid { gap: 12px; }
  .lang-pill { width: 82px; height: 82px; }
  .lang-script { font-size: 1.6rem; }
  .pub-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-gift { grid-column: 1 / -1; }
  .age-btn { padding: 16px 24px; }
}

@media (max-width: 480px) {
  .lang-grid { gap: 10px; }
  .lang-pill { width: 70px; height: 70px; }
  .lang-script { font-size: 1.3rem; }
  .lang-label { font-size: 0.64rem; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-gift { grid-column: auto; grid-template-columns: 1fr; }
  .promo-right { display: none; }
  .promo-left { padding: 22px; }
  .lr-card { flex: 0 0 160px; }
  .shelf-book { flex: 0 0 120px; }
  .shelf-cover { width: 120px; height: 160px; }
  .age-grid { gap: 10px; }
  .age-btn { padding: 14px 20px; }
  .age-num { font-size: 1rem; }
}

/* ===== Student Membership ===== */
.student-membership{
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.membership-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:60px;
  align-items:center;
}
.membership-visual{ position:relative; }
.mem-img-main{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mem-float-card{
  position:absolute;
  top:-20px; right:-20px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color:#fff;
  border-radius:14px;
  padding:16px 24px;
  text-align:center;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}
.mem-float-num{ display:block; font-family: var(--mono); font-size:1.6rem; font-weight:700; }
.mem-float-label{ font-size:0.76rem; }
.membership-copy h2{
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy);
  font-weight:400;
  line-height:1.3;
  margin:14px 0 18px;
}
.mem-text{ color: var(--muted); margin-bottom:22px; max-width:480px; }
.mem-points{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:30px;
}
.mem-points li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:0.92rem;
  color: var(--navy);
  font-weight:500;
}
.mem-dot{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--navy);
  flex-shrink:0;
}
.mem-actions{ display:flex; gap:14px; flex-wrap:wrap; }

@media (max-width:1080px){
  .membership-inner{ grid-template-columns:1fr; gap:36px; }
  .mem-img-main{ height:320px; }
}
@media (max-width:480px){
  .mem-img-main{ height:200px; border-radius:12px; }
  .mem-float-card{ top:-12px; right:8px; padding:10px 16px; }
  .mem-float-num{ font-size:1.2rem; }
  .mem-actions{ flex-direction:column; }
  .mem-actions .btn{ justify-content:center; }
}
.custom-image-section{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}
.custom-image-section img{
    width:100%;
    max-width:1200px;
    height:700px;
    object-fit:cover;
    display:block;
    margin:0 auto;
}