/**
 * Nepa Books — Modern Showcase & Landing Page Styles
 * Mobile-First, Responsive, High-Performance
 * Developer: khanalsaroj083
 * Version: 1.2.0
 */

@font-face {
  font-family: 'Siddhanta';
  src: url('../fonts/siddhanta.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nepa-font-base: 'Siddhanta', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nepa-font-title: 'Siddhanta', 'Mukta', serif;
  --nepa-primary: #0f172a;
  --nepa-primary-hover: #1e293b;
  --nepa-accent-gold: #b45309;
  --nepa-accent-gold-light: #d97706;
  --nepa-accent-gold-bg: rgba(217, 119, 6, 0.08);
  --nepa-emerald: #15803d;
  --nepa-emerald-light: #16a34a;
  --nepa-crimson: #991b1b;
  --nepa-bg-page: #f8fafc;
  --nepa-bg-card: #ffffff;
  --nepa-bg-input: #ffffff;
  --nepa-text-main: #1e293b;
  --nepa-text-muted: #475569;
  --nepa-text-light: #64748b;
  --nepa-border: #cbd5e1;
  --nepa-border-subtle: #e2e8f0;
  --nepa-nav-bg: rgba(255, 255, 255, 0.95);
  --nepa-radius-sm: 8px;
  --nepa-radius-md: 14px;
  --nepa-radius-lg: 20px;
  --nepa-radius-xl: 28px;
  --nepa-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --nepa-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --nepa-shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  --nepa-shadow-3d: -15px 15px 35px rgba(15, 23, 42, 0.25), -5px 5px 15px rgba(15, 23, 42, 0.15);
}

/* Dark Mode Theme Variables */
[data-theme="dark"] .nepa-showcase-wrapper,
.nepa-showcase-wrapper[data-theme="dark"] {
  --nepa-primary: #f8fafc;
  --nepa-primary-hover: #e2e8f0;
  --nepa-accent-gold: #f59e0b;
  --nepa-accent-gold-light: #fbbf24;
  --nepa-accent-gold-bg: rgba(245, 158, 11, 0.14);
  --nepa-emerald: #22c55e;
  --nepa-emerald-light: #4ade80;
  --nepa-bg-page: #0b0f17;
  --nepa-bg-card: #131b2a;
  --nepa-bg-input: #1a2436;
  --nepa-text-main: #f1f5f9;
  --nepa-text-muted: #94a3b8;
  --nepa-text-light: #64748b;
  --nepa-border: #1e293b;
  --nepa-border-subtle: #172033;
  --nepa-nav-bg: rgba(11, 15, 23, 0.96);
  --nepa-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --nepa-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  --nepa-shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
}

/* Reset inside Showcase */
.nepa-showcase-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nepa-showcase-wrapper {
  font-family: var(--nepa-font-base);
  color: var(--nepa-text-main);
  background-color: var(--nepa-bg-page);
  line-height: 1.7;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nepa-showcase-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand Navbar */
.nepa-showcase-nav {
  background: var(--nepa-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nepa-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nepa-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nepa-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--nepa-primary);
}

.nepa-nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nepa-accent-gold-light);
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nepa-nav-brand-text h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--nepa-primary);
  line-height: 1.1;
}

.nepa-nav-brand-text span {
  font-size: 13px;
  color: var(--nepa-text-muted);
  font-weight: 500;
}

.nepa-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nepa-nav-links a {
  text-decoration: none;
  color: var(--nepa-text-muted);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nepa-nav-links a:hover {
  color: var(--nepa-accent-gold);
}

.nepa-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.nepa-theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nepa-border);
  background: var(--nepa-bg-card);
  color: var(--nepa-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
  box-shadow: var(--nepa-shadow-sm);
}

.nepa-theme-toggle-btn:hover {
  border-color: var(--nepa-accent-gold);
  transform: scale(1.05);
}

.nepa-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15.5px;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.25s ease;
}

.nepa-nav-btn:hover {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* Mobile Hamburger Toggle Button */
.nepa-hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--nepa-border);
  background: var(--nepa-bg-card);
  color: var(--nepa-text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: var(--nepa-shadow-sm);
  z-index: 102;
}

.nepa-hamburger-btn:hover,
.nepa-hamburger-btn:focus {
  border-color: var(--nepa-accent-gold);
  background: var(--nepa-bg-page);
  transform: scale(1.04);
}

.nepa-hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nepa-hamburger-icon .bar {
  display: block;
  width: 100%;
  height: 2.2px;
  background-color: var(--nepa-text-main);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Active Hamburger Icon -> X */
.nepa-hamburger-btn.is-active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.nepa-hamburger-btn.is-active .bar-2 {
  opacity: 0;
  transform: translateX(-8px);
}

.nepa-hamburger-btn.is-active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.nepa-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nepa-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--nepa-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

.nepa-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nepa-drawer-inner {
  padding: 18px 20px 24px;
}

.nepa-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nepa-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--nepa-radius-md);
  text-decoration: none;
  color: var(--nepa-text-main);
  font-weight: 600;
  font-size: 16px;
  background: var(--nepa-bg-card);
  border: 1px solid var(--nepa-border-subtle);
  transition: all 0.2s ease;
}

.nepa-drawer-link:active,
.nepa-drawer-link:hover {
  background: var(--nepa-bg-page);
  border-color: var(--nepa-accent-gold);
  color: var(--nepa-accent-gold);
  transform: translateX(4px);
}

.nepa-drawer-link .drawer-icon {
  font-size: 20px;
  margin-right: 12px;
}

.nepa-drawer-link .drawer-text {
  flex: 1;
}

.nepa-drawer-link .drawer-arrow {
  font-size: 15px;
  color: var(--nepa-accent-gold);
  opacity: 0.8;
}

.nepa-drawer-bottom-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--nepa-border);
}

.nepa-drawer-btn-read {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--nepa-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

/* Hero Section */
.nepa-showcase-hero {
  padding: 60px 0 70px;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
              var(--nepa-bg-page);
  position: relative;
  overflow: hidden;
}

.nepa-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

/* Hero Left Column */
.nepa-hero-badge {
  display: inline-block;
  background: var(--nepa-accent-gold-bg);
  color: var(--nepa-accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.nepa-hero-title {
  font-family: var(--nepa-font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--nepa-primary);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.nepa-hero-subtitle {
  font-size: 20px;
  color: var(--nepa-accent-gold);
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.4;
}

.nepa-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.nepa-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nepa-bg-card);
  border: 1px solid var(--nepa-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14.5px;
  color: var(--nepa-text-main);
  box-shadow: var(--nepa-shadow-sm);
}

.nepa-meta-tag strong {
  color: var(--nepa-primary);
  font-weight: 600;
}

.nepa-hero-desc {
  font-size: 17.5px;
  color: var(--nepa-text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.nepa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.nepa-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 35px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

[data-theme="dark"] .nepa-btn-primary {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}

.nepa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
  color: #ffffff;
}

.nepa-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--nepa-bg-card);
  color: var(--nepa-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 35px;
  text-decoration: none;
  border: 2px solid var(--nepa-border);
  box-shadow: var(--nepa-shadow-sm);
  transition: all 0.3s ease;
}

.nepa-btn-secondary:hover {
  border-color: var(--nepa-accent-gold);
  color: var(--nepa-accent-gold);
  background: var(--nepa-accent-gold-bg);
  transform: translateY(-2px);
}

.nepa-hero-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.nepa-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--nepa-text-muted);
  font-weight: 500;
}

.nepa-pill-item span.icon {
  width: 26px;
  height: 26px;
  background: #ecfdf5;
  color: var(--nepa-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

/* 3D Book Showcase Card (Right Column) */
.nepa-hero-3d-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1400px;
}

.nepa-3d-book-anchor {
  text-decoration: none;
  display: block;
  cursor: pointer;
  perspective: 1400px;
}

.nepa-3d-book {
  width: 290px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(0deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--nepa-shadow-3d);
}

.nepa-3d-book:hover {
  transform: rotateY(-6deg) rotateX(2deg) scale(1.04);
  box-shadow: -22px 22px 45px rgba(15, 23, 42, 0.32), -8px 8px 20px rgba(15, 23, 42, 0.18);
}

.nepa-book-cover {
  width: 100%;
  height: 100%;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(145deg, #1a2332 0%, #0d131f 65%, #05080e 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}

.nepa-book-cover.nepa-book-cover-image {
  background-size: cover;
  background-position: center;
  padding: 16px;
}

/* Gold Book Spine Crease Effect */
.nepa-book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(0, 0, 0, 0.5) 40%, 
    rgba(255, 215, 0, 0.25) 50%, 
    rgba(0, 0, 0, 0.6) 80%, 
    transparent 100%
  );
  border-right: 1px solid rgba(217, 119, 6, 0.35);
  pointer-events: none;
}

.nepa-cover-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nepa-accent-gold-light);
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 14px;
}

.nepa-book-pages-side {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -16px;
  width: 20px;
  background: repeating-linear-gradient(
    90deg,
    #f8fafc 0px,
    #e2e8f0 2px,
    #cbd5e1 3px,
    #f1f5f9 4px
  );
  transform: rotateY(90deg) translateZ(8px);
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.nepa-book-hint {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--nepa-accent-gold);
  font-weight: 600;
  background: var(--nepa-bg-card);
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: var(--nepa-shadow-sm);
  transition: all 0.2s ease;
}

.nepa-3d-book-anchor:hover + .nepa-book-hint,
.nepa-book-hint:hover {
  background: var(--nepa-accent-gold);
  color: #ffffff;
}

/* Mobile QR Scan Section */
.nepa-showcase-qr-sec {
  padding: 70px 0;
  background: var(--nepa-bg-card);
  border-top: 1px solid var(--nepa-border);
  border-bottom: 1px solid var(--nepa-border);
}

.nepa-qr-card {
  background: linear-gradient(145deg, var(--nepa-bg-card) 0%, var(--nepa-bg-page) 100%);
  border: 2px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--nepa-radius-xl);
  padding: 44px;
  box-shadow: var(--nepa-shadow-md);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.nepa-qr-img-box {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--nepa-radius-lg);
  border: 1px solid var(--nepa-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nepa-qr-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.nepa-qr-img:hover {
  transform: scale(1.03);
}

.nepa-qr-badge-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nepa-emerald);
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
}

[data-theme="dark"] .nepa-qr-badge-pill {
  background: rgba(34, 197, 94, 0.15);
}

.nepa-qr-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--nepa-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.nepa-qr-content p.subtitle {
  font-size: 17px;
  color: var(--nepa-accent-gold);
  font-weight: 600;
  margin-bottom: 24px;
}

.nepa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.nepa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nepa-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--nepa-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

[data-theme="dark"] .nepa-step-num {
  background: var(--nepa-accent-gold);
  color: #0b0f17;
}

.nepa-step-info h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--nepa-primary);
  margin-bottom: 2px;
}

.nepa-step-info p {
  font-size: 15px;
  color: var(--nepa-text-muted);
}

.nepa-share-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--nepa-bg-page);
  border: 1.5px solid var(--nepa-border);
  padding: 8px 8px 8px 16px;
  border-radius: var(--nepa-radius-md);
  max-width: 540px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.nepa-share-box:focus-within {
  border-color: var(--nepa-accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.nepa-share-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--nepa-text-main);
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nepa-copy-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--nepa-radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nepa-copy-btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.nepa-copy-btn:active {
  transform: translateY(1px);
}

.nepa-copy-btn.copied {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45) !important;
}

/* ==========================================================================
   Table of Contents (विषयसूची) — Accordion & Searchable for 754 Pages
   ========================================================================== */
.nepa-showcase-toc-sec {
  padding: 80px 0;
  background: var(--nepa-bg-page);
  border-top: 1px solid var(--nepa-border);
}

.nepa-sec-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.nepa-sec-tag {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--nepa-accent-gold);
  background: var(--nepa-accent-gold-bg);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.nepa-sec-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--nepa-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.nepa-sec-desc {
  font-size: 17px;
  color: var(--nepa-text-muted);
}

/* TOC Controls: Live Search & Expand Toggle */
.nepa-toc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 30px;
}

.nepa-toc-search-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: block;
  cursor: text;
}

.nepa-toc-search-input {
  width: 100% !important;
  padding: 12px 18px 12px 42px !important;
  background: var(--nepa-bg-card, #ffffff) !important;
  border: 2px solid var(--nepa-accent-gold, #d97706) !important;
  border-radius: var(--nepa-radius-md, 10px) !important;
  font-family: inherit !important;
  font-size: 15.5px !important;
  color: var(--nepa-text-main, #1e293b) !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 48px !important;
}

.nepa-toc-search-input:focus {
  border-color: var(--nepa-accent-gold, #d97706);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.nepa-toc-search-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.nepa-toc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--nepa-accent-gold, #d97706);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  z-index: 2;
}

.nepa-toc-toggle-all-btn {
  background: var(--nepa-bg-card);
  color: var(--nepa-accent-gold);
  border: 1px solid var(--nepa-border);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--nepa-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nepa-toc-toggle-all-btn:hover {
  background: var(--nepa-accent-gold-bg);
  border-color: var(--nepa-accent-gold);
}

/* Accordion Container */
.nepa-toc-accordion-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nepa-accordion-card {
  background: var(--nepa-bg-card);
  border: 1px solid var(--nepa-border);
  border-radius: var(--nepa-radius-lg);
  overflow: hidden;
  box-shadow: var(--nepa-shadow-sm);
  transition: all 0.25s ease;
}

.nepa-accordion-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
}

.nepa-accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--nepa-bg-card);
  user-select: none;
  transition: background 0.2s ease;
}

.nepa-accordion-header:hover {
  background: var(--nepa-accent-gold-bg);
}

.nepa-accordion-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nepa-accordion-badge {
  width: 32px;
  height: 32px;
  background: var(--nepa-accent-gold-bg);
  color: var(--nepa-accent-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.nepa-accordion-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--nepa-primary);
}

.nepa-accordion-pages-meta {
  font-size: 13.5px;
  color: var(--nepa-text-muted);
}

.nepa-accordion-arrow {
  font-size: 14px;
  color: var(--nepa-text-muted);
  transition: transform 0.3s ease;
}

.nepa-accordion-card.is-open .nepa-accordion-arrow {
  transform: rotate(180deg);
  color: var(--nepa-accent-gold);
}

/* Accordion Body */
.nepa-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid transparent;
}

.nepa-accordion-card.is-open .nepa-accordion-body {
  max-height: 9999px;
  border-top-color: var(--nepa-border);
}

.nepa-accordion-items-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.nepa-accordion-item-link {
  background: var(--nepa-bg-page);
  border: 1px solid var(--nepa-border);
  border-radius: var(--nepa-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--nepa-text-main);
  transition: all 0.2s ease;
}

.nepa-accordion-item-link:hover {
  border-color: var(--nepa-accent-gold);
  transform: translateX(3px);
  background: var(--nepa-accent-gold-bg);
}

.nepa-accordion-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.nepa-accordion-item-num {
  font-size: 13px;
  color: var(--nepa-accent-gold);
  font-weight: 600;
  white-space: nowrap;
}

.nepa-accordion-item-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--nepa-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nepa-accordion-item-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--nepa-accent-gold);
  white-space: nowrap;
  margin-left: 8px;
}

/* Core Features Grid */
.nepa-showcase-features-sec {
  padding: 80px 0;
  background: var(--nepa-bg-card);
  border-top: 1px solid var(--nepa-border);
}

.nepa-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.nepa-feat-card {
  background: var(--nepa-bg-page);
  border: 1px solid var(--nepa-border);
  border-radius: var(--nepa-radius-lg);
  padding: 30px 24px;
  box-shadow: var(--nepa-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nepa-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--nepa-shadow-md);
  border-color: rgba(217, 119, 6, 0.4);
}

.nepa-feat-icon {
  width: 52px;
  height: 52px;
  background: var(--nepa-accent-gold-bg);
  color: var(--nepa-accent-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.nepa-feat-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--nepa-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.nepa-feat-desc {
  font-size: 15px;
  color: var(--nepa-text-muted);
  line-height: 1.65;
}

/* Video Showcase Section — Placed at the end before CTA */
.nepa-showcase-video-sec {
  padding: 80px 0;
  background: var(--nepa-bg-page);
  border-top: 1px solid var(--nepa-border);
}

.nepa-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nepa-video-card {
  background: var(--nepa-bg-card);
  border: 1px solid var(--nepa-border);
  border-radius: var(--nepa-radius-lg);
  overflow: hidden;
  box-shadow: var(--nepa-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nepa-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nepa-shadow-md);
  border-color: var(--nepa-accent-gold);
}

.nepa-video-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.nepa-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nepa-video-card:hover .nepa-video-thumb-img {
  transform: scale(1.05);
  opacity: 0.95;
}

.nepa-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nepa-video-card:hover .nepa-play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #d97706;
}

.nepa-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--nepa-accent-gold-light);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.nepa-video-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nepa-video-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--nepa-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.nepa-video-desc {
  font-size: 14.5px;
  color: var(--nepa-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.nepa-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--nepa-accent-gold-bg);
  color: var(--nepa-accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 10px 18px;
  border-radius: var(--nepa-radius-md);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nepa-video-btn:hover {
  background: var(--nepa-accent-gold);
  color: #ffffff;
}

/* Call to Action Banner */
.nepa-showcase-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nepa-cta-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nepa-cta-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.nepa-cta-desc {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.65;
}

.nepa-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.4);
  transition: all 0.3s ease;
}

.nepa-btn-cta:hover {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

/* Showcase Footer */
.nepa-showcase-footer {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: #94a3b8;
  font-size: 14.5px;
}

.nepa-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.nepa-footer-left p {
  line-height: 1.6;
}

.nepa-footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nepa-footer-right a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nepa-footer-right a:hover {
  color: var(--nepa-accent-gold-light);
}

/* Video Lightbox Modal */
.nepa-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nepa-video-modal.active {
  display: flex;
}

.nepa-video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000000;
  border-radius: var(--nepa-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nepa-video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.nepa-video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.nepa-video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.nepa-video-modal-close:hover {
  background: #ef4444;
}

/* Toast Message */
.nepa-toast-notify {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--nepa-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--nepa-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

[data-theme="dark"] .nepa-toast-notify {
  background: #1e293b;
  border-color: rgba(217, 119, 6, 0.4);
}

.nepa-toast-notify.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nepa-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .nepa-hero-badge {
    margin: 0 auto 16px;
  }
  .nepa-meta-tags {
    justify-content: center;
  }
  .nepa-hero-actions {
    justify-content: center;
  }
  .nepa-hero-pills {
    max-width: 500px;
    margin: 0 auto;
  }
  .nepa-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nepa-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nepa-accordion-items-grid {
    grid-template-columns: 1fr;
  }
  .nepa-qr-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 32px;
  }
  .nepa-qr-img-box {
    max-width: 280px;
    margin: 0 auto;
  }
  .nepa-step-item {
    text-align: left;
  }
  .nepa-share-box {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nepa-hamburger-btn {
    display: flex;
  }
  .nepa-mobile-drawer {
    display: block;
  }
  .nepa-nav-btn {
    display: none;
  }
  .nepa-nav-inner {
    padding: 0 16px;
  }
  .nepa-showcase-hero {
    padding: 32px 0 44px;
  }
  .nepa-hero-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .nepa-hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
  .nepa-3d-book {
    width: 220px;
    height: 315px;
  }
  .nepa-nav-links {
    display: none;
  }
  .nepa-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nepa-videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nepa-btn-primary, .nepa-btn-secondary {
    width: 100%;
  }
  .nepa-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  /* Mobile QR Reading Section Optimization */
  .nepa-showcase-qr-sec {
    padding: 44px 0;
  }
  .nepa-qr-card {
    padding: 24px 16px;
    border-radius: 20px;
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .nepa-qr-img-box {
    max-width: 220px;
    padding: 14px;
  }
  .nepa-qr-img {
    width: 170px;
    height: 170px;
  }
  .nepa-qr-content h3 {
    font-size: 20px;
    line-height: 1.3;
  }
  .nepa-qr-content p.subtitle {
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.45;
  }
  .nepa-step-item {
    gap: 12px;
  }
  .nepa-step-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .nepa-step-info h4 {
    font-size: 15px;
  }
  .nepa-step-info p {
    font-size: 13px;
  }
  .nepa-share-box {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    gap: 10px;
    margin: 0;
  }
  .nepa-share-input {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 8px 4px;
  }
  .nepa-copy-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nepa-nav-brand-text h1 {
    font-size: 17px;
  }
  .nepa-nav-brand-text span {
    font-size: 11px;
  }
  .nepa-nav-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .nepa-theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .nepa-hamburger-btn {
    width: 38px;
    height: 38px;
  }
  .nepa-hero-title {
    font-size: 23px;
  }
  .nepa-hero-subtitle {
    font-size: 14.5px;
  }
  .nepa-hero-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  .nepa-3d-book {
    width: 195px;
    height: 280px;
  }
  .nepa-btn-cta {
    padding: 14px 18px;
    font-size: 15px;
  }
}
