/* ==========================================================================
   PLAYER-Cs TEACHER LEARNING HUB & BOOK LAUNCH DESIGN SYSTEM
   100% Unified & Cohesive Design Palette Derived Exclusively from Official Logo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. UNIFIED LOGO-BASED DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dominant Brand Palette (Extracted 100% from Official Logo) */
  --color-brand-navy: #1D3B73;         /* Main headings, footer, primary authority */
  --color-brand-navy-dark: #12254B;    /* Sub-footer & deep overlays */
  --color-brand-navy-light: #EEF3FA;   /* Soft navy background tint */

  --color-brand-teal: #56B9B0;         /* Primary accent, tabs, active pills, links */
  --color-brand-teal-dark: #3B9990;    /* Teal hover states */
  --color-brand-teal-light: #EBF7F6;   /* Callout background tint */
  --color-brand-teal-tint: rgba(86, 185, 176, 0.12);

  --color-brand-orange: #EF8D49;       /* Primary Action CTAs ("Order Book", "Buy Now") */
  --color-brand-orange-hover: #D87532; /* Orange hover state */
  --color-brand-orange-light: #FFF4EC; /* Soft orange badge background */
  --color-brand-orange-tint: rgba(239, 141, 73, 0.12);

  --color-brand-green: #74C043;        /* Secondary highlights, checkmarks, badges */
  --color-brand-green-dark: #589C2B;   
  --color-brand-green-light: #F2F9EC;  /* Soft green tint */

  /* WhatsApp Direct Accent */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5B;
  --color-whatsapp-shadow: rgba(37, 211, 102, 0.35);

  /* Clean Neutrals & Surfaces */
  --color-text-main: #1E293B;          /* Deep slate for crisp body copy */
  --color-text-secondary: #475569;     /* Secondary copy */
  --color-text-muted: #64748B;        /* Metadata, timestamps */
  --color-surface-white: #FFFFFF;      /* Clean white card surface */
  --color-surface-offwhite: #F8FAFC;   /* Light gray-blue alternate strips */
  --color-surface-neutral: #F1F5F9;    /* Neutral divider background */
  --color-border: #E2E8F0;             /* Card borders */
  --color-border-subtle: #F1F5F9;

  /* Typography Fonts */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing Scale (Fluid for Mobile-First) */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: clamp(1.5rem, 4vw, 2.5rem);   /* Dynamic 24px - 40px */
  --space-2xl: clamp(2.25rem, 6vw, 4.5rem); /* Dynamic 36px - 72px */

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (Soft Ambient Elevation) */
  --shadow-subtle: 0 2px 8px rgba(29, 59, 115, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(29, 59, 115, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px -10px rgba(29, 59, 115, 0.16), 0 8px 16px rgba(0, 0, 0, 0.03);
  --shadow-orange-glow: 0 8px 24px -4px rgba(239, 141, 73, 0.35);
  --shadow-teal-glow: 0 8px 24px -4px rgba(86, 185, 176, 0.35);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-surface-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

body.nav-locked {
  overflow: hidden;
}

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

a {
  color: var(--color-brand-navy);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--color-brand-teal-dark);
}

/* Fluid Responsive Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-brand-navy);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; }
h4 { font-size: clamp(1.05rem, 2.5vw, 1.2rem); font-weight: 700; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}

article[id], section[id] {
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS & MOBILE-FIRST GRID
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

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

.section--soft-teal {
  background: linear-gradient(180deg, var(--color-brand-teal-light) 0%, #FFFFFF 100%);
}

.section--soft-orange {
  background: linear-gradient(180deg, var(--color-brand-orange-light) 0%, #FFFFFF 100%);
}

.section--navy {
  background-color: var(--color-brand-navy);
  color: var(--color-surface-white);
}

.section--navy h1, 
.section--navy h2, 
.section--navy h3, 
.section--navy p {
  color: var(--color-surface-white);
}

/* Mobile-First Grid System: Defaults to 1 column on mobile */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UNIFIED PILL BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
}

/* Primary Action CTA (Orange from Logo) */
.btn-primary,
.btn-orange {
  background-color: var(--color-brand-orange);
  color: var(--color-surface-white) !important;
}

.btn-primary:hover,
.btn-orange:hover {
  background-color: var(--color-brand-orange-hover);
  color: var(--color-surface-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-glow);
}

/* Secondary Teal Button */
.btn-secondary {
  background-color: var(--color-brand-teal);
  color: var(--color-surface-white);
}

.btn-secondary:hover {
  background-color: var(--color-brand-teal-dark);
  color: var(--color-surface-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-glow);
}

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

.btn-outline:hover {
  background-color: var(--color-brand-navy);
  color: var(--color-surface-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-surface-white);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: var(--color-surface-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-whatsapp-shadow);
}

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

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* Badges matching brand logo colors */
/* Badges matching brand logo colors */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-navy-light);
  color: var(--color-brand-navy);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.badge-teal {
  background-color: var(--color-brand-teal-light);
  color: var(--color-brand-teal-dark);
}

/* PLAYER-CS Syntax Matrix & Tables */
.player-syntax {
  margin-bottom: 3.5rem;
}
.player-syntax__intro {
  margin-bottom: 1.5rem;
}
.player-syntax__intro .badge {
  margin-bottom: 0.75rem;
}
.player-syntax__intro p {
  max-width: 820px;
}
.player-syntax__scroll,
.player-book-plan {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.player-syntax__table,
.player-book-plan table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.55;
  background: #ffffff;
}
.player-syntax__table th,
.player-syntax__table td,
.player-book-plan th,
.player-book-plan td {
  padding: 0.9rem 1.1rem;
  vertical-align: top;
  border: 1px solid #cbd5e1 !important;
  text-align: left;
}
.player-syntax__table thead th,
.player-book-plan thead th {
  color: #ffffff;
  background: var(--color-brand-navy);
  font-weight: 700;
  border-color: #1e293b !important;
}
.player-syntax__table thead th:first-child,
.player-book-plan thead th:first-child {
  min-width: 140px;
}
.player-syntax__table tbody th {
  width: 140px;
  color: var(--color-brand-navy);
  background: #f1f5f9;
  font-family: var(--font-heading);
  font-weight: 700;
}
.player-syntax__table tbody tr:nth-child(even) td,
.player-book-plan tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.player-syntax__table ul {
  margin: 0;
  padding-left: 1.1rem;
}
.player-syntax__table li {
  margin-bottom: 0.35rem;
}
.player-syntax__phase-code {
  display: block;
  color: #38bdf8;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.player-syntax__table strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}
.player-syntax__table small {
  display: block;
  margin-top: 0.25rem;
  color: #cbd5e1;
  font-weight: 400;
  font-size: 0.78rem;
}
.player-syntax__pathways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.player-syntax__pathway {
  padding: 1.5rem;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--color-brand-teal);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.player-syntax__pathway--blue {
  border-top-color: #2563eb;
}
.player-syntax__pathway--green {
  border-top-color: #16a34a;
}
.player-syntax__pathway--yellow {
  border-top-color: #d97706;
}
.player-syntax__pathway h3 {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  color: var(--color-brand-navy);
}
.player-syntax__sequence {
  color: var(--color-brand-navy);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.player-book-plan td {
  min-width: 80px;
}
.player-book-plan td:nth-child(3) {
  min-width: 380px;
}
.player-book-plan tfoot th,
.player-book-plan tfoot td {
  background: #e0f2fe;
  color: var(--color-brand-navy);
  font-weight: 700;
  border-top: 2px solid #0284c7 !important;
}
@media (max-width: 800px) {
  .player-syntax__pathways {
    grid-template-columns: 1fr;
  }
}


.badge-orange {
  background-color: var(--color-brand-orange-light);
  color: var(--color-brand-orange);
}

.badge-green {
  background-color: var(--color-brand-green-light);
  color: var(--color-brand-green-dark);
}

.badge-navy {
  background-color: var(--color-brand-navy-light);
  color: var(--color-brand-navy);
}

/* --------------------------------------------------------------------------
   5. HEADER & BRAND LOGO NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: var(--color-brand-navy);
  color: var(--color-surface-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar a.btn-orange,
.top-bar a.btn {
  background-color: var(--color-brand-orange) !important;
  color: #ffffff !important;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(239, 141, 73, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.06);
}

.logo span {
  color: var(--color-brand-teal);
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-brand-navy);
  background-color: rgba(86, 185, 176, 0.08);
}

.nav-link.active {
  color: var(--color-brand-navy);
  background-color: rgba(86, 185, 176, 0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background-color: var(--color-brand-teal);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   PAGE HERO BANNER (PREMIUM INSTITUTIONAL STYLE)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #1D3B73 0%, #12264C 100%);
  color: #FFFFFF;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--color-brand-teal);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.15);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(86, 185, 176, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--color-brand-teal);
}

.page-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero h1 {
  color: #FFFFFF !important;
  font-size: 2.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.05rem;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 0;
}

.nav-tabs {
  background-color: var(--color-surface-offwhite);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
}

.nav-tabs-inner {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}

.nav-tabs-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-tab-item {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  background-color: transparent;
  touch-action: manipulation;
}

.nav-tab-item:hover, .nav-tab-item.active {
  background-color: var(--color-surface-white);
  color: var(--color-brand-navy);
  box-shadow: var(--shadow-subtle);
}

/* Mobile Hamburger Toggle Icon Morph */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  z-index: 102;
  position: relative;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle-icon,
.mobile-toggle-icon::before,
.mobile-toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-brand-navy);
  border-radius: 4px;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.mobile-toggle-icon {
  position: relative;
}

.mobile-toggle-icon::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.mobile-toggle-icon::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.mobile-toggle.is-active .mobile-toggle-icon {
  background-color: transparent;
}

.mobile-toggle.is-active .mobile-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-brand-navy);
}

.mobile-toggle.is-active .mobile-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-brand-navy);
}

/* Mobile Navigation Backdrop Overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(18, 37, 75, 0.45);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .mobile-toggle { display: flex; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-surface-white);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    gap: 0.35rem;
    box-shadow: 0 15px 30px rgba(29, 59, 115, 0.15);
    border-bottom: 3px solid var(--color-brand-teal);
    z-index: 101;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .top-bar-text {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & BRAND ACCENTS
   -------------------------------------------------------------------------- */
.hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background: linear-gradient(135deg, #FFFDFB 0%, #EBF7F6 60%, #FFFFFF 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  color: var(--color-brand-teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-brand-orange);
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.book-card-3d {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  background: var(--color-surface-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--transition-normal);
}

.book-card-3d:hover {
  transform: translateY(-6px);
}

.book-card-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--color-brand-orange);
  color: var(--color-surface-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange-glow);
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE 6-STAGE LEARNING CYCLE (Logo Teal Nodes)
   -------------------------------------------------------------------------- */
.cycle-section {
  text-align: center;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cycle-node {
  background-color: var(--color-surface-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  touch-action: manipulation;
}

.cycle-node:hover, .cycle-node.active {
  border-color: var(--color-brand-teal);
  background: var(--color-brand-teal-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal-glow);
}

.cycle-node-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-brand-navy);
  color: var(--color-surface-white);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cycle-node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-navy);
}

.cycle-details-box {
  margin-top: 2rem;
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: left;
  box-shadow: var(--shadow-card);
}

@media (max-width: 992px) {
  .cycle-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
  .cycle-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

/* --------------------------------------------------------------------------
   8. PRICING MATRIX & MASTER BOOK CARD
   -------------------------------------------------------------------------- */
.book-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-order-grid {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
}

.pricing-card {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pricing-card--featured {
  border: 2px solid var(--color-brand-orange);
  box-shadow: var(--shadow-hover);
}

.pricing-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-brand-orange);
  color: var(--color-surface-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-orange-glow);
}

.pricing-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-brand-navy);
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-left: 0;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-brand-green-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   9. READER & DOCUMENTATION LAYOUT (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.reader-layout {
  display: grid;
  grid-template-columns: 270px 1fr 250px;
  gap: var(--space-xl);
  align-items: start;
}

.reader-sidebar-left {
  position: sticky;
  top: 100px;
  background-color: var(--color-surface-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.reader-menu {
  list-style: none;
}

.reader-menu-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.reader-menu-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem;
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.reader-menu-link:hover, .reader-menu-link.active {
  background-color: var(--color-brand-teal-light);
  color: var(--color-brand-teal-dark);
  font-weight: 600;
}

.reader-content {
  background-color: var(--color-surface-white);
  min-width: 0;
}

.reader-sidebar-right {
  position: sticky;
  top: 100px;
}

.callout-box {
  background-color: var(--color-brand-teal-light);
  border-left: 4px solid var(--color-brand-teal);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.callout-box h4 {
  color: var(--color-brand-teal-dark);
  margin-bottom: 0.5rem;
}

.example-box {
  background-color: var(--color-surface-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.example-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-navy);
  margin-bottom: 0.5rem;
}

/* Mobile Table of Contents Bar for Reader Pages */
.mobile-toc-bar {
  display: none;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .mobile-toc-bar {
    display: block;
  }

  .mobile-toc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background-color: var(--color-brand-teal-light);
    border: 1px solid var(--color-brand-teal);
    border-radius: var(--radius-md);
    color: var(--color-brand-teal-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .mobile-toc-trigger-arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
  }

  .mobile-toc-trigger.is-open .mobile-toc-trigger-arrow {
    transform: rotate(180deg);
  }

  .reader-sidebar-left {
    display: none;
    position: static;
    max-height: none;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-card);
  }

  .reader-sidebar-left.is-open {
    display: block;
  }

  .reader-sidebar-right {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   10. FOOTER & FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-brand-navy);
  color: var(--color-surface-white);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-title {
  color: var(--color-surface-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--color-surface-white);
}

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  background-color: var(--color-whatsapp);
  color: var(--color-surface-white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--color-whatsapp-shadow);
  z-index: 999;
  transition: all var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--color-surface-white);
}

@media (min-width: 768px) {
  .whatsapp-float {
    width: 64px;
    height: 64px;
    bottom: 28px;
    right: 28px;
  }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sub-footer { flex-direction: column; gap: 1rem; text-align: center; }
}


/* --- RESTORED FIXES FOR UL RESET --- */
.nav-links, .footer-links, .reader-menu {
  padding: 0;
  margin: 0;
}

/* --- FOOTER SPECIFIC STYLES --- */
.site-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-logo {
  color: var(--color-surface-white);
  margin-bottom: 1.25rem;
}

.footer-logo .logo-img {
  background: white;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.footer-logo strong {
  color: var(--color-brand-orange);
}

/* --- RESTORED READER VIEW CSS --- */
.reader-sidebar-left,
.reader-sidebar-right {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  z-index: 5;
}

.mobile-toc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--color-brand-teal-light);
  border: 1px solid var(--color-brand-teal);
  border-radius: var(--radius-md);
  color: var(--color-brand-teal-dark);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.reader-book-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  text-align: center;
}

.reader-book-cover {
  width: 150px;
  max-height: 210px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.reader-book-badge {
  margin-bottom: 0.75rem;
}

.reader-book-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.reader-book-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE 6-STAGE LEARNING CYCLE (Logo Teal Nodes)
   -------------------------------------------------------------------------- */
.cycle-section {
  text-align: center;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cycle-node {
  background-color: var(--color-surface-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  touch-action: manipulation;
}

.cycle-node:hover, .cycle-node.active {
  border-color: var(--color-brand-teal);
  background: var(--color-brand-teal-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal-glow);
}

.cycle-node-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-brand-navy);
  color: var(--color-surface-white);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cycle-node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-navy);
}

.cycle-details-box {
  margin-top: 2rem;
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: left;
  box-shadow: var(--shadow-card);
}

@media (max-width: 992px) {
  .cycle-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
  .cycle-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

.cycle-diagram-box {
  background: var(--color-surface-offwhite);
  border: 2px dashed var(--color-brand-teal);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 1.5rem 0;
}
.cycle-diagram-title {
  color: var(--color-brand-navy);
  margin-bottom: 1rem;
}
.cycle-diagram-items {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-brand-navy);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.cycle-diagram-items div.cycle-diagram-back {
  color: var(--color-brand-orange);
}

/* --- Rich Text & Callout List Styles --- */
.content-block ul, .callout-box ul, .example-box ul, .faq-item ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-block ol, .callout-box ol, .example-box ol, .faq-item ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-block li, .callout-box li, .example-box li, .faq-item li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   IMAGE ZOOM LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.image-zoom-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}
.image-zoom-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}
.image-zoom-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.image-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.image-zoom-btn--close {
  background: #ef4444;
  border-color: #dc2626;
  margin-left: 1rem;
}
.image-zoom-btn--close:hover {
  background: #dc2626;
}
.image-zoom-modal__viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 1rem;
}
.image-zoom-modal__viewport:active {
  cursor: grabbing;
}
.image-zoom-modal__viewport img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.08s ease-out;
  transform-origin: center center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-radius: 4px;
}

.poster-zoom-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 0.5rem;
}
.poster-zoom-wrapper:hover .poster-zoom-overlay {
  opacity: 1;
  background: var(--color-brand-navy);
}
.poster-zoom-overlay {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  transition: all 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}


