/* ==========================================================================
   Main CSS Entry Point
   
   This file imports all CSS modules in the correct order.
   DO NOT write styles directly in this file.
   
   Architecture based on ITCSS (Inverted Triangle CSS)
   https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture/
   ========================================================================== */

/* ==========================================================================
   Settings
   Global variables, config switches
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   Centralized design tokens for consistent theming
   ========================================================================== */

:root {
  /* ==========================================================================
     Colors
     ========================================================================== */
  
  /* Brand Colors */
  --color-primary: #585878;          /* Main brand color */
  --color-primary-dark: #474761;     /* Darker variant for high contrast */
  --color-primary-darker: #424354;   /* Darkest variant */
  --color-primary-light: #525369;    /* Lighter variant for hover states */
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Gray Scale - WCAG AA compliant */
  --color-gray-50: rgb(249 250 251);
  --color-gray-100: rgb(243 244 246);
  --color-gray-200: rgb(229 231 235);
  --color-gray-300: rgb(209 213 219);
  --color-gray-400: rgb(75 85 99);    /* Improved from 156 163 175 for AA compliance */
  --color-gray-500: rgb(55 65 81);    /* Improved from 107 114 128 for AA compliance */
  --color-gray-600: rgb(75 85 99);    /* Minimum for AA text contrast */
  --color-gray-700: rgb(55 65 81);
  --color-gray-800: rgb(31 41 55);
  --color-gray-900: rgb(17 24 39);
  
  /* Slate Colors (for footer) */
  --color-slate-300: rgb(203 213 225);
  --color-slate-500: rgb(100 116 139);
  
  /* Semantic Colors */
  --color-error: rgb(185 28 28);      /* WCAG AA compliant red */
  --color-success: rgb(16 185 129);
  --color-warning: rgb(245 158 11);
  --color-info: rgb(59 130 246);
  
  /* ==========================================================================
     Typography
     ========================================================================== */
  
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: Consolas, 'Courier New', monospace;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes - Type Scale */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  
  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* ==========================================================================
     Spacing
     ========================================================================== */
  
  /* Base spacing unit = 4px */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* ==========================================================================
     Layout
     ========================================================================== */
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Content Widths */
  --content-max-width: 1280px;
  --content-prose-width: 65ch;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* ==========================================================================
     Components
     ========================================================================== */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Focus Styles */
  --focus-outline-width: 3px;
  --focus-outline-offset: 2px;
  --focus-outline-color: var(--color-primary);
  --focus-shadow: 0 0 0 4px rgba(88, 88, 120, 0.25);
  
  /* ==========================================================================
     Animation
     ========================================================================== */
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Animation Durations */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 1000ms;
  
  /* ==========================================================================
     Z-Index Scale
     ========================================================================== */
  
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  --z-index-skip-link: 10000;
  
  /* ==========================================================================
     Accessibility
     ========================================================================== */
  
  /* Minimum touch target size (WCAG 2.5.5) */
  --touch-target-min: 44px;
  
  /* High contrast mode adjustments */
  @media (prefers-contrast: high) {
    --color-primary: #000000;
    --color-primary-dark: #000000;
    --color-gray-600: #000000;
    --focus-outline-color: #ffff00;
  }
  
  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
  }
}

/* ==========================================================================
   Base
   Reset, normalize, box-sizing, typography
   ========================================================================== */

/* ==========================================================================
   CSS Reset / Normalize
   Modern CSS reset based on best practices
   ========================================================================== */

/* Box sizing rules */

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

/* Remove default margin and padding */

* {
  margin: 0;
  padding: 0;
}

/* Set core root defaults */

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Set core body defaults */

body {
  min-height: 100%;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--font-primary);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  color: rgb(17 24 39);
  color: var(--color-gray-900);
  background-color: #ffffff;
  background-color: var(--color-white);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles on ul, ol elements with a list role */

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Reset anchor styles */

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

/* Make images easier to work with */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove image borders in IE */

img {
  border-style: none;
}

/* Inherit fonts for form controls */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove the inheritance of text transform in Edge and Firefox */

button,
select {
  text-transform: none;
}

/* Correct the inability to style clickable types in iOS and Safari */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  -moz-appearance: button;
       appearance: button;
}

/* Remove the inner border and padding in Firefox */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Restore the focus styles unset by the previous rule */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/* Remove border on focused elements */

:focus {
  outline: none;
}

/* Add visible focus styles for keyboard navigation */

:focus-visible {
  outline: 3px solid #585878;
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 2px;
  outline-offset: var(--focus-outline-offset);
}

/* Correct the cursor style of increment and decrement buttons in Safari */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/* Correct the text style of placeholders in Chrome, Edge, and Safari */

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

/* Remove the default vertical scrollbar in IE 10+ */

textarea {
  overflow: auto;
}

/* Don't allow horizontal resizing of textareas */

textarea {
  resize: vertical;
}

/* Correct the padding in Firefox */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/* Remove the padding so developers are not caught out */

legend {
  padding: 0;
}

/* Add the correct vertical alignment in Chrome and Firefox */

progress {
  vertical-align: baseline;
}

/* Correct the cursor style of increment and decrement buttons in Chrome */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/* Correct the outline style in Safari */

[type="search"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
       appearance: textfield;
  outline-offset: -2px;
}

/* Remove the inner padding in Chrome and Safari on macOS */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Remove default button styles */

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Interactive elements */

button,
[role="button"],
input,
label,
select,
summary,
textarea {
  touch-action: manipulation;
}

/* Hidden attribute support */

[hidden] {
  display: none !important;
}

/* Tables */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Summary element */

summary {
  display: list-item;
  cursor: pointer;
}

/* Template element */

template {
  display: none;
}

/* Accessibility: Ensure elements with role="button" are keyboard accessible */

[role="button"] {
  cursor: pointer;
}

/* Disabled state */

[disabled],
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Selection styles */

::-moz-selection {
  background-color: #525369;
  background-color: var(--color-primary-light);
  color: #ffffff;
  color: var(--color-white);
  text-shadow: none;
}

::selection {
  background-color: #525369;
  background-color: var(--color-primary-light);
  color: #ffffff;
  color: var(--color-white);
  text-shadow: none;
}

/* Remove animations for people who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Typography
   Base typography styles and font definitions
   ========================================================================== */

/* ==========================================================================
   Font Face Declarations
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Inter-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

/* Body text defaults */

body {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: rgb(17 24 39);
  color: var(--color-gray-900);
}

/* Headings */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  color: rgb(17 24 39);
  color: var(--color-gray-900);
}

h1 {
  font-size: 2.25rem;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Responsive heading sizes */

@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }
  
  h3 {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }
}

/* Paragraphs */

p {
  margin-top: 0;
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
}

/* Links */

a {
  color: #585878;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
  transition: color var(--transition-fast);
}

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

a:visited {
  color: rgb(91 33 182); /* Purple that meets contrast requirements */
}

/* Lists */

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
  padding-left: 1.5rem;
  padding-left: var(--space-6);
}

li {
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

/* Nested lists */

ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
  margin-top: 0.5rem;
  margin-top: var(--space-2);
}

/* Definition lists */

dl {
  margin-top: 0;
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
}

dt {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
  margin-bottom: var(--space-1);
}

dd {
  margin-left: 1.5rem;
  margin-left: var(--space-6);
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

/* Quotes */

blockquote {
  margin: 1.5rem 0;
  margin: var(--space-6) 0;
  padding-left: 1rem;
  padding-left: var(--space-4);
  border-left: 4px solid rgb(229 231 235);
  border-left: 4px solid var(--color-gray-200);
  font-style: italic;
  color: rgb(55 65 81);
  color: var(--color-gray-700);
}

/* Inline text elements */

strong, b {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: rgb(17 24 39);
  color: var(--color-gray-900);
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

mark {
  background-color: rgba(88, 88, 120, 0.1);
  padding: 0.125em 0.25em;
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
}

/* Code */

code {
  font-family: Consolas, 'Courier New', monospace;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: #585878;
  color: var(--color-primary);
  background-color: rgb(243 244 246);
  background-color: var(--color-gray-100);
  padding: 0.125em 0.25em;
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

pre {
  margin: 1.5rem 0;
  margin: var(--space-6) 0;
  padding: 1rem;
  padding: var(--space-4);
  background-color: rgb(243 244 246);
  background-color: var(--color-gray-100);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.625;
  line-height: var(--line-height-relaxed);
}

pre code {
  background: none;
  color: inherit;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  padding: 0;
}

/* Abbreviations */

abbr[title] {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  cursor: help;
  text-underline-offset: 2px;
}

/* Horizontal rules */

hr {
  margin: 2rem 0;
  margin: var(--space-8) 0;
  border: 0;
  border-top: 1px solid rgb(229 231 235);
  border-top: 1px solid var(--color-gray-200);
}

/* Text utility classes */

.text-xs { font-size: 0.75rem; font-size: var(--font-size-xs); }

.text-sm { font-size: 0.875rem; font-size: var(--font-size-sm); }

.text-base { font-size: 1rem; font-size: var(--font-size-base); }

.text-lg { font-size: 1.125rem; font-size: var(--font-size-lg); }

.text-xl { font-size: 1.25rem; font-size: var(--font-size-xl); }

.text-2xl { font-size: 1.5rem; font-size: var(--font-size-2xl); }

.text-3xl { font-size: 1.875rem; font-size: var(--font-size-3xl); }

.text-4xl { font-size: 2.25rem; font-size: var(--font-size-4xl); }

.text-5xl { font-size: 3rem; font-size: var(--font-size-5xl); }

.text-6xl { font-size: 3.75rem; font-size: var(--font-size-6xl); }

/* Font weight utilities */

.font-light { font-weight: 300; font-weight: var(--font-weight-light); }

.font-normal { font-weight: 400; font-weight: var(--font-weight-normal); }

.font-medium { font-weight: 500; font-weight: var(--font-weight-medium); }

.font-semibold { font-weight: 600; font-weight: var(--font-weight-semibold); }

.font-bold { font-weight: 700; font-weight: var(--font-weight-bold); }

/* Text alignment */

.text-left { text-align: left; }

.text-center { text-align: center; }

.text-right { text-align: right; }

.text-justify { text-align: justify; }

/* Text transform */

.uppercase { text-transform: uppercase; }

.lowercase { text-transform: lowercase; }

.capitalize { text-transform: capitalize; }

.normal-case { text-transform: none; }

/* Letter spacing */

.tracking-tighter { letter-spacing: -0.05em; }

.tracking-tight { letter-spacing: -0.025em; }

.tracking-normal { letter-spacing: 0; }

.tracking-wide { letter-spacing: 0.025em; }

.tracking-wider { letter-spacing: 0.05em; }

.tracking-widest { letter-spacing: 0.1em; }

/* Line height */

.leading-none { line-height: 1; line-height: var(--line-height-none); }

.leading-tight { line-height: 1.25; line-height: var(--line-height-tight); }

.leading-snug { line-height: 1.375; line-height: var(--line-height-snug); }

.leading-normal { line-height: 1.5; line-height: var(--line-height-normal); }

.leading-relaxed { line-height: 1.625; line-height: var(--line-height-relaxed); }

.leading-loose { line-height: 2; line-height: var(--line-height-loose); }

/* Text decoration */

.underline { text-decoration: underline; }

.line-through { text-decoration: line-through; }

.no-underline { text-decoration: none; }

/* Text overflow */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line clamping */

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Word break */

.break-normal { word-break: normal; overflow-wrap: normal; }

.break-words { overflow-wrap: break-word; }

.break-all { word-break: break-all; }

/* Whitespace */

.whitespace-normal { white-space: normal; }

.whitespace-nowrap { white-space: nowrap; }

.whitespace-pre { white-space: pre; }

.whitespace-pre-line { white-space: pre-line; }

.whitespace-pre-wrap { white-space: pre-wrap; }

/* ==========================================================================
   Layout
   Grid systems, containers, major layout components
   ========================================================================== */

/* @import 'layout/_grid.css'; */

/* @import 'layout/_containers.css'; */

/* @import 'layout/_sections.css'; */

/* ==========================================================================
   Components
   Discrete, complete chunks of UI
   ========================================================================== */

/* ==========================================================================
   Navigation Component
   Header navigation, mobile menu, and language switcher
   ========================================================================== */

/* ==========================================================================
   Main Navigation Container
   ========================================================================== */

.navigation {
  position: sticky;
  top: 1rem;
  top: var(--space-4);
  z-index: 1020;
  z-index: var(--z-index-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
  margin: 1rem;
  margin: var(--space-4);
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  transition: all 300ms ease;
  transition: all var(--transition-base);
}

/* Reduced backdrop blur for performance */

@media (prefers-reduced-motion: reduce) {
  .navigation {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Navigation inner container */

.navigation__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.navigation__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.navigation__logo {
  height: 2.5rem;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Smaller logo on very small screens */

@media (max-width: 320px) {
  .navigation__logo {
    height: 2rem;
  }
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */

.navigation__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
  flex: 1;
  justify-content: flex-end;
}

.navigation__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  padding: var(--space-2) var(--space-4);
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.navigation__link:hover {
  color: #585878;
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

.navigation__link:focus-visible {
  outline: 3px solid #585878;
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 2px;
  outline-offset: var(--focus-outline-offset);
  background-color: rgba(88, 88, 120, 0.1);
}

/* Active link state */

.navigation__link--active,
.navigation__link[aria-current="page"] {
  color: #585878;
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
  position: relative;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid rgb(209 213 219);
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.language-switcher__button:hover {
  border-color: #585878;
  border-color: var(--color-primary);
  color: #585878;
  color: var(--color-primary);
}

.language-switcher__button:focus-visible {
  outline: 3px solid #585878;
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 2px;
  outline-offset: var(--focus-outline-offset);
}

/* Language dropdown menu */

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 150px;
  background: #ffffff;
  background: var(--color-white);
  border: 1px solid rgb(229 231 235);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  z-index: 1000;
  z-index: var(--z-index-dropdown);
}

.language-switcher__menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.language-switcher__link:hover {
  background-color: rgb(249 250 251);
  background-color: var(--color-gray-50);
  color: #585878;
  color: var(--color-primary);
}

.language-switcher__link[aria-current="true"] {
  color: #585878;
  color: var(--color-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Language code badges */

.language-code {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  padding: var(--space-1) var(--space-2);
  background-color: #585878;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  text-transform: uppercase;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-width: var(--touch-target-min);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.mobile-menu-button__bar {
  width: 24px;
  height: 3px;
  background-color: rgb(55 65 81);
  background-color: var(--color-gray-700);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
}

/* Hamburger animation */

.mobile-menu-button--active .mobile-menu-button__bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button--active .mobile-menu-button__bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button--active .mobile-menu-button__bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  transition: all var(--transition-base);
  z-index: 1040;
  z-index: var(--z-index-modal-backdrop);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu panel */

.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #ffffff;
  background-color: var(--color-white);
  transform: translateX(100%);
  transition: transform 300ms ease;
  transition: transform var(--transition-base);
  overflow-y: auto;
  z-index: 1050;
  z-index: var(--z-index-modal);
}

.mobile-menu--open .mobile-menu__panel {
  transform: translateX(0);
}

/* Mobile menu content */

.mobile-menu__content {
  padding: 1.5rem;
  padding: var(--space-6);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--space-2);
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.mobile-menu__link:hover {
  background-color: rgb(249 250 251);
  background-color: var(--color-gray-50);
  color: #585878;
  color: var(--color-primary);
}

.mobile-menu__link--active {
  color: #585878;
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

/* ==========================================================================
   Responsive Behavior
   ========================================================================== */

/* Tablet and below */

@media (max-width: 768px) {
  .navigation {
    margin: 0.5rem;
    margin: var(--space-2);
    padding: 0.5rem 0.75rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .navigation__links {
    display: none;
  }
  
  .mobile-menu-button {
    display: flex;
  }
}

/* Medium screens - special handling */

@media (min-width: 769px) and (max-width: 1024px) {
  .navigation__links {
    gap: 0.25rem;
    gap: var(--space-1);
  }
  
  .navigation__link {
    padding: 0.5rem 0.75rem;
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }
}

/* Large screens */

@media (min-width: 1025px) {
  .navigation__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, auto));
    justify-content: end;
  }
}

/* Focus trap for mobile menu */

.mobile-menu--open {
  overflow: hidden;
}

/* Prevent body scroll when mobile menu is open */

body.mobile-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
  .navigation {
    background-color: #ffffff;
    background-color: var(--color-white);
    border: 2px solid #000000;
    border: 2px solid var(--color-black);
  }
  
  .navigation__link:hover,
  .navigation__link:focus-visible {
    background-color: #000000;
    background-color: var(--color-black);
    color: #ffffff;
    color: var(--color-white);
  }
  
  .mobile-menu__panel {
    border-left: 2px solid #000000;
    border-left: 2px solid var(--color-black);
  }
}

/* @import 'components/_footer.css'; */

/* ==========================================================================
   Buttons Component
   Button styles, variants, states, and sizes
   ========================================================================== */

/* ==========================================================================
   Base Button
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  padding: var(--space-2) var(--space-4);
  font-family: inherit;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1;
  line-height: var(--line-height-none);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
  flex-shrink: 0;
}

/* Focus state - consistent across all buttons */

.btn:focus-visible {
  outline: 3px solid #585878;
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: 2px;
  outline-offset: var(--focus-outline-offset);
}

/* Disabled state */

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* ==========================================================================
   Button Variants
   ========================================================================== */

/* Primary Button */

.btn--primary {
  background-color: #585878;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  border-color: #585878;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: #474761;
  background-color: var(--color-primary-dark);
  border-color: #474761;
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 88, 120, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(88, 88, 120, 0.2);
}

/* Primary Outline Button */

.btn--primary-outline {
  background-color: transparent;
  color: #585878;
  color: var(--color-primary);
  border-color: #585878;
  border-color: var(--color-primary);
}

.btn--primary-outline:hover {
  background-color: #585878;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--primary-outline:active {
  transform: translateY(0);
}

/* Secondary Button */

.btn--secondary {
  background-color: rgb(229 231 235);
  background-color: var(--color-gray-200);
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  border-color: rgb(229 231 235);
  border-color: var(--color-gray-200);
}

.btn--secondary:hover {
  background-color: rgb(209 213 219);
  background-color: var(--color-gray-300);
  border-color: rgb(209 213 219);
  border-color: var(--color-gray-300);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0);
}

/* Secondary Outline Button */

.btn--secondary-outline {
  background-color: transparent;
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  border-color: rgb(156 163 175);
  border-color: var(--color-gray-400);
}

.btn--secondary-outline:hover {
  background-color: rgb(243 244 246);
  background-color: var(--color-gray-100);
  border-color: rgb(107 114 128);
  border-color: var(--color-gray-500);
  transform: translateY(-1px);
}

.btn--secondary-outline:active {
  transform: translateY(0);
}

/* Ghost Button */

.btn--ghost {
  background-color: transparent;
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: rgb(243 244 246);
  background-color: var(--color-gray-100);
  color: #585878;
  color: var(--color-primary);
}

.btn--ghost:active {
  background-color: rgb(229 231 235);
  background-color: var(--color-gray-200);
}

/* Danger Button */

.btn--danger {
  background-color: rgb(185 28 28);
  background-color: var(--color-error);
  color: #ffffff;
  color: var(--color-white);
  border-color: rgb(185 28 28);
  border-color: var(--color-error);
}

.btn--danger:hover {
  background-color: rgb(153, 27, 27); /* Darker red */
  border-color: rgb(153, 27, 27);
  transform: translateY(-1px);
}

.btn--danger:active {
  transform: translateY(0);
}

/* Success Button */

.btn--success {
  background-color: rgb(16 185 129);
  background-color: var(--color-success);
  color: #ffffff;
  color: var(--color-white);
  border-color: rgb(16 185 129);
  border-color: var(--color-success);
}

.btn--success:hover {
  background-color: rgb(5, 150, 105); /* Darker green */
  border-color: rgb(5, 150, 105);
  transform: translateY(-1px);
}

.btn--success:active {
  transform: translateY(0);
}

/* ==========================================================================
   Button Sizes
   ========================================================================== */

/* Small Button */

.btn--small {
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  min-height: 44px; /* WCAG 2.5.5 Target Size compliance */
}

/* Large Button */

.btn--large {
  padding: 1rem 2rem;
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  min-height: 52px;
}

/* Extra Large Button */

.btn--xl {
  padding: 1.25rem 2.5rem;
  padding: var(--space-5) var(--space-10);
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  min-height: 60px;
}

/* ==========================================================================
   Button States
   ========================================================================== */

/* Loading State */

.btn--loading {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  border-top-color: transparent;
  animation: btn-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Button Modifiers
   ========================================================================== */

/* Full Width */

.btn--full-width {
  width: 100%;
}

/* Icon Button */

.btn--icon-only {
  padding: 0.5rem;
  padding: var(--space-2);
  aspect-ratio: 1;
}

.btn--icon-only.btn--small {
  padding: 0.25rem;
  padding: var(--space-1);
}

.btn--icon-only.btn--large {
  padding: 0.75rem;
  padding: var(--space-3);
}

/* Rounded Button */

.btn--rounded {
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* Square Button */

.btn--square {
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
}

/* ==========================================================================
   Button Icons
   ========================================================================== */

.btn__icon {
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}

.btn--small .btn__icon {
  width: 1em;
  height: 1em;
}

.btn--large .btn__icon {
  width: 1.25em;
  height: 1.25em;
}

/* Icon positioning */

.btn__icon--left {
  margin-right: 0.5rem;
  margin-right: var(--space-2);
  margin-left: calc(0.5rem * -0.5);
  margin-left: calc(var(--space-2) * -0.5);
}

.btn__icon--right {
  margin-left: 0.5rem;
  margin-left: var(--space-2);
  margin-right: calc(0.5rem * -0.5);
  margin-right: calc(var(--space-2) * -0.5);
}

/* ==========================================================================
   Button Groups
   ========================================================================== */

.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  gap: var(--space-2);
}

.btn-group--vertical {
  flex-direction: column;
}

/* Connected buttons */

.btn-group--connected {
  gap: 0;
}

.btn-group--connected .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
  border-left-width: 0;
}

.btn-group--connected .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group--connected .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0;
}

/* ==========================================================================
   Legacy Class Names (for backward compatibility)
   These will be removed in Phase 2 of refactoring
   ========================================================================== */

.btn-primary {
  @extend .btn;
  @extend .btn--primary;
}

.btn-primary-large {
  @extend .btn;
  @extend .btn--primary;
  @extend .btn--large;
}

.btn-primary-outline {
  @extend .btn;
  @extend .btn--primary-outline;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
  /* Stack button groups on mobile */
  .btn-group--responsive {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group--responsive .btn {
    width: 100%;
  }
  
  /* Adjust padding for touch */
  .btn {
    padding: 0.75rem 1rem;
    padding: var(--space-3) var(--space-4);
  }
  
  .btn--small {
    padding: 0.5rem 0.75rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .btn--large {
    padding: 1rem 1.5rem;
    padding: var(--space-4) var(--space-6);
  }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .btn--primary {
    background-color: #000000;
    background-color: var(--color-black);
    color: #ffffff;
    color: var(--color-white);
    border-color: #ffffff;
    border-color: var(--color-white);
  }
  
  .btn--primary:hover {
    background-color: #ffffff;
    background-color: var(--color-white);
    color: #000000;
    color: var(--color-black);
    border-color: #000000;
    border-color: var(--color-black);
  }
  
  .btn:focus-visible {
    outline: 4px solid yellow;
    outline-offset: 2px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid currentColor;
  }
}

/* ==========================================================================
   Forms Component
   Form elements, inputs, validation states, and accessibility
   ========================================================================== */

/* ==========================================================================
   Form Container
   ========================================================================== */

.form {
  max-width: 768px;
  max-width: var(--container-md);
  margin: 0 auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  gap: var(--space-8);
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

/* Single column on mobile */

@media (max-width: 768px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   Form Groups
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

.form-group--inline {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  gap: var(--space-4);
}

/* ==========================================================================
   Labels
   ========================================================================== */

.form-label {
  color: rgb(55 65 81);
  color: var(--color-gray-700);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.form-label--required::after {
  content: " *";
  color: rgb(185 28 28);
  color: var(--color-error);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   Input Fields
   ========================================================================== */

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  background-color: #ffffff;
  background-color: var(--color-white);
  border: 1px solid rgb(209 213 219);
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-family: inherit;
  color: rgb(17 24 39);
  color: var(--color-gray-900);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

/* Focus states */

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #585878;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(88, 88, 120, 0.1);
}

/* Hover states */

.form-input:hover:not(:focus),
.form-textarea:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: rgb(156 163 175);
  border-color: var(--color-gray-400);
}

/* Placeholder styling */

.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: rgb(107 114 128);
  color: var(--color-gray-500);
  opacity: 1;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgb(107 114 128);
  color: var(--color-gray-500);
  opacity: 1;
}

/* Prevent zoom on iOS */

@media (max-width: 768px) {
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    padding: 0.75rem;
    padding: var(--space-3);
  }
}

/* ==========================================================================
   Textarea Specific
   ========================================================================== */

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.625;
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   Select Specific
   ========================================================================== */

.form-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374151' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-position: right var(--space-3) center;
  background-size: 12px;
  padding-right: 2.5rem;
  padding-right: var(--space-10);
}

/* ==========================================================================
   Checkboxes and Radios
   ========================================================================== */

.form-checkbox,
.form-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.form-checkbox__input,
.form-radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__control,
.form-radio__control {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  /* WCAG 2.5.5 Target Size compliance - larger clickable area with padding */
  padding: 12px;
  border: 2px solid rgb(156 163 175);
  border: 2px solid var(--color-gray-400);
  background-color: #ffffff;
  background-color: var(--color-white);
  margin-right: 0.75rem;
  margin-right: var(--space-3);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.form-checkbox__control {
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
}

.form-radio__control {
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* Checked state */

.form-checkbox__input:checked + .form-checkbox__control,
.form-radio__input:checked + .form-radio__control {
  background-color: #585878;
  background-color: var(--color-primary);
  border-color: #585878;
  border-color: var(--color-primary);
}

/* Checkmark for checkbox */

.form-checkbox__input:checked + .form-checkbox__control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Dot for radio */

.form-radio__input:checked + .form-radio__control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  background-color: var(--color-white);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
}

/* Focus state */

.form-checkbox__input:focus + .form-checkbox__control,
.form-radio__input:focus + .form-radio__control {
  box-shadow: 0 0 0 3px rgba(88, 88, 120, 0.1);
}

/* Label */

.form-checkbox__label,
.form-radio__label {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: rgb(55 65 81);
  color: var(--color-gray-700);
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.form-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.form-toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.form-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(209 213 219);
  background-color: var(--color-gray-300);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.form-toggle__slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  background-color: var(--color-white);
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.form-toggle__input:checked + .form-toggle__slider {
  background-color: #585878;
  background-color: var(--color-primary);
}

.form-toggle__input:checked + .form-toggle__slider::before {
  transform: translateX(24px);
}

.form-toggle__input:focus + .form-toggle__slider {
  box-shadow: 0 0 0 3px rgba(88, 88, 120, 0.1);
}

.form-toggle__input:disabled + .form-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Form Validation States
   ========================================================================== */

/* Error state */

.form-group--error .form-input,
.form-group--error .form-textarea,
.form-group--error .form-select {
  border-color: rgb(185 28 28);
  border-color: var(--color-error);
}

.form-group--error .form-input:focus,
.form-group--error .form-textarea:focus,
.form-group--error .form-select:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group--error .form-label {
  color: rgb(185 28 28);
  color: var(--color-error);
}

/* Success state */

.form-group--success .form-input,
.form-group--success .form-textarea,
.form-group--success .form-select {
  border-color: rgb(16 185 129);
  border-color: var(--color-success);
}

.form-group--success .form-input:focus,
.form-group--success .form-textarea:focus,
.form-group--success .form-select:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   Form Messages
   ========================================================================== */

.form-message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
  margin-top: var(--space-1);
  display: none;
}

.form-message--show {
  display: block;
}

.form-message--error {
  color: rgb(185 28 28);
  color: var(--color-error);
}

.form-message--success {
  color: rgb(16 185 129);
  color: var(--color-success);
}

.form-message--help {
  color: rgb(75 85 99);
  color: var(--color-gray-600);
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.75rem 2rem;
  padding: var(--space-3) var(--space-8);
  background-color: #585878;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  font-size: var(--font-size-base);
  border: none;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 150ms ease;
  transition: all var(--transition-fast);
  min-height: 44px;
  min-height: var(--touch-target-min);
}

.form-submit:hover {
  background-color: #474761;
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(88, 88, 120, 0.3);
}

.form-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(88, 88, 120, 0.2);
}

.form-submit:focus-visible {
  outline: 3px solid #ffffff;
  outline: var(--focus-outline-width) solid var(--color-white);
  outline-offset: 2px;
  outline-offset: var(--focus-outline-offset);
  box-shadow: 0 0 0 6px rgba(88, 88, 120, 0.4);
}

.form-submit:disabled,
.form-submit[aria-busy="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-submit--full-width {
  width: 100%;
}

/* Icon in button */

.form-submit__icon {
  width: 18px;
  height: 18px;
}

/* Loading state */

.form-submit[aria-busy="true"] .form-submit__icon {
  animation: spin 1s linear infinite;
}

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

/* Mobile adjustments */

@media (max-width: 768px) {
  .form-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    padding: var(--space-3) var(--space-6);
  }
}

/* ==========================================================================
   Form Layout Utilities
   ========================================================================== */

.form__actions {
  display: flex;
  gap: 1rem;
  gap: var(--space-4);
  margin-top: 2rem;
  margin-top: var(--space-8);
}

.form__actions--right {
  justify-content: flex-end;
}

.form__actions--center {
  justify-content: center;
}

.form__actions--space-between {
  justify-content: space-between;
}

/* Stack actions on mobile */

@media (max-width: 640px) {
  .form__actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

/* High contrast mode */

@media (prefers-contrast: high) {
  .form-input,
  .form-textarea,
  .form-select {
    background-color: #ffffff;
    background-color: var(--color-white);
    color: #000000;
    color: var(--color-black);
    border: 2px solid #000000;
    border: 2px solid var(--color-black);
  }
  
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: 4px solid yellow;
    outline-offset: 2px;
    background-color: #000000;
    background-color: var(--color-black);
    color: #ffffff;
    color: var(--color-white);
  }
  
  .form-group--error .form-input,
  .form-group--error .form-textarea,
  .form-group--error .form-select {
    border-color: red;
    background-color: #ffffff;
    background-color: var(--color-white);
  }
}

/* Screen reader only text */

.form-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* @import 'components/_cards.css'; */

/* @import 'components/_modals.css'; */

/* @import 'components/_cookie-consent.css'; */

/* ==========================================================================
   Navigation Component
   Header navigation, mobile menu, and language switcher
   ========================================================================== */

/* ==========================================================================
   Main Navigation Container
   ========================================================================== */

.navigation {
  position: sticky;
  top: var(--space-4);
  z-index: var(--z-index-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  margin: var(--space-4);
  padding: var(--space-3) var(--space-4);
  transition: all var(--transition-base);
}

/* Reduced backdrop blur for performance */
@media (prefers-reduced-motion: reduce) {
  .navigation {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Navigation inner container */
.navigation__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.navigation__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.navigation__logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

/* Smaller logo on very small screens */
@media (max-width: 320px) {
  .navigation__logo {
    height: 2rem;
  }
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */

.navigation__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: flex-end;
}

.navigation__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  min-height: var(--touch-target-min);
}

.navigation__link:hover {
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

.navigation__link:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
  background-color: rgba(88, 88, 120, 0.1);
}

/* Active link state */
.navigation__link--active,
.navigation__link[aria-current="page"] {
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
  position: relative;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: var(--touch-target-min);
}

.language-switcher__button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.language-switcher__button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

/* Language dropdown menu */
.language-switcher__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 150px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: var(--z-index-dropdown);
}

.language-switcher__menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: var(--touch-target-min);
}

.language-switcher__link:hover {
  background-color: var(--color-gray-50);
  color: var(--color-primary);
}

.language-switcher__link[aria-current="true"] {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Language code badges */
.language-code {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-base);
  text-transform: uppercase;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
}

.mobile-menu-button__bar {
  width: 24px;
  height: 3px;
  background-color: var(--color-gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* Hamburger animation */
.mobile-menu-button--active .mobile-menu-button__bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button--active .mobile-menu-button__bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button--active .mobile-menu-button__bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-index-modal-backdrop);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu panel */
.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--color-white);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  z-index: var(--z-index-modal);
}

.mobile-menu--open .mobile-menu__panel {
  transform: translateX(0);
}

/* Mobile menu content */
.mobile-menu__content {
  padding: var(--space-6);
}

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

.mobile-menu__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  min-height: var(--touch-target-min);
}

.mobile-menu__link:hover {
  background-color: var(--color-gray-50);
  color: var(--color-primary);
}

.mobile-menu__link--active {
  color: var(--color-primary);
  background-color: rgba(88, 88, 120, 0.1);
}

/* ==========================================================================
   Responsive Behavior
   ========================================================================== */

/* Tablet and below */
@media (max-width: 768px) {
  .navigation {
    margin: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }
  
  .navigation__links {
    display: none;
  }
  
  .mobile-menu-button {
    display: flex;
  }
}

/* Medium screens - special handling */
@media (min-width: 769px) and (max-width: 1024px) {
  .navigation__links {
    gap: var(--space-1);
  }
  
  .navigation__link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }
}

/* Large screens */
@media (min-width: 1025px) {
  .navigation__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, auto));
    justify-content: end;
  }
}

/* Focus trap for mobile menu */
.mobile-menu--open {
  overflow: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Enhanced Navigation Styles (replacing inline styles)
   ========================================================================== */

/* Fixed header with glassmorphism effect */
nav#main-nav.main-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background-color: rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  height: 80px !important;
  display: block !important;
  visibility: visible !important;
  margin: 0 16px 0 16px !important;
  border-radius: 0 0 24px 24px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.main-nav__container {
  width: 100%;
  height: 100%;
  padding: 12px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop navigation links grid */
.nav-links {
  display: grid !important;
  grid-template-columns: repeat(6, auto) !important;
  gap: 2px !important;
  justify-content: end !important;
  align-items: center !important;
  overflow: visible !important;
  min-width: 600px !important;
}

/* Enhanced navigation link with glassmorphism hover effects */
.nav-link--enhanced {
  display: inline-block;
  padding: 8px 12px;
  color: #585878;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link--enhanced:hover {
  border: 1px solid rgba(88, 88, 120, 0.4);
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(88, 88, 120, 0.2);
}

.nav-link--enhanced:visited {
  color: #585878;
}

/* Language switcher enhanced button */
.language-switcher__button--enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #585878;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  box-shadow: none;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.language-switcher__button--enhanced:hover {
  border: 1px solid rgba(88, 88, 120, 0.4);
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(88, 88, 120, 0.2);
}

/* Language dropdown with enhanced glassmorphism */
.language-menu--enhanced {
  position: fixed !important;
  top: 82px !important;
  right: 16px !important;
  z-index: 999999 !important;
  width: min(140px, 100%) !important;
  min-width: min(140px, 100%) !important;
  max-width: 100% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(88, 88, 120, 0.3) !important;
  overflow: visible !important;
  max-height: none !important;
  padding: 8px !important;
  flex-direction: column !important;
  /* Default hidden state */
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hidden state (explicit) */
.language-menu--enhanced.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Visible state when not hidden */
.language-menu--enhanced:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Language menu links with enhanced styling */
.language-link--enhanced {
  display: block;
  padding: 8px 12px !important;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  outline: none;
  box-shadow: none;
  margin: 1px;
  white-space: nowrap;
  width: 100% !important;
  box-sizing: border-box !important;
}

.language-link--enhanced:hover,
.language-link--enhanced:focus {
  border: 1px solid rgba(88, 88, 120, 0.4);
  background-color: rgba(255, 255, 255, 0.5);
  color: #585878;
}

/* Mobile menu button styling */
.mobile-menu-btn--enhanced {
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none; /* Hidden on desktop, shown on mobile via media queries */
}

.mobile-menu-btn__hamburger {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-btn__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #585878;
  transition: all 0.3s;
}

/* Arrow rotation animation */
.language-arrow {
  transition: transform 0.2s;
}

.language-arrow--rotated {
  transform: rotate(180deg);
}

/* ==========================================================================
   Responsive Navigation Overrides
   ========================================================================== */

@media (max-width: 768px) {
  .main-nav__container {
    padding: 8px 16px;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .mobile-menu-btn--enhanced {
    display: block;
  }
}

/* Hide desktop navigation on smaller screens */
@media (max-width: 1023px) {
  .nav-links {
    display: none !important;
  }
}

/* Show navigation on larger screens */
@media (min-width: 1024px) {
  .nav-links {
    display: grid !important;
  }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
  .navigation {
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
  }
  
  .navigation__link:hover,
  .navigation__link:focus-visible {
    background-color: var(--color-black);
    color: var(--color-white);
  }
  
  .mobile-menu__panel {
    border-left: 2px solid var(--color-black);
  }
  
  .main-nav {
    background-color: var(--color-white) !important;
    border: 2px solid var(--color-black) !important;
  }
  
  .nav-link--enhanced:hover {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
  }
}

/* ==========================================================================
   Pages
   Page-specific styles
   ========================================================================== */

/* @import 'pages/_home.css'; */

/* @import 'pages/_blog.css'; */

/* @import 'pages/_training.css'; */

/* ==========================================================================
   Vendor
   Third party styles, overrides
   ========================================================================== */

/* @import 'vendor/_prose.css'; */

/* ==========================================================================
   Utilities
   Helper classes with ability to override anything
   ========================================================================== */

/* ==========================================================================
   Spacing Utilities
   Margin and padding utilities following 4px base unit
   ========================================================================== */

/* ==========================================================================
   Margin Utilities
   ========================================================================== */

.m-0 { margin: 0; }

.m-1 { margin: 0.25rem; margin: var(--space-1); }

.m-2 { margin: 0.5rem; margin: var(--space-2); }

.m-3 { margin: 0.75rem; margin: var(--space-3); }

.m-4 { margin: 1rem; margin: var(--space-4); }

.m-5 { margin: 1.25rem; margin: var(--space-5); }

.m-6 { margin: 1.5rem; margin: var(--space-6); }

.m-8 { margin: 2rem; margin: var(--space-8); }

.m-10 { margin: 2.5rem; margin: var(--space-10); }

.m-12 { margin: 3rem; margin: var(--space-12); }

.m-16 { margin: 4rem; margin: var(--space-16); }

.m-20 { margin: 5rem; margin: var(--space-20); }

/* Margin X-axis */

.mx-0 { margin-left: 0; margin-right: 0; }

.mx-1 { margin-left: 0.25rem; margin-left: var(--space-1); margin-right: 0.25rem; margin-right: var(--space-1); }

.mx-2 { margin-left: 0.5rem; margin-left: var(--space-2); margin-right: 0.5rem; margin-right: var(--space-2); }

.mx-3 { margin-left: 0.75rem; margin-left: var(--space-3); margin-right: 0.75rem; margin-right: var(--space-3); }

.mx-4 { margin-left: 1rem; margin-left: var(--space-4); margin-right: 1rem; margin-right: var(--space-4); }

.mx-6 { margin-left: 1.5rem; margin-left: var(--space-6); margin-right: 1.5rem; margin-right: var(--space-6); }

.mx-8 { margin-left: 2rem; margin-left: var(--space-8); margin-right: 2rem; margin-right: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin Y-axis */

.my-0 { margin-top: 0; margin-bottom: 0; }

.my-1 { margin-top: 0.25rem; margin-top: var(--space-1); margin-bottom: 0.25rem; margin-bottom: var(--space-1); }

.my-2 { margin-top: 0.5rem; margin-top: var(--space-2); margin-bottom: 0.5rem; margin-bottom: var(--space-2); }

.my-3 { margin-top: 0.75rem; margin-top: var(--space-3); margin-bottom: 0.75rem; margin-bottom: var(--space-3); }

.my-4 { margin-top: 1rem; margin-top: var(--space-4); margin-bottom: 1rem; margin-bottom: var(--space-4); }

.my-6 { margin-top: 1.5rem; margin-top: var(--space-6); margin-bottom: 1.5rem; margin-bottom: var(--space-6); }

.my-8 { margin-top: 2rem; margin-top: var(--space-8); margin-bottom: 2rem; margin-bottom: var(--space-8); }

.my-12 { margin-top: 3rem; margin-top: var(--space-12); margin-bottom: 3rem; margin-bottom: var(--space-12); }

/* Margin Top */

.mt-0 { margin-top: 0; }

.mt-1 { margin-top: 0.25rem; margin-top: var(--space-1); }

.mt-2 { margin-top: 0.5rem; margin-top: var(--space-2); }

.mt-3 { margin-top: 0.75rem; margin-top: var(--space-3); }

.mt-4 { margin-top: 1rem; margin-top: var(--space-4); }

.mt-6 { margin-top: 1.5rem; margin-top: var(--space-6); }

.mt-8 { margin-top: 2rem; margin-top: var(--space-8); }

.mt-10 { margin-top: 2.5rem; margin-top: var(--space-10); }

.mt-12 { margin-top: 3rem; margin-top: var(--space-12); }

.mt-16 { margin-top: 4rem; margin-top: var(--space-16); }

.mt-20 { margin-top: 5rem; margin-top: var(--space-20); }

/* Margin Bottom */

.mb-0 { margin-bottom: 0; }

.mb-1 { margin-bottom: 0.25rem; margin-bottom: var(--space-1); }

.mb-2 { margin-bottom: 0.5rem; margin-bottom: var(--space-2); }

.mb-3 { margin-bottom: 0.75rem; margin-bottom: var(--space-3); }

.mb-4 { margin-bottom: 1rem; margin-bottom: var(--space-4); }

.mb-6 { margin-bottom: 1.5rem; margin-bottom: var(--space-6); }

.mb-8 { margin-bottom: 2rem; margin-bottom: var(--space-8); }

.mb-12 { margin-bottom: 3rem; margin-bottom: var(--space-12); }

/* Margin Left */

.ml-0 { margin-left: 0; }

.ml-1 { margin-left: 0.25rem; margin-left: var(--space-1); }

.ml-2 { margin-left: 0.5rem; margin-left: var(--space-2); }

.ml-3 { margin-left: 0.75rem; margin-left: var(--space-3); }

.ml-4 { margin-left: 1rem; margin-left: var(--space-4); }

.ml-6 { margin-left: 1.5rem; margin-left: var(--space-6); }

.ml-auto { margin-left: auto; }

/* Margin Right */

.mr-0 { margin-right: 0; }

.mr-1 { margin-right: 0.25rem; margin-right: var(--space-1); }

.mr-2 { margin-right: 0.5rem; margin-right: var(--space-2); }

.mr-3 { margin-right: 0.75rem; margin-right: var(--space-3); }

.mr-4 { margin-right: 1rem; margin-right: var(--space-4); }

.mr-6 { margin-right: 1.5rem; margin-right: var(--space-6); }

.mr-auto { margin-right: auto; }

/* ==========================================================================
   Padding Utilities
   ========================================================================== */

.p-0 { padding: 0; }

.p-1 { padding: 0.25rem; padding: var(--space-1); }

.p-2 { padding: 0.5rem; padding: var(--space-2); }

.p-3 { padding: 0.75rem; padding: var(--space-3); }

.p-4 { padding: 1rem; padding: var(--space-4); }

.p-6 { padding: 1.5rem; padding: var(--space-6); }

.p-8 { padding: 2rem; padding: var(--space-8); }

.p-12 { padding: 3rem; padding: var(--space-12); }

.p-16 { padding: 4rem; padding: var(--space-16); }

/* Padding X-axis */

.px-0 { padding-left: 0; padding-right: 0; }

.px-1 { padding-left: 0.25rem; padding-left: var(--space-1); padding-right: 0.25rem; padding-right: var(--space-1); }

.px-2 { padding-left: 0.5rem; padding-left: var(--space-2); padding-right: 0.5rem; padding-right: var(--space-2); }

.px-3 { padding-left: 0.75rem; padding-left: var(--space-3); padding-right: 0.75rem; padding-right: var(--space-3); }

.px-4 { padding-left: 1rem; padding-left: var(--space-4); padding-right: 1rem; padding-right: var(--space-4); }

.px-6 { padding-left: 1.5rem; padding-left: var(--space-6); padding-right: 1.5rem; padding-right: var(--space-6); }

.px-8 { padding-left: 2rem; padding-left: var(--space-8); padding-right: 2rem; padding-right: var(--space-8); }

/* Padding Y-axis */

.py-0 { padding-top: 0; padding-bottom: 0; }

.py-1 { padding-top: 0.25rem; padding-top: var(--space-1); padding-bottom: 0.25rem; padding-bottom: var(--space-1); }

.py-2 { padding-top: 0.5rem; padding-top: var(--space-2); padding-bottom: 0.5rem; padding-bottom: var(--space-2); }

.py-3 { padding-top: 0.75rem; padding-top: var(--space-3); padding-bottom: 0.75rem; padding-bottom: var(--space-3); }

.py-4 { padding-top: 1rem; padding-top: var(--space-4); padding-bottom: 1rem; padding-bottom: var(--space-4); }

.py-8 { padding-top: 2rem; padding-top: var(--space-8); padding-bottom: 2rem; padding-bottom: var(--space-8); }

.py-12 { padding-top: 3rem; padding-top: var(--space-12); padding-bottom: 3rem; padding-bottom: var(--space-12); }

.py-16 { padding-top: 4rem; padding-top: var(--space-16); padding-bottom: 4rem; padding-bottom: var(--space-16); }

/* Padding Top */

.pt-0 { padding-top: 0; }

.pt-1 { padding-top: 0.25rem; padding-top: var(--space-1); }

.pt-2 { padding-top: 0.5rem; padding-top: var(--space-2); }

.pt-3 { padding-top: 0.75rem; padding-top: var(--space-3); }

.pt-4 { padding-top: 1rem; padding-top: var(--space-4); }

.pt-6 { padding-top: 1.5rem; padding-top: var(--space-6); }

.pt-8 { padding-top: 2rem; padding-top: var(--space-8); }

.pt-10 { padding-top: 2.5rem; padding-top: var(--space-10); }

.pt-12 { padding-top: 3rem; padding-top: var(--space-12); }

.pt-16 { padding-top: 4rem; padding-top: var(--space-16); }

.pt-20 { padding-top: 5rem; padding-top: var(--space-20); }

/* Padding Bottom */

.pb-0 { padding-bottom: 0; }

.pb-1 { padding-bottom: 0.25rem; padding-bottom: var(--space-1); }

.pb-2 { padding-bottom: 0.5rem; padding-bottom: var(--space-2); }

.pb-3 { padding-bottom: 0.75rem; padding-bottom: var(--space-3); }

.pb-4 { padding-bottom: 1rem; padding-bottom: var(--space-4); }

.pb-6 { padding-bottom: 1.5rem; padding-bottom: var(--space-6); }

.pb-8 { padding-bottom: 2rem; padding-bottom: var(--space-8); }

.pb-12 { padding-bottom: 3rem; padding-bottom: var(--space-12); }

.pb-16 { padding-bottom: 4rem; padding-bottom: var(--space-16); }

.pb-20 { padding-bottom: 5rem; padding-bottom: var(--space-20); }

/* Padding Left */

.pl-0 { padding-left: 0; }

.pl-1 { padding-left: 0.25rem; padding-left: var(--space-1); }

.pl-2 { padding-left: 0.5rem; padding-left: var(--space-2); }

.pl-3 { padding-left: 0.75rem; padding-left: var(--space-3); }

.pl-4 { padding-left: 1rem; padding-left: var(--space-4); }

.pl-6 { padding-left: 1.5rem; padding-left: var(--space-6); }

.pl-8 { padding-left: 2rem; padding-left: var(--space-8); }

/* Padding Right */

.pr-0 { padding-right: 0; }

.pr-1 { padding-right: 0.25rem; padding-right: var(--space-1); }

.pr-2 { padding-right: 0.5rem; padding-right: var(--space-2); }

.pr-3 { padding-right: 0.75rem; padding-right: var(--space-3); }

.pr-4 { padding-right: 1rem; padding-right: var(--space-4); }

.pr-6 { padding-right: 1.5rem; padding-right: var(--space-6); }

.pr-8 { padding-right: 2rem; padding-right: var(--space-8); }

/* ==========================================================================
   Display Utilities
   Layout, positioning, and display utilities
   ========================================================================== */

/* ==========================================================================
   Display
   ========================================================================== */

.block { display: block; }

.inline-block { display: inline-block; }

.inline { display: inline; }

.flex { display: flex; }

.inline-flex { display: inline-flex; }

.grid { display: grid; }

.inline-grid { display: inline-grid; }

.hidden { display: none; }

/* ==========================================================================
   Flexbox Utilities
   ========================================================================== */

/* Flex Direction */

.flex-row { flex-direction: row; }

.flex-row-reverse { flex-direction: row-reverse; }

.flex-col { flex-direction: column; }

.flex-col-reverse { flex-direction: column-reverse; }

/* Flex Wrap */

.flex-wrap { flex-wrap: wrap; }

.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.flex-nowrap { flex-wrap: nowrap; }

/* Align Items */

.items-start { align-items: flex-start; }

.items-end { align-items: flex-end; }

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

.items-baseline { align-items: baseline; }

.items-stretch { align-items: stretch; }

/* Justify Content */

.justify-start { justify-content: flex-start; }

.justify-end { justify-content: flex-end; }

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

.justify-between { justify-content: space-between; }

.justify-around { justify-content: space-around; }

.justify-evenly { justify-content: space-evenly; }

/* Align Content */

.content-center { align-content: center; }

.content-start { align-content: flex-start; }

.content-end { align-content: flex-end; }

.content-between { align-content: space-between; }

.content-around { align-content: space-around; }

.content-evenly { align-content: space-evenly; }

/* Align Self */

.self-auto { align-self: auto; }

.self-start { align-self: flex-start; }

.self-end { align-self: flex-end; }

.self-center { align-self: center; }

.self-stretch { align-self: stretch; }

.self-baseline { align-self: baseline; }

/* Flex Grow & Shrink */

.flex-1 { flex: 1 1 0%; }

.flex-auto { flex: 1 1 auto; }

.flex-initial { flex: 0 1 auto; }

.flex-none { flex: none; }

.flex-grow { flex-grow: 1; }

.flex-grow-0 { flex-grow: 0; }

.flex-shrink { flex-shrink: 1; }

.flex-shrink-0 { flex-shrink: 0; }

/* ==========================================================================
   Grid Utilities
   ========================================================================== */

/* Grid Template Columns */

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Grid Template Rows */

.grid-rows-1 { grid-template-rows: repeat(1, minmax(0, 1fr)); }

.grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }

.grid-rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }

.grid-rows-4 { grid-template-rows: repeat(4, minmax(0, 1fr)); }

/* Grid Column Start */

.col-start-1 { grid-column-start: 1; }

.col-start-2 { grid-column-start: 2; }

.col-start-3 { grid-column-start: 3; }

.col-start-4 { grid-column-start: 4; }

/* Grid Column End */

.col-end-1 { grid-column-end: 1; }

.col-end-2 { grid-column-end: 2; }

.col-end-3 { grid-column-end: 3; }

.col-end-4 { grid-column-end: 4; }

/* Grid Column Span */

.col-span-1 { grid-column: span 1 / span 1; }

.col-span-2 { grid-column: span 2 / span 2; }

.col-span-3 { grid-column: span 3 / span 3; }

.col-span-4 { grid-column: span 4 / span 4; }

.col-span-full { grid-column: 1 / -1; }

/* Grid Row Span */

.row-span-1 { grid-row: span 1 / span 1; }

.row-span-2 { grid-row: span 2 / span 2; }

.row-span-3 { grid-row: span 3 / span 3; }

.row-span-4 { grid-row: span 4 / span 4; }

.row-span-full { grid-row: 1 / -1; }

/* Gap */

.gap-0 { gap: 0; }

.gap-1 { gap: 0.25rem; gap: var(--space-1); }

.gap-2 { gap: 0.5rem; gap: var(--space-2); }

.gap-3 { gap: 0.75rem; gap: var(--space-3); }

.gap-4 { gap: 1rem; gap: var(--space-4); }

.gap-6 { gap: 1.5rem; gap: var(--space-6); }

.gap-8 { gap: 2rem; gap: var(--space-8); }

.gap-x-0 { -moz-column-gap: 0; column-gap: 0; }

.gap-x-1 { -moz-column-gap: 0.25rem; column-gap: 0.25rem; -moz-column-gap: var(--space-1); column-gap: var(--space-1); }

.gap-x-2 { -moz-column-gap: 0.5rem; column-gap: 0.5rem; -moz-column-gap: var(--space-2); column-gap: var(--space-2); }

.gap-x-4 { -moz-column-gap: 1rem; column-gap: 1rem; -moz-column-gap: var(--space-4); column-gap: var(--space-4); }

.gap-x-6 { -moz-column-gap: 1.5rem; column-gap: 1.5rem; -moz-column-gap: var(--space-6); column-gap: var(--space-6); }

.gap-x-8 { -moz-column-gap: 2rem; column-gap: 2rem; -moz-column-gap: var(--space-8); column-gap: var(--space-8); }

.gap-y-0 { row-gap: 0; }

.gap-y-1 { row-gap: 0.25rem; row-gap: var(--space-1); }

.gap-y-2 { row-gap: 0.5rem; row-gap: var(--space-2); }

.gap-y-4 { row-gap: 1rem; row-gap: var(--space-4); }

.gap-y-6 { row-gap: 1.5rem; row-gap: var(--space-6); }

.gap-y-8 { row-gap: 2rem; row-gap: var(--space-8); }

/* ==========================================================================
   Position
   ========================================================================== */

.static { position: static; }

.fixed { position: fixed; }

.absolute { position: absolute; }

.relative { position: relative; }

.sticky { position: sticky; }

/* Top, Right, Bottom, Left */

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.inset-x-0 { left: 0; right: 0; }

.inset-y-0 { top: 0; bottom: 0; }

.top-0 { top: 0; }

.top-1 { top: 0.25rem; top: var(--space-1); }

.top-2 { top: 0.5rem; top: var(--space-2); }

.top-4 { top: 1rem; top: var(--space-4); }

.top-auto { top: auto; }

.right-0 { right: 0; }

.right-1 { right: 0.25rem; right: var(--space-1); }

.right-2 { right: 0.5rem; right: var(--space-2); }

.right-4 { right: 1rem; right: var(--space-4); }

.right-auto { right: auto; }

.bottom-0 { bottom: 0; }

.bottom-1 { bottom: 0.25rem; bottom: var(--space-1); }

.bottom-2 { bottom: 0.5rem; bottom: var(--space-2); }

.bottom-4 { bottom: 1rem; bottom: var(--space-4); }

.bottom-auto { bottom: auto; }

.left-0 { left: 0; }

.left-1 { left: 0.25rem; left: var(--space-1); }

.left-2 { left: 0.5rem; left: var(--space-2); }

.left-4 { left: 1rem; left: var(--space-4); }

.left-auto { left: auto; }

/* ==========================================================================
   Z-Index
   ========================================================================== */

.z-0 { z-index: 0; }

.z-10 { z-index: 10; }

.z-20 { z-index: 20; }

.z-30 { z-index: 30; }

.z-40 { z-index: 40; }

.z-50 { z-index: 50; }

.z-auto { z-index: auto; }

/* ==========================================================================
   Float
   ========================================================================== */

.float-left { float: left; }

.float-right { float: right; }

.float-none { float: none; }

/* ==========================================================================
   Clear
   ========================================================================== */

.clear-left { clear: left; }

.clear-right { clear: right; }

.clear-both { clear: both; }

.clear-none { clear: none; }

/* ==========================================================================
   Overflow
   ========================================================================== */

.overflow-auto { overflow: auto; }

.overflow-hidden { overflow: hidden; }

.overflow-visible { overflow: visible; }

.overflow-scroll { overflow: scroll; }

.overflow-x-auto { overflow-x: auto; }

.overflow-x-hidden { overflow-x: hidden; }

.overflow-x-visible { overflow-x: visible; }

.overflow-x-scroll { overflow-x: scroll; }

.overflow-y-auto { overflow-y: auto; }

.overflow-y-hidden { overflow-y: hidden; }

.overflow-y-visible { overflow-y: visible; }

.overflow-y-scroll { overflow-y: scroll; }

/* ==========================================================================
   Visibility
   ========================================================================== */

.visible { visibility: visible; }

.invisible { visibility: hidden; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Small screens and up */

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid { display: grid; }
  .sm\:hidden { display: none; }
  
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Medium screens and up */

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Large screens and up */

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:hidden { display: none; }
  
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  
  .lg\:justify-center { justify-content: center; }
}

/* ==========================================================================
   Helper Utilities
   Screen reader text, accessibility helpers, and common utilities
   ========================================================================== */

/* ==========================================================================
   Accessibility Helpers
   ========================================================================== */

/* Screen reader only text */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links for keyboard navigation */

.skip-links {
  position: absolute;
  z-index: 10000;
  z-index: var(--z-index-skip-link);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #585878;
  background: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  padding: 0.5rem 1rem;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  transition: all 300ms ease;
  transition: all var(--transition-base);
}

.skip-link:focus {
  left: 0.5rem;
  left: var(--space-2);
  top: 0.5rem;
  top: var(--space-2);
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #ffffff;
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
  z-index: calc(10000 + 1);
  z-index: calc(var(--z-index-skip-link) + 1);
}

/* ==========================================================================
   Color Utilities
   ========================================================================== */

/* Text Colors */

.text-white { color: #ffffff; color: var(--color-white); }

.text-black { color: #000000; color: var(--color-black); }

.text-gray-500 { color: rgb(107 114 128); color: var(--color-gray-500); }

.text-gray-600 { color: rgb(75 85 99); color: var(--color-gray-600); }

.text-gray-700 { color: rgb(55 65 81); color: var(--color-gray-700); }

.text-gray-800 { color: rgb(31 41 55); color: var(--color-gray-800); }

.text-gray-900 { color: rgb(17 24 39); color: var(--color-gray-900); }

.text-slate-300 { color: rgb(203 213 225); color: var(--color-slate-300); }

.text-slate-600 { color: rgb(100 116 139); color: var(--color-slate-500); }

.text-slate-700\/90 { color: rgba(51, 65, 85, 0.9); }

/* Brand colors */

.text-\[#585878\] { color: #585878; color: var(--color-primary); }

.text-primary { color: #585878; color: var(--color-primary); }

/* Error colors */

.text-red-500 { color: rgb(185 28 28); color: var(--color-error); }

.text-red-600 { color: rgb(185 28 28); color: var(--color-error); }

/* Background Colors */

.bg-white { background-color: #ffffff; background-color: var(--color-white); }

.bg-gray-50 { background-color: rgb(249 250 251); background-color: var(--color-gray-50); }

.bg-\[#585878\] { background-color: #585878; background-color: var(--color-primary); }

.bg-\[#525369\] { background-color: #525369; background-color: var(--color-primary-light); }

/* Background with opacity */

.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }

.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }

.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }

.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* ==========================================================================
   Size Utilities
   ========================================================================== */

/* Width */

.w-4 { width: 1rem; }

.w-20 { width: 5rem; }

.w-32 { width: 8rem; }

.w-40 { width: 10rem; }

.w-48 { width: 12rem; }

.w-120 { width: 30rem; }

.w-auto { width: auto; }

.w-full { width: 100%; }

.w-1\/3 { width: 33.333333%; }

.w-2\/3 { width: 66.666667%; }

/* Max width */

.max-w-lg { max-width: 32rem; }

.max-w-2xl { max-width: 42rem; }

.max-w-4xl { max-width: 1024px; max-width: var(--container-lg); }

.max-w-7xl { max-width: 1280px; max-width: var(--container-xl); }

/* Height */

.h-4 { height: 1rem; }

.h-10 { height: 2.5rem; }

.h-12 { height: 3rem; }

.h-20 { height: 5rem; }

.h-32 { height: 8rem; }

.h-40 { height: 10rem; }

.h-96 { height: 24rem; }

.h-px { height: 1px; }

.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }

/* ==========================================================================
   Border Utilities
   ========================================================================== */

.border { border-width: 1px; }

.border-t { border-top-width: 1px; }

.border-r { border-right-width: 1px; }

.border-b { border-bottom-width: 1px; }

.border-l { border-left-width: 1px; }

/* Border colors */

.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }

.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }

.border-\[\#585878\]\/30 { border-color: rgba(88, 88, 120, 0.3); }

/* Border radius */

.rounded-xl { border-radius: 0.75rem; border-radius: var(--radius-xl); }

.rounded-2xl { border-radius: 1rem; border-radius: var(--radius-2xl); }

.rounded-3xl { border-radius: 1.5rem; border-radius: var(--radius-3xl); }

.rounded-b-3xl { 
  border-bottom-right-radius: 1.5rem; 
  border-bottom-right-radius: var(--radius-3xl); 
  border-bottom-left-radius: 1.5rem; 
  border-bottom-left-radius: var(--radius-3xl); 
}

.rounded-full { border-radius: 9999px; border-radius: var(--radius-full); }

.first\:rounded-t-xl:first-child { 
  border-top-left-radius: 0.75rem; 
  border-top-left-radius: var(--radius-xl); 
  border-top-right-radius: 0.75rem; 
  border-top-right-radius: var(--radius-xl); 
}

.last\:rounded-b-xl:last-child { 
  border-bottom-left-radius: 0.75rem; 
  border-bottom-left-radius: var(--radius-xl); 
  border-bottom-right-radius: 0.75rem; 
  border-bottom-right-radius: var(--radius-xl); 
}

/* ==========================================================================
   Transform Utilities
   ========================================================================== */

.transform { 
  transform: translate(0, 0) 
             rotate(0) 
             skewX(0) 
             skewY(0) 
             scaleX(1) 
             scaleY(1); 
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) 
             rotate(var(--tw-rotate, 0)) 
             skewX(var(--tw-skew-x, 0)) 
             skewY(var(--tw-skew-y, 0)) 
             scaleX(var(--tw-scale-x, 1)) 
             scaleY(var(--tw-scale-y, 1)); 
}

.-translate-x-1\/2 { --tw-translate-x: -50%; }

.-translate-x-full { --tw-translate-x: -100%; }

.translate-x-full { --tw-translate-x: 100%; }

.-skew-x-12 { --tw-skew-x: -12deg; }

.scale-95 { --tw-scale-x: .95; --tw-scale-y: .95; }

.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }

/* ==========================================================================
   Gradient Utilities
   ========================================================================== */

.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-white\/60 { --tw-gradient-from: rgba(255, 255, 255, 0.6); --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.from-white\/10 { --tw-gradient-from: rgba(255, 255, 255, 0.1); --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.from-transparent { --tw-gradient-from: transparent; --tw-gradient-to: rgba(0, 0, 0, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.via-white\/40 { --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 255, 255, 0.4), var(--tw-gradient-to); }

.via-white\/10 { --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 255, 255, 0.1), var(--tw-gradient-to); }

.via-\[\#585878\]\/20 { --tw-gradient-to: rgba(88, 88, 120, 0); --tw-gradient-stops: var(--tw-gradient-from), rgba(88, 88, 120, 0.2), var(--tw-gradient-to); }

.to-white\/30 { --tw-gradient-to: rgba(255, 255, 255, 0.3); }

.to-transparent { --tw-gradient-to: transparent; }

/* ==========================================================================
   Object Fit
   ========================================================================== */

.object-contain { -o-object-fit: contain; object-fit: contain; }

.object-cover { -o-object-fit: cover; object-fit: cover; }

.object-fill { -o-object-fit: fill; object-fit: fill; }

.object-none { -o-object-fit: none; object-fit: none; }

.object-scale-down { -o-object-fit: scale-down; object-fit: scale-down; }

/* ==========================================================================
   Spacing Between Elements
   ========================================================================== */

.space-x-2 > :not([hidden]) ~ :not([hidden]) { 
  --tw-space-x-reverse: 0; 
  margin-right: calc(0.5rem * 0); 
  margin-right: calc(var(--space-2) * var(--tw-space-x-reverse)); 
  margin-left: calc(0.5rem * calc(1 - 0)); 
  margin-left: calc(var(--space-2) * calc(1 - var(--tw-space-x-reverse))); 
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) { 
  --tw-space-x-reverse: 0; 
  margin-right: calc(2rem * 0); 
  margin-right: calc(var(--space-8) * var(--tw-space-x-reverse)); 
  margin-left: calc(2rem * calc(1 - 0)); 
  margin-left: calc(var(--space-8) * calc(1 - var(--tw-space-x-reverse))); 
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) { 
  --tw-space-y-reverse: 0; 
  margin-top: calc(1rem * calc(1 - 0)); 
  margin-top: calc(var(--space-4) * calc(1 - var(--tw-space-y-reverse))); 
  margin-bottom: calc(1rem * 0); 
  margin-bottom: calc(var(--space-4) * var(--tw-space-y-reverse)); 
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) { 
  --tw-space-y-reverse: 0; 
  margin-top: calc(2rem * calc(1 - 0)); 
  margin-top: calc(var(--space-8) * calc(1 - var(--tw-space-y-reverse))); 
  margin-bottom: calc(2rem * 0); 
  margin-bottom: calc(var(--space-8) * var(--tw-space-y-reverse)); 
}

/* ==========================================================================
   Hover Utilities
   ========================================================================== */

.hover\:bg-\[\#525369\]:hover { 
  background-color: #525369; 
  background-color: var(--color-primary-light); 
}

/* ==========================================================================
   Misc Utilities
   ========================================================================== */

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cursor-pointer { cursor: pointer; }

.transition-all { transition: all 300ms ease; transition: all var(--transition-base); }

.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; transition-duration: var(--duration-fast); }

.duration-200 { transition-duration: 200ms; }

.duration-300 { transition-duration: 300ms; transition-duration: var(--duration-base); }

.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  bottom: var(--space-8);
  right: 2rem;
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background-color: #585878;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  border: none;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 300ms ease;
  transition: all var(--transition-base);
  z-index: 1030;
  z-index: var(--z-index-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top.in-footer {
  border: 2px solid #ffffff;
  border: 2px solid var(--color-white);
}

.back-to-top:hover {
  background-color: #474761;
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #ffffff;
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* ==========================================================================
   Temporary Imports
   These will be removed once all components are extracted
   ========================================================================== */

/* Import the old styles temporarily to maintain functionality */

/* Tailwind CSS Base - Modern Design System */

/* Universal CSS Reset */

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

/* Inter Font Face Declarations */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/Inter-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* Accessibility - Skip Navigation Links */

.skip-links {
    position: absolute;
    z-index: 10000;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #585878;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skip-link:focus {
    left: 6px;
    top: 6px;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    z-index: 10001;
}

/* Screen reader only text */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Blog Navigation - Line clamping utilities */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Base Reset */

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before, ::after {
    --tw-content: '';
}

html {
    margin: 0;
    padding: 0;
    height: auto;
    background-color: white;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
}

body {
    margin: 0;
    padding: 0;
    height: auto;
    background-color: white;
    line-height: inherit;
}

/* Clean approach: Default no underlines, explicit underlines for text links only */

/* Default: No underlines for all links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Explicit: Add underlines ONLY for genuine inline text links */
p a, 
li a,
.content a:not(.btn):not([class*="btn-"]):not(.no-underline),
.prose a:not(.btn):not([class*="btn-"]):not(.no-underline) {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

p a:hover,
li a:hover,
.content a:not(.btn):not([class*="btn-"]):not(.no-underline):hover,
.prose a:not(.btn):not([class*="btn-"]):not(.no-underline):hover {
    text-decoration: underline !important;
}

/* Reset button styles */

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
}

/* Default title styling with logo color */

h1, h2, h3, h4, h5, h6 {
    color: #585878; /* Updated primary color */
}

/* Keep footer titles white */

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #fff;
}

/* Utility Classes */

.fixed { position: fixed; }

.absolute { position: absolute; }

.relative { position: relative; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }

.left-0 { left: 0; }

.right-0 { right: 0; }

.z-10 { z-index: 10; }

.z-20 { z-index: 20; }

.z-50 { z-index: 50; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.mt-2 { margin-top: 0.5rem; }

.mb-1 { margin-bottom: 0.25rem; }

.mb-4 { margin-bottom: 1rem; }

.mb-6 { margin-bottom: 1.5rem; }

.mb-8 { margin-bottom: 2rem; }

.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.mb-16 { margin-bottom: 4rem; }

.mr-2 { margin-right: 0.5rem; }

.block { display: block; }

.flex { display: flex; }

.grid { display: grid; }

.hidden { display: none; }

.flex-grow { flex-grow: 1; }

.h-4 { height: 1rem; }

.h-12 { height: 3rem; }

.h-10 { height: 2.5rem; }

.h-20 { height: 5rem; }

.h-32 { height: 8rem; }

.h-40 { height: 10rem; }

.h-96 { height: 24rem; }

.h-px { height: 1px; }

.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }

/* ULTRA-AGGRESSIVE LOGO SIZE PROTECTION */

/* Target the logo with maximum CSS specificity */

header nav#main-nav div a img#main-logo,
header#header nav#main-nav div a img#main-logo,
#main-nav img#main-logo,
img#main-logo {
    height: 2.5rem !important;
    max-height: 2.5rem !important;
    min-height: 2.5rem !important;
    width: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Prevent logo container from shrinking the logo */

header nav#main-nav div a,
#main-nav div a {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: inline-block !important;
}

/* Fix navigation min-width constraint that causes scaling */

@media (max-width: 1200px) {
    .nav-links {
        min-width: auto !important;
        max-width: none !important;
        overflow: visible !important;
    }
}

/* Desktop screens - maintain logo size */

@media (min-width: 481px) {
    header nav#main-nav div a img#main-logo,
    #main-nav img#main-logo,
    img#main-logo {
        height: 2.5rem !important;
        max-height: 2.5rem !important;
        min-height: 2.5rem !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
}

/* Only allow shrinking on truly tiny screens */

@media (max-width: 320px) {
    header nav#main-nav div a img#main-logo,
    #main-nav img#main-logo,
    img#main-logo {
        height: 2rem !important;
        max-height: 2rem !important;
        min-height: 2rem !important;
    }
}

/* Ultra-aggressive navigation fix for iPad and larger screens */

@media screen and (min-width: 481px) {
    .nav-links > a,
    div.nav-links > a,
    .nav-links > div,
    div.nav-links > div {
        display: inline-block !important;
        margin-right: 8px !important;
    }
    
    .nav-links,
    div.nav-links {
        width: auto !important;
        height: auto !important;
        position: static !important;
        flex-direction: row !important;
    }
}

.w-4 { width: 1rem; }

.w-20 { width: 5rem; }

.w-auto { width: auto; }

.w-full { width: 100%; }

.w-32 { width: 8rem; }

.w-40 { width: 10rem; }

.w-48 { width: 12rem; }

.w-120 { width: 30rem; }

.w-1\/3 { width: 33.333333%; }

.w-2\/3 { width: 66.666667%; }

.max-w-lg { max-width: 32rem; }

.max-w-2xl { max-width: 42rem; }

.max-w-7xl { max-width: 80rem; }

.transform { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }

.-translate-x-1\/2 { --tw-translate-x: -50%; }

.-translate-x-full { --tw-translate-x: -100%; }

.translate-x-full { --tw-translate-x: 100%; }

.-skew-x-12 { --tw-skew-x: -12deg; }

.scale-95 { --tw-scale-x: .95; --tw-scale-y: .95; }

.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.flex-col { flex-direction: column; }

.items-start { align-items: flex-start; }

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

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

.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }

.gap-4 { gap: 1rem; }

.gap-6 { gap: 1.5rem; }

.gap-8 { gap: 2rem; }

.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }

.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.overflow-hidden { overflow: hidden; }

.rounded-xl { border-radius: 0.75rem; }

.rounded-2xl { border-radius: 1rem; }

.rounded-3xl { border-radius: 1.5rem; }

.rounded-b-3xl { border-bottom-right-radius: 1.5rem; border-bottom-left-radius: 1.5rem; }

.rounded-full { border-radius: 9999px; }

.first\:rounded-t-xl:first-child { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }

.last\:rounded-b-xl:last-child { border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }

.border { border-width: 1px; }

.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }

.border-white\/30 { border-color: rgb(255 255 255 / 0.3); }

.border-white\/40 { border-color: rgb(255 255 255 / 0.4); }

.border-\[\#585878\]\/30 { border-color: rgb(88 88 120 / 0.3); }

.border-\[\#585878\]\/30 { border-color: rgb(88 88 120 / 0.3); }

.bg-white { background-color: rgb(255 255 255); }

.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }

.bg-white\/30 { background-color: rgb(255 255 255 / 0.3); }

.bg-white\/50 { background-color: rgb(255 255 255 / 0.5); }

.bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }

.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }

.bg-\[\#585878\] { background-color: rgb(88 88 120); }

.bg-\[\#525369\] { background-color: rgb(82 83 105); }

.bg-gray-50 { background-color: rgb(249 250 251); }

.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-white\/60 { --tw-gradient-from: rgb(255 255 255 / 0.6); }

.from-white\/10 { --tw-gradient-from: rgb(255 255 255 / 0.1); }

.from-transparent { --tw-gradient-from: transparent; }

.via-white\/40 { --tw-gradient-via: rgb(255 255 255 / 0.4); }

.via-white\/10 { --tw-gradient-via: rgb(255 255 255 / 0.1); }

.via-\[\#585878\]\/20 { --tw-gradient-via: rgb(88 88 120 / 0.2); }

.to-white\/30 { --tw-gradient-to: rgb(255 255 255 / 0.3); }

.to-transparent { --tw-gradient-to: transparent; }

.object-contain { -o-object-fit: contain; object-fit: contain; }

.p-4 { padding: 1rem; }

.p-6 { padding: 1.5rem; }

.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-20 { padding-top: 5rem; }

.pt-10 { padding-top: 2.5rem; }

.pt-8 { padding-top: 2rem; }

.text-center { text-align: center; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.text-base { font-size: 1rem; line-height: 1.5rem; }

.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-light { font-weight: 300; }

.font-medium { font-weight: 500; }

.leading-tight { line-height: 1.25; }

.leading-relaxed { line-height: 1.625; }

.tracking-wide { letter-spacing: 0.025em; }

.text-white { color: rgb(255 255 255); }

.text-gray-500 { color: rgb(107 114 128); }

.text-gray-600 { color: rgb(75 85 99); }

.text-gray-700 { color: rgb(55 65 81); }

.text-slate-600 { color: rgb(71 85 105); }

.text-slate-700\/90 { color: rgb(51 65 85 / 0.9); }

.text-\[\#585878\] { color: rgb(88 88 120); }

.text-\[\#585878\] { color: rgb(88 88 120); }

.text-\[\#b9462B\] { color: rgb(185 70 43); }

.opacity-0 { opacity: 0; }

.opacity-100 { opacity: 1; }

.opacity-\[0\.05\] { opacity: 0.05; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

.shadow-black\/5 { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05); }

.shadow-black\/10 { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.1); }

.shadow-\[\#585878\]\/25 { box-shadow: 0 10px 15px -3px rgb(88 88 120 / 0.25), 0 4px 6px -4px rgb(88 88 120 / 0.25); }

.drop-shadow-sm { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05)); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }

.backdrop-blur-xl { backdrop-filter: blur(24px); }

.backdrop-blur-2xl { backdrop-filter: blur(40px); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.duration-200 { transition-duration: 200ms; }

.duration-300 { transition-duration: 300ms; }

.duration-700 { transition-duration: 700ms; }

.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.before\:absolute::before { position: absolute; }

.before\:inset-0::before { top: 0; right: 0; bottom: 0; left: 0; }

.before\:rounded-2xl::before { border-radius: 1rem; }

.before\:bg-gradient-to-br::before { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.before\:from-white\/10::before { --tw-gradient-from: rgb(255 255 255 / 0.1); }

.before\:to-transparent::before { --tw-gradient-to: transparent; }

.before\:pointer-events-none::before { pointer-events: none; }

.hover\:scale-100:hover { --tw-scale-x: 1; --tw-scale-y: 1; }

.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

.hover\:transform:hover { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }

.hover\:border-white\/40:hover { border-color: rgb(255 255 255 / 0.4); }

.hover\:bg-white\/30:hover { background-color: rgb(255 255 255 / 0.3); }

.hover\:bg-white\/50:hover { background-color: rgb(255 255 255 / 0.5); }

.hover\:bg-\[\#525369\]:hover { background-color: rgb(82 83 105); }

.bg-\[\#585878\] { background-color: rgb(88 88 120); }

.hover\:text-\[\#585878\]:hover { color: rgb(88 88 120); }

.hover\:text-\[\#585878\]:hover { color: rgb(88 88 120); }

.hover\:opacity-100:hover { opacity: 1; }

.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15); }

.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

.hover\:shadow-black\/10:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.1); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }

.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tw-ring-color); }

.focus\:ring-\[\#585878\]\/50:focus { --tw-ring-color: rgb(88 88 120 / 0.5); }

.focus\:ring-\[\#585878\]\/50:focus { --tw-ring-color: rgb(88 88 120 / 0.5); }

.disabled\:opacity-50:disabled { opacity: 0.5; }

.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

.group:hover .group-hover\:opacity-100 { opacity: 1; }

.group:hover .group-hover\:scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }

.group:hover .group-hover\:translate-x-full { --tw-translate-x: 100%; }

/* Media Queries */

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:p-8 { padding: 2rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Medium screens - ensure services section stays horizontal */

@media (min-width: 768px) {
    section#services .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }
    
    section#services .grid.grid-cols-1.md\:grid-cols-3 > a {
        flex: 1 !important;
        min-width: 200px !important;
        max-width: none !important;
        padding: 1.5rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    
    /* Ensure service card content fits properly */
    section#services .grid.grid-cols-1.md\:grid-cols-3 > a h3 {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    section#services .grid.grid-cols-1.md\:grid-cols-3 > a p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        flex-grow: 1 !important;
    }
    
    section#services .grid.grid-cols-1.md\:grid-cols-3 > a .btn-primary-large {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        margin-top: auto !important;
    }
    
    /* Fix navigation min-width constraint for medium screens */
    nav#main-nav .nav-links {
        min-width: auto !important;
        overflow: hidden !important;
    }
    
    /* CRITICAL: Prevent navigation container from causing logo scaling */
    nav#main-nav div {
        flex-shrink: 0 !important;
    }
    
    nav#main-nav div:first-child {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
    }
    
    /* Fix footer layout for medium screens - force 3-column layout */
    footer .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 2fr 1fr 1fr !important;
        display: grid !important;
        gap: 2rem !important;
        text-align: left !important;
        justify-items: start !important;
    }
    
    /* Ensure footer sections maintain proper alignment */
    footer .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 > div {
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Fix footer bottom section layout */
    footer .flex.flex-col.md\:flex-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Fix testimonials grid layout for medium screens */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 1.5rem !important;
        margin: 3rem 0 !important;
    }
    
    /* Ensure testimonial items maintain proper sizing */
    .testimonial-item {
        flex: 1 !important;
        min-width: 250px !important;
        max-width: none !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        display: grid !important;
        align-items: center !important;
    }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:justify-center { justify-content: center; }
}

/* iPad specific layout fixes - ensure horizontal layout for 1180x820 resolution */

@media (min-width: 1024px) and (max-width: 1366px) {
    #key-factors .grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

/* Force horizontal layout for tablet and desktop resolutions */

@media (min-width: 1000px) {
    section#key-factors aside.grid {
        grid-template-columns: repeat(5, minmax(200px, 1fr)) !important;
        display: grid !important;
        grid-auto-flow: row !important;
    }
    
    /* Ensure cards don't stack vertically */
    section#key-factors aside.grid > a {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 180px !important;
        max-width: 220px !important;
    }
    
    /* Fix hero section layout - maintain side-by-side for all screens 1000px+ */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        display: grid !important;
        gap: 2rem !important;
        align-items: center !important;
    }
    
    /* Responsive hero image sizing that scales properly */
    .w-120.h-96 {
        width: clamp(300px, 35vw, 450px) !important;
        height: clamp(240px, 28vw, 360px) !important;
        max-width: 450px !important;
        max-height: 360px !important;
    }
}

/* Enhanced desktop layout for larger screens */

@media (min-width: 1400px) {
    /* Larger gap for big screens */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        gap: 3rem !important;
    }
    
    /* Slightly larger image for very large screens but still controlled */
    .w-120.h-96 {
        width: clamp(300px, 30vw, 400px) !important;
        height: clamp(240px, 24vw, 320px) !important;
        max-width: 400px !important;
        max-height: 320px !important;
    }
    
    /* Fix services section (Training, Coaching, Consulting) layout for iPad */
    section#services .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 2rem !important;
        align-items: stretch !important;
    }
    
    /* Ensure service cards maintain proper sizing on iPad */
    section#services .grid.grid-cols-1.md\:grid-cols-3 > a {
        flex: 1 !important;
        min-width: 280px !important;
        max-width: none !important;
    }
    
    /* Fix resource grid (Events, Blog, Resources) layout for iPad */
    .resource-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 2rem !important;
        align-items: stretch !important;
        margin: 3rem 0 !important;
    }
    
    /* Ensure resource items maintain proper sizing on iPad */
    /* REMOVED - Conflicting with main resource-item styles
    .resource-item {
        flex: 1 !important;
        min-width: 280px !important;
        max-width: none !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
    }
    */
    
    /* Fix footer layout for iPad - force desktop 3-column layout */
    footer .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 2fr 1fr 1fr !important;
        display: grid !important;
        gap: 2rem !important;
        text-align: left !important;
        justify-items: start !important;
    }
    
    /* Ensure footer sections maintain proper alignment on iPad */
    footer .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 > div {
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Fix footer bottom section layout for iPad */
    footer .flex.flex-col.md\:flex-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Fix testimonials grid layout for iPad */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 1.5rem !important;
        margin: 3rem 0 !important;
    }
    
    /* Ensure testimonial items maintain proper sizing on iPad */
    .testimonial-item {
        flex: 1 !important;
        min-width: 280px !important;
        max-width: none !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 1.5rem !important;
    }
}

/* Mobile Navigation */

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

/* Footer Styles */

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

/* Override Tailwind classes for footer links */

footer a,
footer a.text-slate-300 {
    color: #fff !important;
}

footer a:hover,
footer a.text-slate-300:hover {
    color: #fff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: var(--color-slate-300);
}

/* Tooltip Styles */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #007bff;
    cursor: help;
    color: #007bff;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 117%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive tooltip positioning */

@media (max-width: 768px) {
    .tooltip::before {
        max-width: 250px;
        font-size: 13px;
    }
}

/* Additional Design System Classes */

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Additional spacing utilities */

.mt-12 { margin-top: 3rem; }

.mt-16 { margin-top: 4rem; }

.pt-4 { padding-top: 1rem; }

.pt-8 { padding-top: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.p-12 { padding: 3rem; }

/* Additional sizing utilities */

.h-8 { height: 2rem; }

.max-w-3xl { max-width: 48rem; }

.max-w-4xl { max-width: 56rem; }

.max-w-none { max-width: none; }

/* Additional text utilities */

.text-5xl { font-size: 3rem; line-height: 1; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* Additional grid utilities */

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Additional spacing utilities */

.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }

.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

.space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0rem; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* Additional color utilities */

.text-slate-300 { color: rgb(203 213 225); }

.text-slate-700 { color: rgb(51 65 85); }

.bg-slate-50 { background-color: rgb(248 250 252); }

.bg-slate-100 { background-color: rgb(241 245 249); }

.border-slate-200 { border-color: rgb(226 232 240); }

.border-slate-400\/30 { border-color: rgb(148 163 184 / 0.3); }

.bg-\[\#585878\]\/10 { background-color: rgb(88 88 120 / 0.1); }

.bg-\[\#585878\]\/5 { background-color: rgb(88 88 120 / 0.05); }

.text-\[\#525369\] { color: rgb(82 83 105); }

.hover\:text-\[\#525369\]:hover { color: rgb(82 83 105); }

.hover\:bg-\[\#585878\]\/5:hover { background-color: rgb(88 88 120 / 0.05); }

.hover\:border-\[\#585878\]:hover { border-color: rgb(88 88 120); }

/* Additional layout utilities */

.border-t { border-top-width: 1px; }

.inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }

.gap-3 { gap: 0.75rem; }

/* Additional transition utilities */

.transition-colors { 
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
    transition-duration: 150ms; 
}

/* Hover transform utilities */

.group:hover .group-hover\:text-\[\#525369\] { color: rgb(82 83 105); }

.group:hover .group-hover\:translate-x-1 { --tw-translate-x: 0.25rem; }

/* Line clamping utility */

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Prose styling for content */

.prose {
    color: rgb(55 65 81);
    max-width: none;
}

/* Standard single page width */

.single-page-width {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Training page layout: Float element with text wrapping around */

.training-float-element {
    float: right !important;
    width: 300px !important;
    margin: 0 0 1.5rem 2rem !important;
    clear: right !important;
    display: block !important;
}

/* Container for the floating layout */

.training-text-flow {
    overflow: visible !important;
    display: block !important;
}

/* Remove ALL width constraints to allow text flow */

.training-text-flow .prose,
.training-text-flow .prose.prose-lg {
    max-width: none !important;
    width: 100% !important;
    display: block !important;
}

.training-text-flow .content {
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
    display: block !important;
}

/* Ensure paragraphs can wrap around floated element */

.training-text-flow .prose p,
.training-text-flow .prose.prose-lg p {
    max-width: none !important;
    width: auto !important;
    display: block !important;
}

.prose .prose-lg {
    font-size: 1.125rem;
    line-height: 1.777777778;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: rgb(88 88 120);
    font-weight: 600;
    line-height: 1.25;
}

.prose h1 { font-size: 2.25rem; margin-top: 0; margin-bottom: 0.888888889em; }

.prose h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 1em; }

.prose h3 { font-size: 1.25rem; margin-top: 1.6em; margin-bottom: 0.6em; }

.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }

.prose img { 
    margin-top: 2em; 
    margin-bottom: 2em; 
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prose img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.prose video { margin-top: 2em; margin-bottom: 2em; }

.prose figure { margin-top: 2em; margin-bottom: 2em; }

.prose ul, .prose ol { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }

.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }

.prose a {
    color: rgb(88 88 120);
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: rgb(82 83 105);
}

.prose strong { color: rgb(55 65 81); font-weight: 600; }

.prose code { color: rgb(88 88 120); font-weight: 600; font-size: 0.875em; }

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: rgb(55 65 81);
    border-left-width: 0.25rem;
    border-left-color: rgb(229 231 235);
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

/* Image Modal Styles */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    background: white;
    padding: 20px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile-specific styles for image modal */

@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .image-modal-content {
        max-width: 98vw;
        max-height: 90vh;
    }
}

/* Cookie Consent Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(88, 88, 120, 0.98);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.cookie-consent-description {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #22c55e;
    color: white;
}

.cookie-btn-accept:hover {
    background: #16a34a;
}

.cookie-btn-reject {
    background: #ef4444;
    color: white;
}

.cookie-btn-reject:hover {
    background: #dc2626;
}

.cookie-btn-manage {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-manage:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-secondary {
    background: #6b7280;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #4b5563;
}

/* Cookie Modal Styles */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #585878;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #374151;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Cookie Toggle Switch */

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.cookie-toggle-label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label {
    background-color: #22c55e;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label:before {
    transform: translateX(24px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-label {
    background-color: #585878;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-label:before {
    background-color: #f8fafc;
}

.cookie-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

/* Responsive Design */

@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-consent-buttons {
        flex-shrink: 0;
    }
    
    .cookie-modal-footer {
        justify-content: flex-end;
    }
}

/* Utility Classes */

.hidden {
    display: none !important;
}

/* Footer override */

footer {
    background-color: rgb(88 88 120) !important;
    color: rgb(255 255 255) !important;
    padding: 0 !important;
}

/* Additional Media Queries */

@media (min-width: 768px) {
    .md\:p-12 { padding: 3rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Language Switcher Fixes */

#language-menu {
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
    min-width: 12rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

#language-menu.hidden {
    display: none !important;
}

/* Language menu arrow connector */

#language-menu::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

/* Ensure dropdown doesn't get clipped by parent containers */

.nav-links {
    overflow: visible !important;
}

#language-menu {
    overflow: visible !important;
}

/* Main Navigation Visibility Fix */

#main-nav {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    overflow: visible !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 0 1.5rem 1.5rem !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    margin-top: 0.5rem !important;
}

#language-menu a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    color: rgba(51, 65, 85, 0.9) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

#language-menu a:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: rgb(88, 88, 120) !important;
}

#language-menu a:first-child {
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
}

#language-menu a:last-child {
    border-bottom-left-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
}

/* Ensure language switcher button has proper z-index and alignment */

#language-switcher-btn {
    z-index: 10000 !important;
    position: relative !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
    top: 0 !important;
    transform: none !important;
}

/* Force consistent alignment for all navigation items */

.nav-links > *,
.nav-links > div,
.nav-links > a,
.nav-links button {
    vertical-align: middle !important;
    align-items: center !important;
    display: inline-flex !important;
}

/* Specific fix for language selector positioning across all screen sizes */

@media screen and (min-width: 1101px) {
    #language-switcher-btn {
        vertical-align: baseline !important;
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .nav-links {
        align-items: center !important;
    }
}

/* Debug styles to ensure dropdown is visible */

.language-dropdown-container {
    position: relative !important;
    z-index: 9999 !important;
}

/* Fully Clickable Card Styles */

.cursor-pointer {
    cursor: pointer !important;
}

/* Ensure no pointer events on nested elements that could interfere with card clicks */

.cursor-pointer * {
    pointer-events: none;
}

/* Re-enable pointer events for the card itself */

.cursor-pointer {
    pointer-events: auto;
}

/* Fix for resource cards - allow clicks on all elements */

.resource-item * {
    pointer-events: auto !important;
}

/* REMOVED - Duplicate rule
.resource-item {
    pointer-events: auto !important;
}
*/

/* Additional hover effects for card elements */

.group-hover\:opacity-80:hover {
    opacity: 0.8;
}

/* Focus states for accessibility */

.cursor-pointer:focus {
    outline: 2px solid rgb(88, 88, 120);
    outline-offset: 2px;
}

.cursor-pointer:focus-visible {
    outline: 2px solid rgb(88, 88, 120);
    outline-offset: 2px;
}

/* Ensure smooth transitions for all card interactions */

.cursor-pointer, .cursor-pointer * {
    transition: all 0.3s ease;
}

/* Override any conflicting link styles within cards */

.cursor-pointer a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Ensure proper spacing and layout for card content */

.cursor-pointer article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Make sure card content fills available space */

.cursor-pointer .space-y-4 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cursor-pointer .flex-grow {
    flex-grow: 1;
}

/* Enhanced hover state for better user feedback */

.cursor-pointer:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* Resource Grid Styles */

.resource-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
    align-items: stretch !important;
    height: auto !important;
}

.resource-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    cursor: pointer !important;
    pointer-events: auto !important;
    
    /* Use flexbox for internal layout */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 450px !important;
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure consistent image dimensions in resource cards */

.resource-item img {
    width: min(160px, 100%) !important;
    height: min(160px, 100%) !important;
    max-width: 100% !important;
    max-height: 160px !important;
    -o-object-fit: contain;
       object-fit: contain;
    display: block !important;
}

/* Fixed height for image containers - handles different aspect ratios */

.resource-item > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    flex-shrink: 0 !important;
}

.resource-item h3 {
    color: rgb(75, 85, 99);
    font-size: 1rem;  /* Reduced from 1.25rem for better fit */
    font-weight: 600;
    margin: 1rem 0 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.resource-item p {
    color: rgb(107, 114, 128);
    line-height: 1.6;
    margin: 0 0 1.5rem 0 !important;
    text-align: center;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
}

/* Content wrapper for resource cards */

.resource-item > * {
    flex-shrink: 0;
}

/* Button positioning - at bottom of card with consistent spacing */

.resource-item .btn-primary {
    align-self: center !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Container for buttons with margin-top auto for bottom alignment */
.resource-item .mt-auto {
    margin-top: auto;
}

/* General margin-top auto utility */
.mt-auto {
    margin-top: auto !important;
}

/* Ensure buttons have consistent spacing from text */
.resource-item .mt-auto.pt-4 {
    padding-top: 1rem;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .resource-item {
        padding: 2rem 1.5rem;
        min-height: 450px;
    }
    
    .resource-icon {
        font-size: 2.5rem;
        height: 144px;
        margin-bottom: 1rem;
    }
    
    .resource-item img {
        width: min(144px, 100%);
        height: min(144px, 100%);
        max-width: 100%;
    }
    
    .resource-item > div:first-child {
        height: 144px;
    }
    
    .resource-item h3 {
        font-size: 0.95rem !important;  /* Slightly smaller on mobile */
    }
}

/* Testimonials Section Styles */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.testimonial-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-style: italic;
    color: rgb(75, 85, 99);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: rgb(88, 88, 120);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: rgb(75, 85, 99);
    font-size: 1rem;
}

.author-title {
    color: rgb(107, 114, 128);
    font-size: 0.875rem;
}

/* Responsive adjustments for testimonials */

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .testimonial-item {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .testimonial-quote {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .author-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Contact Form Styles */

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgb(75, 85, 99);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #e53e3e;
}

.form-input,
.form-textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: rgb(75, 85, 99);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgb(88, 88, 120);
    box-shadow: 0 0 0 3px rgba(97, 98, 115, 0.1);
}

.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
    color: rgb(156, 163, 175);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgb(156, 163, 175);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-submit-btn {
    background: rgb(88, 88, 120);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(97, 98, 115, 0.2);
}

.form-submit-btn:hover {
    background: rgb(74, 75, 101);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(97, 98, 115, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(97, 98, 115, 0.2);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments for contact form */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-submit-btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* Line Clamp Utilities */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* External Link Indicators */

/* Apply to all external links that don't already have the class */

a[href^="http"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after,
a[href^="https"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after,
a[href^="//"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after {
    content: "↗";
    display: inline-block;
    font-size: 0.85em;
    margin-left: 0.2em;
    font-weight: normal;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Remove padding from external links to prevent visual indentation */

a[href^="http"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.register-button-tall):not(.register-button),
a[href^="https"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.register-button-tall):not(.register-button),
a[href^="//"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.register-button-tall):not(.register-button),
.external-link-processed:not(.register-button-tall):not(.register-button) {
    padding: 0 !important;
}

/* Alternative icon using Unicode */

/*
a[href^="http"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after,
a[href^="https"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after,
a[href^="//"]:not([href*="connexxo.com"]):not([href*="localhost"]):not(.no-external-indicator)::after {
    content: " \1F517";
    display: inline-block;
    font-size: 0.8em;
    margin-left: 0.2em;
}
*/

/* Hover effect for external links */

a[href^="http"]:not([href*="connexxo.com"]):not(.no-external-indicator):hover::after,
a[href^="https"]:not([href*="connexxo.com"]):not(.no-external-indicator):hover::after,
a[href^="//"]:not([href*="connexxo.com"]):not(.no-external-indicator):hover::after {
    opacity: 1;
}

/* Screen reader text for external links */

.external-link-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */

@media (prefers-contrast: high) {
    a[href^="http"]:not([href*="connexxo.com"]):not(.no-external-indicator)::after,
    a[href^="https"]:not([href*="connexxo.com"]):not(.no-external-indicator)::after,
    a[href^="//"]:not([href*="connexxo.com"]):not(.no-external-indicator)::after {
        opacity: 1;
        font-weight: bold;
    }
}

/* Enhanced Blog Card Glassmorphic Effects */

.blog-card-glassmorphic {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    position: relative;
}

.blog-card-glassmorphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-card-glassmorphic:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.3);
    transform: scale(1.02);
}

/* Blog List Background Enhancement */

.blog-list-background {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
}

.blog-list-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(97, 98, 115, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(97, 98, 115, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Gradient Overlays */

.gradient-overlay-top {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Blog Layout Grid */

.blog-layout-container {
    display: flex !important;
    gap: 2rem !important;
    align-items: start !important;
}

.blog-main-content {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.blog-content-full-width {
    width: 100% !important;
    max-width: none !important;
}

.blog-sidebar {
    width: min(224px, 100%);
    max-width: 100%;
    position: sticky;
    top: 1rem;
    height: -moz-fit-content;
    height: fit-content;
    align-self: start;
    z-index: 10;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

/* Blog Sidebar Responsive Adjustments */

@media (max-width: 768px) {
    .blog-layout-container {
        flex-direction: column !important;
    }
    
    .blog-sidebar {
        width: 100%;
        margin-bottom: 2rem;
        order: -1; /* Move sidebar above main content */
        position: static; /* Disable sticky on mobile */
    }
    
    .blog-main-content {
        order: 1;
    }
}

/* Remove the old sticky class targeting */

.blog-sidebar .sticky {
    /* Remove individual sticky positioning */
}

/* Blog Posts Grid Container */

.blog-posts-container {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1rem !important;
    align-items: stretch !important;
    grid-auto-rows: 1fr !important; /* This ensures equal row heights */
    width: 100% !important;
    max-width: none !important;
}

/* Responsive Grid Breakpoints */

@media (min-width: 768px) {
    .blog-posts-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (min-width: 1150px) {
    .blog-posts-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (min-width: 1280px) {
    .blog-posts-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Force equal heights for all grid items */

.blog-posts-container > article {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 280px !important; /* Slightly reduced height for landscape cards */
    width: 100% !important;
    min-width: 280px !important; /* Wider minimum for landscape format */
    max-width: none !important;
}

.blog-posts-container > article > .blog-card-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex: 1 !important;
}

.blog-posts-container > article > .blog-card-link > .bg-white {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex: 1 !important;
}

.blog-posts-container > article > .blog-card-link > .bg-white > .p-6 {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex: 1 !important;
}

/* Blog posts (non-training): Use natural image aspect ratio in landscape format */

.blog-posts-container .training-card-row {
    display: grid !important;
    grid-template-columns: 1fr 160px !important; /* Text takes more space, image fixed width */
    gap: 1rem !important;
    align-items: start !important;
    margin-bottom: 1rem !important;
}

/* Responsive adjustments for blog posts */

@media (max-width: 767px) {
    .blog-posts-container .training-card-row {
        grid-template-columns: 1fr 140px !important; /* Smaller image on mobile */
        gap: 0.75rem !important;
    }
    
    .blog-posts-container .training-card-image {
        width: min(140px, 100%) !important;
        max-width: 100% !important;
        height: 105px !important; /* Maintain 4:3 ratio */
    }
    
    .blog-posts-container .aspect-square {
        width: min(140px, 100%) !important;
        height: min(105px, 100%) !important;
        max-width: 100% !important;
        max-height: 105px !important;
    }
}

.blog-posts-container .training-card-image {
    width: min(160px, 100%) !important;
    max-width: 100% !important;
    height: 120px !important; /* 4:3 aspect ratio for better image display */
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: transparent !important;
}

.blog-posts-container .training-card-image img {
    width: 100% !important;
    height: 100% !important;
    -o-object-fit: cover !important;
       object-fit: cover !important; /* Cover to fill space while maintaining aspect ratio */
    -o-object-position: center !important;
       object-position: center !important;
}

/* Fallback for old aspect-square class */

.blog-posts-container .aspect-square {
    width: min(160px, 100%) !important;
    height: min(120px, 100%) !important; /* 4:3 aspect ratio */
    max-width: 100% !important;
    max-height: 120px !important;
    aspect-ratio: 4/3 !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Training cards: Larger fixed size images - no resizing */

body:has(#trainingFiltersContainer) .blog-posts-container .aspect-square {
    width: min(140px, 100%) !important; /* Responsive width with max limit */
    height: min(105px, 100%) !important; /* Responsive height - maintains 4:3 ratio */
    min-width: min(140px, 100%) !important; /* Responsive minimum */
    min-height: min(105px, 100%) !important; /* Responsive minimum */
    max-width: 100% !important; /* Allow full width at high zoom */
    max-height: 105px !important; /* Prevent growing */
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-left: auto !important; /* Align image to the right side of its container */
    background: transparent !important; /* Remove grey background from container */
    background-image: none !important; /* Remove gradient background */
}

/* Ensure training card images maintain their natural aspect ratio and are readable */

body:has(#trainingFiltersContainer) .blog-posts-container .aspect-square img,
body:has(#trainingFiltersContainer) .blog-posts-container .training-card-image img {
    width: 100% !important;
    height: 100% !important;
    -o-object-fit: contain !important;
       object-fit: contain !important; /* Preserve aspect ratio - no distortion */
    -o-object-position: center !important;
       object-position: center !important;
    background: transparent !important; /* Remove grey background - use transparent */
}

/* Ensure content area grows to fill space */

.blog-posts-container .flex-grow {
    flex-grow: 1 !important;
}

/* Additional specificity for equal heights */

.blog-content-full-width .blog-posts-container > .blog-post-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Training filter: Hidden course override */

.blog-content-full-width .blog-posts-container > .blog-post-item.filter-hidden {
    display: none !important;
}

/* CSS GRID SOLUTION: Force side-by-side title/image layout using Grid */

.blog-content-full-width .blog-posts-container > .blog-post-item .training-card-row,
.blog-posts-container .training-card-row,
.training-card-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    align-items: start !important;
    margin-bottom: 1rem !important;
}

/* Training cards: Fixed image space, flexible text space */

body:has(#trainingFiltersContainer) .training-card-row {
    display: grid !important;
    grid-template-columns: 1fr 140px !important; /* Flexible space for title, fixed 140px for larger image */
    gap: 1rem !important;
    align-items: center !important; /* Center-align vertically for better balance */
    margin-bottom: 1.25rem !important;
}

/* Intermediate width optimization: reduce image size to give more text space */

@media (min-width: 641px) and (max-width: 900px) {
    body:has(#trainingFiltersContainer) .training-card-row {
        grid-template-columns: 1fr 120px !important; /* Reduce image space to 120px, give more to text */
        gap: 0.75rem !important; /* Reduce gap to save space */
    }
    
    body:has(#trainingFiltersContainer) .blog-posts-container .aspect-square {
        width: 120px !important; /* Smaller image at constrained widths */
        height: 90px !important; /* Maintain 4:3 ratio */
        min-width: 120px !important;
        min-height: 90px !important;
        max-width: 120px !important;
        max-height: 90px !important;
    }
}

/* Ensure grid items don't have conflicting flex properties */

.training-card-row .training-card-title,
.training-card-row .training-card-image {
    display: block !important;
    flex: none !important;
    width: auto !important;
}

/* Prevent word breaking in course titles */

.training-card-title h3 {
    word-break: keep-all !important; /* Keep hyphenated words together */
    hyphens: none !important;
    overflow-wrap: normal !important;
}

/* Specific rule to prevent breaking hyphenated course codes */

.training-card-title h3,
.blog-post-item h3 {
    /* Allow normal text wrapping but prevent breaking on hyphens */
    white-space: normal !important;
    word-break: keep-all !important; /* Keep hyphenated words like TDD-1, TDD-2 together */
}

/* Enhanced training card title styling - responsive text sizing */

body:has(#trainingFiltersContainer) .training-card-title h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.125rem) !important; /* Responsive text size */
    line-height: 1.4 !important; /* Better line spacing for readability */
    margin-bottom: 0 !important;
    font-weight: 600 !important;
    padding-right: 0.75rem !important; /* More padding to prevent text cutoff */
    word-wrap: normal !important; /* Prevent breaking within words */
    overflow-wrap: normal !important; /* Prevent breaking within words */
    word-break: keep-all !important; /* Keep hyphenated words together */
    hyphens: none !important; /* Disable automatic hyphenation */
    text-align: left !important;
    white-space: normal !important; /* Allow text to wrap to multiple lines */
    display: block !important; /* Ensure proper text flow */
}

/* Responsive text sizing for different screen widths */

@media (max-width: 640px) {
    body:has(#trainingFiltersContainer) .training-card-title h3 {
        font-size: 1.125rem !important; /* Larger on mobile since we have full width */
        white-space: normal !important; /* Allow wrapping on mobile */
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    body:has(#trainingFiltersContainer) .training-card-title h3 {
        font-size: 0.85rem !important; /* Much smaller size for constrained intermediate widths */
        line-height: 1.3 !important; /* Tighter line height */
        padding-right: 0.5rem !important; /* Reduce padding to give more text space */
        white-space: normal !important; /* Allow wrapping but keep hyphens together */
    }
}

@media (min-width: 901px) and (max-width: 1023px) {
    body:has(#trainingFiltersContainer) .training-card-title h3 {
        font-size: 1rem !important; /* Medium size for larger tablets */
        white-space: normal !important; /* Allow wrapping but keep hyphens together */
    }
}

@media (min-width: 1024px) {
    body:has(#trainingFiltersContainer) .training-card-title h3 {
        font-size: 1.1rem !important; /* Larger font for wide 3-column layout - plenty of space */
    }
}

@media (min-width: 1400px) {
    body:has(#trainingFiltersContainer) .training-card-title h3 {
        font-size: 1.15rem !important; /* Even larger for very wide screens */
    }
}

/* Responsive grid: stack on mobile */

@media (max-width: 640px) {
    .training-card-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Training mobile: stack title and image vertically */
    body:has(#trainingFiltersContainer) .training-card-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Center image on mobile for training cards */
    body:has(#trainingFiltersContainer) .training-card-image {
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Allow natural height on mobile too */
    body:has(#trainingFiltersContainer) .blog-posts-container > article {
        height: auto !important; /* Allow natural height */
        min-height: 240px !important; /* Smaller minimum on mobile */
    }
}

/* Training section specific overrides - Rectangular card layout */

/* Target training pages by checking for training filters container */

body:has(#trainingFiltersContainer) .blog-posts-container {
    min-width: 100% !important;
    width: 100% !important;
    /* Override responsive grid for training: max 3 columns even on widest screens */
    grid-template-columns: repeat(1, 1fr) !important;
}

@media (min-width: 768px) {
    body:has(#trainingFiltersContainer) .blog-posts-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1150px) {
    body:has(#trainingFiltersContainer) .blog-posts-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Keep max 3 columns even on very wide screens for better readability */

@media (min-width: 1280px) {
    body:has(#trainingFiltersContainer) .blog-posts-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

body:has(#trainingFiltersContainer) .blog-posts-container > article {
    min-width: 320px !important;
    flex: 1 1 auto !important;
    /* Remove rigid aspect ratio - let content determine height */
    height: auto !important;
    min-height: 280px !important; /* Minimum height for consistency but allow growth */
}

/* Training card padding adjustments for rectangular format */

body:has(#trainingFiltersContainer) .blog-posts-container > article > .blog-card-link > .bg-white > .p-6 {
    padding: 1.75rem !important; /* Slightly more padding for rectangular cards */
}

/* Better spacing for training card content */

body:has(#trainingFiltersContainer) .blog-posts-container .flex-grow p {
    margin-bottom: 1.5rem !important; /* More space after summary */
    font-size: 0.9rem !important; /* Slightly smaller summary text */
    line-height: 1.5 !important;
}

/* Enhanced Hover States for Blog Cards */

.blog-card-group:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-group:hover .blog-card-category {
    background: rgba(97, 98, 115, 0.9);
}

/* Search and Filter Enhancements */

.search-input-glassmorphic {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-button-glassmorphic {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.filter-button-glassmorphic:hover {
    background: rgb(88, 88, 120);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(97, 98, 115, 0.3);
}

/* Primary Button Fix */

.btn-primary {
    background-color: #585878 !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.btn-primary:hover {
    background-color: #525369 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(97, 98, 115, 0.3) !important;
}

.btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(97, 98, 115, 0.5) !important;
}

/* Primary Button Large */

.btn-primary-large {
    background-color: #585878 !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-decoration: none !important;
}

.btn-primary-large:hover {
    background-color: #525369 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(97, 98, 115, 0.3) !important;
}

.btn-primary-large:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(97, 98, 115, 0.5) !important;
}

/* Fix for buttons in flex containers - ULTRA STRONG OVERRIDE */

.my-6.flex .btn-primary-large,
.flex.flex-row .btn-primary-large,
div.flex .btn-primary-large {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
}

/* Force flex layout on desktop */

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row !important;
    }
}

/* Primary Button Outline */

.btn-primary-outline {
    background-color: transparent !important;
    color: #585878 !important;
    border: 2px solid #585878 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-primary-outline:hover {
    background-color: #585878 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.btn-primary-outline:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(97, 98, 115, 0.5) !important;
}

/* Ensure blog card footer elements match headline colors */

.blog-card-footer {
    color: #585878 !important;
}

.blog-card-footer * {
    color: #585878 !important;
}

.blog-card-footer .text-sm {
    color: #585878 !important;
}

.blog-card-footer div {
    color: #585878 !important;
}

/* Override any text color classes in blog card footer */

.blog-card-footer .text-gray-600,
.blog-card-footer .text-gray-500,
.blog-card-footer .text-slate-500,
.blog-card-footer .text-slate-600,
.blog-card-footer .text-base {
    color: #585878 !important;
}

/* Ensure SVG icons in footer use primary color */

.blog-card-footer svg {
    color: #585878 !important;
    stroke: #585878 !important;
}

/* Training Page Sticky Sidebar with Height Constraint */

.sticky-sidebar {
    position: sticky;
    top: 2rem;
    z-index: 10;
    max-height: calc(100vh - 4rem - 100px); /* Viewport height minus top offset minus bottom buffer */
    align-self: flex-start;
}

/* Mobile responsive - disable sticky on mobile */

@media (max-width: 768px) {
    .sticky-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
    }
}

/* Modern Course Schedule Card Styles */

.course-schedule-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03),
                0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08),
                0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(88, 88, 120, 0.2);
}

/* Remove all status-specific background colors */

.course-schedule-card.status-confirmed,
.course-schedule-card.status-planned,
.course-schedule-card.status-tentative,
.course-schedule-card.status-sold-out,
.course-schedule-card.status-self-paced {
    background: white;
}

/* Remove status bar completely */

.status-bar {
    display: none;
}

/* Card Inner Structure */

.card-inner {
    position: relative;
    height: 100%;
}

.card-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Date Section */

.date-section {
    position: relative;
}

.date-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(88, 88, 120, 0.08);
    color: #585878;
    flex-shrink: 0;
}

.date-text {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.02em;
}

/* Location Section */

.location-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(88, 88, 120, 0.06);
    color: #6b7280;
    flex-shrink: 0;
}

.location-text {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

/* Instructor & Participants Badges */

.instructor-badge,
.participants-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(88, 88, 120, 0.06);
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s ease;
}

.instructor-badge:hover,
.participants-badge:hover {
    background: rgba(88, 88, 120, 0.1);
}

.instructor-badge svg,
.participants-badge svg {
    color: #585878;
}

/* Price Display */

.price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: right;
    font-weight: 700;
    position: relative;
}

.price-display .currency {
    font-size: 24px;
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-display .amount {
    font-size: 24px;
    color: #1f2937;
    letter-spacing: -0.02em;
}

/* Enhanced Early Bird Pricing */

.early-bird-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    position: relative;
}

/* Baseline alignment enhancement */

.price-display-baseline {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-weight: 700;
    min-width: 120px;
    line-height: 1.2;
}

.main-price-anchor {
    display: inline-block;
    line-height: 1;
}

.early-bird-price .currency,
.early-bird-price .amount {
    font-size: 26px;
    color: #059669;
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 700;
}

.early-bird-label {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.regular-price-small {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.regular-price-small .amount-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.regular-price-small .currency,
.regular-price-small .amount {
    font-size: 16px;
    color: #6b7280;
    text-decoration: line-through;
    font-weight: 500;
}

.regular-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    background: rgba(156, 163, 175, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Regular Price */

.regular-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.regular-price .currency,
.regular-price .amount {
    font-size: 24px;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 700;
}

/* Diagonal line style for regular price when early bird is active */

.regular-price.strikethrough .flex.items-baseline {
    position: relative !important;
}

.regular-price.strikethrough .flex.items-baseline::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom right, transparent 47%, #dc2626 47%, #dc2626 53%, transparent 53%) !important;
    pointer-events: none !important;
}

.regular-price.strikethrough .currency,
.regular-price.strikethrough .amount {
    color: #6b7280 !important;
    opacity: 0.8 !important;
}

/* Price cutoff date styling */

.early-bird-cutoff {
    font-size: 10px;
    color: #d97706;
    font-weight: 500;
    margin-top: 2px;
    font-style: italic;
}

/* Status Badges */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    height: 36px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.status-badge svg {
    width: 14px;
    height: 14px;
}

.status-badge-confirmed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge-planned {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge-tentative {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #c2410c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.status-badge-sold-out {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge-self-paced {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Language Badge */

.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(88, 88, 120, 0.06);
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-badge:hover {
    background: rgba(88, 88, 120, 0.1);
}

/* Register Button - ULTIMATE DIMENSIONAL CONSISTENCY FOR ALL BUTTON TYPES */

body .register-button,
body a.register-button,
body a[href].register-button,
body .register-button[href],
body a.register-button[href^="mailto"],
body a.register-button[href^="http"],
body a.register-button[href^="https"],
body .register-button.external-link-processed,
body .register-button-tall,
body a.register-button-tall,
body a[href].register-button-tall,
body .register-button-tall[href],
body a.register-button-tall[href^="mailto"],
body a.register-button-tall[href^="http"],
body a.register-button-tall[href^="https"],
body .register-button-tall.external-link-processed {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    background-color: #585878 !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    transform: scale(1) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    border: none !important;
    font-size: 16px !important;
    min-height: 48px !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: 150px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body .register-button::before,
body a.register-button::before,
body .register-button.external-link-processed::before,
body .register-button-tall::before,
body a.register-button-tall::before,
body .register-button-tall.external-link-processed::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #b9462b 0%, #a03d25 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

body .register-button:hover,
body a.register-button:hover,
body a[href].register-button:hover,
body .register-button[href]:hover,
body a.register-button[href^="mailto"]:hover,
body a.register-button[href^="http"]:hover,
body a.register-button[href^="https"]:hover,
body .register-button.external-link-processed:hover,
body .register-button-tall:hover,
body a.register-button-tall:hover,
body a[href].register-button-tall:hover,
body .register-button-tall[href]:hover,
body a.register-button-tall[href^="mailto"]:hover,
body a.register-button-tall[href^="http"]:hover,
body a.register-button-tall[href^="https"]:hover,
body .register-button-tall.external-link-processed:hover {
    background-color: #525369 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    color: white !important;
    text-decoration: none !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: 150px !important;
    flex-shrink: 0 !important;
    min-height: 48px !important;
}

/* ULTRA-SPECIFIC hover rules to ensure text stays white - MAXIMUM SPECIFICITY */

html body .register-button:hover,
html body a.register-button:hover,
html body a[href].register-button:hover,
html body .register-button[href]:hover,
html body a.register-button[href^="mailto"]:hover,
html body a.register-button[href^="http"]:hover,
html body a.register-button[href^="https"]:hover,
html body .register-button.external-link-processed:hover,
html body .register-button-tall:hover,
html body a.register-button-tall:hover,
html body a[href].register-button-tall:hover,
html body .register-button-tall[href]:hover,
html body a.register-button-tall[href^="mailto"]:hover,
html body a.register-button-tall[href^="http"]:hover,
html body a.register-button-tall[href^="https"]:hover,
html body .register-button-tall.external-link-processed:hover {
    color: white !important;
    background-color: #525369 !important;
}

/* Force ALL child elements to be white on hover */

html body .register-button:hover *,
html body a.register-button:hover *,
html body .register-button:hover span,
html body a.register-button:hover span,
html body .register-button-tall:hover *,
html body a.register-button-tall:hover *,
html body .register-button-tall:hover span,
html body a.register-button-tall:hover span,
html body .register-button.external-link-processed:hover *,
html body .register-button.external-link-processed:hover span,
html body .register-button-tall.external-link-processed:hover *,
html body .register-button-tall.external-link-processed:hover span {
    color: white !important;
}

/* Force pseudo-elements to be white on hover */

html body .register-button:hover::after,
html body a.register-button:hover::after,
html body .register-button-tall:hover::after,
html body a.register-button-tall:hover::after,
html body .register-button.external-link-processed:hover::after,
html body .register-button-tall.external-link-processed:hover::after {
    color: white !important;
}

/* NUCLEAR OPTION - Target specific classes that might be interfering */

html body .register-button:hover .external-link-sr,
html body .register-button-tall:hover .external-link-sr,
html body a.register-button:hover .external-link-sr,
html body a.register-button-tall:hover .external-link-sr {
    color: white !important;
}

/* FIX THE ROOT CAUSE - Ensure text appears ABOVE the ::before gradient overlay */

html body .register-button:hover span,
html body a.register-button:hover span,
html body .register-button-tall:hover span,
html body a.register-button-tall:hover span,
html body .register-button.external-link-processed:hover span,
html body .register-button-tall.external-link-processed:hover span {
    position: relative !important;
    z-index: 10 !important;
    color: white !important;
}

/* NUCLEAR OPTION - COMPLETELY DISABLE gradient overlay on hover */

html body .register-button:hover::before,
html body a.register-button:hover::before,
html body .register-button-tall:hover::before,
html body a.register-button-tall:hover::before,
html body .register-button.external-link-processed:hover::before,
html body .register-button-tall.external-link-processed:hover::before {
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

body .register-button:hover::before,
body a.register-button:hover::before,
body .register-button.external-link-processed:hover::before,
body .register-button-tall:hover::before,
body a.register-button-tall:hover::before,
body .register-button-tall.external-link-processed:hover::before {
    opacity: 1 !important;
}

.register-button span,
.register-button svg {
    position: relative;
    z-index: 1;
}

.register-arrow {
    transition: transform 0.3s ease;
}

.register-button:hover .register-arrow {
    transform: translateX(4px);
}

/* Prominent Register Button */

.register-button-prominent {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #585878 0%, #4a4a68 100%);
    color: white !important;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(88, 88, 120, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: min(140px, 100%);
    max-width: 100%;
    justify-content: center;
    text-decoration: none;
}

.register-button-prominent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6a6a8a 0%, #565676 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-button-prominent:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(88, 88, 120, 0.35),
                0 4px 12px rgba(0, 0, 0, 0.15);
    color: white !important;
}

.register-button-prominent:hover::before {
    opacity: 1;
}

.register-button-prominent span,
.register-button-prominent svg {
    position: relative;
    z-index: 1;
    color: white !important;
}

.register-button-prominent .register-arrow {
    transition: transform 0.3s ease;
    color: white !important;
    stroke: white !important;
}

.register-button-prominent:hover .register-arrow {
    transform: translateX(4px);
}

/* Tall Register Button - positioned next to price */

.register-button-tall {
    background-color: #585878 !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    min-height: auto !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.register-button-tall:hover {
    background-color: #525369 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(97, 98, 115, 0.3) !important;
}

.register-button-tall:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(97, 98, 115, 0.5) !important;
}

.register-button-tall span,
.register-button-tall svg {
    color: white !important;
}

/* Fix width consistency for external register buttons with arrows */

.register-button-tall,
.register-button {
    position: relative !important;
}

.register-button-tall::after,
.register-button::after {
    position: absolute !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
}

/* HIDE ::after for mailto buttons and non-external buttons */

body .register-button::after,
body a.register-button::after,
body a.register-button[href^="mailto"]::after,
body .register-button-tall::after,
body a.register-button-tall::after,
body a.register-button-tall[href^="mailto"]::after,
.register-button-prominent::after {
    content: "" !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ADD external link indicators for https register buttons */

body a.register-button[href^="http"]::after,
body a.register-button[href^="https"]::after,
body .register-button.external-link-processed::after,
body a.register-button-tall[href^="http"]::after,
body a.register-button-tall[href^="https"]::after,
body .register-button-tall.external-link-processed::after {
    content: "↗" !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: white !important;
}

/* Removed conflicting rules - now handled above */

/* Ensure external register buttons maintain consistent styling */

.register-button[href^="http"],
.register-button[href^="https"],
.register-button-tall[href^="http"],
.register-button-tall[href^="https"],
.register-button-prominent[href^="http"],
.register-button-prominent[href^="https"] {
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-left: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Register button disabled state */

.register-button-disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    background-color: #e5e7eb !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    cursor: not-allowed !important;
    font-size: 1rem !important;
}

/* Ensure external register buttons have white text */

.register-button-tall.external-link-processed,
.register-button.external-link-processed {
    color: white !important;
}

.register-button-tall.external-link-processed *,
.register-button.external-link-processed * {
    color: white !important;
}

/* Responsive Adjustments */

@media (max-width: 768px) {
    .card-content {
        padding: 16px;
    }
    
    .date-text {
        font-size: 16px;
    }
    
    .price-display .amount {
        font-size: 20px;
    }
    
    .date-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .location-icon-wrapper {
        width: 20px;
        height: 20px;
    }
    
    .status-badge,
    .language-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* Mobile register button consistency */
    .register-button,
    a.register-button,
    a[href].register-button,
    .register-button[href] {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }
    
    .register-button-prominent {
        font-size: 16px;
        padding: 14px 24px;
        min-width: 120px;
        gap: 10px;
    }
    
    .register-button-tall {
        font-size: 14px;
        padding: 16px 20px;
        min-width: 100px;
        min-height: 50px;
        gap: 8px;
    }
}

/* Default states - full navbar visible, mobile menu hidden */

nav#main-nav .nav-links,
nav#main-nav div.nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    visibility: visible !important;
    flex-wrap: nowrap !important;
}

/* Default state - hamburger menu with fixed positioning */

button#mobile-menu-btn {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    z-index: 10000 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    background: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

div#mobile-nav {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure the navigation container accommodates the hamburger menu */

@media screen and (max-width: 1100px) {
    nav#main-nav > div {
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
    
    /* Fix hamburger positioning to stay within navigation bounds */
    button#mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

/* Mobile/Tablet view - show hamburger menu when navigation doesn't fit */

@media screen and (max-width: 1100px) {
    nav#main-nav div.nav-links {
        display: none !important;
        visibility: hidden !important;
    }
    
    button#mobile-menu-btn {
        display: block !important;
        visibility: visible !important;
    }
    
    div#mobile-nav.show {
        display: flex !important;
        visibility: visible !important;
    }
}

/* Desktop view - show full navigation when there's adequate space */

@media screen and (min-width: 1101px) {
    nav#main-nav .nav-links,
    nav#main-nav div.nav-links {
        display: grid !important;
        grid-template-columns: repeat(6, auto) !important;
        gap: 8px !important;
        justify-content: end !important;
        align-items: center !important;
        visibility: visible !important;
        min-width: auto !important;
    }
    
    button#mobile-menu-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    div#mobile-nav {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobile Navigation Menu */

#mobile-nav {
    position: fixed;
    top: 88px;
    right: 16px;
    width: 280px;
    max-width: calc(100vw - 32px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9998;
    padding: 16px 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
}

#mobile-nav.show {
    display: flex;
}

#mobile-nav a {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex: none;
    white-space: nowrap;
    text-align: left;
}

#mobile-nav a:last-child {
    border-bottom: none;
}

#mobile-nav a:hover {
    background-color: rgba(88, 88, 120, 0.1);
    color: #585878;
}

/* Mobile Language Selector */

#mobile-nav .mobile-language-selector {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-nav .mobile-language-selector button {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobile-nav .mobile-language-selector button:hover {
    background-color: rgba(88, 88, 120, 0.1);
}

#mobile-nav .mobile-language-menu {
    margin-top: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
}

#mobile-nav .mobile-language-menu.show {
    display: block;
}

#mobile-nav .mobile-language-menu a {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

#mobile-nav .mobile-language-menu a:last-child {
    border-bottom: none;
}

/* Training Filter Enhancements */

.rotate-180 {
    transform: rotate(180deg);
}

/* Custom select styling */

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hide default arrows for selects in filter container */

#trainingFiltersContainer select::-ms-expand {
    display: none;
}

/* Filter container styling */

#trainingFiltersContainer .bg-white {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Filter dropdown animations */

.training-filter-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: top;
}

.training-filter-dropdown.hidden {
    opacity: 0;
    transform: scaleY(0);
    pointer-events: none;
}

.training-filter-dropdown:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
}

/* Enhanced select and button styling */

#trainingFiltersContainer select,
#trainingFiltersContainer button[type="button"] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#trainingFiltersContainer select:hover,
#trainingFiltersContainer button[type="button"]:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#trainingFiltersContainer select:focus,
#trainingFiltersContainer button[type="button"]:focus {
    box-shadow: 0 0 0 3px rgba(88, 88, 120, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dropdown styling improvements */

#deliveryModeDropdown {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Radio button styling improvements */

.level-radio,
.availability-radio,
.role-radio {
    border-color: #d1d5db;
    border-width: 1.5px;
    transition: all 0.2s ease;
}

.level-radio:checked,
.availability-radio:checked,
.role-radio:checked {
    background-color: #585878;
    border-color: #585878;
}

.level-radio:focus,
.availability-radio:focus,
.role-radio:focus {
    ring: 2px;
    ring-color: rgba(88, 88, 120, 0.2);
    ring-offset: 2px;
}

/* Checkbox styling for delivery mode and certification filters */

.delivery-mode-checkbox,
.certification-checkbox {
    border-color: #d1d5db;
    border-width: 1.5px;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    background-color: white;
    position: relative;
}

.delivery-mode-checkbox:checked,
.certification-checkbox:checked {
    background-color: #585878;
    border-color: #585878;
}

.delivery-mode-checkbox:checked::after,
.certification-checkbox:checked::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.delivery-mode-checkbox:focus,
.certification-checkbox:focus {
    ring: 2px;
    ring-color: rgba(88, 88, 120, 0.2);
    ring-offset: 2px;
}

/* New filter option styling without radio buttons */

#trainingFiltersContainer .filter-option-label {
    transition: all 0.2s ease;
    padding: 0.375rem 0.5rem;
    margin: 0.125rem 0;
    border-radius: 0.25rem;
    display: block;
    width: 100%;
    background-color: transparent;
}

#trainingFiltersContainer .filter-option-label:hover {
    background-color: rgba(88, 88, 120, 0.1) !important;
}

#trainingFiltersContainer .filter-option-label:has(input:checked) {
    background-color: #585878 !important;
    color: white !important;
}

#trainingFiltersContainer .filter-option-label:has(input:checked) .filter-option-text {
    color: white !important;
}

/* Hide radio buttons completely */

#trainingFiltersContainer .level-radio.hidden,
#trainingFiltersContainer .delivery-mode-radio.hidden,
#trainingFiltersContainer .availability-radio.hidden,
#trainingFiltersContainer .certification-radio.hidden,
#trainingFiltersContainer .role-radio.hidden {
    display: none !important;
}

/* Legacy filter label styling removed to prevent conflicts with new .filter-option-label styling */

/* Checkbox styling improvements */

.delivery-mode-checkbox {
    border-color: #d1d5db;
    border-width: 1.5px;
}

.delivery-mode-checkbox:checked {
    background-color: #585878;
    border-color: #585878;
}

/* Training filter chip animations */

.training-filter-chip {
    transition: all 0.3s ease;
}

.training-filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 70, 43, 0.3);
}

/* Filter section title styling */
.training-filters-grid h2 {
    font-size: 1.1em !important; /* 1.1 times default size */
    color: #585878 !important; /* Primary grey-blue color */
    font-weight: 600;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0.5rem !important;
}

#trainingFiltersContainer h3 {
    letter-spacing: -0.025em;
    color: #111827;
}

/* Training filter card enhancements */

#trainingFiltersContainer .bg-white {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

#trainingFiltersContainer .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(88, 88, 120, 0.2);
}

/* Filter card headers */

#trainingFiltersContainer h3 {
    color: #585878;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Optimize label text wrapping */

#trainingFiltersContainer label span {
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

/* Clear filters button enhancement */

#clearAllFilters {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#clearAllFilters:hover {
    box-shadow: 0 4px 6px rgba(88, 88, 120, 0.1);
    transform: translateY(-1px);
}

/* Training filter card width optimizations */

#trainingFiltersContainer .grid {
    justify-items: center;
}

#trainingFiltersContainer .bg-white {
    width: 100%;
    max-width: 260px;
}

/* Responsive grid adjustments for training filters */

@media (max-width: 1200px) {
    #trainingFiltersContainer .grid {
        grid-template-columns: repeat(auto-fit, minmax(234px, 1fr));
        gap: 1rem;
        max-width: 1170px;
    }
    
    #trainingFiltersContainer .bg-white {
        max-width: 234px;
    }
}

@media (max-width: 768px) {
    #trainingFiltersContainer .grid {
        grid-template-columns: repeat(auto-fit, minmax(364px, 1fr));
        gap: 0.75rem;
        max-width: none;
    }
    
    /* Filter card styling on mobile */
    #trainingFiltersContainer .bg-white {
        padding: 1rem;
        margin-bottom: 0;
        max-width: none;
        width: 100%;
    }
    
    #trainingFiltersContainer .rounded-xl {
        border-radius: 0.75rem;
    }
    
    #trainingFiltersContainer h3 {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    #trainingFiltersContainer select,
    #trainingFiltersContainer button[type="button"] {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Radio buttons and checkboxes on mobile */
    #trainingFiltersContainer .level-radio,
    #trainingFiltersContainer .availability-radio,
    #trainingFiltersContainer .role-radio,
    #trainingFiltersContainer .delivery-mode-checkbox,
    #trainingFiltersContainer .certification-checkbox {
        width: 1rem;
        height: 1rem;
    }
    
    #trainingFiltersContainer label:has(.level-radio),
    #trainingFiltersContainer label:has(.availability-radio),
    #trainingFiltersContainer label:has(.role-radio),
    #trainingFiltersContainer label:has(.delivery-mode-checkbox),
    #trainingFiltersContainer label:has(.certification-checkbox) {
        padding: 0.375rem;
        margin: -0.375rem;
    }
    
    #trainingFiltersContainer .space-y-3 {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    #trainingFiltersContainer .bg-white {
        padding: 1rem;
        border-radius: 1rem;
    }
}

/* Training Filters Container Animation */

#trainingFiltersContainer {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform-origin: top;
}

#trainingFiltersContainer.hidden {
    display: none !important;
}

/* Training Filters Grid - Responsive Layout */

.training-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Small screens: 1 column */

@media (min-width: 480px) {
    .training-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens: 2 columns, then 4 columns for all filters to be visible */

@media (min-width: 768px) {
    .training-filters-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .training-filters-grid > div {
        min-width: 0; /* Ensure content can shrink */
        flex: 1;
    }
}

/* Large screens: 4 columns with better spacing */

@media (min-width: 1024px) {
    .training-filters-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Very narrow screens: stack vertically with consistent spacing */

@media (max-width: 479px) {
    .training-filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .training-filters-grid > div {
        padding: 1rem;
        min-height: auto;
    }
    
    .training-filters-grid .text-base {
        font-size: 0.875rem;
    }
    
    .training-filters-grid .text-sm {
        font-size: 0.75rem;
    }
}

/* Additional narrow window fixes for training filters */

@media (max-width: 640px) {
    .training-filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .training-filters-grid > div {
        padding: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-height: 100px;
    }
    
    .training-filters-grid h2 {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .training-filters-grid .filter-option-text {
        font-size: 0.75rem;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    .training-filters-grid .space-y-1 {
        gap: 0.25rem;
    }
}

/* Tablet landscape - ensure all filters are visible in one row */

@media (min-width: 768px) and (max-width: 1023px) {
    .training-filters-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .training-filters-grid > div {
        padding: 0.5rem;
        min-height: 100px;
    }
    
    .training-filters-grid h2 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .training-filters-grid .filter-option-text {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

/* Special handling for very narrow screens */

@media (max-width: 480px) {
    .training-filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .training-filters-grid > div {
        min-height: 80px;
    }
}

/* Responsive fix for "View All Currently Scheduled Public Courses" button */

.training-cta-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.training-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .training-cta-wrapper {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem !important;
    }
    
    .training-cta-button {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        width: auto !important;
        max-width: calc(100% - 1rem) !important;
        white-space: nowrap !important;
        gap: 0.5rem !important;
        margin: 0 auto !important;
    }
    
    .training-cta-button .calendar-icon {
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    .training-cta-button .button-text {
        display: none !important;
    }
    
    /* Show shorter text on mobile */
    .training-cta-button::after {
        content: "View Public Course Schedule" !important;
        color: white !important;
    }
}

/* iPhone specific adjustments */

@media (max-width: 414px) {
    .training-cta-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.813rem !important;
    }
    
    .training-cta-button .calendar-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .training-cta-button::after {
        content: "View Course Schedule" !important;
    }
}

/* Very small phones */

@media (max-width: 375px) {
    .training-cta-button {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.75rem !important;
    }
    
    .training-cta-button .calendar-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .training-cta-button::after {
        content: "Course Schedule" !important;
    }
}

/* Alternative: Very narrow screens */

@media (max-width: 320px) {
    .training-cta-button {
        padding: 0.5rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    .training-cta-button::after {
        content: "Schedule" !important;
        font-size: 0.75rem !important;
    }
}

/* Ensure consistent filter styling across all screen sizes */

.training-filters-grid > div {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 1);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px; /* Consistent minimum height */
}

.training-filters-grid > div:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure filter headers are consistent */

.training-filters-grid h2 {
    text-align: center;
    border-bottom: 1px solid rgba(229, 231, 235, 1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: rgb(17, 24, 39);
    flex-shrink: 0;
}

/* Filter option styling */

.training-filters-grid .filter-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    margin: 0.125rem 0;
}

.training-filters-grid .filter-option-label:hover {
    background-color: rgba(243, 244, 246, 1);
}

.training-filters-grid .filter-option-text {
    color: rgb(55, 65, 81);
    font-size: 0.875rem;
    line-height: 1.25;
    flex-grow: 1;
}

/* Fix responsive visibility issues - override Tailwind if not working */

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    
    /* Ensure text flows around floated element on desktop */
    .training-text-flow {
        display: block !important;
        overflow: visible !important;
        contain: none !important;
    }
    
    /* Override any flexbox that might interfere with float */
    .training-text-flow .prose,
    .training-text-flow .prose.prose-lg {
        display: block !important;
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
    }
}

@media (max-width: 1023px) {
    .max-lg\:hidden {
        display: none !important;
    }
}

/* Footer mobile styles - center alignment */

@media (max-width: 768px) {
    #footer .grid {
        text-align: center !important;
    }
    
    #footer .grid > div {
        text-align: center !important;
        margin-left: 0 !important;
        width: 100%;
    }
    
    #footer .grid > div h3 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    #footer .grid > div p {
        text-align: center !important;
    }
    
    #footer .grid > div .flex.flex-col {
        align-items: center !important;
    }
    
    #footer .grid > div a {
        text-align: center !important;
        display: inline-block !important;
        margin-bottom: 0.75rem;
    }
    
    /* Center the company name section */
    #footer .space-y-4 {
        text-align: center !important;
    }
    
    /* Remove left margin from navigation section on mobile */
    #footer div[style*="margin-left"] {
        margin-left: 0 !important;
    }
    
    /* Ensure all footer links are centered */
    #footer a {
        text-align: center !important;
    }
}

/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    background-color: rgba(88, 88, 120, 0.8);
    border: none;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    padding: 0 !important;
    box-sizing: border-box !important;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(88, 88, 120, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:focus {
    outline: 2px solid #585878;
    outline-offset: 2px;
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* White border when button is in footer area */

.back-to-top.in-footer {
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.back-to-top.in-footer:hover {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for back to top button */

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        border-radius: 50% !important;
    }
}

/* Complementary Courses responsive grid adjustments */

/* Base grid setup */

.grid {
    display: grid !important;
}

/* Ensure grid columns work properly at all breakpoints */

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        display: grid !important;
    }
    
    /* Target complementary courses specifically */
    .my-8.grid.sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        display: grid !important;
    }
    
    /* Target complementary courses specifically */
    .my-8.grid.md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        display: grid !important;
    }
    
    /* Target complementary courses specifically */
    .my-8.grid.xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

/* Complementary Courses Cards */

.complementary-courses-container .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Details/Summary Styles - Remove frame from expanded details */

details {
    border: none !important;
    outline: none !important;
    margin: 1em 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    /* Reset all browser defaults */
    -webkit-margin-start: 0 !important;
    -webkit-margin-end: 0 !important;
    -webkit-padding-start: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    padding-inline-start: 0 !important;
    list-style: none !important;
}

/* Ultra high specificity to override any browser defaults */

body details summary,
.content details summary,
div details summary {
    cursor: pointer !important;
    padding: 0.5em 0 !important;
    outline: none !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    list-style: none !important;
    /* Remove the default disclosure triangle */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
         appearance: none !important;
    /* Additional border resets */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-radius: 0 !important;
}

/* Remove browser default disclosure triangle with high specificity */

body details summary::-webkit-details-marker,
.content details summary::-webkit-details-marker,
div details summary::-webkit-details-marker {
    display: none !important;
}

body details summary::marker,
.content details summary::marker,
div details summary::marker {
    display: none !important;
}

/* Add custom bigger arrow with high specificity */

body details summary::before,
.content details summary::before,
div details summary::before {
    content: "▶" !important;
    display: inline-block !important;
    margin-right: 0.5em !important;
    font-size: 1.4em !important;
    transition: transform 0.2s ease !important;
    color: rgb(88 88 120) !important;
    font-weight: normal !important;
}

body details[open] summary::before,
.content details[open] summary::before,
div details[open] summary::before {
    transform: rotate(90deg) !important;
}

details summary:focus {
    outline: 2px solid rgb(88 88 120 / 0.5) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

details[open] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

details[open] summary {
    margin-bottom: 0.5em !important;
    border-bottom: none !important;
}

/* Override any potential user-agent styles and browser default indentation */

details > *:not(summary) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Specifically target the browser's default indentation behavior */

details[open] > *:not(summary) {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* Override Webkit/Blink browser defaults that add margin to details content */

details > *:not(summary):first-of-type {
    margin-block-start: 0 !important;
}

details > *:not(summary):last-of-type {
    margin-block-end: 0 !important;
}

/* Ensure no pseudo-elements create visual frames */

details::before,
details::after,
details summary::before,
details summary::after {
    content: none !important;
    border: none !important;
    background: none !important;
}

/* Nuclear option: Override all possible browser user-agent styles */

details,
details[open] {
    display: block !important;
    margin-block-start: 1em !important;
    margin-block-end: 1em !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    padding-inline-start: 0 !important;
}

/* Completely reset the details element styling to match regular content */

details * {
    margin-inline-start: 0 !important;
    padding-inline-start: 0 !important;
}

/* EU Accessibility Act Compliance - Color Contrast Fixes */

/* Fix light gray text contrast issues */

.text-gray-500 { 
    color: rgb(75 85 99) !important; /* Changed from rgb(107 114 128) to meet WCAG AA */
}

.text-gray-400 { 
    color: rgb(75 85 99) !important; /* Darkened for better contrast */
}

/* Fix slate-300 on dark backgrounds (footer) - already good contrast on #585878 */

/* slate-300 (rgb(203 213 225)) on #585878 = 5.47:1 contrast ratio - PASSES AA */

/* Fix primary brand color contrast for smaller text */

.text-sm.text-\[\#585878\],
.text-xs.text-\[\#585878\] {
    color: rgb(71 71 97) !important; /* Darkened version of #585878 for small text */
}

/* Enhanced focus indicators for better visibility */

:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
}

/* Better focus indicators for form elements */

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(88, 88, 120, 0.25) !important;
}

/* Button focus indicators */

button:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(88, 88, 120, 0.25) !important;
}

/* Complementary Courses Grid */
.complementary-courses-grid {
    display: grid;
    column-gap: 0.5rem; /* Moderate horizontal gap */
    row-gap: 0.375rem; /* Reduced vertical gap by half */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Mobile: 2 cards per row */
}

.complementary-courses-grid .course-card {
    width: 100%;
    max-width: 180px; /* Increased max width for larger cards */
    margin: 0 auto; /* Center cards in their grid cells */
    padding: 1rem; /* More padding for taller cards */
    padding-top: 1.5rem; /* More space at the top */
    padding-bottom: 3rem; /* Much more space at the bottom below button */
    border-radius: 0.5rem; /* Rounded corners */
    min-height: 380px; /* Much taller cards */
}
/* Make course card links inherit text color and remove underlines */
.complementary-courses-grid .course-card:link,
.complementary-courses-grid .course-card:visited {
    color: inherit;
    text-decoration: none !important;
}
.complementary-courses-grid .course-card:hover {
    color: inherit;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

/* Add transition to cards for smooth hover effect */
.complementary-courses-grid .course-card {
    transition: all 0.3s ease !important;
}

/* Ensure all elements within course cards have no underlines */
.complementary-courses-grid .course-card,
.complementary-courses-grid .course-card *,
.complementary-courses-grid a,
.complementary-courses-grid a * {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Add spacing to images within complementary course cards */
.complementary-courses-grid .course-card img {
    width: 80px !important;
    height: 80px !important;
    margin: 1rem auto !important; /* Add vertical margin for spacing */
    object-fit: contain !important;
}

/* Complementary course titles - larger font and no underlines */
.complementary-courses-grid .course-card h3 {
    font-size: 16px !important; /* Significantly larger than the current 12px */
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    padding-left: 10% !important;
    padding-right: 10% !important;
    padding-top: 0.5rem !important; /* Add space above the title */
}

/* Ensure button text is vertically centered and has bottom spacing */
.complementary-courses-grid .course-card .btn-primary-small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    padding: 8px 16px !important;
    margin-bottom: 1rem !important; /* Space below the button */
}

.complementary-courses-grid .course-card:link h3,
.complementary-courses-grid .course-card:visited h3,
.complementary-courses-grid .course-card:hover h3,
.complementary-courses-grid .course-card:active h3 {
    text-decoration: none !important;
    border-bottom: none !important;
    border: none !important;
}

/* More specific selector to override inline styles */
.complementary-courses-grid .course-card h3.text-sm {
    font-size: 16px !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Small screens (640px and up): 3 cards per row */
@media (min-width: 640px) {
    .complementary-courses-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0.5rem;
    }
}

/* Medium screens (768px and up): 4 cards per row */
@media (min-width: 768px) {
    .complementary-courses-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 0.5rem;
    }
}

/* Large screens (1024px and up): 5 cards per row */
@media (min-width: 1024px) {
    .complementary-courses-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 0.5rem;
    }
}

/* Extra large screens (1280px and up): 6 cards per row */
@media (min-width: 1280px) {
    .complementary-courses-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 0.5rem;
    }
    .complementary-courses-grid .course-card {
        max-width: 200px; /* Larger cards on XL screens */
    }
}

/* Button hover state for small buttons */
.btn-primary-small:hover {
    background-color: #525369 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(97, 98, 115, 0.2) !important;
}

/* Special focus for submit buttons */

.form-submit-btn:focus,
.btn-primary:focus,
.btn-primary-large:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(88, 88, 120, 0.4) !important;
}

/* Fix focus indicators for links */

a:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
    text-decoration: underline !important;
}

/* Navigation link focus */

nav a:focus {
    background-color: rgba(88, 88, 120, 0.1) !important;
    border-radius: 4px !important;
}

/* Mobile menu button focus */

#mobile-menu-btn:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
    background-color: rgba(88, 88, 120, 0.1) !important;
}

/* Language switcher focus */

#language-switcher-btn:focus {
    outline: 3px solid #585878 !important;
    outline-offset: 2px !important;
    background-color: rgba(88, 88, 120, 0.1) !important;
}

/* Skip link focus */

.skip-link:focus {
    position: absolute !important;
    left: 6px !important;
    top: 6px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 10001 !important;
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
}

/* Ensure skip links have good contrast */

.skip-link {
    background: #474761 !important; /* Darker version of #585878 */
}

/* Fix placeholder text contrast */

::-moz-placeholder {
    color: rgb(75 85 99) !important;
    opacity: 1 !important;
}

::placeholder {
    color: rgb(75 85 99) !important;
    opacity: 1 !important;
}

/* Enhanced High contrast mode support */

@media (prefers-contrast: high) {
    /* Text colors */
    .text-gray-500,
    .text-gray-400,
    .text-gray-600 {
        color: rgb(0 0 0) !important;
    }
    
    .text-\[\#585878\] {
        color: rgb(0 0 0) !important;
    }
    
    .text-slate-300 {
        color: rgb(255 255 255) !important;
    }
    
    /* Background contrasts */
    .bg-white {
        background-color: rgb(255 255 255) !important;
        color: rgb(0 0 0) !important;
    }
    
    .bg-\[\#585878\] {
        background-color: rgb(0 0 0) !important;
        color: rgb(255 255 255) !important;
    }
    
    /* Button contrasts */
    .btn-primary,
    .btn-primary-large,
    .form-submit-btn {
        background-color: rgb(0 0 0) !important;
        color: rgb(255 255 255) !important;
        border: 2px solid rgb(255 255 255) !important;
    }
    
    .btn-primary:hover,
    .btn-primary-large:hover,
    .form-submit-btn:hover {
        background-color: rgb(255 255 255) !important;
        color: rgb(0 0 0) !important;
        border: 2px solid rgb(0 0 0) !important;
    }
    
    /* Form elements */
    input,
    textarea,
    select {
        background-color: rgb(255 255 255) !important;
        color: rgb(0 0 0) !important;
        border: 2px solid rgb(0 0 0) !important;
    }
    
    /* Links */
    a {
        color: rgb(0 0 255) !important;
        text-decoration: underline !important;
    }
    
    a:visited {
        color: rgb(128 0 128) !important;
    }
    
    a:hover,
    a:focus {
        background-color: rgb(0 0 0) !important;
        color: rgb(255 255 255) !important;
    }
    
    /* Enhanced focus indicators */
    :focus {
        outline: 4px solid rgb(255 255 0) !important;
        outline-offset: 2px !important;
        background-color: rgb(0 0 0) !important;
        color: rgb(255 255 255) !important;
    }
    
    /* Navigation */
    nav {
        background-color: rgb(255 255 255) !important;
        border: 2px solid rgb(0 0 0) !important;
    }
    
    /* Remove gradients and shadows */
    *,
    *::before,
    *::after {
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    /* Error states */
    .error-message,
    .text-red-500,
    .text-red-600 {
        color: rgb(255 0 0) !important;
        background-color: rgb(255 255 255) !important;
        border: 2px solid rgb(255 0 0) !important;
    }
    
    /* Language switcher */
    .language-code,
    .language-code-header {
        background-color: rgb(0 0 0) !important;
        color: rgb(255 255 255) !important;
        border: 2px solid rgb(255 255 255) !important;
    }
}

/* Touch Target Improvements - EU Accessibility Act Compliance */

button, 
a[role="button"], 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.btn-primary, 
.btn-primary-large,
.btn-primary-outline,
[data-toggle],
[data-dismiss],
.mobile-menu-btn,
#language-switcher-btn,
#mobile-menu-btn {
    min-height: 44px !important;
    min-width: 44px !important;
    /* Ensure proper padding for touch targets */
    padding: max(1rem, 11px) max(2rem, 11px) !important;
}

/* NUCLEAR OPTION: Maximum specificity for call-to-action buttons */

div.my-6.flex a.btn-primary-large,
.flex.flex-col a.btn-primary-large, 
.flex.flex-row a.btn-primary-large,
a.btn-primary-large[href="#bottom"],
a.btn-primary-large[href*="contact"] {
    padding: 1rem 2rem !important;
    box-sizing: border-box !important;
}

/* Form controls touch targets */

input, 
select, 
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="checkbox"],
input[type="radio"] {
    min-height: 44px !important;
}

/* Special handling for small icons and checkboxes */

input[type="checkbox"],
input[type="radio"] {
    min-width: 44px !important;
    min-height: 44px !important;
    /* Add larger clickable area through padding */
    padding: 8px !important;
}

/* Language switcher specific touch targets */

.language-menu a,
#language-menu a {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

/* Mobile menu links */

.mobile-menu a,
#mobile-menu a {
    min-height: 44px !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

/* Navigation links */

nav a,
header nav a {
    min-height: 44px !important;
    padding: 0.5rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Footer Navigation section links - comfortable spacing (2nd grid column) */

footer .grid > div:nth-child(2) a {
    min-height: 28px !important;
    padding: 0.2rem 0rem !important;
    margin: 0px 0 !important;
    display: block !important;
    line-height: 1.3 !important;
    text-align: left !important;
    font-size: inherit !important;
}

/* Footer Contact & Legal section - same comfortable spacing (3rd grid column) */

footer .grid > div:nth-child(3) a {
    min-height: 28px !important;
    padding: 0.2rem 0rem !important;
    margin: 0px 0 !important;
    display: block !important;
    line-height: 1.3 !important;
    text-align: left !important;
    font-size: inherit !important;
}

/* Close buttons and small interactive elements */

.close,
.modal-close,
[aria-label*="close"],
[aria-label*="Close"] {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem !important;
}

/* Breadcrumb links */

.breadcrumb a,
nav[aria-label="Breadcrumb"] a {
    min-height: 44px !important;
    padding: 0.5rem 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Resource cards and clickable items */

.testimonial-item,
.training-card,
.course-card {
    /* Ensure adequate spacing for touch */
    padding: 1rem !important;
}

/* REMOVED - Conflicting with main resource-item flexbox layout
Resource items have their own enhanced spacing for better UX

.resource-item {
    Larger padding improves touch accessibility and visual hierarchy
    padding: 4rem 2rem !important;
}

Mobile responsive padding for resource items

@media (max-width: 768px) {
    .resource-item {
        padding: 3rem 1.5rem !important;
    }
}
*/

/* Skip links */

.skip-link,
.skip-links a {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem 1rem !important;
}

/* Cookie consent buttons */

.cookie-consent button,
.consent-banner button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem 1rem !important;
}

/* Exception for inline links in text content */

p a,
li a,
.prose a,
main article a {
    min-height: auto !important;
    min-width: auto !important;
    padding: 1px 2px !important;
    display: inline !important;
}

/* Ensure minimum touch target sizes for mobile */

@media (max-width: 768px) {
    button,
    a,
    input[type="checkbox"],
    input[type="radio"],
    .cursor-pointer {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Exception for inline links in text */
    p a,
    li a,
    .prose a {
        min-height: auto;
        min-width: auto;
        padding: 1px 2px;
    }
}

/* Fix color contrast for error states */

.text-red-500,
.text-red-600 {
    color: rgb(185 28 28) !important; /* Darker red for better contrast */
}

/* Ensure visited links are distinguishable */

a:visited {
    color: rgb(91 33 182); /* Purple that meets contrast requirements */
}

/* Fix contrast for disabled states */

:disabled,
.disabled {
    opacity: 0.7 !important; /* Better than 0.5 for readability */
    cursor: not-allowed !important;
}

/* External link indicator for screen readers */

.external-link-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure code blocks have sufficient contrast */

code,
pre {
    background-color: rgb(241 245 249);
    color: rgb(30 41 59);
}

/* Fix button contrast on hover states */

.hover\:bg-\[\#525369\]:hover {
    background-color: rgb(66 67 84) !important; /* Darker for better contrast */
}

/* Ensure loading indicators are visible */

.animate-spin,
.loading {
    border-color: #585878 !important;
}

/* Form accessibility enhancements */

.error-message {
    color: rgb(185 28 28);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-help {
    color: rgb(75 85 99);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: rgb(185 28 28) !important;
    box-shadow: 0 0 0 1px rgb(185 28 28) !important;
}

.form-group.has-error .form-label {
    color: rgb(185 28 28);
}

/* Required field indicator */

.required {
    color: rgb(185 28 28);
    font-weight: bold;
}

/* Loading state for submit button */

.form-submit-btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit-btn[aria-busy="true"] .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Language code styling */

.language-code,
.language-code-header {
    display: inline-block;
    background-color: rgb(88 88 120);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    line-height: 1;
}

.language-code-header {
    margin-right: 4px;
}

/* Current language indicator */

a[aria-current="true"] .language-code {
    background-color: rgb(71 71 97);
    outline: 2px solid rgb(88 88 120);
    outline-offset: 2px;
}

/* Responsive design and zoom support (200% zoom) */

@media (min-width: 320px) {
    /* Ensure content doesn't break at small widths */
    body {
        overflow-x: hidden;
    }
    
    /* Flexible containers */
    .container,
    .max-w-7xl,
    .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Responsive navigation */
    nav {
        flex-wrap: wrap;
    }
    
    .nav-links {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    /* Flexible grid layouts - only apply to very small screens */
    .grid {
        display: grid;
        gap: 1rem;
    }
}

/* Responsive grid fixes for training filters and homepage elements */

@media (min-width: 640px) {
    /* Ensure training filters display horizontally on medium+ screens */
    .training-filters .grid,
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    /* Medium screens: restore proper grid layouts */
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    /* Large screens: restore all grid layouts including homepage key factors */
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Continue with the existing responsive layout rules for small screens */

@media (min-width: 320px) {
    /* Responsive text */
    .text-4xl,
    .text-3xl,
    .text-2xl {
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Flexible images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Touch targets for mobile/zoom */
    button,
    a,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Exception for inline links */
    p a,
    li a,
    .prose a {
        min-height: auto;
        min-width: auto;
        display: inline;
        padding: 1px 2px;
    }
}

/* Additional zoom support */

@media (min-resolution: 1.5dppx) and (max-width: 768px) {
    /* High DPI mobile devices */
    body {
        font-size: 16px; /* Prevent zoom on focus */
    }
    
    input,
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on focus */
    }
}

/* Zoom-specific adjustments */

@supports (zoom: 2) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Ensure proper reflow at high zoom */
    .flex {
        flex-wrap: wrap;
    }
    
    .fixed {
        position: static;
    }
    
    /* Mobile menu adjustments for zoom */
    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
}

/* 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;
    }
    
    /* Remove backdrop blur for reduced motion */
    .backdrop-blur-sm,
    .backdrop-blur-xl,
    .backdrop-blur-2xl {
        backdrop-filter: none !important;
    }
}

/* 400% Zoom Support - EU Accessibility Act Requirement */

@media (min-width: 320px) and (max-width: 1280px) {
    /* At 400% zoom, 1280px becomes 320px */
    
    /* Horizontal scrolling prevention */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Flexible navigation */
    nav {
        flex-wrap: wrap;
        overflow: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    /* Stack language switcher */
    #language-switcher-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* Responsive grids become single column at high zoom */
    .grid,
    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .lg\:grid-cols-2,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4,
    .lg\:grid-cols-5 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Flexible containers */
    .container,
    .max-w-7xl,
    .max-w-4xl,
    .max-w-2xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Text reflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    p, li, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Flexible form layout */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn-primary-large,
    .form-submit-btn {
        width: 100%;
        max-width: none;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Image adjustments */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Card layouts */
    .block {
        margin-bottom: 1rem;
    }
    
    /* Footer responsive */
    footer .grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    /* Mobile menu full width */
    #mobile-menu {
        width: 100vw !important;
        max-width: none !important;
    }
}

/* Enhanced touch targets for 400% zoom */

@media (min-width: 320px) and (max-width: 1280px) {
    button,
    a,
    input[type="checkbox"],
    input[type="radio"],
    .cursor-pointer {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Form controls */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        min-height: 48px !important;
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    /* Navigation links */
    nav a {
        padding: 1rem !important;
        display: block;
        text-align: center;
    }
}

/* Horizontal scrolling test at extreme zoom */

@media (max-width: 320px) {
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .fixed {
        position: static !important;
    }
    
    nav {
        position: static !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .container,
    .max-w-7xl,
    .max-w-4xl {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Ensure text doesn't overflow */
    h1, h2, h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-4xl,
    .text-3xl,
    .text-2xl {
        font-size: 1.25rem !important;
    }
}

/* Print styles for better accessibility */

@media print {
    .no-print {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
}

/* Force body bottom spacing - footer spacing fix */

html {
    height: auto !important;
    min-height: auto !important;
}

body.bg-white.antialiased.pb-20 {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 2.5rem !important;
    background: linear-gradient(to bottom, white calc(100% - 2.5rem), #585878 calc(100% - 2.5rem)) !important;
}

/* Increase space above footer horizontal line */

footer .border-t {
    margin-top: 2.5rem !important;
}

/* Add space at the beginning of the footer */

footer#footer {
    margin-top: 5rem !important;
}

/* Alternative approach - add padding to main content */

main#main-content {
    padding-bottom: 3rem !important;
}

/* Key Factors Cards - 6 column layout and no underlines */

.no-underline,
.no-underline:hover,
.no-underline:focus,
.no-underline:active,
.no-underline h3 {
    text-decoration: none !important;
}

/* Ensure Key Factors section fits 6 cards in one row */
@media (min-width: 1024px) {
    #key-factors aside.grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 1rem !important;
    }
    
    #key-factors aside.grid a {
        min-width: auto !important;
        max-width: none !important;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1023px) and (min-width: 768px) {
    #key-factors aside.grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 767px) {
    #key-factors aside.grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Course Cards Container - Base styles only */
.course-cards-container {
    display: grid !important;
    margin: 2rem 0 !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Desktop - Almost no gap for 6 cards to fit in one row */
@media (min-width: 1024px) {
    .course-cards-container {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0.02rem !important;
    }
}

/* Tablet - 3 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .course-cards-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Mobile - 1-2 columns */
@media (max-width: 767px) {
    .course-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .course-cards-container {
        grid-template-columns: 1fr !important;
    }
}

/* Homepage cards responsive layout */
@media (min-width: 640px) {
    .homepage-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Homepage title responsive font sizing for very narrow screens (iPhone portrait) */
@media (max-width: 400px) {
    .homepage-title-responsive {
        font-size: 2.25rem !important; /* Reduced from 3rem to 2.25rem */
        line-height: 1.2 !important;
    }
    
    .homepage-card-title-responsive {
        font-size: 1.1rem !important; /* Slightly smaller card titles */
        line-height: 1.3 !important;
    }
}