:root {
  --primary: #0066a2;
  --primary-dark: #004775;
  --primary-light: #e0f2fe;
  --secondary: #15803d;
  --secondary-dark: #14532d;
  --secondary-light: #dcfce7;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --bg: #fcfaf6;
  --bg-alt: #f4efe6;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2d9c8;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans Devanagari', 'Mukta', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', 'Noto Sans Devanagari', Georgia, serif;
  line-height: 1.35;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cinematographic Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #facc15, #22c55e, #0284c7);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
  transition: width 0.08s linear;
}

/* ============================================================
   1. Top Announcement Ribbon
   ============================================================ */
.top-ribbon {
  background: linear-gradient(90deg, #003559 0%, var(--primary) 50%, var(--secondary-dark) 100%);
  color: #fff;
  font-size: 0.88rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.top-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.35);
  padding: 0.18rem 0.85rem;
  border-radius: 999px;
}

.top-contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.top-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.95;
  transition: opacity var(--transition);
}

.top-contact-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.visitor-ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #f8fafc;
  text-decoration: none !important;
}

.visitor-ribbon-pill strong {
  color: #fde047;
}

.pill-sep {
  opacity: 0.45;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.admin-ribbon-btn {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.admin-ribbon-btn:hover {
  background: #facc15;
  color: #0f172a;
}

/* ============================================================
   2. Main Sticky Header, High-Clarity Brand Logo & Language Switcher
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Ultra-Clear Company Logo Frame */
.brand-logo-frame {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 102, 162, 0.28), 0 0 0 2.5px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover .brand-logo-frame {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 6px 22px rgba(21, 128, 61, 0.35), 0 0 0 3px var(--secondary);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.06) saturate(1.08);
}

.brand-text h1 {
  font-size: 1.65rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.15;
}

/* Motto directly under इसाप प्रकाशन */
.brand-motto-line {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--secondary-dark);
  background: linear-gradient(90deg, #dcfce7, #fef3c7);
  display: inline-block;
  padding: 0.08rem 0.65rem;
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
  margin: 0.2rem 0 0.18rem;
}

.brand-text .brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.header-right-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  order: 2;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.2rem;
  border-radius: 999px;
  gap: 0.18rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--primary-dark);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 102, 162, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(226, 217, 200, 0.55);
  order: 3;
}

.nav-link {
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--secondary);
  color: #fff !important;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.7rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* ============================================================
   3. Cinematographic Hero Section & Animations
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #002b49 0%, #00558a 50%, #0f5c2e 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/branding/headback.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
  animation: slowKenBurns 26s ease-in-out infinite alternate;
}

@keyframes slowKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-cinematic-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.24;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-title span {
  color: #fde047;
}

.hero-motto {
  font-size: 1.28rem;
  color: #bbf7d0;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.85rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cinematic::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: sheenSweep 4.5s infinite;
}

@keyframes sheenSweep {
  0%, 70% { left: -60%; }
  100% { left: 140%; }
}

.btn-gold {
  background: #facc15;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
}

.btn-gold:hover {
  background: #fde047;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), background var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.2rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: transform 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
}

.hero-portrait-wrap {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), #e0f2fe);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  box-shadow: inset 0 0 20px rgba(0, 102, 162, 0.12);
}

.hero-portrait {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-portrait {
  transform: scale(1.03);
}

.hero-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.hero-card p {
  color: #bbf7d0;
  font-size: 0.92rem;
}

/* ============================================================
   4. News / Highlights Banner (Fixed Truncation — Full Text Shown!)
   ============================================================ */
.news-ticker {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-bottom: 2px solid #f59e0b;
  color: #78350f;
  padding: 0.85rem 0;
  font-size: 0.96rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-tag {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  flex-shrink: 0;
}

/* Fixed: No ellipsis or hidden overflow! Full text wraps cleanly and is 100% readable */
.ticker-text-full {
  font-weight: 700;
  line-height: 1.55;
  color: #78350f;
  white-space: normal;
  word-break: break-word;
  flex: 1;
}

/* ============================================================
   Cinematographic Scroll Reveal Classes
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   5. Section Layout & E-Books / Books Grid
   ============================================================ */
.section {
  padding: 4.5rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* Featured E-Books / PDF Flipbooks Banner */
.ebook-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.ebook-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.ebook-cover {
  width: 125px;
  height: 185px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.ebook-card:hover .ebook-cover {
  transform: scale(1.04) rotate(-1.5deg);
}

.ebook-info {
  flex: 1;
}

.ebook-badge {
  display: inline-block;
  background: #0284c7;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ebook-info h3 {
  font-size: 1.32rem;
  margin-bottom: 0.2rem;
}

.ebook-author {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ebook-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ebook-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Books Controls (Tabs + Search) */
.books-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 102, 162, 0.25);
}

.search-box {
  position: relative;
  min-width: 250px;
  flex: 1;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 162, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-banner {
  background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
  border-left: 5px solid var(--primary);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: none;
}

.category-banner.visible {
  display: block;
}

.books-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Books Grid with Cinematographic 3D Cover Lift */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.65rem;
}

.book-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 38px rgba(0, 71, 117, 0.16);
  border-color: var(--primary);
}

.book-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.book-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.book-card:hover .book-img-wrap::after {
  opacity: 1;
}

.book-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.book-card:hover .book-img-wrap img {
  transform: scale(1.06);
}

.book-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.book-tag.tag-pdf { background: #dc2626; }
.book-tag.tag-bilingual { background: #0284c7; }
.book-tag.tag-monolingual { background: #15803d; }
.book-tag.tag-award { background: #d97706; }

.book-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title-mr {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.book-title-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.book-author {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: auto;
}

/* ============================================================
   6. Awards & Honours Section
   ============================================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.award-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.award-img-wrap {
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

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

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

.award-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.award-year {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-light);
  color: #92400e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.award-content h3 {
  font-size: 1.28rem;
  margin-bottom: 0.65rem;
  color: var(--primary-dark);
}

.award-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.award-quote {
  margin-top: auto;
  background: var(--bg-alt);
  border-left: 3px solid var(--secondary);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   7. About Us Story Section
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 2.5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.founder-img-bg {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding-top: 1rem;
}

.founder-img-bg img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.founder-details {
  padding: 1.35rem;
}

.founder-details h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.founder-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.timeline-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.timeline-list {
  list-style: none;
  margin-top: 0.85rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.9rem;
  border-left: 2px solid var(--primary-light);
  font-size: 0.92rem;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.about-article {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.about-article p {
  margin-bottom: 1.2rem;
  font-size: 1.04rem;
  text-align: justify;
}

.about-highlight {
  background: linear-gradient(90deg, var(--primary-light), #f0fdf4);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--primary-dark);
}

.about-subhead {
  font-size: 1.35rem;
  color: var(--secondary-dark);
  margin: 1.75rem 0 0.85rem;
}

/* ============================================================
   8. Sahityadindi, Authors & Events Sections
   ============================================================ */
.sahityadindi-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.sahityadindi-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

.pamphlet-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.pamphlet-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition);
}

.pamphlet-thumbs img:hover {
  transform: scale(1.05);
}

.authors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.author-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.author-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.author-pill.female-author {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #9d174d;
}

.wakodi-feature {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.wakodi-video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
  max-height: 360px;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

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

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
  padding: 1.2rem 0.75rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ============================================================
   9. Cool Analytics Dashboard & Visitor Counter Section
   ============================================================ */
.analytics-section {
  background: linear-gradient(180deg, #fcfaf6 0%, #eff6ff 100%);
  border-top: 1px solid var(--border);
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.kpi-blue { border-left: 5px solid #0284c7; }
.kpi-green { border-left: 5px solid #16a34a; }
.kpi-amber { border-left: 5px solid #d97706; }
.kpi-purple { border-left: 5px solid #7c3aed; }

.kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.kpi-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0.15rem 0;
}

.kpi-trend {
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.chart-card-header h3 {
  font-size: 1.18rem;
  color: var(--primary-dark);
}

.chart-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chart-legend-inline {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-blue { background: #0284c7; }
.dot-green { background: #16a34a; }

.svg-chart-wrap {
  width: 100%;
  min-height: 230px;
}

.leaderboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.leader-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.leader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
}

.leader-bar-track {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.leader-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.8s ease;
}

.lang-breakdown-bar-wrap {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   10. Contact & Database Inquiry Form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  gap: 2.25rem;
}

.contact-card,
.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bank-box {
  background: var(--bg-alt);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
}

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

.inquiry-feedback-box {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
  font-size: 0.9rem;
}

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.84);
  padding: 3.5rem 0 2rem;
}

.footer-logo-clear {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 0 2px #fde047;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #fde047;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-visitor-summary strong {
  color: #fde047;
}

/* ============================================================
   12. Floating Smart Chatbot Widget
   ============================================================ */
.chatbot-wrapper {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  color: #fff;
  border: 2px solid #fde047;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 71, 117, 0.38);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chatbot-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 71, 117, 0.48);
}

.chatbot-fab-icon {
  font-size: 1.25rem;
}

.chatbot-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chatbot-window {
  width: 375px;
  max-width: calc(100vw - 2rem);
  height: 520px;
  max-height: calc(100vh - 6.5rem);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.26);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0.85rem;
  animation: chatPopIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-window.open {
  display: flex;
}

@keyframes chatPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}

.chatbot-header h4 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.chatbot-header span {
  font-size: 0.74rem;
  color: #fde047;
  display: block;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 86%;
  padding: 0.68rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-book-mini {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.chat-book-mini img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.chatbot-chips {
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  white-space: nowrap;
}

.chat-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--primary-dark);
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: all var(--transition);
}

.chat-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chatbot-input-bar {
  display: flex;
  padding: 0.6rem;
  background: #fff;
  border-top: 1px solid var(--border);
  gap: 0.45rem;
}

.chatbot-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   13. Modals & Admin Panel Workspace
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-dialog.pdf-dialog {
  max-width: 1120px;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-dialog.admin-dialog {
  max-width: 1140px;
  max-height: 93vh;
}

.admin-modal-header {
  background: linear-gradient(90deg, #003559, var(--primary-dark));
  color: #fff;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.5rem;
}

.pdf-frame {
  width: 100%;
  flex: 1;
  border: none;
}

.book-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.lightbox-img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* Admin Panel Specific Styles */
.admin-login-box {
  max-width: 440px;
  margin: 1rem auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.admin-login-hint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #eff6ff;
  border: 1px dashed #60a5fa;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.admin-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.admin-panel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--primary-dark);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-new { background: #fef3c7; color: #92400e; }
.status-contacted { background: #e0f2fe; color: #0369a1; }
.status-completed { background: #dcfce7; color: #15803d; }

/* ============================================================
   14. Comprehensive Mobile & Tablet Responsiveness
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-layout,
  .sahityadindi-grid,
  .wakodi-feature,
  .contact-grid,
  .analytics-charts-grid,
  .admin-charts-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hide-on-sm {
    display: none !important;
  }

  .top-ribbon-inner {
    justify-content: center;
    text-align: center;
  }

  .top-contact-links {
    justify-content: center;
  }

  .brand-logo-frame {
    width: 58px;
    height: 58px;
  }

  .brand-text h1 {
    font-size: 1.28rem;
  }

  .brand-motto-line {
    font-size: 0.82rem;
    padding: 0.05rem 0.45rem;
  }

  .brand-text .brand-sub {
    font-size: 0.7rem;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    text-align: center;
    padding: 0.65rem;
  }

  .hero {
    padding: 2.75rem 0 2.5rem;
  }

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

  .ticker-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .ebook-showcase {
    grid-template-columns: 1fr;
  }

  .ebook-card {
    flex-direction: column;
    text-align: center;
  }

  .ebook-buttons {
    justify-content: center;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
  }

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

  .about-article {
    padding: 1.35rem;
  }

  .sahityadindi-box {
    padding: 1.35rem;
  }

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

  .book-modal-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-wrapper {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .chatbot-fab-label {
    display: none;
  }

  .chatbot-fab {
    padding: 0.75rem 0.9rem;
  }
}
