/* ============================================
   VIDHYASTHALI LIBRARY — EDITORIAL DESIGN SYSTEM
   Boutique publishing house aesthetic
   ============================================ */

/* --- 1. Design Tokens --- */
:root {
  --charcoal:    #1C1C1E;
  --navy:        #1B2A4A;
  --navy-deep:   #0F1A2E;
  --burgundy:    #6B2737;
  --burgundy-soft:#8A3A4D;
  --brass:       #B8964E;
  --brass-light: #D4B56A;
  --brass-pale:  #F0E6CC;
  --parchment:   #F5F0E8;
  --cream:       #FAF8F4;
  --white:       #FFFFFF;
  --ink:         #2D2A26;
  --text-body:   #4A453E;
  --stone:       #8A8378;
  --smoke:       #E8E4DD;
  --smoke-light: #F0EDE8;

  --shadow-book:   0 8px 24px rgba(44, 42, 38, 0.12), 0 2px 6px rgba(44, 42, 38, 0.08);
  --shadow-card:   0 2px 8px rgba(44, 42, 38, 0.06);
  --shadow-hover:  0 12px 32px rgba(44, 42, 38, 0.15), 0 4px 8px rgba(44, 42, 38, 0.08);
  --shadow-nav:    0 1px 0 rgba(44, 42, 38, 0.06);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.35s var(--ease);

  --container:  1100px;
  --container-wide: 1200px;
}


/* --- 2. Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--parchment);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  max-width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 500;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  max-width: 540px;
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.85;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}


/* --- 4. Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 110px 0;
  position: relative;
}


/* --- 5. Paper Texture & Organic Elements --- */
.paper-bg {
  position: relative;
}

.paper-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.paper-bg > * {
  position: relative;
  z-index: 1;
}

/* Ink divider */
.ink-divider {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--brass);
  border: none;
  margin: 32px auto;
  opacity: 0.5;
}

.ink-divider-left {
  margin-left: 0;
}

/* Decorative wavy SVG divider */
.wave-divider {
  width: 100%;
  height: 24px;
  display: block;
  margin: 0;
  color: var(--parchment);
}


/* --- 6. Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 14px 0;
  box-shadow: var(--shadow-nav);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12));
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-logo-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.2px;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--brass);
  background: var(--cream);
  color: var(--burgundy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--burgundy);
  color: #FFF;
  border-color: var(--burgundy);
}

.nav-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--brass-pale);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(184, 150, 78, 0.3);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-location-badge:hover {
  background: var(--brass);
  color: var(--white);
}

.nav-location-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--burgundy);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-location-badge {
    display: none;
  }
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}


/* --- 7. Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--parchment);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-heritage-backdrop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  color: #8C6228;
  opacity: 0.14;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0) 100%);
}

.hero-heritage-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--charcoal);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--smoke);
}

.hero-stat {
  text-align: left;
}

.hero-stat h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-stat p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--stone);
  margin: 0;
}

/* Hero Library Showcase Card */
.hero-library-showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(27, 42, 74, 0.15), 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(184, 150, 78, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(27, 42, 74, 0.22), 0 10px 24px rgba(184, 150, 78, 0.2);
}

/* Dual Heritage & Study Hall Split */
.showcase-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--smoke);
  height: 220px;
  position: relative;
}

.showcase-img-col {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.showcase-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.showcase-card:hover .showcase-img-col img {
  transform: scale(1.06);
}

.showcase-img-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(27, 42, 74, 0.88);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.showcase-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #123B2A;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2D8A4E;
  box-shadow: 0 0 0 0 rgba(45, 138, 78, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 138, 78, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(45, 138, 78, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 138, 78, 0); }
}

.showcase-body {
  padding: 20px 22px;
}

.showcase-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--smoke-light);
}

.showcase-brand-trust {
  display: flex;
  flex-direction: column;
}

.trust-highlight {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--burgundy);
  text-transform: uppercase;
}

.trust-subtext {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.5px;
}

.trust-pill-verified {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brass);
  background: var(--brass-pale);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(184, 150, 78, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-title-row {
  margin-bottom: 6px;
}

.showcase-title-row h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.showcase-caption {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.55;
  margin-bottom: 14px;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sc-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 50px;
  border: 1px solid var(--smoke);
  letter-spacing: 0.2px;
}

.showcase-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.showcase-action-row .btn {
  padding: 10px 18px;
  font-size: 0.82rem;
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
  min-width: 0;
}


/* --- 8. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 39, 55, 0.2);
}

.btn-outline {
  border: 1.5px solid var(--smoke);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}

.btn-brass {
  background: var(--brass);
  color: var(--white);
}

.btn-brass:hover {
  background: var(--brass-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 150, 78, 0.25);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* --- 9. Book Cards --- */
/* --- 9. Handcrafted Luxury Book Covers --- */
.book-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out);
  display: block;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-cover-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2/3;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(27, 42, 74, 0.15), 0 2px 6px rgba(27, 42, 74, 0.08);
  transition: all 0.4s var(--ease-out);
}

.book-card:hover .book-cover-wrap {
  box-shadow: 0 16px 36px rgba(27, 42, 74, 0.22), 0 4px 10px rgba(27, 42, 74, 0.12);
  transform: translateY(-2px);
}

/* Bespoke Hardcover Book Art */
.book-art {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  user-select: none;
  box-shadow: inset 8px 0 14px rgba(0,0,0,0.45), inset -2px 0 4px rgba(255,255,255,0.06);
}

/* Hardcover gold foil inner border */
.book-art::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* Left spine highlight line */
.book-art::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1px;
  background: rgba(212, 175, 55, 0.25);
  pointer-events: none;
}

/* Color Themes */
.theme-burgundy   { background: radial-gradient(circle at 50% 30%, #521823, #22060B); }
.theme-navy       { background: radial-gradient(circle at 50% 30%, #172844, #08111E); }
.theme-emerald    { background: radial-gradient(circle at 50% 30%, #123B2A, #061911); }
.theme-ochre      { background: radial-gradient(circle at 50% 30%, #683713, #2F1706); }
.theme-plum       { background: radial-gradient(circle at 50% 30%, #411B4B, #1B0821); }
.theme-terracotta { background: radial-gradient(circle at 50% 30%, #762A1B, #351009); }
.theme-charcoal   { background: radial-gradient(circle at 50% 30%, #252830, #0E1013); }
.theme-teal       { background: radial-gradient(circle at 50% 30%, #11424D, #051D23); }
.theme-crimson    { background: radial-gradient(circle at 50% 30%, #52111A, #240409); }
.theme-wine       { background: radial-gradient(circle at 50% 30%, #4D1623, #23080F); }
.theme-forest     { background: radial-gradient(circle at 50% 30%, #183525, #081810); }

.book-art-top {
  position: relative;
  z-index: 2;
  margin-top: 4px;
}

.book-art-emblem {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  color: #F8EDC8;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
  opacity: 0.95;
}

.book-art-ornament {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
  color: var(--brass-light);
  opacity: 0.8;
}

.book-art-series {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(248, 237, 200, 0.8);
}

.book-art-middle {
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.book-art-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #F8EDC8;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}

.book-art-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(248, 237, 200, 0.75);
}

.book-art-bottom {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.book-art-seal {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.7);
  padding: 3px 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.book-language {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

.book-language.hindi {
  background: rgba(107, 39, 55, 0.9);
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.2);
}

.book-language.english {
  background: rgba(27, 42, 74, 0.9);
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.2);
}

.book-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-card .book-author {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 8px;
}

.book-card .curator-note {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--burgundy-soft);
  line-height: 1.4;
  font-style: italic;
}

.book-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass);
  transition: all var(--transition);
}

.book-card .read-link:hover {
  color: var(--burgundy);
  gap: 10px;
}

.book-card .read-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


/* --- 10. Featured Books Grid --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}


/* --- 11. Browse / Digital Study Vault --- */
.vault-header-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.vault-category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 12px;
  width: 100%;
}

.vault-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--stone);
  border: 1.5px solid var(--smoke);
  background: var(--cream);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  user-select: none;
}

.vault-tab:hover {
  border-color: var(--brass);
  color: var(--ink);
}

.vault-tab.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.vault-tab-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 50px;
  background: rgba(0,0,0,0.08);
  color: inherit;
}

.vault-tab.active .vault-tab-count {
  background: var(--brass);
  color: #FFF;
}

/* NCERT Class Slider Bar */
.ncert-slider-wrapper {
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--smoke);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ncert-slider-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--burgundy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ncert-slider-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.ncert-slider-track::-webkit-scrollbar { display: none; }

.ncert-class-chip {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--smoke);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.ncert-class-chip:hover, .ncert-class-chip.active {
  background: var(--burgundy);
  color: #FFF;
  border-color: var(--burgundy);
}

.slider-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--smoke);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}

.slider-nav-btn:hover {
  background: var(--ink);
  color: #FFF;
}

.slider-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* Secondary Filter Bar */
.vault-subfilters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--smoke);
}

.vault-type-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--smoke);
  background: var(--cream);
  color: var(--stone);
  cursor: pointer;
  transition: all var(--transition);
}

.vault-pill:hover, .vault-pill.active {
  background: var(--brass-pale);
  color: var(--burgundy);
  border-color: var(--brass);
}

.search-bar {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--smoke);
  border-radius: 50px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 150, 78, 0.12);
  background: #FFF;
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--stone);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

/* Vault Grid */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Vault Card */
.vault-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--smoke);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
  position: relative;
}

.vault-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(184, 150, 78, 0.4);
}

.vault-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.vault-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
}

.vault-tag.rpsc { background: rgba(107, 39, 55, 0.12); color: var(--burgundy); }
.vault-tag.upsc { background: rgba(27, 42, 74, 0.12); color: var(--navy); }
.vault-tag.ncert { background: rgba(18, 59, 42, 0.12); color: #123B2A; }
.vault-tag.ssc { background: rgba(37, 40, 48, 0.12); color: #252830; }
.vault-tag.neet_jee { background: rgba(17, 66, 77, 0.12); color: #11424D; }
.vault-tag.banking { background: rgba(77, 22, 35, 0.12); color: #4D1623; }
.vault-tag.literature { background: rgba(120, 45, 29, 0.12); color: #782D1D; }

.vault-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone);
}

.vault-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 4px;
}

.vault-hindi-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--burgundy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.vault-summary {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--stone);
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--smoke-light);
}

.vault-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #2D8A4E;
  margin-bottom: 14px;
}

.vault-official-badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.vault-card-actions {
  display: flex;
  gap: 8px;
}

.vault-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--stone);
}

.no-results h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--ink);
}


/* --- 12. Genre Cards --- */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--smoke);
  background: var(--cream);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brass-pale);
}

.genre-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  font-family: 'Cormorant Garamond', serif;
  color: var(--brass);
  font-weight: 700;
}

.genre-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.genre-card p {
  font-size: 0.78rem;
  color: var(--stone);
  margin: 0;
}


/* --- 13. How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.step-item {
  position: relative;
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brass-pale);
  line-height: 1;
  margin-bottom: 16px;
}

.step-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--stone);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.7;
}


/* --- 14. Community / Live Banner --- */
.live-banner {
  background: var(--navy-deep);
  padding: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.live-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 150, 78, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.live-banner p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  position: relative;
  z-index: 1;
}

.live-banner strong {
  color: var(--brass-light);
  font-weight: 700;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}


/* --- 15. Self Study Space Showcase & Seat Booking --- */
.seat-booking-card {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 16px 40px rgba(15, 26, 46, 0.25);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.seat-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-light);
  background: rgba(212, 175, 55, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.seat-booking-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  pointer-events: none;
}

.seat-booking-card h3 {
  color: #FFF;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.seat-booking-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.seat-features-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.seat-features-inline span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.seat-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.seat-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
}

.seat-feature-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--brass-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.seat-booking-right {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  backdrop-filter: blur(10px);
}

.seat-contact-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.seat-contact-box h4,
.seat-contact-label {
  color: var(--brass-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.seat-contact-phone {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 12px;
  letter-spacing: 1px;
  transition: color var(--transition);
  word-break: break-word;
}

.seat-contact-phone:hover {
  color: var(--brass-light);
}

.seat-contact-phone:hover {
  color: var(--brass-light);
}

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-teaser-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-book);
}

.about-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--brass);
}


/* --- 16. About Page Specific --- */
.about-story {
  max-width: 720px;
  margin: 0 auto;
}

.about-story p {
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-story p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--burgundy);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.amenity-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--smoke-light);
  transition: all var(--transition);
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brass-pale);
}

.amenity-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--brass-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brass);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amenity-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.amenity-card p {
  font-size: 0.8rem;
  color: var(--stone);
  margin: 0;
  line-height: 1.6;
}


/* --- 17. Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
  background: var(--smoke-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 26, 46, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}


/* --- 18. Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--smoke-light);
}

.testimonial-card .quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-card .attribution {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
}

.testimonial-card .attribution strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}


/* --- 19. Reader Page --- */
.reader-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 100px;
  min-height: 100vh;
}

.reader-sidebar {
  position: sticky;
  top: 100px;
}

.reader-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2/3;
  margin-bottom: 24px;
  box-shadow: var(--shadow-book);
}

.reader-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-meta h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.reader-meta .author {
  font-size: 0.95rem;
  color: var(--stone);
  margin-bottom: 16px;
}

.reader-meta .meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.reader-meta .meta-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--smoke);
  color: var(--stone);
}

.reader-meta .curator-note {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--burgundy-soft);
  line-height: 1.45;
  padding: 16px;
  background: var(--brass-pale);
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.reader-meta .curator-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brass);
  margin-bottom: 6px;
  display: block;
}

.reader-main {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--smoke);
  display: flex;
  flex-direction: column;
}

/* Reader Toolbar */
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--smoke);
  flex-wrap: wrap;
  gap: 12px;
}

.reader-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--smoke);
  color: var(--text-body);
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reader-btn:hover, .reader-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.reader-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Reading Paper View */
.reader-paper {
  padding: 60px 48px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 600px;
  transition: background 0.3s ease, color 0.3s ease;
}

.reader-paper.theme-parchment {
  background: var(--parchment);
  color: var(--ink);
}

.reader-paper.theme-white {
  background: #FFFFFF;
  color: #222222;
}

.reader-paper.theme-night {
  background: #191B1F;
  color: #D8D8DC;
}

.reader-paper.theme-night h2,
.reader-paper.theme-night h3 {
  color: #F0E6CC;
}

.reader-paper-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.reader-paper-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone);
  text-align: center;
  margin-bottom: 32px;
}

.reader-paper-content {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.reader-paper-content p {
  margin-bottom: 1.6rem;
  color: inherit;
}

.reader-paper-content p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--brass);
}

.reader-doc-view {
  width: 100%;
  height: 75vh;
  min-height: 550px;
  border: none;
  display: none;
  background: #2A2A2E;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 28px;
  transition: all var(--transition);
}

.reader-back:hover {
  color: var(--ink);
  gap: 12px;
}

.reader-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.reader-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--stone);
  font-size: 1.05rem;
}


/* --- 20. Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--smoke);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 150, 78, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 39, 55, 0.2);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 24px;
}

.form-status.success { color: #2D8A4E; }
.form-status.error { color: #C0392B; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--brass-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--brass);
  fill: none;
  stroke-width: 1.8;
}

.contact-info-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--stone);
  margin: 0;
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--text-body);
}

.contact-info-card a:hover {
  color: var(--brass);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--smoke-light);
  height: 200px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* --- 21. Footer --- */
.footer {
  background: var(--charcoal);
  padding: 64px 0 24px;
  color: rgba(255,255,255,0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .nav-logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--brass-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}


/* --- 22. Page Transition --- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--parchment);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

main {
  animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- 23. Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.07s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.14s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.21s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.28s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.35s; }
.stagger > .fade-up:nth-child(7) { transition-delay: 0.42s; }
.stagger > .fade-up:nth-child(8) { transition-delay: 0.49s; }
.stagger > .fade-up:nth-child(9) { transition-delay: 0.56s; }
.stagger > .fade-up:nth-child(10) { transition-delay: 0.63s; }
.stagger > .fade-up:nth-child(11) { transition-delay: 0.70s; }
.stagger > .fade-up:nth-child(12) { transition-delay: 0.77s; }


/* --- 24. Utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.bg-cream { background: var(--cream); }
.bg-parchment { background: var(--parchment); }


/* --- 25. Responsive & Mobile Phone Optimization --- */

/* Tablets & Medium Screens */
@media (max-width: 1024px) {
  .container, .container-wide {
    padding: 0 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }

  .hero-content {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-library-showcase {
    max-width: 520px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }

  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; gap: 40px; }

  .seat-booking-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
    text-align: center;
  }

  .seat-booking-left {
    text-align: center;
  }

  .seat-features-inline {
    justify-content: center;
  }

  .seat-booking-right {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .reader-layout {
    grid-template-columns: 1fr;
    padding-top: 90px;
    gap: 32px;
    min-width: 0;
  }

  .reader-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Devices & Small Tablets */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .container, .container-wide {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Navigation */
  .navbar {
    padding: 12px 0;
  }

  .navbar .container {
    padding: 0 16px;
    gap: 8px;
  }

  .nav-logo {
    gap: 10px;
    min-width: 0;
  }

  .nav-logo img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
  }

  .nav-logo-text {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .nav-logo-sub {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-location-badge {
    display: none !important;
  }

  .lang-toggle-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
    border-radius: 50px;
  }

  .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 7px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 90px 24px 40px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-links a.active {
    background: var(--brass-pale);
    color: var(--burgundy);
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  /* Hero Section */
  .hero {
    padding-top: 88px;
    padding-bottom: 36px;
    min-height: auto;
  }

  .hero .container {
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .hero-tagline {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    margin-bottom: 12px;
    word-break: break-word;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 16px;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    word-break: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 28px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 20px;
    width: 100%;
  }

  .hero-stat {
    text-align: center;
    min-width: 0;
  }

  .hero-stat h3 {
    font-size: clamp(1.25rem, 4.2vw, 1.6rem);
    word-break: break-word;
  }

  .hero-stat p {
    font-size: clamp(0.62rem, 2vw, 0.72rem);
    letter-spacing: 0.5px;
    word-break: break-word;
  }

  /* Hero Showcase Card */
  .hero-library-showcase {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .showcase-card {
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .showcase-img-grid {
    height: 190px;
  }

  .showcase-body {
    padding: 18px 16px;
  }

  .showcase-title-row h3 {
    font-size: 1.05rem;
  }

  .showcase-caption {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .showcase-pills {
    gap: 5px;
    margin-bottom: 14px;
  }

  .sc-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .showcase-action-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .showcase-action-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Section Typography & Headers */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .section-desc {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  /* Grids */
  .featured-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-card {
    padding: 22px 12px;
  }

  .genre-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .genre-card h4 {
    font-size: 0.85rem;
  }

  .genre-card p {
    font-size: 0.72rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .amenity-card {
    padding: 22px 12px;
  }

  .amenity-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
  }

  .amenity-card h4 {
    font-size: 0.84rem;
  }

  .amenity-card p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* Seat Booking Card */
  .seat-booking-card {
    padding: 28px 18px;
    margin-top: 32px;
    border-radius: var(--radius-md);
  }

  .seat-booking-card h3 {
    font-size: 1.6rem;
  }

  .seat-booking-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .seat-features-inline {
    gap: 6px 10px;
    justify-content: center;
  }

  .seat-features-inline span {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .seat-booking-right {
    padding: 22px 14px;
  }

  .seat-contact-phone {
    font-size: 1.5rem !important;
    margin-bottom: 8px;
  }

  /* Steps & Live Banner */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-number {
    font-size: 2.8rem;
    margin-bottom: 10px;
  }

  .live-banner {
    padding: 28px 0;
  }

  .live-banner p {
    font-size: 1.05rem;
    padding: 0 8px;
    line-height: 1.55;
  }

  /* About Teaser */
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-teaser blockquote {
    font-size: 1.15rem;
    padding-left: 16px;
  }

  /* Gallery & Testimonials */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 24px 18px;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* Vault & Browse Page */
  .vault-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vault-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .vault-tab {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .vault-subfilters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .ncert-slider-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .ncert-slider-track {
    width: 100%;
    min-width: 0;
  }

  /* Reader Page */
  .reader-sidebar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reader-cover {
    max-width: 160px;
    margin: 0 auto 16px;
  }

  .reader-paper {
    padding: 28px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .reader-paper-title {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .reader-paper-content {
    font-size: 1.08rem;
    line-height: 1.8;
    word-break: break-word;
  }

  .reader-toolbar {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .reader-toolbar-left,
  .reader-toolbar-right {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .reader-btn {
    min-height: 38px;
    justify-content: center;
  }
}

/* Phones & Small Screens (<= 480px) */
@media (max-width: 480px) {
  .container, .container-wide {
    padding: 0 14px;
  }

  .navbar .container {
    padding: 0 14px;
  }

  .nav-logo img {
    height: 44px;
  }

  .nav-logo-text {
    font-size: 1.18rem;
  }

  .nav-logo-sub {
    font-size: 0.58rem;
    letter-spacing: 1px;
  }

  .lang-toggle-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  .hero {
    padding-top: 84px;
    padding-bottom: 28px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .hero-stats {
    gap: 6px;
    padding-top: 18px;
  }

  .hero-stat h3 {
    font-size: 1.25rem;
  }

  .hero-stat p {
    font-size: 0.6rem;
    letter-spacing: 0.3px;
  }

  .featured-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .book-art {
    padding: 8px 6px;
  }

  .book-art-title {
    font-size: 0.88rem;
    margin-bottom: 3px;
  }

  .book-art-author {
    font-size: 0.55rem;
  }

  .book-art-series {
    font-size: 0.48rem;
    letter-spacing: 0.8px;
  }

  .book-art-seal {
    font-size: 0.42rem;
  }

  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .genre-card {
    padding: 16px 8px;
  }

  .genre-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  .genre-card h4 {
    font-size: 0.8rem;
  }

  .genre-card p {
    font-size: 0.66rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .amenity-card {
    padding: 16px 8px;
  }

  .amenity-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
  }

  .amenity-icon svg {
    width: 18px;
    height: 18px;
  }

  .amenity-card h4 {
    font-size: 0.8rem;
  }

  .amenity-card p {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .seat-booking-card {
    padding: 22px 14px;
    margin-top: 24px;
  }

  .seat-booking-card h3 {
    font-size: 1.45rem;
  }

  .seat-booking-card p {
    font-size: 0.86rem;
  }

  .seat-booking-right {
    padding: 18px 12px;
  }

  .seat-contact-phone {
    font-size: 1.38rem !important;
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.84rem;
  }
}

/* Ultra Compact Phones (<= 360px) */
@media (max-width: 360px) {
  .container, .container-wide {
    padding: 0 10px;
  }

  .navbar .container {
    padding: 0 10px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-logo-text {
    font-size: 1.08rem;
  }

  .nav-logo-sub {
    font-size: 0.54rem;
    letter-spacing: 0.5px;
  }

  .lang-toggle-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-stats {
    gap: 4px;
  }

  .hero-stat h3 {
    font-size: 1.1rem;
  }

  .hero-stat p {
    font-size: 0.52rem;
    letter-spacing: 0;
  }

  .genres-grid {
    grid-template-columns: 1fr;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Direct Print to PDF Styles */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
    font-size: 12pt;
  }
  .navbar, .footer, .nav-toggle, .nav-location-badge, .reader-toolbar, #readerActions, .reader-sidebar, .page-transition, #btnBottomSavePdf {
    display: none !important;
  }
  .reader-layout {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .reader-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #FFF !important;
    color: #000 !important;
  }
  .reader-paper-title {
    font-size: 22pt !important;
    color: #000 !important;
  }
  .reader-paper-content {
    font-size: 12pt !important;
    line-height: 1.6 !important;
  }
}
