:root {
  /* ===== Color System ===== */
  /* Primary Brand Colors */
  --primary: #8B2131;       /* Burgundy - Main brand color */
  --primary-dark: #6a1926;  /* Darker burgundy for hover states */
  --primary-light: #a44a57; /* Lighter burgundy for gradients */
  --primary-bg: #fcf4f5;    /* Very light burgundy for backgrounds */
  
  /* Secondary Colors */
  --secondary: #2C3E50;     /* Dark blue - For headers, important text */
  --secondary-light: #3a5169; /* Lighter blue for hover states */
  
  /* Status Colors */
  --success: #27AE60;       /* Green - Success messages, confirmations */
  --warning: #F39C12;       /* Orange - Warnings, pending states */
  --danger: #E74C3C;        /* Red - Errors, destructive actions */
  --info: #3498DB;          /* Blue - Informational messages */
  
  /* Neutral Colors */
  --light: #F8F9FA;         /* Light gray for backgrounds */
  --light-gray: #E9ECEF;    /* Slightly darker for borders */
  --medium: #6C757D;        /* Medium gray for secondary text */
  --dark: #343A40;          /* Dark gray for primary text */
  --white: #FFFFFF;         /* Pure white */
  --black: #212529;         /* Almost black for text */
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  
  /* Box Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 8px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Container Widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;
}

/* ===== Brand Color System ===== */
/* Primary Color Applications */
.bg-primary,
.card-header.bg-primary,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary) !important;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 33, 49, 0.2);
}

/* Brand Gradient */
.bg-brand-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

/* Card Hover Effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Tutorial Specific Styles */
.tutorial-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tutorial-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.tutorial-nav .nav-link:hover::after,
.tutorial-nav .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.tutorial-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-weight: 600;
}

/* Step Number Styling */
.step-number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(45deg);
  z-index: 1;
}

/* Icon Stacks */
.icon-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

/* Section Headers */
.section-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

/* Tutorial Cards */
.tutorial-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tutorial-card .card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutorial-card .card-title {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tutorial-card .card-text {
  color: var(--medium);
  flex: 1;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Button Enhancements */
.btn-brand-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(139, 33, 49, 0.1);
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(139, 33, 49, 0.2);
  color: white;
}

.btn-brand-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(139, 33, 49, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tutorial-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .tutorial-nav .nav-link {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .icon-stack {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Text and Icons in Primary Sections */
.bg-primary,
.bg-primary h1, 
.bg-primary h2, 
.bg-primary h3, 
.bg-primary h4, 
.bg-primary h5, 
.bg-primary h6,
.bg-primary .card-title,
.bg-primary .text-muted,
.bg-primary .text-dark,
.bg-primary .text-secondary {
  color: var(--white) !important;
}

/* Icons in Primary Sections */
.bg-primary i,
.bg-primary .fas,
.bg-primary .far,
.bg-primary .fal,
.bg-primary .fab,
.bg-primary .bi {
  color: var(--white) !important;
  opacity: 0.9;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(139, 33, 49, 0.25);
}

/* Badges */
.badge.bg-primary {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* Dropdowns */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
}

.dropdown-item:active,
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* Cards */
.card {
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.card-header {
  background-color: var(--primary);
  color: var(--white);
  border-bottom: none;
  padding: 1rem 1.5rem;
}

/* Navigation */
.nav-pills .nav-link {
  color: var(--secondary);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  transition: all var(--transition);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(139, 33, 49, 0.25);
}

/* Alerts */
.alert-primary {
  background-color: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Tables */
.table thead th {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: var(--primary-bg);
}

/* Consistent Spacing */
.card-body {
  padding: 1.5rem;
}

/* Consistent Transitions */
a, button, .btn, .form-control, .nav-link, .dropdown-item {
  transition: all var(--transition);
}

/* Consistent Focus States */
*:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(139, 33, 49, 0.25);
}

/* ===== Base Styles ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: var(--spacing);
}

h1 { 
  font-size: 2.5rem; 
  margin-bottom: var(--spacing-md);
}

h2 { 
  font-size: 2rem;
  color: var(--primary);
}

h3 { 
  font-size: 1.75rem;
  color: var(--secondary);
}

h4 { 
  font-size: 1.5rem;
  color: var(--secondary-light);
}

p {
  margin-bottom: var(--spacing);
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-xxl);
  padding-right: var(--spacing);
  padding-left: var(--spacing);
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== UI Components ===== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white) !important;
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5a1220 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--secondary);
  color: var(--white) !important;
  border: none;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-light);
  color: var(--white) !important;
  box-shadow: var(--shadow);
}

/* Outline Button */
.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--white) !important;
  box-shadow: var(--shadow);
}

/* Button Sizes */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
  color: var(--gray);
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: var(--gray);
}

.form-control::-ms-input-placeholder {
  color: var(--gray);
}

.form-control::placeholder {
  color: var(--gray);
  opacity: 1;
}

.form-control:focus::placeholder {
  color: transparent;
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  vertical-align: top;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50% 50%;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input:active {
  filter: brightness(90%);
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: var(--spacing);
  overflow: hidden;
}

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

.card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  background-color: var(--primary);
  color: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  font-weight: 600;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: var(--light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Card Variations */
.card-primary {
  border-top: 4px solid var(--primary);
}

.card-primary .card-header {
  background-color: var(--primary);
  color: var(--white);
}

.card-secondary {
  border-top: 4px solid var(--secondary);
}

.card-secondary .card-header {
  background-color: var(--secondary);
  color: var(--white);
}

/* Header Styles */
.navbar {
  background-color: var(--secondary) !important;
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white) !important;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition);
}

.navbar .nav-link:hover, 
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Loading Overlay */
#loadingOverlay {
  display: none !important; /* Force hide by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0; /* Start transparent */
  transition: opacity 0.3s ease-in-out; /* Smooth transition for showing/hiding */
}

#loadingOverlay.show {
  display: flex !important; /* Force show when needed */
  opacity: 1; /* Fade in */
}

#loadingOverlay .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

#loadingOverlay .loading-message {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #8B2131 0%, #a44a57 100%);
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 6px rgba(139, 33, 49, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7a1c2b 0%, #933f4d 100%);
  box-shadow: 0 6px 8px rgba(139, 33, 49, 0.4);
}

.btn-secondary {
  background-color: var(--medium);
  border-color: var(--medium);
  color: var(--primary-dark);
}

/* Cards */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: var(--primary-dark);
  color: white;
  font-weight: 600;
  border-radius: 8px 8px 0 0 !important;
}

.card-header.bg-burgundy {
  background-color: var(--burgundy) !important;
}

.card-header.bg-light {
  color: black;
}

/* Alerts */
.alert {
  border-radius: 8px;
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* Validator Page Styles */
.validator-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.validator-header {
  background-color: var(--primary-dark);
  color: white;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
}

/* Validator header styles */
.validator-header,
.validator-header h1,
.validator-header h2,
.validator-header h3,
.validator-header h4,
.validator-header h5,
.validator-header h6,
.validator-header p,
.validator-header span,
.validator-header div,
.validator-header i,
.validator-header .fas,
.validator-header .material-icons,
.validator-header * {
  color: white !important;
}

/* Ensure all text in card headers is white */
.card-header.bg-burgundy,
.card-header.bg-burgundy * {
  color: white !important;
}

.validator-page .card-header {
  color: black !important;
}

#doc-formatted-content-display {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  min-height: 500px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Footer Styles */
footer {
  background-color: var(--primary-dark) !important;
}

footer a {
  color: var(--light);
}

footer a:hover {
  color: var(--primary);
}

/* Layout */
.container {
  max-width: 1200px;
}

.main-content {
  min-height: calc(100vh - 350px);
}

/* Remove vertical padding on index page */
.index-page .main-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .mobile-stack {
    flex-direction: column;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

/* Solutions Page Styles */
.hero-section {
  background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.95)), url('/assets/images/pexels/hero-background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0 6rem;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Hero button overrides - enhanced contrast */
.hero-section .btn-hero-primary {
    background: linear-gradient(135deg, #4a6fff, #8c4aff) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.hero-section .btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid white !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Make text black in light background sections */
.bg-light, .bg-light *:not(.text-danger):not(.text-success) {
  color: black !important;
}

.bg-success.bg-opacity-10, .bg-success.bg-opacity-10 * {
  color: black !important;
}

.text-secondary {
  color: #333 !important;
}

.fw-bold {
  color: black !important;
}

/* ===== Alerts & Notifications ===== */
.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.5;
}

.alert-heading {
  color: inherit;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.alert-link {
  font-weight: 600;
  text-decoration: underline;
}

.alert-dismissible {
  padding-right: 3.5rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.75rem;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.alert-dismissible .btn-close:hover {
  opacity: 0.75;
}

/* Alert Variations */
.alert-primary {
  color: var(--primary-dark);
  background-color: var(--primary-bg);
  border-color: var(--primary-light);
}

.alert-primary .alert-link {
  color: var(--primary-dark);
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-success .alert-link {
  color: #0c4128;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-danger .alert-link {
  color: #6a1a21;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-warning .alert-link {
  color: #523e02;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.alert-info .alert-link {
  color: #04414d;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  z-index: 1090;
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  pointer-events: none;
}

.toast-container.top-center {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.top-right {
  top: 1rem;
  right: 1rem;
}

.toast-container.bottom-center {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.bottom-right {
  bottom: 1rem;
  right: 1rem;
}

.toast {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5rem;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateY(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--medium);
  background-color: var(--light);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.toast-body {
  padding: 1rem;
  word-wrap: break-word;
}

/* Close Button */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: var(--dark);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.btn-close:hover {
  color: var(--dark);
  text-decoration: none;
  opacity: 0.75;
}

.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(139, 33, 49, 0.25);
  opacity: 1;
}

/* Toast Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.show {
  animation: slideInRight 0.3s ease-in-out;
}

.toast.hide {
  animation: slideOutRight 0.3s ease-in-out;
  opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .toast-container {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .toast {
    margin-bottom: 0.5rem;
  }
}
