/* ============================================================
   VEPA Metoodika – Complete Standalone CSS
   All classes prefixed with vepa- to avoid WordPress conflicts
   ============================================================ */

:root {
  --vepa-mobile-header-height: 64px;
  /* WordPress spacing preset variablid */
  --wp--preset--spacing--20: 0.44rem;
  --wp--preset--spacing--30: 0.67rem;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--50: 1.5rem;
  --wp--preset--spacing--60: 2.25rem;
  --wp--preset--spacing--70: 3.38rem;
  --wp--preset--spacing--80: 5.06rem;
}

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

body.vepa-body {
  font-family: 'Raleway', sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

#vepa-app {
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.vepa-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
  padding: 1rem;
}

.vepa-login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  overflow: hidden;
}

.vepa-login-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.vepa-login-icon {
  width: 64px;
  height: 64px;
  background: #5CC5E5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.vepa-login-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.vepa-login-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-login-body {
  padding: 1rem 2rem 2rem;
}

.vepa-form-group {
  margin-bottom: 1rem;
}

.vepa-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.vepa-input,
input[type="text"].vepa-input,
.vepa-input-pw {
  width: 100% !important;
  height: 44px !important;
  padding: 0 1.25rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  color: #111827 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vepa-input:focus,
input[type="text"].vepa-input:focus,
.vepa-input-pw:focus {
  border-color: #5CC5E5 !important;
  box-shadow: 0 0 0 3px rgba(92,197,229,0.2) !important;
}

.vepa-input::placeholder,
input[type="text"].vepa-input::placeholder,
.vepa-input-pw::placeholder {
  color: #9ca3af !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

.vepa-error-msg {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.375rem;
}

.vepa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 36px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.vepa-btn-primary {
  background: #5CC5E5;
  color: #ffffff;
  width: 100%;
  height: 40px;
  border-radius: 50px;
}

.vepa-btn-primary:hover {
  background: #4ab5d5;
}

.vepa-btn-white {
  background: #ffffff;
  color: #5CC5E5;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  height: 48px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
}

.vepa-btn-white:hover {
  background: #eff6ff;
}

.vepa-hero-pdf-row {
  margin-top: 1rem;
}

.vepa-btn-pdf {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
  height: 48px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
}

.vepa-btn-pdf:hover {
  background: rgba(255,255,255,0.25);
}

.vepa-btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  border-radius: 50px;
}

.vepa-btn-outline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.vepa-btn-outline:hover {
  background: #f3f4f6;
  color: #111827;
}

.vepa-btn-next {
  background: #5CC5E5;
  color: #ffffff;
  border-radius: 50px;
}

.vepa-btn-next svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.vepa-btn-next:hover {
  background: #2d5a8f;
}

.vepa-login-hint {
  font-size: 0.75rem;
  text-align: center;
  color: #6b7280;
  margin-top: 1rem;
}

.vepa-login-hint code {
  background: #f3f4f6;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.vepa-login-info {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
}

.vepa-login-info p {
  margin: 0 0 0.5rem;
}

.vepa-login-info p:last-child {
  margin-bottom: 0;
}

.vepa-login-info a {
  color: #5CC5E5;
  text-decoration: none;
}

.vepa-login-info a:hover {
  text-decoration: underline;
}

/* ============================================================
   LAYOUT – SIDEBAR + MAIN
   ============================================================ */

.vepa-layout {
  display: flex;
  min-height: 100vh;
}

/* Desktop Sidebar */
.vepa-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: #ffffff;
  transition: width 150ms ease;
  overflow: visible;
  z-index: 40;
  box-shadow: 1px 0 3px rgba(0,0,0,0.08);
}

.vepa-sidebar-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.vepa-sidebar:hover {
  width: 280px;
}

.vepa-sidebar-wave {
  position: absolute;
  top: 0;
  right: -8px;
  height: 100%;
  width: 20px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

.vepa-sidebar-wave svg {
  height: 100%;
  width: 100%;
}

.vepa-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #ffffff;
}

.vepa-sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.vepa-sidebar-icon-wrap {
  width: 40px;
  height: 40px;
  background: #5CC5E5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vepa-sidebar-logo-img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.vepa-sidebar-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: white;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-sidebar-brand {
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.vepa-sidebar:hover .vepa-sidebar-brand {
  opacity: 1;
  pointer-events: auto;
}

.vepa-sidebar-brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
  white-space: nowrap;
}

.vepa-sidebar-brand-sub {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
}

.vepa-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

.vepa-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.vepa-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.vepa-sidebar-nav::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 2px;
}

/* --- nav section padding --- */
.vepa-sidebar-nav-section {
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.vepa-sidebar:hover .vepa-sidebar-nav-section {
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}

/* --- nav item --- */
.vepa-sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: #374151;
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.vepa-sidebar:hover .vepa-sidebar-nav-item {
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
}
.vepa-sidebar-nav-item:hover {
  background: #f3f4f6;
}
.vepa-sidebar-nav-item.vepa-active {
  color: #5CC5E5;
}
.vepa-sidebar:hover .vepa-sidebar-nav-item.vepa-active {
  background: #E8F2F8;
}

/* --- nav icon --- */
.vepa-nav-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
}
.vepa-nav-icon-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vepa-sidebar-nav-item.vepa-active .vepa-nav-icon-box {
  background: #5CC5E5;
}
.vepa-sidebar-nav-item.vepa-active .vepa-nav-icon-box svg {
  stroke: #ffffff;
}

/* --- nav label (hidden when closed) --- */
.vepa-nav-label {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: normal;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms;
}
.vepa-sidebar:hover .vepa-nav-label {
  width: auto;
  flex: 1;
  opacity: 1;
  transition-delay: 150ms;
}

/* --- chapters section --- */
.vepa-chapters-section {
  padding: 0 0.5rem 0.5rem 0.5rem;
}
.vepa-sidebar:hover .vepa-chapters-section {
  padding: 0 1rem 0.5rem 0.5rem;
}

.vepa-chapters-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms;
}
.vepa-sidebar:hover .vepa-chapters-heading {
  opacity: 1;
  transition-delay: 150ms;
}

/* --- chapter item --- */
.vepa-chapter-item {
  margin-bottom: 0.25rem;
}

/* --- chapter trigger --- */
.vepa-chapter-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: #374151;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
}
.vepa-sidebar:hover .vepa-chapter-trigger {
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
}
.vepa-chapter-trigger:hover {
  background: #f3f4f6;
}
.vepa-chapter-trigger.vepa-active {
  color: #5CC5E5;
}
.vepa-sidebar:hover .vepa-chapter-trigger.vepa-active {
  background: #E8F2F8;
}

/* --- chapter badge --- */
.vepa-chapter-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #6b7280;
}
.vepa-chapter-trigger:hover .vepa-chapter-badge {
  background: #e5e7eb;
}
.vepa-chapter-trigger.vepa-active .vepa-chapter-badge {
  background: #5CC5E5;
  color: #ffffff;
}

/* --- chapter title (hidden when closed) --- */
.vepa-chapter-title {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms;
  text-align: left;
}
.vepa-sidebar:hover .vepa-chapter-title {
  width: auto;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition-delay: 150ms;
}

/* --- chapter chevron (hidden when closed) --- */
.vepa-chapter-chevron {
  width: 0;
  height: 16px;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms, transform 150ms ease;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vepa-sidebar:hover .vepa-chapter-chevron {
  width: 16px;
  opacity: 1;
  transition: opacity 150ms ease 300ms, transform 150ms ease 0ms;
}
.vepa-chapter-chevron.vepa-rotated {
  transform: rotate(180deg);
}

.vepa-chapter-sections {
  display: none;
  margin-left: 44px;
  margin-top: 0.25rem;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms;
}

.vepa-sidebar:hover .vepa-chapter-sections.vepa-expanded {
  display: block;
  opacity: 1;
  transition-delay: 150ms;
}

.vepa-chapter-section-link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.125rem;
}

.vepa-chapter-section-link:hover {
  background: #f3f4f6;
  color: #374151;
}

.vepa-chapter-section-link.vepa-active {
  background: #E8F2F8;
  color: #5CC5E5;
}

.vepa-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #ffffff;
}

.vepa-logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: #374151;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
}
.vepa-sidebar:hover .vepa-logout-btn {
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
}

.vepa-logout-btn:hover {
  background: #f3f4f6;
}

.vepa-logout-label {
  font-weight: 500;
  white-space: nowrap;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms ease 0ms;
}

.vepa-sidebar:hover .vepa-logout-label {
  width: auto;
  flex: 1;
  opacity: 1;
  transition-delay: 150ms;
}

/* Mobile Header */
.vepa-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vepa-mobile-header-height);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.vepa-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #111827;
}

.vepa-mobile-logo-icon {
  width: 32px;
  height: 32px;
  background: #5CC5E5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vepa-mobile-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-mobile-logo-text {
  font-weight: 600;
  color: #111827;
}

.vepa-mobile-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.vepa-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vepa-hamburger:hover {
  background: #f3f4f6;
}

.vepa-hamburger svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile overlay */
.vepa-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
}

.vepa-mobile-overlay.vepa-open {
  display: block;
}

/* Mobile drawer */
.vepa-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  z-index: 51;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vepa-mobile-drawer.vepa-open {
  transform: translateX(0);
}

.vepa-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  flex-shrink: 0;
}

.vepa-mobile-drawer-title {
  font-weight: 600;
  color: #111827;
}

.vepa-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 6px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vepa-close-btn:hover {
  background: #f3f4f6;
}

.vepa-close-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-mobile-nav-body {
  flex: 1;
  overflow-y: auto;
}

.vepa-mobile-nav-section {
  padding: 1rem;
}

.vepa-mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: #374151;
  text-decoration: none;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
}

.vepa-mobile-nav-item:hover {
  background: #f3f4f6;
}

.vepa-mobile-nav-item.vepa-active {
  background: #E8F2F8;
  color: #5CC5E5;
}

.vepa-mobile-nav-item.vepa-active .vepa-nav-icon-box {
  background: #5CC5E5;
}

.vepa-mobile-nav-item.vepa-active .vepa-nav-icon-box svg {
  stroke: #ffffff;
}

.vepa-mobile-chapter-trigger.vepa-active .vepa-chapter-badge {
  background: #5CC5E5;
  color: #ffffff;
}

.vepa-mobile-chapters-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.75rem;
  margin: 0.5rem 0;
}

.vepa-mob-trigger-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.vepa-mobile-chapter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: #374151;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  text-decoration: none;
}

.vepa-mobile-chapter-trigger:hover {
  background: #f3f4f6;
}

.vepa-mobile-chapter-trigger.vepa-active {
  background: #E8F2F8;
  color: #5CC5E5;
}

.vepa-mobile-chapter-trigger .vepa-chapter-title {
  width: auto;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vepa-mobile-chapter-trigger .vepa-chapter-chevron {
  width: 16px;
  opacity: 1;
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.vepa-mobile-chapter-sections {
  display: none;
  margin-left: 44px;
}

.vepa-mobile-chapter-sections.vepa-expanded {
  display: block;
}

.vepa-mobile-chapter-sections .vepa-chapter-section-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vepa-mobile-footer {
  padding: 1rem;
  flex-shrink: 0;
}

.vepa-mobile-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: #374151;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
}

.vepa-mobile-logout:hover {
  background: #f3f4f6;
}

/* Main content area */
.vepa-main {
  margin-left: 80px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.vepa-progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 80px;
  right: 0;
  height: 5px;
  background: #e5e7eb;
  z-index: 30;
}

.vepa-progress-bar-fill {
  height: 100%;
  background: #5CC5E5;
  transition: width 0.1s ease;
  width: 0%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.vepa-hero {
  position: relative;
  background: #5CC5E5;
  color: #ffffff;
  overflow: hidden;
  padding-bottom: 2.5rem;
}

.vepa-hero-deco-circles {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 384px;
  height: 384px;
  opacity: 0.2;
  pointer-events: none;
}

.vepa-hero-big-circle {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 400px;
  height: 400px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  pointer-events: none;
}

.vepa-hero-logos {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 2;
}

.vepa-hero-logo-vepa,
.vepa-hero-logo-funding,
.vepa-hero-logo-tai {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.vepa-hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  z-index: 2;
}

.vepa-hero-h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.vepa-hero-underline {
  width: 48px;
  height: 3px;
  background: #ffffff;
  margin-bottom: 0.75rem;
}

.vepa-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.vepa-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

@media (min-width: 640px) {
  .vepa-hero-actions {
    flex-direction: row;
  }
  .vepa-hero-h1 {
    font-size: 3rem;
  }
  .vepa-hero-subtitle {
    font-size: 1.875rem;
  }
}

.vepa-hero-search-form {
  position: relative;
  flex: 1;
}

.vepa-hero-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5CC5E5;
  pointer-events: none;
  z-index: 1;
}

.vepa-hero-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #5CC5E5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-body input.vepa-hero-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 3rem 0 1rem;
  border: 2px solid #ffffff;
  border-radius: 50px;
  font-size: 1rem;
  color: #111827;
  background: #ffffff;
  outline: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: box-shadow 0.15s;
  font-family: inherit;
}

.vepa-body input.vepa-hero-search-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.vepa-body input.vepa-hero-search-input:focus {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* ============================================================
   CARDS & SECTIONS
   ============================================================ */

.vepa-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.vepa-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.vepa-card-body {
  padding: 1.5rem;
}

/* Info card */
.vepa-info-card {
  border-left: 4px solid #5CC5E5;
  background: rgba(219, 234, 254, 0.15);
}

.vepa-info-card-header {
  padding: 1.5rem 1.5rem 0;
}

.vepa-info-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vepa-info-card-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: #5CC5E5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-info-card-content {
  padding: 1rem 1.5rem 1.5rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.6;
}

.vepa-info-card-content p + p {
  margin-top: 1rem;
}

.vepa-info-card-content p.vepa-font-medium {
  font-weight: 500;
}

.vepa-info-card-footer {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.vepa-info-card-footer p {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-link {
  color: #5CC5E5;
  text-decoration: none;
  font-weight: 500;
}

.vepa-link:hover {
  text-decoration: underline;
}

/* ============================================================
   HOME PAGE SECTIONS
   ============================================================ */

.vepa-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.vepa-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

/* Quick Access Grid */
.vepa-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .vepa-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vepa-quick-card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.vepa-quick-card .vepa-card {
  height: 100%;
  cursor: pointer;
}

.vepa-quick-card:hover .vepa-card {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.vepa-quick-card-header {
  padding: 1.5rem 1.5rem 0;
}

.vepa-quick-badge {
  width: 48px;
  height: 48px;
  background: #5CC5E5;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.vepa-quick-badge span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.vepa-quick-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.vepa-quick-card:hover .vepa-quick-card-title {
  color: #5CC5E5;
}

.vepa-quick-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-quick-card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.vepa-quick-card-cta {
  display: flex;
  align-items: center;
  color: #5CC5E5;
  font-weight: 500;
  font-size: 0.875rem;
  gap: 0.5rem;
}

.vepa-quick-card-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.vepa-quick-card:hover .vepa-quick-card-cta svg {
  transform: translateX(4px);
}

/* All Chapters List */
.vepa-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vepa-chapter-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.vepa-chapter-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.vepa-chapter-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.vepa-chapter-card--direct {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
}

.vepa-chapter-card--direct .vepa-chapter-card-header {
  flex: 1;
  padding: 0;
}

.vepa-chapter-card--direct .vepa-chapter-card-body {
  padding: 0;
  flex-shrink: 0;
}

.vepa-chapter-card--link:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.vepa-chapter-card-header {
  padding: 1.5rem 1.5rem 0;
}

.vepa-chapter-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vepa-chapter-num-badge {
  width: 56px;
  height: 56px;
  background: #5CC5E5;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vepa-chapter-num-badge span {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}

.vepa-chapter-card-info {
  flex: 1;
}

.vepa-chapter-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.vepa-chapter-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.vepa-chapter-card-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-chapter-card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.vepa-chapter-section-links {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vepa-chapter-section-item {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.vepa-chapter-section-item:hover {
  color: #5CC5E5;
}

.vepa-chapter-section-item--sub {
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  color: #111827;
}

.vepa-chapter-section-item--sub:hover {
  color: #5CC5E5;
}

.vepa-chapter-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.vepa-chapter-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5CC5E5;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

.vepa-chapter-open-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.vepa-chapter-open-link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.vepa-faq-section {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.vepa-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.vepa-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vepa-accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.vepa-accordion-item:last-child {
  border-bottom: none;
}

.vepa-accordion-trigger {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: none;
}

.vepa-accordion-trigger:hover {
  text-decoration: underline;
}

.vepa-accordion-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  transform: translateY(2px);
}

.vepa-accordion-item.vepa-open .vepa-accordion-chevron {
  transform: translateY(2px) rotate(180deg);
}

.vepa-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.875rem;
}

.vepa-accordion-item.vepa-open .vepa-accordion-content {
  max-height: 500px;
}

.vepa-accordion-body {
  padding: 0 0 1rem;
  color: #6b7280;
  line-height: 1.7;
  white-space: pre-line;
}

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

.vepa-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.vepa-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.vepa-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vepa-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vepa-footer-heading {
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.vepa-footer-text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.7;
}

.vepa-footer-contact-item {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.vepa-footer-contact-item a {
  color: #5CC5E5;
  text-decoration: none;
}

.vepa-footer-contact-item a:hover {
  text-decoration: underline;
}

.vepa-footer-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  text-align: center;
  color: #6b7280;
}

/* ============================================================
   CHAPTER PAGE
   ============================================================ */

.vepa-chapter-page {
  background: #f9fafb;
  min-height: 100vh;
}

.vepa-chapter-page-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.vepa-chapter-page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.vepa-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5CC5E5;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.vepa-back-link:hover {
  color: #2d5a8f;
}

.vepa-back-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-chapter-page-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vepa-chapter-page-badge {
  min-width: 64px;
  width: auto;
  height: 64px;
  padding: 0 12px;
  background: #5CC5E5;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vepa-chapter-page-badge span {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.vepa-chapter-page-meta {
  flex: 1;
}

.vepa-chapter-page-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.vepa-chapter-page-parent {
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Raleway', sans-serif;
  color: #9ca3af;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.vepa-chapter-page-h1 {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .vepa-chapter-page-h1 {
    font-size: 2.25rem;
  }
}

.vepa-chapter-page-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-chapter-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (max-width: 1023px) {
  .vepa-chapter-content {
    padding: 0 0.5rem 3rem;
  }
}

.vepa-sections-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.vepa-section-article {
  scroll-margin-top: 80px;
}

.vepa-section-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 2rem;
}

.vepa-section-card-header {
  margin-bottom: 1.5rem;
}

.vepa-section-num {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5CC5E5;
  margin-bottom: 0.5rem;
}

.vepa-section-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.vepa-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  background: #f9fafb;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vepa-qr-badge:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.vepa-qr-inline {
  display: flex;
  margin: 0.5rem 0 1rem;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
}

.vepa-qr-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-section-content {
  color: #374151;
  line-height: 1.8;
  white-space: pre-line;
}

.vepa-section-content strong {
  font-weight: 600;
}

.vepa-section-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 2rem 0;
}

.vepa-media-block {
  margin-top: 2rem;
}

.vepa-media-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 1rem;
}

.vepa-media-label svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-video-wrap {
  aspect-ratio: 16/9;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.vepa-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.vepa-audio-player {
  width: 100%;
}

.vepa-subsection {
  padding-left: 1.5rem;
  border-left: 2px solid #E8F2F8;
}

.vepa-subsection + .vepa-subsection {
  margin-top: 1.5rem;
}

.vepa-subsection-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.vepa-subsection-content {
  color: #374151;
  line-height: 1.8;
  white-space: pre-line;
}

/* Chapter navigation */
.vepa-chapter-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.vepa-chapter-nav-spacer {
  flex: 1;
}

.vepa-chapter-nav .vepa-btn-outline,
.vepa-chapter-nav .vepa-btn-next {
  height: auto;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  white-space: normal;
  text-align: left;
  align-items: flex-start;
  max-width: 48%;
}

.vepa-chapter-nav .vepa-btn-next {
  text-align: right;
  justify-content: flex-end;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .vepa-chapter-nav {
    flex-direction: column-reverse;
  }
  .vepa-chapter-nav .vepa-btn-outline,
  .vepa-chapter-nav .vepa-btn-next {
    max-width: 100%;
    width: 100%;
  }
}

/* Back to Top */
.vepa-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #5CC5E5;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background 0.15s, transform 0.15s;
  z-index: 20;
}

.vepa-back-to-top.vepa-visible {
  display: flex;
}

.vepa-back-to-top:hover {
  background: #2d5a8f;
  transform: translateY(-2px);
}

.vepa-back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.vepa-search-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.vepa-search-header {
  margin-bottom: 2rem;
}

.vepa-search-h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.vepa-search-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

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

.vepa-search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
}

.vepa-search-input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vepa-body input.vepa-search-main-input {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
  padding: 0 1rem 0 3.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1.125rem;
  color: #111827;
  background: #f3f4f6;
  outline: none;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.vepa-body input.vepa-search-main-input:hover {
  background: #e5e7eb;
}

.vepa-body input.vepa-search-main-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(92,197,229,0.2);
  border-color: #5CC5E5;
}

.vepa-body input.vepa-search-main-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.vepa-search-empty-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 3rem;
  text-align: center;
}

.vepa-search-empty-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.vepa-search-empty-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.vepa-search-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.vepa-search-count strong {
  font-weight: 600;
  color: #111827;
}

.vepa-search-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vepa-search-result-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s;
}

.vepa-search-result-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.vepa-search-result-header {
  padding: 1.5rem 1.5rem 0;
}

.vepa-search-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.vepa-search-result-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5CC5E5;
  transition: color 0.15s;
}

.vepa-search-result-card:hover .vepa-search-result-title {
  color: #2d5a8f;
}

.vepa-search-result-body {
  padding: 1rem 1.5rem 1.5rem;
}

.vepa-search-excerpt {
  color: #374151;
  line-height: 1.7;
}

.vepa-search-excerpt mark {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 1px;
}

mark.vepa-search-mark {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 1px;
  color: inherit;
}

/* ============================================================
   NOT FOUND
   ============================================================ */

.vepa-not-found {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.vepa-not-found-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.vepa-flex {
  display: flex;
}

.vepa-items-center {
  align-items: center;
}

.vepa-gap-2 {
  gap: 0.5rem;
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */

/* Logos below hero: hidden on desktop */
.vepa-hero-logos--below {
  display: none;
}

@media (max-width: 1095px) {
  /* Hide big circle and in-hero logos */
  .vepa-hero-big-circle {
    display: none;
  }
  .vepa-hero-logos:not(.vepa-hero-logos--below) {
    display: none;
  }
  /* Show logos below hero (in info section, normal flow) */
  .vepa-hero-logos--below {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 1023px) {
  .vepa-sidebar {
    display: none;
  }

  .vepa-mobile-header {
    display: flex;
  }

  .vepa-main {
    margin-left: 0;
    height: 100vh;
    padding-top: var(--vepa-mobile-header-height);
    overflow-y: auto;
  }

  .vepa-progress-bar-wrap {
    left: 0;
    top: var(--vepa-mobile-header-height);
    height: 3px;
  }

  .vepa-hero-content {
    padding: 3rem 1.5rem 4rem;
  }

  .vepa-hero-h1 {
    font-size: 2rem;
  }

  .vepa-hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 639px) {
  .vepa-section-card {
    padding: 1.25rem;
  }

  .vepa-chapter-page-h1 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   TYPOGRAPHY – Raleway pealkirjad, Open Sans tavatekst
   ============================================================ */
.vepa-chapter-badge,
.vepa-quick-badge,
.vepa-chapter-page-badge,
.vepa-login-title,
.vepa-login-subtitle,
.vepa-hero-h,
.vepa-hero-h1,
.vepa-hero-subtitle,
.vepa-section-title,
.vepa-section-h,
.vepa-subsection-h,
.vepa-info-card-title,
.vepa-quick-card-title,
.vepa-chapter-card-title,
.vepa-chapter-page-h,
.vepa-chapter-page-label,
.vepa-chapters-heading,
.vepa-mobile-chapters-heading,
.vepa-mobile-drawer-title,
.vepa-mobile-logo-text,
.vepa-chapter-title,
.vepa-chapter-label,
.vepa-footer-heading,
.vepa-search-h,
.vepa-search-empty-title,
.vepa-search-result-title,
.vepa-not-found-h,
.vepa-nav-label,
.vepa-logout-label,
.vepa-media-label,
.vepa-sidebar-brand-name,
.vepa-sidebar-brand-sub {
  font-family: 'Raleway', sans-serif;
}

/* ============================================================
   GUTENBERG SISU (HTML alapeatükid)
   ============================================================ */

.vepa-section-content--html {
  white-space: normal;
}

.vepa-section-content--html p {
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.8;
}
.vepa-section-content--html p:last-child { margin-bottom: 0; }

.vepa-section-content--html h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 1.5rem 0 0.75rem;
}
.vepa-section-content--html h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 1.25rem 0 0.5rem;
}
.vepa-section-content--html h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.vepa-section-content--html ul,
.vepa-section-content--html ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.vepa-section-content--html li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: #374151;
}

.vepa-section-content--html strong { font-weight: 600; }
.vepa-section-content--html em { font-style: italic; }

.vepa-section-content--html a {
  color: #5CC5E5;
  text-decoration: underline;
}
.vepa-section-content--html a:hover { color: #3aabe0; }

.vepa-section-content--html img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1rem 0;
}

.vepa-section-content--html figure { margin: 1.5rem 0; }
.vepa-section-content--html figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.vepa-section-content--html .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.vepa-section-content--html .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.vepa-section-content--html .aligncenter { margin-left: auto; margin-right: auto; }
.vepa-section-content--html::after { content: ''; display: table; clear: both; }

.vepa-section-content--html hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.vepa-section-content--html blockquote {
  border-left: 3px solid #5CC5E5;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: #f0f9ff;
  border-radius: 0 4px 4px 0;
}
.vepa-section-content--html blockquote p { font-style: italic; }

.vepa-section-content--html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.vepa-section-content--html th,
.vepa-section-content--html td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.vepa-section-content--html th {
  background: #f3f4f6;
  font-weight: 600;
}

.vepa-section-content--html .wp-block-embed { margin: 1.25rem 0; }
.vepa-section-content--html .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16/9;
}
.vepa-section-content--html .wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}
.vepa-section-content--html video {
  max-width: 100%;
  border-radius: 6px;
}

/* ---- Inline text & highlight colors (Gutenberg) ---- */
.vepa-chapter-content--html .has-vepa-lilla-color    { color: #6d308b; }
.vepa-chapter-content--html .has-vepa-beez-color     { color: #E7E0D6; }
.vepa-chapter-content--html .has-vepa-sinine-color        { color: #5CC5E5; }
.vepa-chapter-content--html .has-vepa-hele-sinine-color   { color: #93d9f0; }
.vepa-chapter-content--html .has-vepa-punane-color        { color: #ef4444; }
.vepa-chapter-content--html .has-vepa-roheline-color { color: #22c55e; }
.vepa-chapter-content--html .has-vepa-lilla-background-color    { background-color: #6d308b; }
.vepa-chapter-content--html .has-vepa-beez-background-color     { background-color: #E7E0D6; }
.vepa-chapter-content--html .has-vepa-sinine-background-color        { background-color: #5CC5E5; }
.vepa-chapter-content--html .has-vepa-hele-sinine-background-color   { background-color: #93d9f0; }
.vepa-chapter-content--html .has-vepa-punane-background-color        { background-color: #ef4444; }
.vepa-chapter-content--html .has-vepa-roheline-background-color { background-color: #22c55e; }
.vepa-chapter-content--html mark[style] { border-radius: 2px; padding: 0 2px; }

/* ---- Chapter HTML content (Gutenberg) ---- */
.vepa-chapter-content--html {
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  color: #374151;
  line-height: 1.8;
  white-space: normal;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9eaec;
  padding: 2rem;
}
@media (min-width: 1024px) {
  .vepa-chapter-content--html {
    padding: 5rem 5.5rem;
  }
}
.vepa-chapter-content--html p {
  margin-bottom: 1rem;
}
.vepa-chapter-content--html p:last-child { margin-bottom: 0; }
.vepa-chapter-content--html h2 { font-size: 1.3rem; font-weight: 700; color: #111827; margin: 2rem 0 0.75rem; }
.vepa-chapter-content--html h3 { font-size: 1.1rem; font-weight: 600; color: #111827; margin: 1.5rem 0 0.5rem; }
.vepa-chapter-content--html h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.vepa-chapter-content--html ul,
.vepa-chapter-content--html ol { margin: 0.75rem 0 1rem 0; padding-left: 1.5rem; }
.vepa-chapter-content--html ul { list-style-type: disc; }
.vepa-chapter-content--html ol { list-style-type: decimal; }
.vepa-chapter-content--html li { margin-bottom: 0.4rem; line-height: 1.7; }
.vepa-chapter-content--html strong { font-weight: 600; }
.vepa-chapter-content--html em { font-style: italic; }
.vepa-chapter-content--html a { color: #5CC5E5; text-decoration: underline; }
.vepa-chapter-content--html a:hover { color: #3aabe0; }
.vepa-chapter-content--html img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 1rem 0; }
.vepa-chapter-content--html figure { margin: 1.5rem 0; }
.vepa-chapter-content--html figcaption { font-size: 0.875rem; color: #6b7280; text-align: center; margin-top: 0.5rem; font-style: italic; }
.vepa-chapter-content--html hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }
.vepa-chapter-content--html blockquote { border-left: 3px solid #5CC5E5; padding: 0.75rem 1rem; margin: 1.25rem 0; background: #f0f9ff; border-radius: 0 4px 4px 0; }
.vepa-chapter-content--html blockquote p { font-style: italic; }
.vepa-chapter-content--html table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.vepa-chapter-content--html th,
.vepa-chapter-content--html td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
.vepa-chapter-content--html th { background: #f3f4f6; font-weight: 600; }
.vepa-chapter-content--html .wp-block-embed { margin: 1.25rem 0; }
.vepa-chapter-content--html .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.vepa-chapter-content--html .wp-block-embed__wrapper iframe { width: 100%; height: 100%; border: none; border-radius: 6px; }
.vepa-chapter-content--html video { max-width: 100%; border-radius: 6px; }
.vepa-chapter-content--html .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.vepa-chapter-content--html .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.vepa-chapter-content--html .aligncenter { display: table; margin-left: auto; margin-right: auto; }
.vepa-chapter-content--html .wp-block-image { display: flex; justify-content: flex-start; }
.vepa-chapter-content--html .wp-block-image:has(> figure.aligncenter) { justify-content: center; }
.vepa-chapter-content--html .wp-block-image:has(> figure.alignright) { justify-content: flex-end; }
.vepa-chapter-content--html .wp-block-image.alignleft { float: left; margin: 0 1.5rem 1rem 0; width: auto; display: block; }
.vepa-chapter-content--html .wp-block-image.alignright { float: right; margin: 0 0 1rem 1.5rem; width: auto; display: block; }
.vepa-chapter-content--html .wp-block-image.alignwide { width: 100%; }
.vepa-chapter-content--html .wp-block-image.alignfull { width: 100%; margin-left: 0; margin-right: 0; }
.vepa-chapter-content--html .wp-block-image img { display: block; height: auto; max-width: 100%; }
.vepa-chapter-content--html::after { content: ''; display: table; clear: both; }

/* Gutenberg wp-block-media-text */
.vepa-chapter-content--html .wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 1.5rem;
}
.vepa-chapter-content--html .wp-block-media-text .wp-block-media-text__media {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.vepa-chapter-content--html .wp-block-media-text .wp-block-media-text__media img {
  width: 100%;
  height: auto;
  display: block;
}
.vepa-chapter-content--html .wp-block-media-text .wp-block-media-text__content {
  grid-column: 2;
  grid-row: 1;
}
.vepa-chapter-content--html .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  grid-column: 2;
}
.vepa-chapter-content--html .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 1;
}
@media (max-width: 640px) {
  .vepa-chapter-content--html .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 1fr;
  }
  .vepa-chapter-content--html .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media,
  .vepa-chapter-content--html .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content,
  .vepa-chapter-content--html .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile .wp-block-media-text__media,
  .vepa-chapter-content--html .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
  }
  .vepa-chapter-content--html .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { grid-row: 1; }
  .vepa-chapter-content--html .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { grid-row: 2; }
}

/* Gutenberg teksti joondamine */
.vepa-chapter-content--html .has-text-align-left { text-align: left; }
.vepa-chapter-content--html .has-text-align-center { text-align: center; }
.vepa-chapter-content--html .has-text-align-right { text-align: right; }
.vepa-chapter-content--html .has-text-align-justify { text-align: justify; }
.vepa-chapter-content--html .is-style-roojoondus { text-align: justify; }

/* WordPress admin bar */
.admin-bar .vepa-sidebar,
.admin-bar .vepa-mobile-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .vepa-sidebar,
  .admin-bar .vepa-mobile-header {
    top: 46px;
  }
}
