/* ============================================================================
   COMPREHENSIVE PLANNED GIVING WEBSITE CSS - 2025 EDITION CLEANED
   Complete design system covering all page types and interactive elements
   ============================================================================ */

/* — 1. CSS Reset & Base — */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* — 2. Enhanced Design Tokens — */
:root {
  /* Client Brand Colors */
  --brand-primary: #d22630;
  --brand-secondary: #212121;
  --brand-primary-light: #3b82f6;
  --brand-primary-dark: #d22630;
  
  /* Comprehensive Neutral Palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  
  /* Semantic Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;
  --text-muted: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;
  
  /* Functional Colors */
  --success: var(--green-600);
  --warning: var(--amber-600);
  --error: var(--red-600);
  --info: var(--blue-600);
  
  --success-bg: var(--green-50);
  --warning-bg: var(--amber-50);
  --error-bg: var(--red-50);
  --info-bg: var(--blue-50);
  
  /* Enhanced Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* Typography Scale */
  
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Comprehensive Spacing */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1280px;
  --container-lg: 1024px;
  --container-md: 768px;
  --container-sm: 640px;
  --sidebar-width: 280px;
  --sidebar-width-sm: 240px;
  
  /* Transitions */
  --ease-linear: cubic-bezier(0, 0, 1, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-popover: 1400;
  --z-tooltip: 1500;
}

/* — 3. Base Styles — */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* — 4. Enhanced Typography — */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

h1, .pg-page-title { 
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  position: relative;
}

h1::after, .pg-page-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

h2, .pg-section-title { 
  font-size: var(--text-3xl);
  font-weight: 600;
}

h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

.pg-lede {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-8);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 200ms var(--ease-in-out);
}

a:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

small {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* — 5. Layout System — */
.pg-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.pg-container-sm { max-width: var(--container-sm); }
.pg-container-md { max-width: var(--container-md); }
.pg-container-lg { max-width: var(--container-lg); }

.pg-section { padding: var(--space-16) 0; }
.pg-section-sm { padding: var(--space-12) 0; }
.pg-section-lg { padding: var(--space-20) 0; }

.pg-columns {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .pg-columns {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
}

/* — 6. Header — */
.pg-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
   
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(8px) saturate(180%);
}

.pg-header .pg-container {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.pg-logo {
  max-height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.pg-logo-link {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.pg-logo-link:hover {
  transform: scale(1.05);
  text-decoration: none;
}

/* — 7. Enhanced Navigation — */
.pg-side-nav {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  
  top: var(--space-20);
}

.pg-side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pg-side-nav > ul > li {
  margin-bottom: var(--space-1);
}

.pg-side-nav li {
  position: relative;
}

.pg-side-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all 200ms var(--ease-out);
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.pg-side-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-primary);
  transform: translateX(-100%);
  transition: transform 200ms var(--ease-out);
}

.pg-side-nav a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  padding-left: calc(var(--space-4) + 4px);
}

.pg-side-nav a:hover::before {
  transform: translateX(0);
}

.pg-side-nav .pg-current > a {
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 600;
}

.pg-side-nav .pg-current > a:hover {
  padding-left: var(--space-4);
  background: var(--brand-primary-dark);
}

/* Navigation with sub-menus - FIXED FOR EMPTY SPANS */
.pg-side-nav .pg-has-sub-nav {
  position: relative;
}

 

 
/* Create CSS arrow using pseudo-element */
.pg-side-nav .pg-has-sub-nav > span.pg-has-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid var(--text-secondary);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition: transform 300ms var(--ease-out), border-color 200ms var(--ease-out);
  transform: rotate(0deg); /* Default state - pointing right */
}

/* Open state - rotate arrow down */
.pg-side-nav .pg-sub-nav-open > span.pg-has-icon::before {
  transform: rotate(90deg); /* Rotate to point down */
  border-left-color: var(--brand-primary);
}

/* Hover states */
.pg-side-nav .pg-has-sub-nav:hover > span.pg-has-icon::before,
.pg-side-nav .pg-has-sub-nav > span.pg-has-icon:hover::before {
  border-left-color: var(--text-primary);
}

/* Current page state */
.pg-side-nav .pg-current.pg-has-sub-nav > span.pg-has-icon::before {
  border-left-color: var(--text-inverse);
}

/* Submenu styling - RESTORED */
.pg-side-nav ul ul {
  margin-top: var(--space-1);
  margin-left: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid var(--border-light);
  display: none;
}

.pg-side-nav .pg-sub-nav-open > ul {
  display: block;
  animation: slideDown 200ms var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

/* Ensure arrows don't interfere with links - UPDATED FOR CSS ARROWS */
.pg-side-nav .pg-has-sub-nav > a {
  position: relative;
  z-index: 1;
}

.pg-side-nav .pg-has-sub-nav > span.pg-has-icon {
  z-index: 2;
}

/* Make sure nested lists show properly */
.pg-side-nav ul ul ul {
  margin-left: var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-light);
}

/* Third level navigation arrows - FIXED FOR EMPTY SPANS */
.pg-side-nav ul ul ul .pg-has-sub-nav > a {
  padding-right: calc(var(--space-3) + 20px);
}

 
/* Create CSS arrow for third level items */
.pg-side-nav ul ul ul .pg-has-sub-nav > span.pg-has-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 2.5px solid var(--text-tertiary);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: transform 300ms var(--ease-out), border-color 200ms var(--ease-out);
  transform: rotate(0deg);
}

.pg-side-nav ul ul ul .pg-sub-nav-open > span.pg-has-icon::before {
  transform: rotate(90deg);
  border-left-color: var(--brand-primary);
}

.pg-side-nav .pg-sub-nav-open > ul {
  display: block;
  animation: slideDown 200ms var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

.pg-side-nav ul ul a {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--text-tertiary);
  padding-right: var(--space-3);
}

.pg-side-nav ul ul a {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--text-tertiary);
  padding-right: var(--space-3);
}

.pg-side-nav ul ul a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Nested sub-navigation - FIXED FOR EMPTY SPANS */
.pg-side-nav ul ul .pg-has-sub-nav {
  position: relative;
}

 /* ===== CLEANED UP NAVIGATION ARROWS ===== */

/* Base arrow container - consistent across all levels */
.pg-side-nav .pg-has-sub-nav {
  position: relative;
}

/* Make space for arrow on all links with sub-menus - UNIFIED */
.pg-side-nav .pg-has-sub-nav > a {
  padding-right: calc(var(--space-4) + 32px) !important;
}

/* Consistent arrow positioning for ALL levels - UNIFIED */
.pg-side-nav .pg-has-sub-nav > span.pg-has-icon {
  position: absolute;
  right: var(--space-3);
  top: 0;
  bottom: 0;
  width: 24px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

/* Create consistent CSS arrow for ALL levels - UNIFIED */
.pg-side-nav .pg-has-sub-nav > span.pg-has-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--text-secondary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 300ms var(--ease-out), border-color 200ms var(--ease-out);
  transform: rotate(0deg); /* Default state - pointing right */
}

/* Open state - rotate arrow down for ALL levels - UNIFIED */
.pg-side-nav .pg-sub-nav-open > span.pg-has-icon::before {
  transform: rotate(90deg); /* Rotate to point down */
  border-left-color: var(--brand-primary);
}

/* Hover states for ALL levels - UNIFIED */
.pg-side-nav .pg-has-sub-nav:hover > span.pg-has-icon::before,
.pg-side-nav .pg-has-sub-nav > span.pg-has-icon:hover::before {
  border-left-color: var(--text-primary);
}

/* Current page state for ALL levels - UNIFIED */
.pg-side-nav .pg-current.pg-has-sub-nav > span.pg-has-icon::before {
  border-left-color: var(--text-inverse);
}

/* Submenu styling - keep existing */
.pg-side-nav ul ul {
  margin-top: var(--space-1);
  margin-left: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid var(--border-light);
  display: none;
}

.pg-side-nav .pg-sub-nav-open > ul {
  display: block;
  animation: slideDown 200ms var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

/* Ensure arrows don't interfere with links */
.pg-side-nav .pg-has-sub-nav > a {
  position: relative;
  z-index: 1;
}

.pg-side-nav .pg-has-sub-nav > span.pg-has-icon {
  z-index: 2;
}

/* Mobile responsiveness - SIMPLIFIED */
@media (max-width: 768px) {
  .pg-side-nav .pg-has-sub-nav > a {
    padding-right: calc(var(--space-3) + 28px) !important;
  }
  
  .pg-side-nav .pg-has-sub-nav > span.pg-has-icon {
    right: var(--space-2);
    width: 20px;
  }
  
  .pg-side-nav .pg-has-sub-nav > span.pg-has-icon::before {
    border-left: 4px solid var(--text-secondary);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
  }
}
 

/* Create CSS arrow for nested items */
.pg-side-nav ul ul .pg-has-sub-nav > span.pg-has-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid var(--text-tertiary);
  border-top: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transition: transform 300ms var(--ease-out), border-color 200ms var(--ease-out);
  transform: rotate(0deg); /* Default state - pointing right */
}

.pg-side-nav ul ul .pg-sub-nav-open > span.pg-has-icon::before {
  transform: rotate(90deg); /* Rotate to point down */
  border-left-color: var(--brand-primary);
}

.pg-side-nav ul ul .pg-has-sub-nav:hover > span.pg-has-icon::before,
.pg-side-nav ul ul .pg-has-sub-nav > span.pg-has-icon:hover::before {
  border-left-color: var(--text-primary);
}

/* Mobile Navigation */
#pg-menu-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pg-mobile-menu-toggle {
  display: none;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
}

/* — 8. Enhanced Button System with Brand Colors — */
.pg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 300ms var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.pg-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-dark));
  transition: left 400ms var(--ease-out);
  z-index: -1;
}

.pg-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: white!important;
  border-color: var(--brand-primary-dark);
}

.pg-button:hover::before {
  left: 0;
}

.pg-button span {
  margin-left: var(--space-2);
  transition: transform 300ms var(--ease-out);
  display: inline-block;
}

.pg-button:hover span {
  transform: translateX(4px);
}

/* Button Variants */
.pg-button-outline {
  background: transparent;
  color: var(--brand-primary);
}

.pg-button-outline::before {
  background: var(--brand-primary);
}

.pg-button-outline:hover {
  color: var(--text-inverse);
}

.pg-button-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid transparent;
}

.pg-button-ghost::before {
  background: var(--bg-tertiary);
}

.pg-button-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.pg-button-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.pg-button-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* — 9. Enhanced Cards System — */
.pg-page-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all 400ms var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pg-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}

.pg-page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary);
  text-decoration: none;
  color: #000;
}

.pg-page-card:hover::before {
  transform: scaleX(1);
}

.pg-page-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.pg-page-card p {
 
  color: var(--text-secondary);
}

.pg-page-card-outer {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

@media (min-width: 768px) {
  .pg-page-card-outer {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Card Variants */
.pg-page-card-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pg-page-cards-sm .pg-page-card-outer { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pg-page-cards-lg .pg-page-card-outer { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Card Button Specific Styling */
.pg-page-card .pg-button {
  margin-top: auto;
  width: 100%;
  background: var(--bg-tertiary);
  color: #000;
  border: 2px solid var(--border-default);
}

.pg-page-card .pg-button::before {
  background: var(--brand-primary);
}

.pg-page-card .pg-button span {
  position: relative;
  z-index: 1;
}

.pg-page-card:hover .pg-button {
  color: black;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.pg-page-card:hover .pg-button span {
  transform: translateX(6px);
}

/* — 10. Enhanced Carousel — */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-tertiary);
}

.banner-carousel .slides {
  display: flex;
  height: 100%;
  transition: transform 500ms var(--ease-in-out);
}

.banner-carousel .slide {
  flex: 0 0 100%;
  height: 100%;
}

.banner-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
  z-index: var(--z-10);
}

.banner-carousel .arrow:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
  transform: translateY(-50%) scale(1.1);
}

.banner-carousel .prev { left: var(--space-4); }
.banner-carousel .next { right: var(--space-4); }

/* — 11. Gift Planning Specific Sections — */

/* Ways of Giving Cards */
.pg-has-ways-of-giving {
  background: var(--bg-primary);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.pg-has-ways-of-giving::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, var(--bg-tertiary), transparent);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(100px);
}

.pg-has-ways-of-giving .pg-section-title {
  text-align: center;
  margin-bottom: var(--space-12);
  font-size: var(--text-4xl);
}

.pg-has-ways-of-giving .pg-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 300ms var(--ease-out);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  color: inherit;
}

.pg-has-ways-of-giving .pg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: inherit;
}

.pg-has-ways-of-giving .pg-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.pg-has-ways-of-giving .pg-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.pg-has-ways-of-giving .pg-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.pg-has-ways-of-giving .pg-card:hover img {
  transform: scale(1.1);
}

.pg-has-ways-of-giving .pg-card-content {
  padding: var(--space-6);
  flex: 1;
}

.pg-has-ways-of-giving .pg-strong {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: block;
}

/* Legacy Society Section */
.pg-has-society {
  background: var(--bg-tertiary);
  padding: var(--space-16) 0;
  border-radius: var(--radius-3xl);
  margin: var(--space-8) 0;
}

.pg-society-inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .pg-society-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.pg-society-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: all 300ms var(--ease-out);
}

.pg-society-img:hover {
  transform: rotate(-2deg) scale(1.02);
  filter: grayscale(0.2);
}

/* Tip of the Week */
.pg-has-tip-of-the-week {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.pg-has-tip-of-the-week::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--warning-bg), transparent);
  opacity: 0.3;
}

.pg-has-tip-of-the-week .pg-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.pg-has-tip-of-the-week .fa-lightbulb {
  font-size: var(--text-2xl);
  color: var(--warning);
  filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.3));
}

.pg-has-tip-of-the-week .readmoretip {
  margin-top: var(--space-4);
}

.pg-has-tip-of-the-week .readmoretip a {
  display: inline-block;
 
   
  
  
 
  
 
 
}

.pg-has-tip-of-the-week .readmoretip a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--brand-primary-dark);
  transition: left 300ms var(--ease-out);
  z-index: -1;
}

.pg-has-tip-of-the-week .readmoretip a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pg-has-tip-of-the-week .readmoretip a:hover::before {
  left: 0;
}

/* Plan-a-Gift Section */
.pg-has-pag {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-8);
  border-radius: var(--radius-3xl);
  margin: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.pg-has-pag::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.pg-has-pag .pg-section-title span {
  background: transparent;
  padding: 0 var(--space-6);
}

.pg-has-pag .pg-columns {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .pg-has-pag .pg-columns {
    grid-template-columns: auto 1fr;
  }
}

.pg-has-pag a {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 200ms var(--ease-out);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.pg-has-pag a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  background: var(--brand-primary-dark);
}

.pg-has-pag .fa-gift {
  font-size: var(--text-4xl);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pg-plan-a-gift-copy {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* — 12. Interactive Content Blocks — */

/* How It Works & Benefits Sections */
#vghowworks, #vgbenefits {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-sm);
}

#vghowworks h2, #vgbenefits h2, #vgnext h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  position: relative;
}

#vghowworks h2::after, #vgbenefits h2::after, #vgnext h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

#vghowworks ul, #vgbenefits ul {
  list-style: none;
  counter-reset: step;
}

#vghowworks li, #vgbenefits li {
  position: relative;
  padding-left: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.8;
}

#vghowworks li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--brand-primary);
  color: var(--text-inverse);
  width: 30px;            /* ↓ reduced from 32px */
  height: 30px;           /* ↓ reduced from 32px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--text-sm) - 2px); /* slightly smaller text */
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

#vgbenefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--success);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Important Related Topics */
.pg-important-related-topics {
  background: var(--info-bg);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.pg-important-related-topics h2 {
  color: var(--info);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.pg-important-related-topics ul {
  list-style: none;
  padding: 0;
}

.pg-important-related-topics li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--blue-100);
}

.pg-important-related-topics li:last-child {
  border-bottom: none;
}

.pg-important-related-topics a {
  color: var(--info);
  font-weight: 500;
}

/* — 13. Calculator and Forms System — */
#vgcom {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: var(--space-8) 0;
}

#vgcom h2 {
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

#vgcom section {
  margin-bottom: var(--space-6);
}

#vgcom label {
  display: block;
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  border: 2px solid transparent;
  position: relative;
}

#vgcom label:hover {
  border-color: var(--brand-primary);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

#vgcom input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

#vgcom input[type="checkbox"]:checked + label {
  border-color: var(--brand-primary);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

#vgcom label p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-secondary);
}

#vgcom label p span {
  display: block;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

#vgcom .checkmark {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  height: 20px;
  width: 20px;
  background-color: var(--bg-muted);
  border-radius: var(--radius-sm);
  transition: all 200ms var(--ease-out);
}

#vgcom .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--text-inverse);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

#vgcom input[type="checkbox"]:checked ~ .checkmark {
  background-color: var(--brand-primary);
}

#vgcom input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

#vgcom input[type="submit"] {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms var(--ease-out);
  float: right;
  font-size: var(--text-base);
  position: relative;
  overflow: hidden;
}

#vgcom input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--brand-primary-dark);
  transition: left 350ms var(--ease-out);
  z-index: -1;
}

#vgcom input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#vgcom input[type="submit"]:hover::before {
  left: 0;
}

/* Form Elements */
.pg-form-group {
  margin-bottom: var(--space-4);
}

.pg-form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-primary);
}

.pg-form-input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color 200ms var(--ease-out);
}

.pg-form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pg-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* — 14. Enhanced Tables — */
#vggoals {
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: var(--space-8) 0;
}

#vggoals thead {
  background: var(--brand-primary);

}
#vggoals thead p strong{ color:#fff!important;}

#vggoals th {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  text-align: left;
  color: var(--text-inverse);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#vggoals td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

#vggoals tbody tr {
  transition: background 200ms var(--ease-out);
}

#vggoals tbody tr:hover {
  background: var(--bg-tertiary);
}

#vggoals tbody tr:last-child td {
  border-bottom: none;
}

#vggoals a {
  color: var(--brand-primary);
  font-weight: 500;
}

#vggoals a:hover {
  color: var(--brand-primary-dark);
}

/* Responsive Table */
@media (max-width: 768px) {
  #vggoals thead {
    display: none;
  }

  #vggoals tr {
    display: block;
    margin-bottom: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
  }

  #vggoals td {
    display: block;
    text-align: left;
    padding: var(--space-2) 0;
    border: none;
    position: relative;
    padding-left: 50%;
  }

  #vggoals td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
    width: 45%;
  }
}

#vggiftdiag {
text-align:center;
    margin: 0px auto;
}

.vggiftdiag_logo {

    margin: 0px auto;
  margin-top: var(--space-4);
  width:100px;
  transition: opacity 500ms var(--ease-out);

}

.pg-gift-diagram-end .vggiftdiag_logo {
  opacity: 1;
}

/* — 16. Next Steps Section — */
#vgnext {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  margin: var(--space-8) 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

#vgnext h2 {
  text-align: left;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
  font-size: var(--text-3xl);
}

#vgnext ul {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#vgnext li {
  background: var(--bg-tertiary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#vgnext li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 200ms var(--ease-out);
}

#vgnext li:hover {
  transform: translateX(8px);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

#vgnext li:hover::before {
  transform: scaleY(1);
}

#vgnext a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
 
}
.vgicon {display:none!important;}
/* — 17. Bequest Form Link — */
.vgbequestformlink {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--space-6) 0;
}

.vgbequestformlink img {
  max-width: 64px;
  height: auto;
  flex-shrink: 0;
}

.vgbequestformlink a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 200ms var(--ease-out);
}

.vgbequestformlink a:hover {
  color: var(--brand-primary-dark);
}

/* — 18. Alert and Banner System — */
.pg-alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border: 1px solid;
}

.pg-alert-info {
  background: var(--info-bg);
  border-color: var(--blue-200);
  color: var(--info);
}

.pg-alert-success {
  background: var(--success-bg);
  border-color: var(--green-200);
  color: var(--success);
}

.pg-alert-warning {
  background: var(--warning-bg);
  border-color: var(--amber-200);
  color: var(--warning);
}

.pg-alert-error {
  background: var(--error-bg);
  border-color: var(--red-200);
  color: var(--error);
}

.pg-alert-accent {
  background: var(--bg-primary);
  border: 2px solid var(--brand-primary);
  color: var(--text-primary);
}

.pg-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: opacity 200ms var(--ease-out);
}

.pg-alert a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* — 19. FAQ System — */
#vgsubqa {
  margin: var(--space-8) 0;
}

#vgsubqa > p {
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background 200ms var(--ease-out);
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-left: var(--space-12);
}

 
#vgsubqa > p.pg-faq-open::before {
  transform: translateY(-50%) rotate(45deg);
}

#vgsubqa > p:hover {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.vgslide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-in-out);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.pg-faq-open + .vgslide {
  max-height: 1000px;
  transition: max-height 400ms var(--ease-in-out);
}

#vgsubqa .vgslide p,
#vgsubqa .vgslide ul {
  margin: var(--space-4);
  color: var(--text-secondary);
}

/* — 20. Contact and Footer System — */
.pg-has-contact {
  background: var(--bg-tertiary);
  padding: var(--space-16) 0;
}

.pg-contact {
  margin-top: var(--space-6);
}

.pg-contacts {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .pg-contacts {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.pg-contact-item {
  background: var(--bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.pg-contact-item.pg-has-img {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.pg-contact-item .pg-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.pg-contact-item .pg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-contact-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
}

.pg-contact-item ul li {
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.pg-contact-item ul li.pg-contact-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.pg-is-footer {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-8) 0;
  text-align: center;
  font-size: var(--text-sm);
}

.pg-is-footer a {
  color: var(--slate-400);
  text-decoration: underline;
}

.pg-is-footer a:hover {
  color: var(--text-inverse);
}

.pg-footer_proupgrade {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* — 21. Utility Classes — */
.pg-sr-only, .hideOffScreen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pg-text-align-center { text-align: center; }
.pg-text-align-left { text-align: left; }
.pg-text-align-right { text-align: right; }
.pg-nowrap { white-space: nowrap; }

.pg-has-line-beside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-has-line-beside::before,
.pg-has-line-beside::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.pg-has-line-beside span {
  padding: 0 var(--space-8);
  font-weight: 600;
  background: var(--bg-primary);
}

/* Background Colors */
.pg-has-background-color { padding: var(--space-16) 0; }
.pg-has-primary-background-color { 
  background: var(--brand-primary);
  color: var(--text-inverse);
}
.pg-has-secondary-background-color { background-color: var(--bg-secondary); }
.pg-has-light-grey-background-color { background-color: var(--bg-tertiary); }
.pg-has-white-background-color { background-color: var(--bg-primary); }

/* Text Colors */
.pg-has-primary-color { color: var(--text-primary); }
.pg-has-white-color { color: var(--text-inverse); }
.pg-has-dark-grey-color { color: var(--text-primary); }

/* Spacing Utilities */
.pg-mb-0 { margin-bottom: 0; }
.pg-mb-2 { margin-bottom: var(--space-2); }
.pg-mb-4 { margin-bottom: var(--space-4); }
.pg-mb-6 { margin-bottom: var(--space-6); }
.pg-mb-8 { margin-bottom: var(--space-8); }

.pg-mt-0 { margin-top: 0; }
.pg-mt-2 { margin-top: var(--space-2); }
.pg-mt-4 { margin-top: var(--space-4); }
.pg-mt-6 { margin-top: var(--space-6); }
.pg-mt-8 { margin-top: var(--space-8); }

.pg-p-0 { padding: 0; }
.pg-p-2 { padding: var(--space-2); }
.pg-p-4 { padding: var(--space-4); }
.pg-p-6 { padding: var(--space-6); }
.pg-p-8 { padding: var(--space-8); }

/* — 22. Responsive Design — */
@media (max-width: 1024px) {
  .pg-mobile-menu-toggle {
    display: block;
  }
  
  .pg-side-nav {
    margin-bottom: var(--space-8);
    position: static;
  }
  
  .pg-columns {
    grid-template-columns: 1fr;
  }
  
  .pg-has-intro .pg-columns {
    display: block;
  }
  
  .pg-has-intro .pg-is-3 {
    margin-bottom: var(--space-6);
    order: 1;
  }
  
  .pg-has-intro .pg-is-9 {
    order: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --space-16: 3rem;
    --space-20: 4rem;
  }
  
  .pg-container {
    padding: 0 var(--space-4);
  }
  
  .pg-section {
    padding: var(--space-12) 0;
  }
  
  .banner-carousel {
    height: 300px;
  }
  
  .pg-page-card {
    padding: var(--space-4);
  }
  
  .pg-has-pag .pg-columns {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }
  
  .pg-society-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .vgbequestformlink {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
  }
  
  .vgbequestformlink img {
    align-self: center;
  }
  
  .pg-contact-item.pg-has-img {
    flex-direction: column;
    text-align: center;
  }
  
  .pg-contact-item .pg-img-wrap {
    align-self: center;
  }
  
  .pg-side-nav .pg-has-sub-nav > a {
    padding-right: calc(var(--space-3) + 24px);
  }
  
  .pg-side-nav .pg-has-sub-nav > span.pg-has-icon {
    right: var(--space-2);
    width: 20px;
  }
  
  .pg-side-nav ul ul {
    margin-left: var(--space-4);
    padding-left: var(--space-3);
  }
  
  .pg-side-nav ul ul .pg-has-sub-nav > a {
    padding-right: calc(var(--space-2) + 20px);
  }
  
  .pg-side-nav ul ul .pg-has-sub-nav > span.pg-has-icon {
    right: var(--space-1);
    width: 18px;
  }
}

@media (max-width: 480px) {
  .pg-page-card-outer {
    grid-template-columns: 1fr;
  }
  
  #vgnext ul {
    grid-template-columns: 1fr;
  }
  
  .pg-has-ways-of-giving .pg-columns {
    grid-template-columns: 1fr;
  }
}

/* — 23. Accessibility & Focus States — */
*:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

.pg-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
}

.pg-skip-link:focus {
  top: var(--space-2);
  left: var(--space-2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-light: var(--border-strong);
    --text-secondary: var(--text-primary);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* — 24. Print Styles — */
@media print {
  .pg-header,
  .pg-side-nav,
  .pg-pre-footer,
  .pg-is-footer,
  .vgprinthide,
  .banner-carousel .arrow,
  .pg-mobile-menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }
  
  .pg-main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .pg-page-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* — 25. Homepage Redesigned Sections — */

/* Modern Legacy Society Section */
.society-section-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.society-section-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

.society-content-wrapper {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .society-content-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.society-text-content {
  order: 2;
}

@media (min-width: 1024px) {
  .society-text-content {
    order: 1;
  }
}

.society-heading {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.society-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.society-cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all 300ms var(--ease-out);
  box-shadow: var(--shadow-md);
}

.society-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--brand-primary-dark);
  color: white;
  text-decoration: none;
}

.society-cta-button span {
  transition: transform 300ms var(--ease-out);
}

.society-cta-button span::after {
  content: '';
}

.society-cta-button:hover span {
  transform: translateX(4px);
}

.society-image-wrapper {
  order: 1;
  position: relative;
}

@media (min-width: 1024px) {
  .society-image-wrapper {
    order: 2;
  }
}

.society-image-container {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotate(3deg);
  transition: all 400ms var(--ease-out);
}

.society-image-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.society-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.society-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: var(--space-8) var(--space-6) var(--space-6);
  color: white;
}

.society-image-overlay h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
}

/* Modern Tip of the Week Section */
.tip-section-modern {
  background: white;
  padding: var(--space-16) 0;
}

.tip-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tip-header {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--amber-50);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.tip-icon {
  width: 32px;
  height: 32px;
  background: var(--amber-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
}

.tip-header h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tip-content-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid var(--amber-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

 

.tip-main-content {
  position: relative;
  z-index: 2;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}

.tip-links-section {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px dashed var(--amber-300);
}

.tip-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.tip-link-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: white;
  border: 2px solid var(--amber-400);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
}

.tip-link-item:hover {
  background: var(--amber-500);
  border-color: var(--amber-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.tip-link-item::after {
  content: '\2192';
  transition: transform 200ms var(--ease-out);
}

.tip-link-item:hover::after {
  transform: translateX(3px);
}

/* Modern Personal Planning Section */
.planning-section-modern {
  background: var(--slate-50);
  padding: var(--space-20) 0;
}

.planning-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.planning-header h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.planning-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.planning-cards-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

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

.planning-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 300ms var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid var(--border-light);
}

.planning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}

.planning-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  text-decoration: none;
}

.planning-card:hover::before {
  transform: scaleX(1);
}

.planning-card-icon {
  padding: var(--space-8) var(--space-6) 0;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planning-card-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.planning-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.planning-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.planning-card-arrow {
  margin-top: var(--space-4);
  color: var(--brand-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.planning-card:hover .planning-card-arrow {
  gap: var(--space-3);
}

.planning-card-arrow::after {
  content: '';
}

/* Modern Contact Section */
.contact-section-modern {
  background: linear-gradient(180deg, white 0%, var(--slate-50) 100%);
  padding: var(--space-20) 0;
  position: relative;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-header h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.contact-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.contact-cards-wrapper {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .contact-cards-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.contact-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all 300ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-2xl);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-inner {
  position: relative;
  background: white;
  border-radius: calc(var(--radius-2xl) - 2px);
  padding: var(--space-8);
  margin: -var(--space-8);
  z-index: 1;
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.contact-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.contact-title {
  font-size: var(--text-sm);
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-detail-item {

  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-detail-icon {
  width: 20px;
  height: 20px;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.contact-detail-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.contact-detail-item a:hover {
  color: var(--brand-primary);
}

/* Responsive adjustments for all sections */
@media (max-width: 768px) {
  .society-heading,
  .planning-header h2,
  .contact-header h2 {
    font-size: var(--text-3xl);
  }

  .society-description {
    font-size: var(--text-base);
  }

  .society-image-container {
    transform: none;
  }

  .tip-content-box {
    padding: var(--space-6);
  }

  .planning-card-icon {
    font-size: 36px;
    padding: var(--space-6) var(--space-4) 0;
  }

  .contact-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-avatar {
    margin: 0 auto;
  }

  .contact-details {
    align-items: center;
  }
}

/* — 26. Legacy Cleanup & Animations — */
#vggizmos { display: none !important; }
body #blanket { display: none !important; }
body #vgpag_close { display: none !important; }

img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.pg-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Interactive element improvements */
button, input[type="submit"], .pg-button {
  cursor: pointer;
}

button:disabled, input[type="submit"]:disabled, .pg-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading states */
.pg-loading {
  position: relative;
  pointer-events: none;
}

.pg-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

















/* Enhanced How It Works Section - Fixed Spacing & ADA Compliant */
#vghowworks {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
  border: none;
  border-radius: var(--radius-3xl);
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

#vghowworks::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 92, 153, 0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}

#vghowworks h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  font-size: var(--text-3xl);
  font-weight: 700;

  position: relative;
  z-index: 2;
}

 

#vghowworks ul {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}

#vghowworks li {
  position: relative;
  padding: var(--space-6);
  padding-left: calc(48px + var(--space-8));
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
  transition: all 300ms var(--ease-out);
  margin: 0;
  min-height: 70px;
}

#vghowworks li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

#vghowworks li:focus-within {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}

#vghowworks li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 300ms var(--ease-out);
  flex-shrink: 0;
}

#vghowworks li:hover::before {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Remove connecting lines for cleaner look */
#vghowworks li::after {
  display: none;
}

#vghowworks li .step-content {
  width: 100%;
  padding-top: var(--space-1);
}

/* Text content flows naturally with absolute positioned circle */
#vghowworks li p,
#vghowworks li div {
  margin: 0;
}

#vghowworks a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: all 200ms var(--ease-out);
}

#vghowworks a:hover {
  color: var(--brand-primary-dark);
  text-decoration-color: var(--brand-primary-dark);
}

#vghowworks a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Enhanced Important Related Topics Section - Fixed Spacing & ADA Compliant */
.pg-important-related-topics {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-top: 4px solid var(--info);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pg-important-related-topics::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.pg-important-related-topics h2 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 2;
}

.pg-important-related-topics h2::before {
  content: '💡';
  font-size: var(--text-2xl);
  flex-shrink: 0;
  /* Remove animation for better accessibility */
}

.pg-important-related-topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 2;
  counter-reset: topic;
}

.pg-important-related-topics li {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--info);
  transition: all 250ms var(--ease-out);
  position: relative;
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  min-height: 60px;
}

.pg-important-related-topics li::before {
  content: counter(topic);
  counter-increment: topic;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--info);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all 200ms var(--ease-out);
}

.pg-important-related-topics li:hover {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--brand-primary);
  transform: translateX(4px);
}

.pg-important-related-topics li:hover::before {
  background: var(--brand-primary);
  transform: scale(1.05);
}

.pg-important-related-topics li:focus-within {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-left-color: var(--brand-primary);
}

.pg-important-related-topics li:focus-within::before {
  background: var(--brand-primary);
}

.pg-important-related-topics a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  transition: all 200ms var(--ease-out);
  line-height: 1.5;
  min-width: 0;
}

.pg-important-related-topics a::after {
  content: '→';
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--info);
  transition: all 200ms var(--ease-out);
  opacity: 0.7;
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.pg-important-related-topics a:hover {
  color: var(--brand-primary);
}

.pg-important-related-topics a:hover::after {
  transform: translateX(4px);
  color: var(--brand-primary);
  opacity: 1;
}

.pg-important-related-topics a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Special styling for file downloads with better accessibility */
.pg-important-related-topics a[href$=".doc"]::after,
.pg-important-related-topics a[href$=".pdf"]::after {
  content: '📄';
}

/* Improved responsive design */
@media (max-width: 1024px) {
  #vghowworks {
    padding: var(--space-6);
  }
  
  .pg-important-related-topics {
    padding: var(--space-5);
  }
}

@media (max-width: 768px) {
  #vghowworks {
    padding: var(--space-4);
    margin: var(--space-6) 0;
  }
  
  #vghowworks h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
  }
  
  #vghowworks ul {
    gap: var(--space-4);
  }
  
  #vghowworks li {
    padding: var(--space-5);
    gap: var(--space-4);
    min-height: 70px;
  }
  
  #vghowworks li::before {
    
    font-size: var(--text-base);
    margin-right: var(--space-3);
  }
  
  .pg-important-related-topics {
    padding: var(--space-4);
    margin: var(--space-6) 0;
  }
  
  .pg-important-related-topics h2 {
    font-size: var(--text-lg);
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    text-align: left;
  }
  
  .pg-important-related-topics a {
    font-size: var(--text-sm);
  }
  
  .pg-important-related-topics li {
    gap: var(--space-3);
    padding: var(--space-3);
    min-height: 50px;
  }
  
  .pg-important-related-topics li::before {
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
  }
  
  .pg-important-related-topics li:hover {
    transform: translateX(2px);
  }
}

@media (max-width: 480px) {
  #vghowworks {
    padding: var(--space-3);
  }
  
  #vghowworks li {
    padding: var(--space-4);
    padding-left: calc(36px + var(--space-5));
    min-height: 55px;
  }
  
  #vghowworks li::before {
    left: var(--space-2);
    top: var(--space-2);
    
    font-size: var(--text-sm);
  }
  
  .pg-important-related-topics {
    padding: var(--space-3);
  }
  
  .pg-important-related-topics h2 {
    margin-bottom: var(--space-4);
  }
  
  .pg-important-related-topics ul {
    gap: var(--space-2);
  }
  
  .pg-important-related-topics li {
    gap: var(--space-2);
    padding: var(--space-2);
  }
  
  .pg-important-related-topics li::before {
    width: 24px;
    height: 24px;
    font-size: var(--text-xs);
  }
}

/* High contrast mode support for better accessibility */
@media (prefers-contrast: high) {
  #vghowworks li {
    border-color: var(--text-primary);
  }
  
  .pg-important-related-topics {
    border-color: var(--text-primary);
  }
  
  .pg-important-related-topics li {
    border-left-color: var(--text-primary);
  }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
  #vghowworks li,
  .pg-important-related-topics li,
  #vghowworks a,
  .pg-important-related-topics a {
    transition: none;
  }
  
  #vghowworks li:hover,
  .pg-important-related-topics li:hover {
    transform: none;
  }
  
  .pg-important-related-topics a:hover::after {
    transform: none;
  }
}

/* Focus management for better keyboard navigation */
#vghowworks li:has(a:focus),
.pg-important-related-topics li:has(a:focus) {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Ensure proper color contrast ratios */
#vghowworks li::before {
  /* Ensure 4.5:1 contrast ratio for text */
  background: var(--brand-primary);
}

.pg-important-related-topics a::after {
  /* Ensure decorative elements don't interfere with text contrast */
  color: var(--text-tertiary);
}

.pg-important-related-topics a:hover::after {
  color: var(--brand-primary);
}

.vggiftdiag_logo  {background-color: var(--brand-primary)!important; padding 5px;}
body .bg-card {background-color:#fff!important;}
#vgdiagram {margin:0px auto;}
.giftvideo {margin:0px auto;}















/* Callout base */
#vgitgfy {
  float: right;
  width: 360px;
  max-width: 42%;
  margin: 0 0 1.5rem 1.5rem;
  padding: 1rem 1.25rem;

  background: #ffffff;
  background-image: linear-gradient(180deg, rgba(2,38,88,0.04), rgba(0,46,109,0.02));
  border: 1px solid rgba(2,38,88,0.15);
  border-radius: 10px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
  box-sizing: border-box;

  position: relative;
}

/* Sticky on tall pages while there is room */
@media (min-width: 1025px) {
  #vgitgfy {
    position: sticky;
    top: 1.25rem;
  }
}

/* Decorative left accent bar */
#vgitgfy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background-image: linear-gradient(180deg, --brand-primary, --brand-secondary);
  opacity: 0.9;
}

/* Heading */
#vgitgfy h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #022658;
  letter-spacing: 0.2px;
}

/* Lead paragraph */
#vgitgfy > p {
  margin: 0 0 0.75rem 0;
  color: #12324f;
  font-size: 0.98rem;
}

/* List */
vgbody ul {list-style-type:disc!important;}
#vgitgfy li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 0;
  color: #2a3b4f;
  font-size: 0.97rem;
  line-height: 1.45;
  border-bottom: 1px dashed rgba(2,38,88,0.15);
}
#vgitgfy li:last-child {
  border-bottom: none;
}

 

/* Subtle hover for items */
#vgitgfy li:hover {
  background: rgba(76,156,217,0.06);
}

/* Focus styles for accessibility */
#vgitgfy a,
#vgitgfy button {
  outline: none;
}
#vgitgfy a:focus,
#vgitgfy button:focus,
#vgitgfy li:focus-within {
  box-shadow: inset 0 0 0 2px rgba(76,156,217,0.35);
  border-radius: 6px;
}

/* Responsive: stack on small screens */
@media (max-width: 1024px) {
  #vgitgfy {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* Clearfix utility for parent container if needed */
.vg-clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.pg-faq-toggle img {float:left; padding-right:10px;}
























/* Estate Planning Navigation UI (Sidebar Style) */
#vggep {
  float: right;
  width: 280px; /* narrower than before */
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 20px 20px; /* spacing between text and box */
 
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#vggep .title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-primary, #1a5490);
  border-bottom: 2px solid var(--brand-primary, #1a5490);
  padding-bottom: 4px;
}

#vggep a {
  display: block;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

#vggep a strong {
  margin-right: 6px;
  color: var(--brand-primary, #1a5490);
}

#vggep a:hover,
#vggep a:focus {
  background: var(--brand-primary, #1a5490);
  color: #fff;
  outline: none;
}

#vggep a:hover strong,
#vggep a:focus strong {
  color: #fff;
}

#vggep a.selected {
  background: var(--brand-primary, #1a5490);
  color: #fff;
  font-weight: 600;
}

#vggep a.selected strong {
  color: #fff;
}

#vggep a.lite {
  background: transparent;
  color: var(--brand-primary, #1a5490);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px dashed #bbb;
  padding: 6px 10px;
}

#vggep a.lite:hover,
#vggep a.lite:focus {
  background: #eef5fa;
  color: var(--brand-primary, #1a5490);
  border-color: var(--brand-primary, #1a5490);
}



.pg-is-footer a{color:#fff!important;}
.pg-is-footer p{color:#fff!important;}



/*  body #vgbody #vgWPW input, body #vgbody #vgWPW textarea { background-color:#f0f0f0!important;} */



body #vgbody #vgWPW  input, body #vgbody #vgWPW textarea { border:1px solid #ccc;}

#vgbody ol    {list-style:inherit!important; margin-left:20px;}



