/* ==========================================================================
   NUMECO E-PROFILE MODERN CSS STYLESHEET
   Design System: Luxury Organic Food Ingredients
   Emerald Green (#0d6956), Gold Accent (#d99a3d), Soft Parchment (#fffaf0)
   ========================================================================== */

:root {
  --green: #0d6956;
  --green-dark: #093f34;
  --green-light: #12826a;
  --green-2: #124d43;
  --gold: #d99a3d;
  --gold-light: #f5b75f;
  --cream: #f7f2e7;
  --paper: #fffaf0;
  --ink: #1f2d2f;
  --muted: #667476;
  --line: rgba(31, 45, 47, .12);
  --shadow-book: 0 30px 80px rgba(7, 34, 30, .45);
  --shadow-ui: 0 10px 30px rgba(0, 0, 0, .25);
  --glass: rgba(13, 63, 52, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-family-title: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-family-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

/* Base Body Styles */
html,
body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-family-body);
  background-color: #072520;
  background-image: 
    linear-gradient(135deg, rgba(7, 37, 32, 0.95) 0%, rgba(13, 105, 86, 0.88) 100%),
    url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow overlay background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 20%, rgba(217, 154, 61, 0.16), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(18, 130, 106, 0.2), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

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

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #092e27;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  width: 90%;
  max-width: 340px;
}

.loader-logo {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(217, 154, 61, 0.2)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(217, 154, 61, 0.4)); }
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.loader-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gold);
  border-radius: 10px;
  transition: width 0.3s ease;
}
.stats-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-top: 18px;
  padding: 14px 10px 12px;
  background: linear-gradient(135deg, rgba(13, 105, 86, 0.08) 0%, rgba(217, 154, 61, 0.06) 100%);
  border: 1px solid rgba(217, 154, 61, 0.22);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Shimmer overlay */
.stats-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(217,154,61,0.04) 50%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

.stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px 6px;
  text-align: center;
}

.stat-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 3px rgba(217,154,61,0.4));
}

.stat-number {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 1px 8px rgba(217,154,61,0.28);
  letter-spacing: -0.5px;
}

/* Animated count value */
.stat-count {
  display: inline-block;
  transition: transform 0.1s ease;
}

.stat-count.counting {
  animation: pulseNum 0.15s ease-in-out;
}

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

.stat-label {
  font-family: var(--font-family-body);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: linear-gradient(to bottom, transparent, rgba(217,154,61,0.35) 30%, rgba(217,154,61,0.35) 70%, transparent);
  flex-shrink: 0;
}

/* ==========================================================================
   TOP FLOATING HEADER
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 37, 32, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.brand, .top-actions {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.brand-text {
  color: #fff;
  font-family: var(--font-family-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-toc-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-ui);
}

.btn-toc-toggle:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.lang-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: rgba(7, 44, 39, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-ui);
}

.lang-toggle button {
  min-width: 38px;
  height: 28px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.lang-toggle button.active {
  color: var(--green-dark);
  background: var(--gold);
}

/* ==========================================================================
   SIDE NAVIGATION PILLS (Desktop Only)
   ========================================================================== */
.side-nav-pills {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
  padding: 16px 8px;
  border-radius: 30px;
  background: rgba(7, 44, 39, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-ui);
}

.side-nav-pills .pill-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  transition: all 0.3s ease;
}

.side-nav-pills .pill-dot:hover {
  border-color: var(--gold);
  transform: scale(1.2);
}

.side-nav-pills .pill-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Tooltip on dots */
.side-nav-pills .pill-dot::after {
  content: attr(data-title);
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--glass);
  color: #fff;
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-ui);
  backdrop-filter: blur(10px);
}

.side-nav-pills .pill-dot:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   TABLE OF CONTENTS PANEL (Slide-out)
   ========================================================================== */
.toc-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: rgba(6, 31, 26, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.toc-panel.open {
  right: 0;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-header h4 {
  color: #fff;
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.close-toc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  line-height: 1;
  transition: color 0.3s;
}

.close-toc:hover {
  color: var(--gold);
}

.toc-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 5px;
}

.toc-list::-webkit-scrollbar {
  width: 4px;
}

.toc-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.toc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.toc-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(-4px);
}

.toc-item.active {
  color: var(--green-dark);
  background: var(--gold);
  font-weight: 700;
}

.toc-item .toc-page-no {
  font-family: var(--font-family-title);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.7;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   STAGE & 3D FLIPBOOK SHELL
   ========================================================================== */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 90px;
}

.book-shell {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container defining perspective and dynamic scaling space */
.book-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1280px;
  max-height: 760px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
}

/* Realistic spine overlay shadow in the absolute center */
.center-spine-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 200;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.03) 25%, 
    rgba(255, 255, 255, 0.12) 50%, 
    rgba(0, 0, 0, 0.03) 75%, 
    rgba(0, 0, 0, 0.35) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Spine shadow is only visible when book is open in landscape */
.book-container.is-open:not(.is-portrait) .center-spine-shadow {
  opacity: 1;
}

/* Hide spine shadow on mobile viewports and closed covers */
.book-container.is-portrait .center-spine-shadow,
.book-container.is-cover-active .center-spine-shadow {
  display: none !important;
}

/* The core wrapper targeted by StPageFlip */
.book {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

/* Base book shadow - only active when the book is open */
.book-container:not(.is-cover-active) .book {
  box-shadow: var(--shadow-book);
}

/* Cover page shadow - applied only to active page element when cover is shown */
.book-container.is-cover-active .page.active-page {
  box-shadow: var(--shadow-book) !important;
  border-radius: 8px;
}



/* ==========================================================================
   INDIVIDUAL PAGE LAYOUT
   ========================================================================== */
.page {
  background-color: var(--paper);
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.03);
}

/* Spine gradients to simulate realistic page lighting */
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 10;
  pointer-events: none;
}

/* Left page shadow on the right edge */
.page[data-page-side="left"]::before {
  right: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.08));
}

/* Right page shadow on the left edge */
.page[data-page-side="right"]::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0));
}

.page-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 45px 50px;
  overflow-y: auto;
  /* Hide scrollbars for aesthetic clean look */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.page-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* ==========================================================================
   PAGE TYPES & GRAPHICS
   ========================================================================== */

/* 1. CONTENT PANEL (Left/Right Text Layout) */
.content-panel {
  background: 
    linear-gradient(90deg, rgba(0,0,0,0.01) 0%, transparent 5%, transparent 95%, rgba(0,0,0,0.01) 100%),
    var(--paper);
}

/* 2. VISUAL PANEL (Graphic Layout) */
.page-content.visual {
  padding: 50px;
  justify-content: flex-end;
  color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for text legibility on visuals */
.page-content.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 34, 30, 0.1) 0%, rgba(7, 34, 30, 0.8) 100%);
}

.visual-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.visual-copy h2 {
  /* font-family: var(--font-family-title); */
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.visual-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 3. COVER PANEL (Front/Back) */
.cover-panel {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-image: 
    linear-gradient(135deg, rgba(7, 39, 32, 0.96) 0%, rgba(13, 85, 70, 0.9) 100%),
    url("https://images.unsplash.com/photo-1505576399279-565b52d4ac71?auto=format&fit=crop&w=1200&q=80");
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px !important;
  position: relative;
  z-index: 1;
}

.cover-panel.back {
  background-image: 
    linear-gradient(135deg, rgba(17, 26, 27, 0.98) 0%, rgba(9, 64, 55, 0.93) 100%),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80");
}

/* Background gold foil glow effect */
.cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(217, 154, 61, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Ornate nested frames */
.cover-frame-outer {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(217, 154, 61, 0.35);
  pointer-events: none;
  z-index: 2;
}

.cover-frame-inner {
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(217, 154, 61, 0.65);
  pointer-events: none;
  z-index: 2;
}

/* Add corner ornaments to inner frame */
.cover-frame-inner::before,
.cover-frame-inner::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.cover-frame-inner::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.cover-frame-inner::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

/* Header elements */
.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
}

.cover-badge {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(217, 154, 61, 0.08);
}

.cover-estd {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Body layout */
.cover-body {
  position: relative;
  z-index: 3;
  text-align: center;
  margin: auto 0;
}

.cover-logo {
  height: 300px;
  width: 300px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.cover-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 18px;
}

.cover-body h2 {
  font-family: var(--font-family-title);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 4px;
  /* background: linear-gradient(135deg, #ffe082 0%, #d99a3d 50%, #b57c1e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
  color: var(--gold);
  text-shadow: 0 1px 8px rgba(217,154,61,0.28);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* .cover-body h2 {
  font-family: var(--font-family-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.95;
  margin-bottom: 16px;
} */

.cover-sub-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 154, 61, 0.3), transparent);
  margin: 0 auto 18px;
}

.cover-body p {
  font-size: 13.5px !important;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
}

/* Footer elements */
.cover-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cover-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* BACK COVER SPECIFICS */
.back-body {
  position: relative;
  z-index: 3;
  text-align: center;
  margin: auto 0;
}

.seal-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.quality-seal {
  width: 96px;
  height: 96px;
  position: relative;
}

.seal-svg {
  width: 100%;
  height: 100%;
  animation: rotateSeal 24s linear infinite;
}

@keyframes rotateSeal {
  to { transform: rotate(360deg); }
}

.seal-text {
  font-family: var(--font-family-title);
  font-size: 8px;
  font-weight: 800;
  fill: var(--gold);
  letter-spacing: 0.8px;
}

.seal-inner-circle {
  fill: none;
  stroke: rgba(217, 154, 61, 0.35);
  stroke-width: 1.2;
}

.seal-star {
  fill: var(--gold);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.back-title {
  font-family: var(--font-family-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.thank-you-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 80%;
  margin: 0 auto;
}

.back-footer {
  position: relative;
  z-index: 3;
}

.back-contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 8px;
}

.back-contact-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.back-contact-item strong {
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}

.back-contact-item span {
  font-weight: 500;
}


/* ==========================================================================
   TYPOGRAPHY & CONTENT STYLES
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-family-title);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h3 {
  /* font-family: var(--font-family-title); */
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}

/* List with dots */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.content-list li {
  position: relative;
  padding: 14px 18px 14px 38px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(31, 45, 47, 0.02);
  transition: all 0.3s ease;
}

.content-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 105, 86, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.content-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.content-list li strong {
  color: var(--green-2);
  font-weight: 700;
}

/* List with steps (timeline) */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 64px;
  padding: 14px 18px 14px 58px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: steps;
  transition: all 0.3s ease;
}

.step-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 105, 86, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: var(--font-family-title);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 6px rgba(13, 105, 86, 0.2);
}

.step-list li strong {
  color: var(--green-2);
  font-weight: 700;
}

/* Category Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.chip {
  border: 1px solid rgba(13, 105, 86, 0.15);
  border-radius: 30px;
  padding: 10px 16px;
  color: var(--green-2);
  background: rgba(13, 105, 86, 0.04);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.chip:hover {
  background: rgba(13, 105, 86, 0.08);
  border-color: var(--green);
  transform: translateY(-2px);
}

/* Call to Action Button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 30px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(13, 105, 86, 0.25);
  align-self: flex-start;
  margin-top: auto;
}

.cta:hover {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 5px 15px rgba(217, 154, 61, 0.3);
  transform: translateY(-3px);
}

/* Page Numbers */
.page-no {
  position: absolute;
  bottom: 25px;
  font-family: var(--font-family-title);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  opacity: 0.5;
}

/* Left page page-no on the left, right on the right */
.page[data-page-side="left"] .page-no {
  left: 35px;
}

.page[data-page-side="right"] .page-no {
  right: 35px;
}

.visual .page-no {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   PARTNERS & CLIENTS LOGO SLIDERS
   ========================================================================== */
.partner-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 12px;
  position: relative;
}

/* Fade gradients on slider edges */
.partner-slider::before,
.partner-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}

.partner-slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.partner-slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}

.partner-track {
  display: flex;
  width: max-content;
  animation: partnerMove 20s linear infinite;
}

.partner-track.fast-track {
  animation-duration: 25s;
}

/* Pause animation on hover */
.partner-slider:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  width: 130px;
  height: 80px;
  margin-right: 15px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.65;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  opacity: 1;
}

@keyframes partnerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}

/* ==========================================================================
   CONTACT LAYOUT & INTERACTIVE FORM
   ========================================================================== */
.contact-panel-layout {
  justify-content: flex-start !important;
}

.contact-form-grid {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  margin-top: 10px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--green-2);
  font-weight: 600;
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--gold);
}

.contact-item svg {
  opacity: 0.8;
}

/* QR Grid */
.qr-grids {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-box img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  padding: 4px;
  background: #fff;
  border-radius: 6px;
}

.qr-box span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.cer-grids {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}

.cer-box {
   display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cer-box img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}

.cer-box span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* Consultation Form */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 105, 86, 0.15);
}

/* Floating Label effect */
.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  top: 0;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: #fff;
  padding: 0 4px;
}

.form-submit-btn {
  height: 38px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(13, 105, 86, 0.15);
}

.form-submit-btn:hover {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 10px rgba(217, 154, 61, 0.2);
}

/* ==========================================================================
   BOTTOM CONTROLS DOCK (Glassmorphic)
   ========================================================================== */
.controls-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 760px;
  z-index: 100;
}

.dock-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 24px;
  border-radius: 40px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-book), 0 20px 40px rgba(0,0,0,0.3);
}

.dock-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dock-btn:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.dock-btn:active {
  transform: scale(0.95);
}

.dock-btn.active-toggle.active {
  color: var(--gold);
  background: rgba(217, 154, 61, 0.1);
  border-color: rgba(217, 154, 61, 0.2);
}

.dock-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

.hidden {
  display: none !important;
}

/* Page Scrub Slider */
.slider-section {
  flex: 1;
  max-width: 320px;
  margin: 0 16px;
}

.page-scrub-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.page-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transition: transform 0.2s;
}

.page-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.page-counter-badge {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-family-title);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 60px;
  text-align: center;
}

#pdf-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 22, 18, 0.93);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#pdf-export-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.pdf-export-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border: 2px solid rgba(217, 154, 61, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pdfIconPulse 1.5s ease-in-out infinite;
}
@keyframes pdfIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 154, 61, 0.35); }
  50%       { box-shadow: 0 0 0 14px rgba(217, 154, 61, 0); }
}
.pdf-export-icon svg {
  stroke: var(--gold);
}
.pdf-export-title {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.pdf-export-status {
  font-family: var(--font-family-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  min-width: 220px;
  text-align: center;
}
.pdf-progress-track {
  width: 260px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.pdf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 999px;
  transition: width 0.3s ease;
}
/* pdf-btn gold highlight */
.pdf-btn {
  position: relative;
}
.pdf-btn::after {
  content: 'PDF';
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 7px;
  font-weight: 800;
  font-family: var(--font-family-title);
  background: var(--gold);
  color: var(--green-dark);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.2;
  pointer-events: none;
}

/* ==========================================================================
   TABLET + MOBILE RESPONSIVE STYLES
   ========================================================================== */
/* Laptop thấp */

@media (max-height:850px){

  .stage{
      padding-top:40px;
      padding-bottom:40px;
  }

  .book-container{
      transform:scale(.88);
      transform-origin:center center;
  }
  .controls-dock{
      max-width:700px;
      max-height: 13px;
  }
   .dock-btn{
      width:28px;
      height:28px;
  }

  .cover-logo{
    height: 150px;
    width: 150px;
  }

  .cover-body h2{
    font-size: 20px;
  }

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

  .slider-section{
      max-width:130px;
  }
  .dock-container{
    height: 33px;
  }
  .cta {
    margin-bottom: 30px;
  }
  .cover-meta {
    margin-bottom: 20px;
  }
  .brand img {
    wight: 50px;
    height: 50px;
  }
  .brand-text{
    font-size: 15px;
  }
  .lang-toggle button{
    font-size: 10px;
  }
  .btn-toc-toggle span{
    font-size:10px;
  }
}

@media (max-width: 1025px) {
  .top-nav {
    padding: 0 20px;
  }
  .side-nav-pills {
    display: none;
  }

  /* Stats stay horizontal 3-col – numbers slightly bigger */
  .stat-number {
    font-size: 1.6rem;
  }

  .stat-icon {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }
}

@media (max-width: 1024px) {
  .stage {
    padding-top: 70px;
    padding-bottom: 90px;
  }

  .book-container {
    max-width: 100%;
    max-height: 100%;
    width: 95vw;
    height: calc(100vh - 170px);
  }

  .page-content {
    padding: 30px;
  }

   .cover-body h2{
    font-size: 20px;
  }

  h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .content-list li,
  .step-list li {
    font-size: 12.5px;
    padding: 10px 14px 10px 32px;
  }

  .content-list li::before {
    top: 16px;
    left: 14px;
  }

  .step-list li {
    padding-left: 48px;
  }

  .step-list li::before {
    top: 12px;
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .contact-form-grid {
    grid-template-rows: auto auto;
  }

  .qr-grids {
    gap: 10px;
  }

  .qr-box img {
    width: 64px;
    height: 64px;
  }

   .cer-grids{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    justify-items:center;
  }

  .cer-box img{
    width:100px;
    height:100px;
  }

  /* .controls-dock {
    width: 95%;
  }

  .dock-container {
    padding: 8px 16px;
  }

  .slider-section {
    max-width: 180px;
    margin: 0 8px;
  } */
  .controls-dock {
    width: 92%;
    bottom: 14px;
  }

  .dock-container {
    padding: 8px 18px;
  }

  .cover-logo{
     height: 200px;
     width: 200px;
  }

  .slider-section {
    max-width: 160px;
    margin: 0 6px;
  }
  .page-no {
    display: none;
  }
  .back-body h1{
    font-size: 20px;
  }
 .stats-row {
    margin-top: 12px;
    padding: 9px 4px 7px;
    border-radius: 10px;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-icon {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.54rem;
  }
}

@media (max-width: 480px) {
  .top-nav {
    height: 60px;
  }
  
  .brand-text {
    font-size: 16px;
  }

  .nav-logo {
    height: 32px;
  }

  .btn-toc-toggle span {
    display: none;
  }

   .cover-body h2{
    font-size: 15px;
  }

  .cover-logo{
     height: 150px;
     width: 150px;
  }

  .btn-toc-toggle {
    padding: 6px;
    border-radius: 50%;
  }

  .page-content {
    padding: 20px;
  }

  .page-content a {
    margin-bottom: 0px;
  }

  .visual-copy h2 {
    font-size: 24px;
  }

  .visual-copy p {
    font-size: 12.5px;
  }

  h3 {
    font-size: 18px;
  }

  .cta {
    min-height: 38px;
    padding: 0 16px;
    margin-bottom: 100px;
    font-size: 11px;
  }

  .partner-logo {
    width: 100px;
    height: 55px;
  }

  .partner-logo img {
    max-height: 35px;
  }

  .consultation-form {
    padding: 10px;
  }

  .form-group input {
    height: 32px;
    font-size: 12px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-submit-btn {
    height: 32px;
    font-size: 10px;
  }

  .qr-grids {
    justify-content: center;
  }

  .controls-dock {
    width: 98%;
    bottom: 8px;
  }

  .dock-container {
    padding: 5px 8px;
    gap: 4px;
  }

  .dock-btn {
    width: 30px;
    height: 30px;
  }

  .dock-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Hide slider on tiny screens — not enough room */
  .slider-section {
    display: none;
  }
  .page-no {
    display: none;
  }
  .cer-grids{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    justify-items:center;
  }

  .cer-box img{
    max-width:100px;
    max-height:100px;
  }
  .stats-row {
    flex-direction: column;
    padding: 10px 12px;
    margin-top: 12px;
    gap: 0;
    border-radius: 10px;
  }

  .stat-card {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    text-align: left;
  }

  .stat-icon {
    font-size: 1rem;
    width: 26px;
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 0;
  }

  .stat-number {
    font-size: 1.2rem;
    min-width: 44px;
  }

  .stat-label {
    font-size: 0.58rem;
    white-space: normal;
    margin-top: 1px;
  }

  /* Turn vertical gold divider into horizontal line */
  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background: linear-gradient(
      to right,
      transparent,
      rgba(217, 154, 61, 0.3) 20%,
      rgba(217, 154, 61, 0.3) 80%,
      transparent
    );
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .stage, .top-nav, .controls-dock, .side-nav-pills {
    display: none !important;
  }
}

/* @media (max-width: 600px) {
  .stats-row {
    flex-direction: column;
    gap: 0;
    padding: 10px 14px;
  }

  .stat-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
    text-align: left;
  }

  .stat-icon {
    font-size: 1.1rem;
    width: 28px;
    flex-shrink: 0;
    text-align: center;
  }

  .stat-number {
    font-size: 1.3rem;
    min-width: 50px;
  }

  .stat-label {
    font-size: 0.6rem;
    margin-top: 1px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background: linear-gradient(to right, transparent, rgba(217,154,61,0.3) 30%, rgba(217,154,61,0.3) 70%, transparent);
  }
} */
