/*
Theme Name: Numbers Don't Lie
Theme URI: https://numbersdontlie.xyz
Description: Custom theme for Numbers Don't Lie book website
Version: 5.1
Author: Ignatius D. West
Author URI: https://numbersdontlie.xyz
License: GPL v2 or later
Text Domain: numbers-dont-lie
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700&family=Courier+Prime:wght@400;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: #1A2744;
  color: #E8E0D0;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}
a { color: #E8960C; text-decoration: none; transition: color 0.2s; }
a:hover { color: #f5a623; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ===== HEADER ===== */
.ndl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: transparent;
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.ndl-header.scrolled {
  background: rgba(16, 26, 52, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(232,150,12,0.15);
}
.ndl-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.ndl-logo:hover { color: #E8960C !important; }
.ndl-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.ndl-nav li a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.85);
  transition: color 0.2s;
  text-decoration: none;
}
.ndl-nav li a:hover { color: #E8960C; }
.ndl-nav-cta {
  background: #E8960C !important;
  color: #1A2744 !important;
  padding: 0.55rem 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s, transform 0.15s !important;
}
.ndl-nav-cta:hover {
  background: #f5a623 !important;
  color: #1A2744 !important;
  transform: translateY(-1px);
}
.ndl-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ndl-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s;
}
.ndl-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,26,52,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.ndl-mobile-menu.open { display: flex; }
.ndl-mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.ndl-mobile-menu a:hover { color: #E8960C; }
.ndl-mobile-menu .ndl-nav-cta {
  font-size: 1.1rem !important;
  padding: 0.75rem 2rem !important;
}

/* ===== HERO SECTION ===== */
.ndl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #1A2744;
  padding-top: 80px;
}
#math-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.ndl-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  width: 100%;
}
.ndl-hero-content { display: flex; flex-direction: column; gap: 1.25rem; }
.ndl-tagline {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E8960C;
  text-transform: uppercase;
  margin: 0;
}
.ndl-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  color: #ffffff;
  margin: 0;
}
.ndl-title em {
  font-style: italic;
  color: #E8960C;
  font-weight: 400;
}
.ndl-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(232,224,208,0.85);
  margin: 0;
}
.ndl-author {
  font-size: 1rem;
  color: rgba(232,224,208,0.7);
  margin: 0;
}
.ndl-author strong { color: #ffffff; font-weight: 600; }
.ndl-divider {
  width: 60px;
  height: 2px;
  background: #E8960C;
  margin: 0.5rem 0;
}
.ndl-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232,224,208,0.8);
  max-width: 520px;
  margin: 0;
}
.ndl-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.ndl-btn-primary {
  display: inline-block;
  background: #E8960C;
  color: #1A2744 !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,150,12,0.3);
}
.ndl-btn-primary:hover {
  background: #f5a623;
  color: #1A2744 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,150,12,0.45);
}
.ndl-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.ndl-btn-secondary:hover {
  border-color: #E8960C;
  color: #E8960C !important;
  transform: translateY(-2px);
}
.ndl-btn-large { font-size: 1.05rem; padding: 1.1rem 2.5rem; }
.ndl-stars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.ndl-star-icons { color: #E8960C; font-size: 1.1rem; letter-spacing: 2px; }
.ndl-star-text { font-size: 0.8rem; color: rgba(232,224,208,0.6); letter-spacing: 0.05em; }
.ndl-hero-book {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ndl-book-wrapper {
  position: relative;
  display: inline-block;
}
.ndl-book-cover {
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(232,150,12,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ndl-book-cover:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(232,150,12,0.25);
}
.ndl-book-price-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: #E8960C;
  color: #1A2744;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem 0.8rem;
  line-height: 1.3;
  box-shadow: 0 4px 15px rgba(232,150,12,0.4);
}
.ndl-book-price-badge strong { font-size: 1.1rem; display: block; }
.ndl-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(232,224,208,0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
.ndl-scroll-arrow { font-size: 1.2rem; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(5px); }
}

/* ===== CONTAINER ===== */
.ndl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ===== SECTION LABELS ===== */
.ndl-section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8960C;
  margin-bottom: 0.75rem;
}
.ndl-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* ===== PREMISE SECTION ===== */
.ndl-premise {
  padding: 7rem 0;
  background: #1A2744;
  border-top: 1px solid rgba(232,150,12,0.15);
}
.ndl-blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(232,224,208,0.75);
  border-left: 3px solid #E8960C;
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}
.ndl-premise-body { max-width: 720px; }
.ndl-premise-body p { font-size: 1.05rem; color: rgba(232,224,208,0.85); line-height: 1.85; }
.ndl-premise-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(232,224,208,0.5);
  margin: 2.5rem 0;
}
.ndl-pullquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #ffffff;
  border: 1px solid rgba(232,150,12,0.3);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  position: relative;
  background: rgba(232,150,12,0.04);
}
.ndl-pullquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: #E8960C;
  margin-top: 1rem;
  font-family: 'Nunito Sans', sans-serif;
  letter-spacing: 0.05em;
}
.ndl-blog-teaser { margin-top: 3rem; }
.ndl-blog-teaser p { font-size: 1rem; color: rgba(232,224,208,0.7); }
.ndl-link-arrow {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E8960C;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: transform 0.2s;
}
.ndl-link-arrow:hover { transform: translateX(4px); color: #f5a623; }

/* ===== LAWS SECTION ===== */
.ndl-laws {
  padding: 7rem 0;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(232,150,12,0.15);
}
.ndl-laws-intro {
  font-size: 1.05rem;
  color: rgba(232,224,208,0.7);
  max-width: 680px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}
.ndl-laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.ndl-law-card {
  border: 1px solid rgba(232,150,12,0.25);
  padding: 2rem;
  background: rgba(26,39,68,0.6);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.ndl-law-card:hover {
  border-color: rgba(232,150,12,0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.ndl-law-equation {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #E8960C;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.ndl-law-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.ndl-law-desc {
  font-size: 0.92rem;
  color: rgba(232,224,208,0.75);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.ndl-read-more-btn {
  background: none;
  border: none;
  color: #E8960C;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.ndl-read-more-btn:hover { color: #f5a623; }
.ndl-law-expanded {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232,150,12,0.2);
}
.ndl-law-expanded p {
  font-size: 0.92rem;
  color: rgba(232,224,208,0.8);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.ndl-law-expanded p:last-child { margin-bottom: 0; }

/* ===== REVIEWS SECTION ===== */
.ndl-reviews {
  padding: 7rem 0;
  background: #1A2744;
  border-top: 1px solid rgba(232,150,12,0.15);
}
.ndl-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ndl-review-card {
  border: 1px solid rgba(232,150,12,0.2);
  padding: 2rem;
  background: rgba(255,255,255,0.03);
}
.ndl-review-stars { color: #E8960C; font-size: 1rem; letter-spacing: 3px; margin-bottom: 1rem; }
.ndl-review-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(232,224,208,0.85);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}
.ndl-review-author {
  font-size: 0.8rem;
  color: #E8960C;
  font-style: normal;
  letter-spacing: 0.08em;
  font-family: 'Nunito Sans', sans-serif;
}

/* ===== AUTHOR SECTION ===== */
.ndl-author {
  padding: 7rem 0;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(232,150,12,0.15);
}
.ndl-author-body { max-width: 720px; }
.ndl-author-body p { font-size: 1.05rem; color: rgba(232,224,208,0.85); line-height: 1.85; }

/* ===== ORDER SECTION ===== */
.ndl-order {
  padding: 7rem 0;
  background: #1A2744;
  border-top: 1px solid rgba(232,150,12,0.15);
  text-align: center;
}
.ndl-order .ndl-section-label,
.ndl-order .ndl-section-title { text-align: center; }
.ndl-order-desc {
  font-size: 1.05rem;
  color: rgba(232,224,208,0.75);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.ndl-order-card {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(232,150,12,0.3);
  padding: 3rem;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.ndl-order-book-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  width: 100%;
}
.ndl-order-book-img { width: 80px; flex-shrink: 0; box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.ndl-order-book-details h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.ndl-order-book-details p { font-size: 0.85rem; color: rgba(232,224,208,0.6); margin: 0; }
.ndl-order-secure { color: rgba(232,150,12,0.7) !important; font-size: 0.78rem !important; margin-top: 0.25rem !important; }
.ndl-order-amazon { font-size: 0.85rem; color: rgba(232,224,208,0.5); }
.ndl-order-amazon a { color: #E8960C; }

/* ===== BLOG SECTION ===== */
.ndl-blog {
  padding: 7rem 0;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(232,150,12,0.15);
}
.ndl-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.ndl-blog-card {
  border: 1px solid rgba(232,150,12,0.2);
  background: rgba(26,39,68,0.5);
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.ndl-blog-card:hover { border-color: rgba(232,150,12,0.5); transform: translateY(-4px); }
.ndl-blog-card-content { padding: 2rem; }
.ndl-blog-date {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  color: rgba(232,224,208,0.45);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.ndl-blog-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
.ndl-blog-title a { color: #ffffff; text-decoration: none; transition: color 0.2s; }
.ndl-blog-title a:hover { color: #E8960C; }
.ndl-blog-excerpt { font-size: 0.9rem; color: rgba(232,224,208,0.65); line-height: 1.7; margin-bottom: 1.25rem; }
.ndl-blog-cta { text-align: center; }

/* ===== FOOTER ===== */
.ndl-footer {
  background: rgba(10,18,40,0.95);
  border-top: 1px solid rgba(232,150,12,0.2);
  padding: 3rem 0;
}
.ndl-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.ndl-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
}
.ndl-footer-nav { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.ndl-footer-nav a { font-size: 0.8rem; color: rgba(232,224,208,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.ndl-footer-nav a:hover { color: #E8960C; }
.ndl-footer-copy { font-size: 0.78rem; color: rgba(232,224,208,0.35); letter-spacing: 0.05em; }

/* ===== SINGLE POST ===== */
.ndl-single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}
.ndl-post-header { margin-bottom: 3rem; }
.ndl-post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.ndl-post-meta { font-size: 0.8rem; color: rgba(232,224,208,0.45); letter-spacing: 0.08em; }
.ndl-post-content { font-size: 1.05rem; line-height: 1.9; color: rgba(232,224,208,0.88); }
.ndl-post-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.ndl-post-content h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.ndl-post-content p { margin-bottom: 1.5rem; }
.ndl-post-content blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  border-left: 3px solid #E8960C;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: rgba(232,224,208,0.8);
}
.ndl-post-content a { color: #E8960C; border-bottom: 1px solid rgba(232,150,12,0.3); }
.ndl-post-content a:hover { color: #f5a623; border-bottom-color: #f5a623; }

/* ===== BLOG INDEX ===== */
.ndl-blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
}
.ndl-blog-index-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ndl-header { padding: 1rem 1.5rem; }
  .ndl-header.scrolled { padding: 0.75rem 1.5rem; }
  .ndl-nav { display: none; }
  .ndl-hamburger { display: flex; }
  .ndl-hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem; text-align: center; }
  .ndl-hero-content { align-items: center; }
  .ndl-description { text-align: left; }
  .ndl-hero-book { order: -1; }
  .ndl-book-cover { max-width: 260px; }
  .ndl-container { padding: 0 1.5rem; }
  .ndl-laws-grid { grid-template-columns: 1fr; }
  .ndl-reviews-grid { grid-template-columns: 1fr; }
  .ndl-blog-grid { grid-template-columns: 1fr; }
  .ndl-order-card { padding: 2rem 1.5rem; }
  .ndl-order-book-info { flex-direction: column; text-align: center; }
  .ndl-premise { padding: 5rem 0; }
  .ndl-laws { padding: 5rem 0; }
  .ndl-reviews { padding: 5rem 0; }
  .ndl-author { padding: 5rem 0; }
  .ndl-order { padding: 5rem 0; }
  .ndl-blog { padding: 5rem 0; }
}
@media (max-width: 480px) {
  .ndl-title { font-size: 3rem; }
  .ndl-hero-buttons { flex-direction: column; align-items: center; }
  .ndl-btn-primary, .ndl-btn-secondary { width: 100%; text-align: center; }
  .ndl-footer-nav { gap: 1rem; }
}

/* ===== Z-INDEX & LAYOUT FIXES v6 ===== */
#ndl-canvas {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
.hero-content { position: relative !important; z-index: 2 !important; }
.hero-book { position: relative !important; z-index: 2 !important; }
.ndl-header { z-index: 1000 !important; }
.ndl-hero { position: relative !important; overflow: hidden !important; min-height: 100vh !important; }
.hero-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding: 8rem 3rem 4rem !important;
  position: relative !important;
  z-index: 2 !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.hero-book img {
  max-width: 340px !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 4px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr !important; padding: 6rem 1.5rem 3rem !important; }
  .hero-book { order: -1 !important; max-width: 260px !important; margin: 0 auto 2rem !important; }
}


/* ==================== BLOG ARCHIVE / HOME.PHP ==================== */

/* Blog Main Wrapper */
.ndl-blog-main {
  min-height: 100vh;
  background-color: #1A2744;
}

/* Blog Header Section */
.ndl-blog-header {
  position: relative;
  padding: 8rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 39, 68, 0.95) 0%, rgba(26, 39, 68, 0.8) 100%);
  border-bottom: 1px solid rgba(232, 150, 12, 0.2);
  overflow: hidden;
}

.ndl-blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(232, 150, 12, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ndl-blog-header-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.ndl-blog-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8960C;
  margin-bottom: 1rem;
}

.ndl-blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: #FDFAF4;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.ndl-blog-title em {
  font-style: italic;
  color: #E8960C;
}

.ndl-blog-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.1rem;
  color: rgba(253, 250, 244, 0.7);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Grid Section */
.ndl-blog-grid-section {
  padding: 4rem 0 6rem;
}

.ndl-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Blog Grid Layout */
.ndl-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Featured Card */
.ndl-blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 150, 12, 0.2);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.ndl-blog-card--featured:hover {
  border-color: rgba(232, 150, 12, 0.5);
  transform: translateY(-4px);
}

.ndl-blog-card--featured .ndl-blog-card-image {
  height: 100%;
  min-height: 380px;
}

.ndl-blog-card--featured .ndl-blog-card-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ndl-blog-card--featured .ndl-blog-card-title {
  font-size: 1.9rem;
}

.ndl-blog-card--featured .ndl-blog-card-excerpt {
  display: block;
}

/* Regular Cards */
.ndl-blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 150, 12, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ndl-blog-card:hover {
  border-color: rgba(232, 150, 12, 0.4);
  transform: translateY(-4px);
}

/* Card Image */
.ndl-blog-card-image-link {
  display: block;
  text-decoration: none;
}

.ndl-blog-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: rgba(26, 39, 68, 0.8);
}

.ndl-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ndl-blog-card:hover .ndl-blog-card-image img,
.ndl-blog-card--featured:hover .ndl-blog-card-image img {
  transform: scale(1.04);
}

.ndl-blog-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26, 39, 68, 0.4) 100%);
  pointer-events: none;
}

.ndl-blog-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.9) 0%, rgba(232, 150, 12, 0.1) 100%);
}

.ndl-blog-card-equation {
  font-family: 'Courier Prime', monospace;
  font-size: 2.5rem;
  color: rgba(232, 150, 12, 0.6);
  letter-spacing: 0.05em;
}

/* Card Content */
.ndl-blog-card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ndl-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ndl-blog-card-date {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(253, 250, 244, 0.5);
  text-transform: uppercase;
}

.ndl-blog-card-sep {
  color: rgba(253, 250, 244, 0.3);
  font-size: 0.75rem;
}

.ndl-blog-card-category {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #E8960C;
  text-transform: uppercase;
}

.ndl-blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #FDFAF4;
}

.ndl-blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ndl-blog-card-title a:hover {
  color: #E8960C;
}

.ndl-blog-card-excerpt {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(253, 250, 244, 0.65);
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ndl-blog-card-excerpt p { margin: 0; }

.ndl-blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8960C;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.ndl-blog-card-read-more:hover { gap: 0.7rem; }

.ndl-arrow { transition: transform 0.2s ease; }
.ndl-blog-card-read-more:hover .ndl-arrow { transform: translateX(4px); }

/* Pagination */
.ndl-blog-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.ndl-blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ndl-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: rgba(253, 250, 244, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 150, 12, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ndl-blog-pagination .page-numbers:hover,
.ndl-blog-pagination .page-numbers.current {
  background: #E8960C;
  color: #1A2744;
  border-color: #E8960C;
}

.ndl-blog-pagination .prev,
.ndl-blog-pagination .next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.78rem;
}

/* Empty State */
.ndl-blog-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.ndl-blog-empty-equation {
  font-family: 'Courier Prime', monospace;
  font-size: 5rem;
  color: rgba(232, 150, 12, 0.3);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.ndl-blog-empty h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: #FDFAF4;
  margin-bottom: 1rem;
}

.ndl-blog-empty p {
  color: rgba(253, 250, 244, 0.6);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ndl-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .ndl-blog-card--featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .ndl-blog-card--featured .ndl-blog-card-image { min-height: 280px; height: 280px; }
  .ndl-blog-card--featured .ndl-blog-card-content { padding: 2rem; }
}

@media (max-width: 640px) {
  .ndl-blog-header { padding: 6rem 1.5rem 3.5rem; }
  .ndl-blog-grid { grid-template-columns: 1fr; }
  .ndl-blog-card--featured { grid-column: 1; }
  .ndl-blog-card--featured .ndl-blog-card-title { font-size: 1.5rem; }
  .ndl-blog-container { padding: 0 1.25rem; }
  .ndl-blog-grid-section { padding: 2.5rem 0 4rem; }
}