/* ==========================================================================
   Prakrit Bharati  Academy - Core Stylesheet & Responsive Design System
   ========================================================================== */

:root {
  --green-dark: #2f4f1f;
  --green-mid: #4f7f2a;
  --green-light: #b9d98b;
  --green-pale: #e9f5df;
  --yellow-bright: #f6d84c;
  --yellow-deep: #f3c433;
  --cream-bg: #fbf6e6;
  --white: #ffffff;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --border-light: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: #fdfdfd;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= HEADER & NAVIGATION ================= */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  max-width: 1350px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

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

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--yellow-bright);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.nav-link.active {
  color: var(--green-dark);
  font-weight: 600;
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  min-width: 220px;
  display: none;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--yellow-bright);
  z-index: 1001;
  padding: 8px 0;
  list-style: none;
}

.dropdown-menu li a {
  padding: 10px 18px;
  font-size: 13.5px;
  display: block;
  color: var(--text-main);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: var(--cream-bg);
  color: var(--green-dark);
  font-weight: 500;
}

.dropdown:hover>.dropdown-menu {
  display: block;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
  left: 100%;
  top: 0;
}

/* Nav Right & Buttons */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: var(--cream-bg);
  padding: 4px 10px;
  border-radius: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
  padding: 2px 4px;
}

.lang-btn.active {
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow-deep);
}

.btn-support {
  background: var(--yellow-bright);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  white-space: nowrap;
}

.btn-support:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--green-dark);
  padding: 4px;
}

/* Backdrop overlay when mobile nav is open */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

/* ================= PAGE HERO SECTION ================= */
.page-hero {
  background: linear-gradient(135deg, rgba(47, 79, 31, 0.92), rgba(79, 127, 42, 0.85)),
    url('../Photos-20260811T172249Z-1-001/Photos/PBA Photo/DSC02898.JPG');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 70px 5% 60px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.page-hero p {
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--yellow-bright);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #ffffff;
  opacity: 0.85;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ================= LAYOUT CONTAINERS & GRID UTILITIES ================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 70px 0;
}

.bg-cream {
  background-color: var(--cream-bg);
}

.bg-pale-green {
  background-color: var(--green-pale);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 45px;
}

.section-header .sub-title {
  color: var(--green-mid);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  font-size: 34px;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Responsive Grid Utility System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: var(--yellow-bright);
  color: var(--text-main);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ================= PUBLICATION / PUBLISHER PAGE STYLES ================= */
.catalog-toolbar {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--green-mid);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  outline: none;
  background: var(--white);
  color: var(--text-main);
  cursor: pointer;
}

.view-btn-group {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  background: var(--white);
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.view-btn.active {
  background: var(--green-dark);
  color: var(--white);
}

/* Category Filters */
.category-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--cream-bg);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.filter-chip:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.filter-chip.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* Publications Grid & List Views */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.publications-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publication-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  height: 250px;
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.publication-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(47, 79, 31, 0.9);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.badge-code {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--yellow-bright);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-title {
  font-size: 17.5px;
  color: var(--green-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pub-author {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.pub-desc {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.card-actions .btn-sm {
  padding: 8px 12px;
  font-size: 12.5px;
  flex: 1;
  text-align: center;
}

/* ================= E-COMMERCE DETAIL & REVIEW STYLES ================= */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8faf6;
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
}

.product-gallery-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.product-gallery-img:hover {
  transform: scale(1.03);
}

/* ================= PHOTO GALLERY TAB STYLES ================= */
.gallery-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.btn-gallery-tab {
  background: var(--white);
  color: var(--green-dark);
  border: 1.5px solid rgba(47, 79, 31, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn-gallery-tab:hover {
  background: var(--green-pale);
  border-color: var(--green-mid);
  color: var(--green-dark);
}

.btn-gallery-tab.active {
  background: var(--green-dark);
  color: var(--yellow-bright);
  border-color: var(--green-dark);
  box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 240px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 35, 10, 0.88));
  padding: 20px 16px 14px;
  color: #fff;
}

.gallery-card-tag {
  display: inline-block;
  background: var(--yellow-bright);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.product-info-wrap h1 {
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.product-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.star-rating {
  color: #f59e0b;
}

.product-price-box {
  background: var(--cream-bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--yellow-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
}

.stock-badge {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.product-specs-list {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.product-specs-list td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.product-specs-list td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 35%;
}

.product-action-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* Reviews Section */
.reviews-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  background: var(--cream-bg);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 35px;
  align-items: center;
}

.overall-score {
  text-align: center;
}

.overall-score h2 {
  font-size: 48px;
  color: var(--green-dark);
  line-height: 1;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--yellow-bright);
}

.review-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 15px;
}

.verified-badge {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.review-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.review-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.add-review-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-top: 35px;
}

.interactive-stars {
  display: flex;
  gap: 8px;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  margin-bottom: 15px;
}

.interactive-stars i.active,
.interactive-stars i:hover,
.interactive-stars i:hover~i {
  color: #f59e0b;
}

/* ================= OLD SCHOOL PDF BOOK READER MODAL ================= */
.pdf-reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 26, 14, 0.94);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pdf-reader-overlay.active {
  display: flex;
  opacity: 1;
}

.pdf-reader-toolbar {
  background: #1e3314;
  color: var(--white);
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--yellow-bright);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-toolbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--yellow-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-page-counter {
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  color: #e2e8f0;
}

.pdf-tool-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
}

.pdf-tool-btn:hover {
  background: var(--yellow-bright);
  color: var(--text-main);
}

/* Hardcover Vintage Book Container */
.pdf-book-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.vintage-book-spread {
  background: #fbf6e8;
  width: 100%;
  max-width: 950px;
  height: 80vh;
  max-height: 650px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(115, 87, 45, 0.2);
  border: 12px solid #3c2415;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.vintage-book-spread::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.15));
  z-index: 5;
  pointer-events: none;
}

.book-page-half {
  padding: 35px 30px;
  overflow-y: auto;
  position: relative;
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
}

.book-page-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.page-header-stamp {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8c7355;
  text-align: center;
  border-bottom: 1px solid #e5d8c3;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.page-number-footer {
  position: sticky;
  bottom: 0;
  background: inherit;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: #8c7355;
  text-align: center;
  padding-top: 10px;
  margin-top: 20px;
  border-top: 1px solid #e5d8c3;
}

.illuminated-dropcap {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  line-height: 38px;
  padding-top: 4px;
  padding-right: 10px;
  padding-left: 3px;
  color: #4f7f2a;
  font-weight: 700;
}

.prakrit-text-block {
  font-size: 14.5px;
  line-height: 1.85;
  color: #2c2217;
  text-align: justify;
  margin-bottom: 18px;
}

.manuscript-stamp-box {
  border: 2px double #b59868;
  padding: 14px;
  margin: 18px 0;
  text-align: center;
  background: rgba(246, 216, 76, 0.15);
  border-radius: 4px;
}

/* Page Navigation Arrows */
.book-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--yellow-bright);
  color: var(--text-main);
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.book-nav-arrow:hover {
  background: var(--yellow-deep);
  transform: translateY(-50%) scale(1.1);
}

.book-nav-arrow.prev {
  left: 15px;
}

.book-nav-arrow.next {
  right: 15px;
}

/* Modals & Toasts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-header-banner {
  background: var(--green-dark);
  color: var(--white);
  padding: 25px 30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header-banner h3 {
  font-size: 22px;
  color: var(--yellow-bright);
}

.modal-body-padding {
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--green-mid);
}

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

.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 3000;
}

.toast {
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  border-left: 5px solid var(--yellow-bright);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

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

/* ================= FOOTER ================= */
.footer {
  background-color: var(--green-dark);
  color: #d7e6c4;
  padding: 65px 0 0;
  margin-top: 50px;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 0 20px;
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 18px;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  color: #d7e6c4;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

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

.footer-newsletter input {
  padding: 12px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: none;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.footer-newsletter button {
  padding: 10px 20px;
  background: var(--yellow-bright);
  color: var(--text-main);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.footer-newsletter button:hover {
  background: var(--yellow-deep);
}

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ================= COMPREHENSIVE RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding: 12px 20px;
  }

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

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

  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }

  .vintage-book-spread {
    grid-template-columns: 1fr;
    height: 85vh;
  }

  .book-page-left {
    border-right: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  }

  .vintage-book-spread::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-wrapper {
    position: fixed;
    top: 71px;
    left: -100%;
    width: 290px;
    height: calc(100vh - 71px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 20px;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-wrapper.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--cream-bg);
    border-radius: 0;
    width: 100%;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .publications-list-view .publication-card {
    flex-direction: column;
  }

  .publications-list-view .card-img-wrap {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .page-hero {
    padding: 50px 20px 40px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 14.5px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    padding: 20px;
  }

  .product-gallery {
    padding: 20px;
  }

  .product-gallery-img {
    max-height: 280px;
  }

  .reviews-container {
    padding: 20px;
  }

  .reviews-summary-grid {
    padding: 20px;
  }

  .pdf-reader-toolbar {
    padding: 10px 15px;
  }

  .pdf-toolbar-title {
    font-size: 15px;
  }

  .book-nav-arrow.prev {
    left: 5px;
  }

  .book-nav-arrow.next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 15px;
  }

  .logo img {
    height: 36px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-text span {
    font-size: 9.5px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .product-action-btns {
    flex-direction: column;
  }

  .product-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vintage-book-spread {
    border-width: 6px;
  }

  .book-page-half {
    padding: 20px 15px;
  }

  .book-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .filter-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

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

/* ================= MODERN REVIEW SLIDER COMPONENT ================= */
.modern-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0 30px;
}

.modern-slider-container {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  width: 100%;
}

.modern-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.modern-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .modern-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .modern-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

.review-card-modern {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  border-color: var(--green-mid);
}

.review-card-stars {
  color: var(--yellow-deep);
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-card-text {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 22px;
  flex-grow: 1;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.author-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 79, 31, 0.25);
  flex-shrink: 0;
}

.author-info h5 {
  font-size: 15px;
  color: var(--green-dark);
  margin-bottom: 2px;
  font-weight: 600;
}

.author-info p {
  font-size: 12px;
  color: #666;
}

.slider-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--green-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--green-dark);
  color: var(--yellow-bright);
  border-color: var(--green-dark);
  transform: scale(1.08);
}

.slider-dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot-item {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot-item.active {
  width: 28px;
  border-radius: 12px;
  background: var(--green-dark);
}