/* ==========================================================================
   NEO VOICE PUBLICATIONS - PROFESSIONAL POLISH THEME
   Pure CSS3 • High Performance • Fully Responsive • Accessible
   ========================================================================== */

/* --- CSS Variables & Color System --- */
:root {
  /* Brand Palette - Harmonized with Official Logo (Signature Crimson Red, Charcoal Swan & Leaf Green) */
  --color-primary: #18181b;         /* Charcoal/Zinc-900 - matching logo swan & typography */
  --color-primary-navy: #18181b;    /* Dominant heading dark */
  --color-primary-light: #27272a;   /* Zinc-800 dark accent */
  --color-accent: #dc2626;          /* Vibrant Signature Red matching NEO Voice text */
  --color-accent-hover: #b91c1c;    /* Deep Crimson Red hover */
  --color-accent-soft: #fef2f2;     /* Red-50 soft tint for pills and cards */
  --color-accent-glow: rgba(220, 38, 38, 0.15);
  --color-highlight: #e11d48;       /* Rose-600 highlight */
  
  /* Brand Leaf Green (from logo swoosh) for educational trust accents & success */
  --color-brand-green: #65a30d;     /* Lime/Leaf-600 */
  --color-brand-green-dark: #4d7c0f;/* Leaf-700 */
  --color-brand-green-soft: #f7fee7;/* Leaf soft tint */
  
  /* Warm Cream & Neutral Palette */
  --color-bg: #faf8f5;              /* Primary background: Warm Premium Silk Cream */
  --color-bg-alt: #f4eee5;          /* Warm Sand section background */
  --color-bg-card: #ffffff;         /* Crisp card background on cream */
  --color-border: #e4dcce;          /* Warm subtle border */
  --color-border-light: #ece5d8;    /* Warm soft border */
  --color-border-hover: #d2c5b3;    /* Warm border hover */
  
  /* Typography Colors */
  --color-text-main: #18181b;       /* Zinc-900 deep black/charcoal */
  --color-text-body: #4b5563;       /* Neutral body gray */
  --color-text-muted: #9ca3af;      /* Muted secondary gray */
  --color-text-sub: #6b7280;        /* Mid-tone subtitle gray */
  --color-text-inverse: #ffffff;    /* White on dark */
  
  /* Status & Accents */
  --color-success: #15803d;         /* Forest green */
  --color-warning: #d97706;         /* Amber */
  
  /* Typography System */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;
  
  /* Shadows - Sophisticated depth with subtle warm/crimson undertones */
  --shadow-sm: 0 1px 2px 0 rgba(24, 24, 27, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(24, 24, 27, 0.07), 0 2px 4px -2px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(24, 24, 27, 0.08), 0 4px 6px -4px rgba(24, 24, 27, 0.03);
  --shadow-red: 0 10px 25px -5px rgba(220, 38, 38, 0.25);
  --shadow-hover: 0 16px 28px -6px rgba(24, 24, 27, 0.12), 0 6px 10px -4px rgba(220, 38, 38, 0.08);
  --shadow-cover: 0 12px 24px -4px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s ease;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Overflow & Wrap Containment for Mobile Viewports */
main, section, header, footer, .container, .site-header, .books-grid, .hero-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, span, a {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary-navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section-dark {
  background-color: var(--color-primary);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-tight {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-navy);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2.15rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.text-muted {
  color: var(--color-text-sub);
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.section-tag-dark {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(252, 165, 165, 0.25);
}

.section-tag-green {
  color: var(--color-brand-green-dark);
  background: var(--color-brand-green-soft);
  border-color: rgba(101, 163, 13, 0.2);
}

.section-accent-bar {
  width: 24px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 54px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.h-12 {
  height: 3rem;
}

.w-auto {
  width: auto;
}

.object-contain {
  object-fit: contain;
}

header#siteHeader .brand-link:hover .brand-logo,
header#siteHeader .brand-link:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 6px rgba(203, 0, 0, 0.12));
}

.footer-brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-sub);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent);
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.nav-cta-pill {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-cta-pill:hover {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem 5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  animation: drawerSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  background: #ffffff;
  border-color: var(--color-border);
  color: var(--color-accent);
}

.mobile-nav-link.active {
  background: #fee2e2;
  color: var(--color-accent);
  border-color: #fca5a5;
}

.mobile-nav-link .nav-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: #ffffff;
  color: var(--color-accent);
  font-weight: 700;
  border: 1px solid #fecaca;
}

/* Mobile Drawer Quick Action Box */
.mobile-drawer-contact-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mobile-drawer-contact-title {
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.mobile-drawer-quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mobile-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s ease;
  min-height: 44px;
}

.mobile-quick-btn.btn-wa {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #20bd5a;
}

.mobile-quick-btn.btn-call {
  background: var(--color-primary-navy);
  color: #ffffff;
}

.mobile-quick-btn:hover,
.mobile-quick-btn:active {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* --- Floating Mobile Bottom Action Dock --- */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    z-index: 950;
    align-items: center;
    justify-content: space-around;
  }

  .dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 2px;
    position: relative;
  }

  .dock-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
    transition: transform 0.2s ease, stroke 0.2s ease;
  }

  .dock-item:active {
    transform: scale(0.92);
  }

  .dock-item.active {
    color: var(--color-accent);
  }

  .dock-item.active svg {
    stroke: var(--color-accent);
    transform: translateY(-2px);
  }

  .dock-item.dock-highlight {
    color: var(--color-primary-navy);
  }

  .dock-item.dock-wa {
    color: #16a34a;
  }

  .dock-item.dock-wa svg {
    stroke: #16a34a;
  }

  .dock-item.dock-sample-btn {
    background: linear-gradient(135deg, #e31e24 0%, #b91c1c 100%);
    color: #ffffff;
    border-radius: 12px;
    margin: 4px 6px;
    height: 52px;
    flex: 1.15;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
  }

  .dock-item.dock-sample-btn svg {
    stroke: #ffffff;
  }

  .dock-item.dock-sample-btn span {
    color: #ffffff;
    font-weight: 800;
  }
}

/* --- Buttons & Interactive Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 8px 16px -2px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -2px rgba(29, 78, 216, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-muted);
  color: var(--color-primary-navy);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-primary:hover {
  background-color: var(--color-accent-soft);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* --- Hero Section (Professional Polish) --- */
.hero-section {
  padding: 4.5rem 0 4rem 0;
  background: linear-gradient(135deg, #f3efe6 0%, #faf7f2 100%);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-navy);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-primary-navy);
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hero-keypoints {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-body);
}

.hero-point svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Hero Right Bento Statistics Grid */
.hero-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.hero-bento-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  cursor: default;
}

.hero-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.04), transparent);
  transition: 0.6s ease;
  pointer-events: none;
}

.hero-bento-card:hover::before {
  left: 100%;
}

.hero-bento-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(227, 30, 36, 0.08);
  border-color: rgba(227, 30, 36, 0.3);
}

.hero-bento-card:nth-child(1) { animation: bentoCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-bento-card:nth-child(2) { animation: bentoCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-bento-card:nth-child(3) { animation: bentoCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-bento-card:nth-child(4) { animation: bentoCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

@keyframes bentoCardIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-bento-icon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.hero-bento-icon-badge.badge-green {
  background: #ecfdf5;
  color: #059669;
}

.hero-bento-icon-badge.badge-gold {
  background: #fef3c7;
  color: #d97706;
}

.hero-bento-icon-badge.badge-red {
  background: #fee2e2;
  color: #dc2626;
}

.hero-bento-card:hover .hero-bento-icon-badge {
  transform: rotate(12deg) scale(1.1);
}

.hero-bento-num {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--color-primary-navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.hero-bento-card:hover .hero-bento-num {
  color: var(--color-accent);
}

.hero-bento-num .counter-val {
  display: inline-block;
  min-width: 1ch;
}

.hero-bento-num .counter-suffix,
.hero-bento-num .counter-prefix {
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.85rem;
}

.hero-bento-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
  transition: color 0.3s ease;
}

.hero-bento-card:hover .hero-bento-label {
  color: var(--color-primary-navy);
}

/* --- Book Slider / Carousel (Professional Polish Dark Backdrop) --- */
.slider-section {
  padding: 4rem 0;
  background-color: var(--color-primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  margin-top: 1.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slider-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.slider-title-group h2 {
  color: #ffffff;
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.slider-title-group p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.slider-arrows {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.slider-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.25rem;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Polished Book Card in Slider */
.slider-card {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 240px;
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  cursor: pointer;
  position: relative;
}

.slider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
}

/* Book Cover Styling */
.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 2px 4px 10px rgba(0, 0, 0, 0.15);
  border-left: 4px solid rgba(0, 0, 0, 0.2);
}

/* Custom Cover Image - Clean image without background color space/padding, with minor subtle shadow */
.book-cover-wrap.custom-cover-img {
  padding: 0 !important;
  border: none !important;
  border-left: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  border-radius: 6px;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  aspect-ratio: 3 / 4;
  width: 100%;
}

.book-cover-wrap.custom-cover-img.img-loaded {
  background: transparent !important;
  background-color: transparent !important;
}

/* Lightweight Skeleton & Blur-up Shimmer Placeholder */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.img-skeleton-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9 !important;
  background-image: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
  background-size: 200% 100% !important;
  animation: skeletonShimmer 1.6s ease-in-out infinite !important;
}

.img-skeleton-wrapper.img-loaded {
  animation: none !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 100% Complete Book Cover Display Without Cropping */
.book-card img,
.book-cover,
.book-cover-wrap img,
.book-card-media img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  max-height: 250px;
  display: block;
}

.book-cover-wrap.custom-cover-img .book-cover-real-img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain !important;
  object-position: center bottom;
  display: block;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.blog-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.img-skeleton-wrapper.img-loaded .book-cover-real-img,
.img-skeleton-wrapper.img-loaded .blog-real-img,
.book-cover-real-img.img-loaded,
.blog-real-img.img-loaded {
  opacity: 1 !important;
}

/* Pre-render Skeleton Cards to prevent CLS */
.skeleton-card {
  pointer-events: none;
  user-select: none;
}

.skeleton-shimmer-box {
  background-color: #f1f5f9;
  background-image: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
}

.book-card:hover .book-cover-wrap.custom-cover-img,
.slider-card:hover .book-cover-wrap.custom-cover-img {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.book-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.book-cover-code {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-navy);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.book-cover-brand {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.book-cover-center {
  text-align: center;
  color: #ffffff;
  padding: 0.5rem 0;
}

.book-cover-subject {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.book-cover-title-text {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.book-cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #ffffff;
}

.book-cover-class-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.book-cover-seal {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-navy);
  font-size: 0.55rem;
  font-weight: 800;
}

.slider-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slider-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.slider-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-navy);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #334155;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--color-highlight);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* --- Trust Pillars Grid --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.trust-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.trust-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-navy);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- School Partnership Section --- */
.partnership-section {
  background: var(--color-bg);
  position: relative;
}

.partnership-box {
  background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #450a0a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.partnership-box h2 {
  color: #ffffff;
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.partnership-box p.lead {
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.partnership-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.partner-feat-item {
  display: flex;
  gap: 1rem;
}

.partner-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-feat-text h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.partner-feat-text p {
  color: #cbd5e1;
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.partnership-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.partner-cta-info {
  font-size: 0.95rem;
  color: #f1f5f9;
}

.partner-cta-info strong {
  color: #ffffff;
}

/* --- Catalog Page (books.html) --- */
.catalog-filter-bar {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.input-field, .select-field {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrap .input-field {
  padding-left: 2.75rem;
}

.input-field:focus, .select-field:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.catalog-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.catalog-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.book-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.book-card-media {
  width: 100%;
  margin-bottom: 0.5rem;
}

.book-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.book-card-header {
  margin-bottom: 0.5rem;
}

.book-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  letter-spacing: 0.03em;
}

.badge-class {
  background: var(--color-bg-alt);
  color: var(--color-primary-navy);
  border: 1px solid var(--color-border);
}

.badge-subject {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.book-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-navy);
  margin-bottom: 0.4rem;
}

.book-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-border-light);
}

.book-code-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-primary);
  background: #eff6ff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.book-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-pages-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Direct Inquiry Actions: Call, WhatsApp & Specimen Details */
.book-inquiry-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border-light);
  width: 100%;
}

.btn-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-inquiry-call {
  background: #f1f5f9;
  color: var(--color-primary-navy);
  border: 1px solid var(--color-border);
  flex: 1;
}
.btn-inquiry-call:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-inquiry-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #20ba5a;
  flex: 1.25;
}
.btn-inquiry-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-inquiry-details {
  background: transparent;
  color: var(--color-primary-navy);
  border: 1px solid var(--color-border);
  flex: 1;
}
.btn-inquiry-details:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Empty Catalog State */
.catalog-empty {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

/* --- Universal Modal System (Responsive, Scrollable & Non-Clipping) --- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.modal-backdrop.is-open,
.modal-backdrop[style*="display: flex"],
.modal-backdrop[style*="display:flex"] {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  animation: modalFadeIn 0.25s ease-out;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.modal-header h2, .modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-primary-navy);
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-navy);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--color-primary-navy);
  color: #ffffff;
}

.modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  padding: 2.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}

.modal-book-preview {
  display: flex;
  flex-direction: column;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
  color: var(--color-primary-navy);
}

.modal-specs-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.modal-specs-list li strong {
  color: var(--color-primary-navy);
}

.modal-features-list {
  margin: 0.75rem 0 1.5rem 1.25rem;
  font-size: 0.9rem;
}

.modal-features-list li {
  margin-bottom: 0.35rem;
}

/* --- About Us Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-box {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.card-box h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary-navy);
}

.card-box h3 svg {
  color: var(--color-accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.value-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* --- Blog / News & Updates Page --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.blog-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 60%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.blog-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-navy);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.blog-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--color-primary-navy);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.blog-card-footer {
  margin-top: auto;
}

/* --- Contact Us Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 0;
}

.contact-placeholder-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 0.85rem;
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  border: 1px dashed var(--color-border-hover);
  border-radius: 4px;
  color: var(--color-primary-navy);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  margin-bottom: 0.4rem;
}

.form-label span.req {
  color: #dc2626;
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
}

.form-help-text {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  margin-top: 0.35rem;
}

/* Map Embed Area */
.map-placeholder-box {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.map-placeholder-box svg {
  margin: 0 auto 1rem auto;
  color: var(--color-accent);
}

/* --- Footer (Professional Polish) --- */
.site-footer {
  background-color: var(--color-primary);
  color: #cbd5e1;
  padding-top: 4.5rem;
  margin-top: auto;
  border-top: 1px solid var(--color-primary-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-highlight);
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

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

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: #94a3b8;
}

.footer-contact-list svg {
  color: var(--color-highlight);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* --- Toast Notification --- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-accent);
  z-index: 3000;
  display: none;
  animation: toastSlideUp 0.3s ease;
  max-width: 400px;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .slider-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partnership-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  h1 { font-size: 2.05rem; line-height: 1.25; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  
  .section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .section-tight { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  
  .site-header { height: 62px; }
  .brand-logo { height: 40px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  
  /* Hero & Bento */
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .hero-bento-card {
    padding: 1.25rem 0.75rem 1rem;
    border-radius: 14px;
  }
  .hero-bento-num {
    font-size: 1.95rem;
  }
  .hero-bento-label {
    font-size: 0.7rem;
    margin-top: 0.35rem;
  }

  /* Book Carousel on Mobile */
  .slider-section {
    padding: 2.75rem 0;
  }
  .slider-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .slider-controls {
    width: 100%;
    justify-content: space-between;
  }
  .slider-card {
    flex: 0 0 calc(80% - 0.75rem);
    min-width: 200px;
    max-width: 290px;
    margin-right: 0.75rem;
  }

  /* Books Grid & Catalog - Clean Horizontal Inquiry Layout on Mobile */
  .books-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .book-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .book-card-media {
    width: 125px;
    min-width: 110px;
    max-width: 135px;
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .book-card-media .book-cover-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 180px;
    margin-bottom: 0;
  }
  .book-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  .book-card-title {
    font-size: 1.05rem;
    min-height: auto;
    margin-bottom: 0.35rem;
  }
  .book-card-desc {
    font-size: 0.825rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
  }
  .book-inquiry-actions {
    margin-top: auto;
    padding-top: 0.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  /* Modals as Responsive Bottom Sheets */
  .modal-dialog {
    width: 95% !important;
    max-width: 520px;
    max-height: 86vh;
    margin: auto auto 0 auto !important;
    border-radius: 20px 20px 0 0 !important;
    animation: modalSheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSheetUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .modal-book-preview {
    max-width: 180px;
    margin: 0 auto;
  }

  /* Form Input iOS Zoom Prevention */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .hero-bento-card {
    padding: 1rem 0.5rem 0.85rem;
  }
  
  .hero-bento-num {
    font-size: 1.7rem;
  }
  
  .hero-bento-icon-badge {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
  }
  
  .slider-card {
    flex: 0 0 calc(86% - 0.5rem);
    min-width: 180px;
    max-width: 260px;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .book-card {
    padding: 0.85rem 0.75rem;
    gap: 0.85rem;
  }

  .book-card-media {
    width: 110px;
    min-width: 95px;
    max-width: 115px;
  }

  .book-card-title {
    font-size: 0.95rem;
  }

  .book-card-desc {
    font-size: 0.8rem;
  }
  
  .book-cover-wrap {
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }
  
  .book-cover-title-text {
    font-size: 0.85rem;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .partnership-box {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    flex-direction: column;
  }
  .book-card-media {
    width: 100%;
    max-width: 160px;
    margin: 0 auto 0.65rem;
  }
  .hero-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .slider-arrows, .btn, .modal-backdrop {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* ================= WORDPRESS-STYLE WYSIWYG RICH TEXT EDITOR ================= */
.wysiwyg-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.wysiwyg-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.wysiwyg-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.wysiwyg-separator {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 0.35rem;
}

.wysiwyg-select {
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.825rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-text-main);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.wysiwyg-select:focus {
  border-color: var(--color-accent);
}

.wysiwyg-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.wysiwyg-btn:hover {
  background: #e2e8f0;
  color: var(--color-primary-navy);
  border-color: #cbd5e1;
}

.wysiwyg-btn.active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.wysiwyg-btn svg {
  width: 16px;
  height: 16px;
}

.wysiwyg-mode-toggle {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.wysiwyg-mode-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.wysiwyg-mode-btn.active {
  background: var(--color-primary-navy);
  color: #ffffff;
}

.wysiwyg-editor-area {
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-main);
  outline: none;
  background: #ffffff;
}

.wysiwyg-editor-area:focus {
  background: #ffffff;
}

.wysiwyg-editor-area[placeholder]:empty:before {
  content: attr(placeholder);
  color: #94a3b8;
  cursor: text;
}

/* Typography styles inside the visual editor */
.wysiwyg-editor-area h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
}

.wysiwyg-editor-area h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
}

.wysiwyg-editor-area h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.wysiwyg-editor-area p {
  margin-bottom: 0.85rem;
}

.wysiwyg-editor-area ul, .wysiwyg-editor-area ol {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
}

.wysiwyg-editor-area ul {
  list-style-type: disc;
}

.wysiwyg-editor-area ol {
  list-style-type: decimal;
}

.wysiwyg-editor-area li {
  margin-bottom: 0.25rem;
}

.wysiwyg-editor-area blockquote {
  border-left: 4px solid var(--color-accent);
  background: #f8fafc;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #475569;
  border-radius: 0 6px 6px 0;
}

.wysiwyg-editor-area a {
  color: #1d4ed8;
  text-decoration: underline;
}

.wysiwyg-editor-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75rem 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  display: block;
}

.wysiwyg-editor-area hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 1.25rem 0;
}

.wysiwyg-raw-textarea {
  display: none;
  min-height: 220px;
  max-height: 380px;
  width: 100%;
  border: none;
  padding: 1rem 1.25rem;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

/* --- Google SEO / E-E-A-T Breadcrumbs & Trust Signals --- */
.breadcrumb-nav {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--color-primary-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.25rem;
  color: var(--color-text-muted);
}

.breadcrumb-current {
  color: var(--color-text-sub);
  font-weight: 600;
}

.eeat-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.eeat-trust-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.eeat-trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.eeat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.eeat-content p {
  font-size: 0.825rem;
  color: var(--color-text-sub);
  line-height: 1.45;
  margin: 0;
}


