/*
Theme Name: The Panchanad Chronicles Custom Theme
Theme URI: https://panchanadveda.com/
Author: Raj Kanda
Author URI: https://panchanadveda.com/
Description: Bespoke standalone theme for The Panchanad Chronicles book series. Hand-crafted with vanilla CSS variables, interactive character showcase, hardware-accelerated scroll reveals, 3D cover tilt, and dynamic video backdrops. Built for speed and easy ACF text/image editing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panchanad-chronicles
*/

/* ==========================================================================
   THE PANCHANAD CHRONICLES - CUSTOM THEME STYLES
   ========================================================================== */

/* 1. Custom Properties (Variables) */
:root {
  /* Colors */
  --color-navy: #1F2A44;
  --color-gold: #C8A24A;
  --color-ivory: #F5F5F0;
  --color-river-blue: #4A7BA7;
  --color-stone-grey: #8B8B8B;
  --color-white: #FFFFFF;
  --color-dark-navy: #0F1626;
  
  /* Overlays & Shadows */
  --overlay-navy: rgba(31, 42, 68, 0.78);
  --overlay-ivory: rgba(245, 245, 240, 0.88);
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 4px 10px rgba(200, 162, 74, 0.2);
  --shadow-button-hover: 0 8px 20px rgba(200, 162, 74, 0.45);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

  /* Fonts */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Nunito Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
  
  /* Max width */
  --container-width: 1200px;
}

/* 2. Base Resets & Structure */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* 3. Typography Scale & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 15px;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem; /* 56px */
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem; /* 40px */
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
}

p {
  margin-bottom: 20px;
}

.tagline-gold {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem; /* 18px */
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.gold-divider {
  width: 80px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 20px auto;
  border: none;
}

.gold-divider.left {
  margin-left: 0;
}

/* 4. Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.inner-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* 5. Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  transform: translateY(0);
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #dcb356;
  box-shadow: 0 10px 20px rgba(200, 162, 74, 0.35);
}

.btn-secondary {
  background-color: var(--color-river-blue);
  color: var(--color-ivory);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #5c8cb8;
  box-shadow: 0 10px 20px rgba(74, 123, 167, 0.3);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-ivory);
  border-color: var(--color-ivory);
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  background-color: var(--color-ivory);
  color: var(--color-navy);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-dark:hover {
  transform: translateY(-3px);
  background-color: var(--color-navy);
  color: var(--color-ivory);
}

/* 6. Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 24px 0;
}

header.scrolled {
  background-color: rgba(31, 42, 68, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(200, 162, 74, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span:first-child {
  color: var(--color-gold);
}

.logo-text span:last-child {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* WordPress Nav Menu Integration */
.nav-menu-container ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu-container a {
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
}

.nav-menu-container a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-menu-container a:hover {
  color: var(--color-gold);
}

.nav-menu-container a:hover::after {
  width: 100%;
}

/* Dynamic active state highlights */
.nav-menu-container li.current-menu-item a {
  color: var(--color-gold);
}
.nav-menu-container li.current-menu-item a::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-ivory);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* 7. Hero Section (with video background) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: var(--color-ivory);
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-navy);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero h1 {
  margin-top: 15px;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 8. Book Showcase Section */
.book-section {
  background-color: var(--color-ivory);
}

.book-image-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.book-mockup {
  max-width: 320px;
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition-smooth);
}

.book-image-container:hover .book-mockup {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.book-details h2 {
  color: var(--color-navy);
}

.book-details p {
  margin-bottom: 24px;
}

.book-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* 9. Philosophy / Core Values Section */
.philosophy-section {
  background-color: var(--color-navy);
  color: var(--color-ivory);
}

.philosophy-section h2 {
  color: var(--color-gold);
}

.philosophy-section .gold-divider {
  background-color: var(--color-gold);
}

.phil-intro {
  max-width: 700px;
  margin: 0 auto 60px auto;
  font-size: 1.125rem;
}

.value-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(200, 162, 74, 0.15);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-12px);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: var(--color-gold);
  box-shadow: 0 25px 50px rgba(200, 162, 74, 0.28);
}

.value-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  margin: 0 auto 25px auto;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: #dcb356;
  box-shadow: 0 10px 20px rgba(200, 162, 74, 0.45);
}

.value-card h3 {
  margin-bottom: 15px;
}

/* 10. Characters Showcase Section (Interactive) */
.characters-section {
  background-color: var(--color-ivory);
}

.char-intro {
  margin-bottom: 60px;
}

.characters-showcase-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
}

.char-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.char-nav-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background-color: var(--color-ivory);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.char-nav-btn img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.char-nav-btn-info h4 {
  font-family: var(--font-serif);
  color: var(--color-navy);
}

.char-nav-btn-info span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.char-nav-btn.active {
  background-color: var(--color-navy);
  border-color: var(--color-gold);
}

.char-nav-btn.active h4 {
  color: var(--color-ivory);
}

.char-nav-btn.active span {
  color: var(--color-gold);
}

.char-nav-btn:hover:not(.active) {
  transform: translateX(5px);
  background-color: var(--color-white);
  border-color: rgba(200, 162, 74, 0.4);
}

/* Character Content Display */
.char-display-box {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}

.char-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.char-pane.active {
  display: block;
  opacity: 1;
}

.char-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--color-ivory);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.char-title h3 {
  font-size: 2.25rem;
  color: var(--color-navy);
}

.char-title span {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.char-pane-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.char-pane p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-navy);
}

.char-display-actions {
  margin-top: 35px;
  text-align: center;
}

/* 11. World / School Section (with moving library video) */
.world-section {
  background-image: url('http://panchanadveda.com/wp-content/uploads/2026/07/A-breathtaking-cinematic-wide-angle-view-of-Panchanad-Veda-Sthal.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--color-ivory);
}

.world-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-navy);
  z-index: 1;
}

.world-section .container {
  position: relative;
  z-index: 2;
}

/* Interactive Gold Frame Video Window */
.magical-video-container {
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  border: 4px solid var(--color-gold);
  overflow: hidden;
  background: var(--color-navy);
  aspect-ratio: 16/9;
}

.magical-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.world-right h2 {
  color: var(--color-ivory);
}

.world-right p {
  margin-bottom: 24px;
}

/* 12. Parents & Educators Section */
.parents-section {
  background-image: url('http://panchanadveda.com/wp-content/uploads/2026/07/Parents-Teachers-Banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.parents-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-ivory);
  z-index: 1;
}

.parents-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.parents-content {
  text-align: center;
}

.parents-content p {
  font-size: 1.125rem;
  margin-bottom: 35px;
}

/* 13. Blog & News Grid Section */
.blog-section {
  background-color: var(--color-white);
}

.blog-intro {
  margin-bottom: 60px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(31, 42, 68, 0.05);
  border: 1px solid rgba(31, 42, 68, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(31, 42, 68, 0.15);
  border-color: rgba(200, 162, 74, 0.35);
}

.blog-img-wrapper {
  overflow: hidden;
  height: 220px;
  border-bottom: 2px solid rgba(200, 162, 74, 0.15);
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrapper {
  border-bottom-color: var(--color-gold);
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.blog-card-content {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  color: var(--color-navy);
}

.blog-card h3:hover {
  color: var(--color-river-blue);
}

.blog-card p {
  color: var(--color-stone-grey);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card-btn {
  align-self: flex-start;
  color: var(--color-river-blue);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-btn::after {
  content: '→';
  transition: var(--transition-fast);
}

.blog-card-btn:hover {
  color: var(--color-gold);
}

.blog-card-btn:hover::after {
  transform: translateX(4px);
}

.blog-section-actions {
  text-align: center;
  margin-top: 50px;
}

/* 14. Newsletter Signup Section */
.newsletter-section {
  background-image: url('http://panchanadveda.com/wp-content/uploads/2026/07/Newsletter-Banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--color-ivory);
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-navy);
  z-index: 1;
}

.newsletter-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.newsletter-intro {
  margin-bottom: 40px;
}

.newsletter-intro h2 {
  color: var(--color-ivory);
}

.newsletter-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.newsletter-input {
  padding: 14px 22px;
  border-radius: 30px;
  border: 1.5px solid var(--color-gold);
  background-color: var(--color-ivory);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-inset);
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-white);
  box-shadow: 0 0 10px rgba(200, 162, 74, 0.3);
}

.newsletter-input[name="fname"] {
  flex: 1;
  min-width: 150px;
}

.newsletter-input[name="email"] {
  flex: 2;
  min-width: 240px;
}

.newsletter-btn {
  padding: 14px 36px;
  border-radius: 30px;
  border: none;
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  background-color: #dcb356;
  box-shadow: var(--shadow-button-hover);
}

.newsletter-privacy {
  color: var(--color-stone-grey);
  font-size: 0.8rem;
  margin-top: 15px;
  text-align: center;
}

/* 15. Footer Section */
footer {
  background-color: var(--color-dark-navy);
  color: var(--color-ivory);
  padding: 70px 0 30px 0;
  border-top: 2px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-stone-grey);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
  color: var(--color-ivory);
}

.footer-social-icon svg {
  display: block;
}

.footer-social-icon:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-stone-grey);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--color-stone-grey);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* 16. Scroll Reveal Core Styles */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 17. Responsive Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .grid-2 { gap: 40px; }
  .grid-3 { gap: 24px; }
  .characters-showcase-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  .char-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .char-nav-btn {
    width: auto;
    padding: 12px 18px;
  }
  .char-display-box {
    padding-left: 0;
    min-height: auto;
  }
}

/* Magical Video Frame Hover effect (hyper-responsive animations) */
.magical-video-container {
  transition: var(--transition-smooth);
}
.magical-video-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(200, 162, 74, 0.25);
  border-color: #dcb356;
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .section-padding { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Navigation & Mobile Header Overlap Fix */
  header { padding: 16px 0; }
  header.scrolled { padding: 10px 0; }
  
  .nav-menu-container ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 0;
  }
  
  .nav-menu-container ul.active {
    max-height: 400px;
    border-bottom: 2px solid var(--color-gold);
  }
  
  .nav-menu-container li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu-container a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  /* Hero & actions Mobile Padding */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Book layout */
  .book-image-container {
    order: -1;
  }
  .book-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .book-actions .btn {
    text-align: center;
  }
  
  /* World layout */
  .world-left {
    order: -1;
  }
  
  .inner-row-2 {
    grid-template-columns: 1fr;
  }

  /* Characters navigation mobile scaling */
  .char-nav-btn {
    padding: 10px 16px;
    gap: 12px;
    font-size: 0.9rem;
  }
  
  .char-nav-btn img {
    width: 38px;
    height: 38px;
  }
}

/* Extra small screen adjustments (mobile views) */
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  
  .logo-text {
    font-size: 1.15rem;
  }
  
  .logo-link img {
    height: 36px;
  }
  
  .logo-text span:last-child {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .newsletter-input {
    width: 100%;
  }
  
  .newsletter-btn {
    width: 100%;
  }
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .value-card:hover, .blog-card:hover, .btn:hover {
    transform: none;
  }
  .book-mockup {
    transform: none !important;
  }
  .book-image-container:hover .book-mockup {
    transform: none !important;
  }
}


/* ==========================================================================
   HOMEPAGE 2 - SCROLL-DRIVEN IMMERSIVE LAYOUT
   ========================================================================== */

.scroll-progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9999;
}

.panchanad-h2-wrapper {
  background-color: #0F1626;
  color: #F5F5F0;
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

.panchanad-h2-wrapper h2 {
  font-family: var(--font-display);
  color: #F5F5F0;
  text-transform: uppercase;
}

.h2-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--color-gold);
  display: block;
}

.h2-eyebrow.dark-text {
  color: var(--color-navy);
  opacity: 0.8;
}

.italic-gold {
  font-style: italic;
  color: var(--color-gold-soft);
  font-family: var(--font-serif);
  text-transform: none;
}

.gold-text {
  color: var(--color-gold-soft);
}

/* Scroll-reveal effect */
.in-out-reveal {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-out-reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- 1. Hero Section --- */
.h2-hero {
  position: relative;
  height: 110vh;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.h2-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
}

.h2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,22,38,0.4) 0%, rgba(15,22,38,0.6) 60%, #0F1626 100%);
  z-index: 2;
  will-change: opacity;
}

.h2-vignette-outer {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(200, 162, 74, 0.22);
  pointer-events: none;
  z-index: 3;
}

.h2-vignette-inner {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(200, 162, 74, 0.08);
  pointer-events: none;
  z-index: 3;
}

.h2-hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  will-change: transform, opacity;
}

.h2-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  color: #F5F5F0;
  margin-top: 24px;
  text-transform: uppercase;
}

.h2-hero-content p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(245, 245, 240, 0.8);
  margin-top: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.h2-hero-actions {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.text-gold-scroll {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(200, 162, 74, 0.85);
  transition: var(--transition-smooth);
}

.btn-scroll:hover .text-gold-scroll {
  color: var(--color-gold);
  letter-spacing: 0.6em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: rgba(200, 162, 74, 0.6);
  transform-origin: top center;
}

/* --- 2. Temples Horizontal Scroll Section --- */
.h2-temples-track {
  height: 300vh;
  position: relative;
  background-color: #0F1626;
}

.h2-temples-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0F1626;
}

.h2-temples-horizontal {
  display: flex;
  gap: 40px;
  padding-left: 8vw;
  padding-right: 8vw;
  will-change: transform;
}

.h2-temple-intro {
  width: 80vw;
  max-width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.h2-temple-intro h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin-top: 16px;
}

.h2-temple-intro p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(245, 245, 240, 0.7);
  margin-top: 24px;
  line-height: 1.6;
}

.temple-card {
  position: relative;
  width: 62vw;
  min-width: 320px;
  max-width: 720px;
  height: 76vh;
  flex-shrink: 0;
  border: 1px solid rgba(200, 162, 74, 0.2);
  border-radius: 4px;
  overflow: hidden;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.temple-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
}

.red-scheme .temple-card-bg {
  background: linear-gradient(135deg, #7a1f1f 0%, #c8592a 100%);
}

.blue-scheme .temple-card-bg {
  background: linear-gradient(135deg, #264a6b 0%, #4a7ba7 100%);
}

.gold-scheme .temple-card-bg {
  background: linear-gradient(135deg, #3a3524 0%, #8b7442 100%);
}

.temple-card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 2;
}

.temple-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.temple-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: rgba(245, 245, 240, 0.7);
}

.temple-card .divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(200, 162, 74, 0.4);
}

.temple-card .card-number {
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  font-style: italic;
  align-self: flex-end;
  margin-top: -30px;
}

.temple-card .card-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.temple-card h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  color: #F5F5F0;
  margin-top: 8px;
}

.temple-card p {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.85);
  margin-top: 16px;
  max-width: 440px;
}

/* --- 3. Split Layout Section --- */
.h2-book-split {
  background-color: #F5F5F0;
  padding: 120px 0;
  color: var(--color-navy);
  position: relative;
  z-index: 5;
}

.h2-book-split .grid-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.book-pinned-col {
  position: relative;
  width: 100%;
}

.book-sticky-container {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-glow-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.h2-pinned-book {
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(31, 42, 68, 0.4);
  will-change: transform;
}

.book-label {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-top: 30px;
}

.book-label .label-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(31, 42, 68, 0.15);
}

.book-scroll-col {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.intro-block h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-top: 16px;
  color: var(--color-navy);
}

.intro-block p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(31, 42, 68, 0.7);
  margin-top: 16px;
}

.chapter-row {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(31, 42, 68, 0.15);
  padding-top: 30px;
}

.chapter-num-glow {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--color-gold);
  line-height: 1;
}

.chapter-text-block h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-navy);
}

.chapter-text-block p {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(31, 42, 68, 0.8);
  margin-top: 8px;
}

/* --- 4. Sanskrit Verse Ticker --- */
.h2-verse-ticker {
  background-color: #0F1626;
  border-top: 1px solid rgba(200, 162, 74, 0.2);
  border-bottom: 1px solid rgba(200, 162, 74, 0.2);
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.ticker-wrapper {
  width: 100%;
  display: flex;
}

.ticker-content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-slide-anim 35s linear infinite;
  will-change: transform;
}

.ticker-content span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(200, 162, 74, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-star {
  color: rgba(200, 162, 74, 0.25);
}

@keyframes ticker-slide-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

/* --- 5. Bento Grid Section --- */
.h2-bento-section {
  background-color: #0F1626;
  padding: 120px 0;
  position: relative;
  z-index: 5;
}

.bento-intro {
  margin-bottom: 60px;
}

.bento-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 16px;
}

.bento-title-row h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.bento-title-row p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(245, 245, 240, 0.6);
  max-width: 380px;
  text-align: right;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: 4px;
  border: 1px solid rgba(200, 162, 74, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition-smooth);
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.aarav-grad { background: linear-gradient(135deg, #1f2a44 0%, #0f1626 100%); }
.veer-grad { background: linear-gradient(135deg, #5c1818 0%, #0f1626 100%); }
.kavya-grad { background: linear-gradient(135deg, #2b5577 0%, #0f1626 100%); }
.meera-grad { background: linear-gradient(135deg, #6b5a38 0%, #0f1626 100%); }

.bento-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 2;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: transform 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f1626 0%, rgba(15, 22, 38, 0.4) 60%, transparent 100%);
  z-index: 3;
}

.bento-card-content {
  position: relative;
  z-index: 4;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #F5F5F0;
  margin-top: 8px;
}

.bento-card p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 245, 240, 0.75);
  margin-top: 8px;
  max-width: 260px;
}

.bento-card.span-2-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card.span-2-1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(200, 162, 74, 0.15);
}

.bento-card:hover .bento-img {
  transform: scale(1.08);
  filter: grayscale(0%);
  opacity: 0.45;
}

/* --- 6. Pinned World Map --- */
.h2-world-track {
  height: 225vh;
  position: relative;
  background-color: #0F1626;
}

.h2-world-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0F1626;
}

.h2-world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.15);
  will-change: transform;
}

.h2-world-overlay {
  position: absolute;
  inset: 0;
  background-color: #0F1626;
  z-index: 2;
  opacity: 0.75;
  will-change: opacity;
}

.h2-world-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h2-world-content h2 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 0.95;
  margin-top: 16px;
}

.h2-world-content .world-desc {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(245, 245, 240, 0.85);
  max-width: 650px;
  margin-top: 20px;
  line-height: 1.6;
}

.h2-world-video-container {
  margin-top: 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.h2-world-video-container .magical-video-container {
  aspect-ratio: 16/9;
  border-width: 2px;
}

.h2-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  border-top: 1px solid rgba(200, 162, 74, 0.25);
  padding-top: 30px;
}

.fact-item {
  text-align: left;
}

.fact-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.fact-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(245, 245, 240, 0.7);
  text-transform: uppercase;
  margin-top: 8px;
}

.h2-scroll-counter {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(200, 162, 74, 0.65);
  margin-top: 40px;
  text-transform: uppercase;
}

/* --- 7. Parents / Teachers Section --- */
.h2-parents-section {
  background-color: #F5F5F0;
  padding: 120px 0;
  color: var(--color-navy);
  position: relative;
  z-index: 5;
}

.grid-parents {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.parents-img-col {
  position: relative;
}

.parents-img-container {
  position: relative;
  width: 100%;
}

.parents-img-container img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(31, 42, 68, 0.25);
}

.parents-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--color-navy);
  padding: 18px 24px;
  border: 1px solid var(--color-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1;
}

.badge-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(245, 245, 240, 0.7);
  text-transform: uppercase;
  margin-top: 4px;
}

.parents-text-col h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-top: 16px;
  color: var(--color-navy);
}

.parents-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.parents-points-grid .point-item {
  border-left: 2px solid var(--color-gold);
  padding-left: 20px;
}

.parents-points-grid .point-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.parents-points-grid .point-item p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(31, 42, 68, 0.75);
  margin-top: 6px;
  line-height: 1.5;
}

.btn-parents-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--color-navy);
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--color-navy);
  transition: var(--transition-smooth);
  margin-top: 40px;
  background: transparent;
}

.btn-parents-cta:hover {
  background-color: var(--color-navy);
  color: #F5F5F0;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(31, 42, 68, 0.25);
}

/* --- 8. Newsletter Section --- */
.h2-newsletter-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background-color: #0F1626;
  color: #F5F5F0;
  text-align: center;
  z-index: 5;
}

.h2-newsletter-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}

.h2-newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f1626 0%, rgba(15, 22, 38, 0.8) 50%, #0f1626 100%);
  z-index: 2;
}

.h2-newsletter-section .container {
  position: relative;
  z-index: 3;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h2-newsletter-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-top: 16px;
}

.h2-newsletter-section p {
  font-family: var(--font-serif);
  font-size: 1.2-rem;
  font-style: italic;
  color: rgba(245, 245, 240, 0.8);
  max-width: 580px;
  margin-top: 16px;
  line-height: 1.6;
}

.h2-newsletter-form-container {
  margin-top: 40px;
  width: 100%;
}

.h2-newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
}

.h2-newsletter-form input {
  flex-grow: 1;
  border: 1px solid rgba(200, 162, 74, 0.4);
  background: transparent;
  padding: 18px 24px;
  color: #F5F5F0;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.h2-newsletter-form input:focus {
  border-color: var(--color-gold);
  outline: none;
  box-shadow: 0 0 15px rgba(200, 162, 74, 0.25);
}

.h2-newsletter-form button {
  border: 1px solid var(--color-gold);
  background-color: var(--color-gold);
  color: #0F1626;
  padding: 18px 45px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.h2-newsletter-form button:hover {
  background-color: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(200, 162, 74, 0.35);
}

.h2-newsletter-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 70px;
  color: rgba(245, 245, 240, 0.3);
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.h2-newsletter-footer .footer-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(200, 162, 74, 0.15);
}


/* ==========================================================================
   RESPONSIVENESS ADJUSTMENTS FOR HOMEPAGE 2
   ========================================================================== */

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 768px) {
  .h2-temples-track {
    height: auto;
  }
  
  .h2-temples-sticky {
    position: relative;
    height: auto;
    overflow-x: auto;
    padding: 60px 0;
  }
  
  .h2-temples-horizontal {
    padding-left: 24px;
    padding-right: 24px;
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
  }
  
  .h2-temple-intro {
    width: 85vw;
    padding-right: 16px;
    scroll-snap-align: start;
  }
  
  .temple-card {
    width: 85vw;
    height: 65vh;
    min-height: 400px;
    scroll-snap-align: start;
    padding: 24px;
  }
  
  .temple-card .card-number {
    font-size: 6rem;
  }
  
  .h2-book-split .grid-2 {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .book-sticky-container {
    position: relative;
    top: 0;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .bento-card.span-2-2, 
  .bento-card.span-2-1 {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .bento-card {
    min-height: 240px;
  }
  
  .h2-world-track {
    height: auto;
  }
  
  .h2-world-sticky {
    position: relative;
    height: auto;
    padding: 60px 24px;
  }
  
  .h2-world-map {
    transform: none !important;
  }
  
  .h2-world-overlay {
    opacity: 0.85 !important;
  }
  
  .h2-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .grid-parents {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .parents-badge {
    bottom: -10px;
    right: -10px;
    padding: 12px 18px;
  }
  
  .parents-points-grid {
    grid-template-columns: 1fr;
  }
  
  .h2-newsletter-form {
    flex-direction: column;
  }
  
  .h2-newsletter-form button {
    width: 100%;
  }
}

/* ==========================================================================
   HOMEPAGE 3 - PREMIUM EDITORIAL & REVERSE-REVEAL LAYOUT STYLES
   ========================================================================== */

.panchanad-h3-wrapper {
  background-color: #0B0F19;
  color: #E8E6E3;
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  line-height: 1.7;
}

.panchanad-h3-wrapper h1,
.panchanad-h3-wrapper h2,
.panchanad-h3-wrapper h3,
.panchanad-h3-wrapper h4 {
  font-family: var(--font-display);
  color: #F4F2EE;
  letter-spacing: 0.05em;
}

/* Scroll reveal engine for H3 (Reverse triggers) */
.h3-reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.h3-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Container */
.h3-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn-h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  transition: all 0.35s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-h3-gold {
  background: linear-gradient(135deg, #C8A24A 0%, #A27B2A 100%);
  color: #0F1626 !important;
  border: 1px solid #C8A24A;
  box-shadow: 0 4px 15px rgba(200, 162, 74, 0.2);
}

.btn-h3-gold:hover {
  background: linear-gradient(135deg, #E2C06A 0%, #C8A24A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 162, 74, 0.35);
}

.btn-h3-outline {
  background: transparent;
  color: #E8E6E3 !important;
  border: 1px solid rgba(232, 230, 227, 0.3);
}

.btn-h3-outline:hover {
  border-color: #C8A24A;
  color: #C8A24A !important;
  background: rgba(200, 162, 74, 0.05);
  transform: translateY(-2px);
}

/* Section Header styling */
.h3-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.h3-section-header h2 {
  font-size: 2.5rem;
  margin: 10px 0 0 0;
  text-transform: uppercase;
}

.h3-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #C8A24A;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

/* 1. Hero Section */
.h3-hero {
  position: relative;
  padding: 160px 0 100px 0;
  background: radial-gradient(circle at 70% 30%, #151F33 0%, #0B0F19 70%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.h3-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="rgba(200,162,74,0.02)" stroke-width="1"/></svg>') repeat;
  pointer-events: none;
}

.h3-hero-mandala-graphic {
  position: absolute;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.03) 0%, transparent 70%);
  border: 1px double rgba(200, 162, 74, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.h3-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.h3-hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin: 15px 0 25px 0;
  text-transform: uppercase;
}

.h3-hero-lead {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: #D6D2CB;
  margin-bottom: 25px;
  border-left: 3px solid #C8A24A;
  padding-left: 20px;
}

.h3-hero-body {
  font-size: 1.05rem;
  color: #A9A69F;
  margin-bottom: 20px;
}

.h3-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #C8A24A;
  background: rgba(200, 162, 74, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(200, 162, 74, 0.2);
  margin-bottom: 35px;
}

.badge-star {
  margin-right: 6px;
  font-size: 0.9rem;
}

.h3-hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.h3-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-book-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.h3-hero-book-cover {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  z-index: 2;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.h3-hero-book-cover:hover {
  transform: scale(1.03) rotate(-1deg);
}

/* 2. Highlights Section */
.h3-highlights {
  padding: 100px 0;
  background-color: #090C14;
}

.h3-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.h3-highlight-card {
  position: relative;
  background-color: rgba(21, 31, 51, 0.35);
  border: 1px solid rgba(200, 162, 74, 0.1);
  padding: 40px 30px;
  border-radius: 8px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.h3-highlight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 162, 74, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-talisman-bg {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(200, 162, 74, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #C8A24A;
  opacity: 0.8;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.h3-highlight-card h3 {
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  color: #F4F2EE;
}

.h3-highlight-card p {
  font-size: 0.95rem;
  color: #A9A69F;
  margin: 0;
  line-height: 1.6;
}

/* 3. About Section */
.h3-about {
  padding: 120px 0;
  background: radial-gradient(circle at 30% 50%, #111827 0%, #0B0F19 80%);
}

.h3-about-layout {
  max-width: 800px;
  margin: 0 auto;
}

.h3-about-header {
  text-align: center;
  margin-bottom: 50px;
}

.h3-about-header h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-top: 10px;
}

.h3-about-star-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.h3-about-star-line .line {
  width: 80px;
  height: 1px;
  background-color: rgba(200, 162, 74, 0.25);
}

.h3-about-star-line .star {
  color: #C8A24A;
  font-size: 0.85rem;
}

.h3-about-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #D6D2CB;
}

.h3-about-content p {
  margin-bottom: 30px;
}

.h3-drop-cap {
  font-size: 1.35rem;
  color: #F4F2EE;
  line-height: 1.7;
}

/* 4. Why Section */
.h3-why {
  padding: 100px 0;
  background-color: #090C14;
}

.h3-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.h3-why-intro h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-top: 15px;
  line-height: 1.15;
}

.h3-why-lead {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: #C8A24A;
  line-height: 1.65;
  margin-top: 25px;
}

.h3-why-content-card {
  position: relative;
  background-color: rgba(15, 22, 38, 0.5);
  border: 1px solid rgba(200, 162, 74, 0.15);
  padding: 50px 40px;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-inner-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 162, 74, 0.05);
  pointer-events: none;
}

.h3-why-content-card p {
  color: #A9A69F;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* 5. World Section & Antique Video Frame */
.h3-world {
  padding: 120px 0;
  background: radial-gradient(circle at 80% 50%, #152035 0%, #0B0F19 75%);
}

.h3-world-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.h3-world-text h2 {
  font-size: 2.6rem;
  text-transform: uppercase;
  margin: 15px 0 25px 0;
}

.world-lead-para {
  font-size: 1.15rem;
  color: #D6D2CB;
  margin-bottom: 20px;
  font-weight: 500;
}

.world-body-para {
  font-size: 1.0rem;
  color: #A9A69F;
  margin: 0;
}

/* Antique Video Frame styling */
.antique-video-frame {
  position: relative;
  background: #090C14;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(200, 162, 74, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(200, 162, 74, 0.08);
}

.corner-filigree {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #C8A24A;
  z-index: 10;
  pointer-events: none;
}

.corner-filigree.top-left {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.corner-filigree.top-right {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}

.corner-filigree.bottom-left {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}

.corner-filigree.bottom-right {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.antique-inner-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, 0.1);
}

.antique-video, .antique-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 6. Characters Section */
.h3-heroes {
  padding: 120px 0;
  background-color: #080B12;
}

.h3-heroes-subtitle {
  font-size: 1.15rem;
  color: #A9A69F;
  max-width: 600px;
  margin: 15px auto 0 auto;
}

.h3-heroes-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.h3-hero-editorial-card {
  position: relative;
  background-color: rgba(21, 31, 51, 0.4);
  border: 1px solid rgba(200, 162, 74, 0.15);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card-glow-element {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.h3-hero-editorial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 162, 74, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.h3-hero-editorial-card:hover .card-glow-element {
  opacity: 0.05;
}

/* Individual elements glow modifiers */
.hero-glow-gold:hover {
  box-shadow: 0 20px 40px rgba(200, 162, 74, 0.15);
}
.hero-glow-gold .card-glow-element {
  background: radial-gradient(circle, #C8A24A 0%, transparent 70%);
}
.hero-glow-gold .hero-role-tag {
  color: #C8A24A;
}

.hero-glow-red:hover {
  box-shadow: 0 20px 40px rgba(209, 73, 59, 0.15);
}
.hero-glow-red .card-glow-element {
  background: radial-gradient(circle, #D1493B 0%, transparent 70%);
}
.hero-glow-red .hero-role-tag {
  color: #D1493B;
}

.hero-glow-cyan:hover {
  box-shadow: 0 20px 40px rgba(162, 183, 212, 0.15);
}
.hero-glow-cyan .card-glow-element {
  background: radial-gradient(circle, #A2B7D4 0%, transparent 70%);
}
.hero-glow-cyan .hero-role-tag {
  color: #A2B7D4;
}

.hero-glow-green:hover {
  box-shadow: 0 20px 40px rgba(79, 157, 105, 0.15);
}
.hero-glow-green .card-glow-element {
  background: radial-gradient(circle, #4F9D69 0%, transparent 70%);
}
.hero-glow-green .hero-role-tag {
  color: #4F9D69;
}

.hero-image-frame {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  padding: 3px;
  border: 1.5px solid rgba(200, 162, 74, 0.3);
  overflow: hidden;
  background-color: #0F1626;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-card-meta {
  text-align: center;
}

.hero-role-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.hero-card-meta h3 {
  font-size: 1.45rem;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.hero-card-meta p {
  font-size: 0.9rem;
  color: #A9A69F;
  line-height: 1.6;
  margin: 0;
}

.h3-heroes-footer {
  text-align: center;
  margin-top: 60px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #D6D2CB;
}

/* 7. Values Section */
.h3-values {
  padding: 100px 0;
  background-color: #090C14;
}

.h3-values-subtitle {
  font-size: 1.15rem;
  color: #A9A69F;
  max-width: 600px;
  margin: 15px auto 0 auto;
}

.h3-values-talisman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.talisman-badge-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background-color: rgba(15, 22, 38, 0.45);
  border-radius: 6px;
  border: 1px solid rgba(200, 162, 74, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.talisman-badge-item:hover {
  transform: scale(1.02);
  border-color: #C8A24A;
  box-shadow: 0 10px 25px rgba(200, 162, 74, 0.1);
}

.badge-ring-outer {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(200, 162, 74, 0.08);
  border-radius: 4px;
  pointer-events: none;
}

.badge-ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.badge-star {
  color: #C8A24A;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F4F2EE;
  font-weight: 600;
}

.h3-values-closing {
  text-align: center;
  margin-top: 60px;
  font-size: 1.05rem;
  color: #A9A69F;
}

/* 8. Parents & Educators */
.h3-parents {
  padding: 120px 0;
  background: radial-gradient(circle at 20% 50%, #152035 0%, #0B0F19 80%);
}

.h3-parents-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.h3-parents-left h2 {
  font-size: 2.6rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 15px 0 25px 0;
}

.h3-parents-left .lead-para {
  font-size: 1.15rem;
  color: #D6D2CB;
  margin-bottom: 30px;
}

/* Seal Badge graphic */
.reading-age-seal {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.seal-circle {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1.5px solid #C8A24A;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateSeal 25s linear infinite;
}

.seal-text-path {
  position: absolute;
  width: 100%;
  height: 100%;
  fill: #C8A24A;
  font-family: var(--font-display);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.seal-inner-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #090C14;
  border: 1px solid rgba(200, 162, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: rotateSealCounter 25s linear infinite;
}

.seal-age {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #F4F2EE;
  padding: 0 10px;
  line-height: 1.4;
}

@keyframes rotateSeal {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateSealCounter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.h3-parents-right {
  background-color: rgba(9, 12, 20, 0.6);
  border: 1px solid rgba(200, 162, 74, 0.15);
  padding: 45px;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.parents-editorial-text p {
  font-size: 1.05rem;
  color: #A9A69F;
  line-height: 1.85;
  margin: 0;
}

/* 9. About the Author */
.h3-author {
  padding: 120px 0;
  background-color: #080B12;
}

.h3-author-quote-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
  position: relative;
  padding: 0 40px;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: #C8A24A;
  line-height: 0;
  display: inline-block;
  opacity: 0.25;
}

.quote-mark.open {
  position: absolute;
  left: 0;
  top: 30px;
}

.quote-mark.close {
  position: absolute;
  right: 0;
  bottom: -20px;
}

.auth-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: #F4F2EE;
  line-height: 1.5;
  margin: 0;
}

.h3-author-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.h3-author-details h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 15px 0 25px 0;
  line-height: 1.15;
}

.h3-author-details p {
  font-size: 1.0rem;
  color: #A9A69F;
  margin-bottom: 20px;
}

.h3-author-vision {
  font-family: var(--font-serif);
  font-style: italic;
  color: #D6D2CB !important;
  font-size: 1.05rem !important;
  border-left: 2px solid #C8A24A;
  padding-left: 15px;
  margin-bottom: 35px !important;
}

.h3-author-portrait {
  display: flex;
  justify-content: center;
}

.portrait-container {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.author-placeholder-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 162, 74, 0.2);
}

.portrait-border-glow {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(200, 162, 74, 0.1);
  border-radius: 8px;
  pointer-events: none;
}

/* 10. News Section */
.h3-news {
  padding: 100px 0;
  background-color: #090C14;
}

.h3-news-lead {
  font-size: 1.15rem;
  color: #A9A69F;
  max-width: 600px;
  margin: 15px auto 0 auto;
}

.h3-news-loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.h3-news-card {
  background-color: rgba(21, 31, 51, 0.35);
  border: 1px solid rgba(200, 162, 74, 0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.h3-news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 162, 74, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 162, 74, 0.1);
}

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

.h3-news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 30px;
}

.news-date {
  font-size: 0.75rem;
  color: #C8A24A;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.news-card-body h3 {
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.news-card-body h3 a {
  color: #F4F2EE;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-body h3 a:hover {
  color: #C8A24A;
}

.news-card-body p {
  font-size: 0.92rem;
  color: #A9A69F;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.btn-news-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C8A24A;
  text-decoration: none;
  transition: gap 0.3s ease;
  gap: 6px;
}

.btn-news-more:hover {
  gap: 12px;
}

/* 11. Join the Community */
.h3-community {
  padding: 100px 0;
  background-color: #080B12;
}

.h3-community-panel {
  position: relative;
  background: radial-gradient(circle at center, #152035 0%, #0F1626 100%);
  border: 1px solid rgba(200, 162, 74, 0.25);
  padding: 80px 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.panel-border-overlay {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(200, 162, 74, 0.08);
  pointer-events: none;
}

.h3-community-panel h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  margin: 15px 0 20px 0;
  line-height: 1.2;
}

.h3-community-panel p {
  color: #D6D2CB;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.65;
}

.h3-form-newsletter {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.h3-email-input {
  flex-grow: 1;
  background-color: rgba(9, 12, 20, 0.8);
  border: 1.5px solid rgba(200, 162, 74, 0.2);
  color: #F4F2EE;
  padding: 14px 20px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.h3-email-input:focus {
  outline: none;
  border-color: #C8A24A;
  box-shadow: 0 0 10px rgba(200, 162, 74, 0.15);
}

/* 12. FAQ Section */
.h3-faqs {
  padding: 100px 0;
  background-color: #090C14;
}

.h3-faq-accordion-group {
  max-width: 800px;
  margin: 0 auto;
}

.h3-faq-item {
  border-bottom: 1px solid rgba(200, 162, 74, 0.12);
  margin-bottom: 10px;
}

.h3-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  color: #F4F2EE;
}

.h3-faq-trigger h3 {
  font-size: 1.15rem;
  margin: 0;
  transition: color 0.3s ease;
}

.h3-faq-trigger:hover h3 {
  color: #C8A24A;
}

.accordion-arrow {
  color: #C8A24A;
  font-size: 0.85rem;
  transition: transform 0.4s ease;
}

.h3-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.h3-faq-panel p {
  color: #A9A69F;
  font-size: 0.98rem;
  line-height: 1.7;
  padding-bottom: 24px;
  margin: 0;
}

/* Active State Accordion */
.h3-faq-item.active .accordion-arrow {
  transform: rotate(45deg);
}

.h3-faq-item.active .h3-faq-panel {
  max-height: 200px; /* Expands to natural height */
}

/* 13. Contact Section */
.h3-contact {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 100%, #152035 0%, #0B0F19 80%);
}

.h3-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.h3-contact-info h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 15px 0 25px 0;
  line-height: 1.15;
}

.h3-contact-info p {
  font-size: 1.05rem;
  color: #A9A69F;
  line-height: 1.75;
}

.h3-contact-form-block {
  background-color: rgba(9, 12, 20, 0.5);
  border: 1px solid rgba(200, 162, 74, 0.15);
  padding: 50px;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.h3-contact-form .form-row {
  margin-bottom: 25px;
}

.h3-contact-form input,
.h3-contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(200, 162, 74, 0.2);
  color: #F4F2EE;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.h3-contact-form input:focus,
.h3-contact-form textarea:focus {
  outline: none;
  border-color: #C8A24A;
}

/* 14. Final Call to Action */
.h3-final-cta {
  position: relative;
  padding: 140px 0;
  background: radial-gradient(circle at center, #151E30 0%, #080B12 100%);
  text-align: center;
}

.h3-final-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1.5" fill="rgba(200,162,74,0.03)"/></svg>') repeat;
  pointer-events: none;
}

.h3-final-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.h3-final-content h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin: 15px 0 25px 0;
  line-height: 1.2;
}

.h3-final-content p {
  color: #D6D2CB;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.h3-final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive configurations */
@media (max-width: 991px) {
  .h3-hero-grid,
  .h3-why-grid,
  .h3-world-grid,
  .h3-parents-grid,
  .h3-author-layout-grid,
  .h3-contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .h3-hero-text, .h3-world-text, .h3-parents-left, .h3-author-details, .h3-contact-info {
    text-align: center;
  }
  
  .h3-hero-lead {
    border-left: none;
    padding-left: 0;
  }
  
  .h3-hero-actions,
  .h3-final-actions {
    justify-content: center;
  }
  
  .h3-hero-book-cover {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .h3-hero-text h1 {
    font-size: 2.6rem;
  }
  
  .h3-section-header h2,
  .h3-about-header h2,
  .h3-final-content h2 {
    font-size: 2.0rem;
  }
  
  .h3-community-panel {
    padding: 60px 20px;
  }
  
  .h3-form-newsletter {
    flex-direction: column;
    width: 100%;
  }
}

/* Homepage 3 Hero Background and layout optimization */
.h3-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}

.h3-hero-bg-overlay {
  background: linear-gradient(to right, rgba(11, 15, 25, 0.88) 0%, rgba(11, 15, 25, 0.6) 50%, rgba(11, 15, 25, 0.88) 100%),
              linear-gradient(to bottom, rgba(11, 15, 25, 0.4) 0%, #0B0F19 100%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.h3-hero-grid {
  position: relative;
  z-index: 2;
}

.h3-hero-visual {
  perspective: 1000px;
}

.h3-hero-book-cover {
  transform: rotateY(-12deg) rotateX(8deg);
  box-shadow: -15px 25px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 162, 74, 0.25);
  animation: floatBookH3 6s ease-in-out infinite;
}

@keyframes floatBookH3 {
  0% { transform: rotateY(-12deg) rotateX(8deg) translateY(0px); }
  50% { transform: rotateY(-8deg) rotateX(6deg) translateY(-15px); }
  100% { transform: rotateY(-12deg) rotateX(8deg) translateY(0px); }
}

/* About Section Split Grid */
.h3-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.antique-image-frame {
  position: relative;
  padding: 12px;
  background-color: #090C14;
  border: 1.5px solid rgba(200, 162, 74, 0.25);
  border-radius: 6px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.antique-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.frame-border-glow {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(200, 162, 74, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

/* Why Section Split Grid with Artwork */
.h3-why-body-para {
  color: #A9A69F;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 20px;
}

.why-artwork-container {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.why-artwork-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-artwork-container:hover img {
  transform: scale(1.04);
}

.artwork-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.05) 0%, transparent 80%);
  pointer-events: none;
}

/* Responsive configurations */
@media (max-width: 991px) {
  .h3-about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .h3-about-text {
    text-align: center;
  }
  
  .h3-about-star-line {
    justify-content: center;
  }
}



/* ============================
   FOOTER
============================ */

footer {
    background: #111;
    color: #fff;
    padding: 60px 20px 30px;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

footer a:hover {
    color: #d4af37;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* ============================
   FOOTER GRID
============================ */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    align-items: start;
}

/* ============================
   BRAND
============================ */

.footer-brand h3 {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.footer-brand p {
    line-height: 1.8;
    color: #cfcfcf;
    max-width: 420px;
}

/* ============================
   SOCIAL ICONS
============================ */

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: .3s;
}

.footer-social-icon:hover {
    background: #d4af37;
    color: #111;
    transform: translateY(-3px);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

/* ============================
   LINKS
============================ */

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d8d8d8;
}

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

/* ============================
   BOTTOM BAR
============================ */

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.12);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #bfbfbf;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #d8d8d8;
}

/* ============================
   TABLET
============================ */

@media (max-width:992px) {

    .footer-grid {
        gap: 35px;
    }

}

/* ============================
   MOBILE
============================ */

@media (max-width:768px) {

    footer {
        padding: 50px 20px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-brand p {
        max-width: 100%;
        margin: auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 18px;
    }

}

/* ============================
   SMALL PHONES
============================ */

@media (max-width:480px) {

    .footer-brand h3 {
        font-size: 24px;
    }

    .footer-links h4 {
        font-size: 18px;
    }

    .footer-brand p,
    .footer-links a,
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 15px;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
    }

}
