
:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 4px 10px rgba(0,0,0,0.15),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

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

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-weight: 550;
}

.btn--secondary:hover {
  background-color: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);  /* Stronger outline */
  color: var(--color-primary);            /* Matches border */
}

.btn--outline:hover {
  background: rgba(var(--color-success-rgb), 0.1); /* Light hover tint */
  color: var(--color-primary-hover);
}


.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Base container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16, 16px);
  padding-left: var(--space-16, 16px);
  max-width: 100%; /* Prevents accidental overflow */
  box-sizing: border-box;
}

/* Extra small screens (phones <480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Small screens (phones/phablets) */
@media (min-width: 481px) and (max-width: 639px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }
}

/* Medium screens (tablets) */
@media (min-width: 640px) and (max-width: 767px) {
  .container {
    max-width: var(--container-sm, 640px);
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Large screens (small laptops) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: var(--container-md, 768px);
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Extra large screens */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: var(--container-lg, 1024px);
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Ultra wide screens */
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl, 1280px);
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

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

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}


/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

/* Base container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16, 16px);
  padding-left: var(--space-16, 16px);
  max-width: 100%; /* Prevents accidental overflow */
  box-sizing: border-box;
}

/* Extra small screens (phones <480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Small screens (phones/phablets) */
@media (min-width: 481px) and (max-width: 639px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }
}

/* Medium screens (tablets) */
@media (min-width: 640px) and (max-width: 767px) {
  .container {
    max-width: var(--container-sm, 640px);
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Large screens (small laptops) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: var(--container-md, 768px);
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Extra large screens */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: var(--container-lg, 1024px);
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Ultra wide screens */
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl, 1280px);
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* Custom JaviNano Styles */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--color-background), 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-standard);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-12) var(--space-16);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-12); /* space between logo and toggle */
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-12);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.inline-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  box-shadow: var(--shadow-md);
}

.theme-icon {
  font-size: var(--font-size-lg);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-standard);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  padding: var(--space-32) var(--space-24);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.nav-overlay.active .nav-menu {
  transform: translateX(0);
}

.nav-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  cursor: pointer;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin-bottom: var(--space-12);
}

.nav-link {
  display: block;
  padding: var(--space-12) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
}

.nav-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Deprecated or unused */
.nav-middle {
  display: none;
}

.nav-hamburger span {
  background: rgba(255, 255, 255, 0.85); /* Soft white, always visible on dark */
}


.nav-hamburger span {
  background: var(--color-text); /* This works if your text color switches correctly */
}


/* Main Content */
.main-content {
  padding-top: 60px;
}

.page-section {
  display: none;
  min-height: 100vh;
  padding: var(--space-32) 0;
}

.page-section.active {
  display: block;
}

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

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-top: var(--space-16);
}

/* Base container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16, 16px);
  padding-left: var(--space-16, 16px);
  max-width: 100%; /* Prevents accidental overflow */
  box-sizing: border-box;
}

/* Extra small screens (phones <480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Small screens (phones/phablets) */
@media (min-width: 481px) and (max-width: 639px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }
}

/* Medium screens (tablets) */
@media (min-width: 640px) and (max-width: 767px) {
  .container {
    max-width: var(--container-sm, 640px);
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Large screens (small laptops) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: var(--container-md, 768px);
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Extra large screens */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: var(--container-lg, 1024px);
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Ultra wide screens */
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl, 1280px);
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* Hero Section */
.hero {
  position: relative;
  background-image: url('/staging-jv/images/herojv.webp');
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: auto;
  box-sizing: border-box;
  color: #000;
  text-align: left;
}

.hero-content {
  position: absolute;
  top: auto;
  left: auto;
  transform: translateY(-50%);
  z-index: 2;

  max-width: 480px;
  width: 100%;
  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-wrapper {
  position: relative;
  height: 100vh; /* or at least height of the hero image */
}


.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* darkens the image for contrast */
  z-index: 0;
}


.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #0a0a0a; /* bold black */
  margin-bottom: var(--space-16);
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: #333333; /* improved contrast */
  margin-bottom: var(--space-32);
  line-height: 1.6;
}

.btn--green {
  background-color: #6BCB5C;
  color: #fff;
}

.btn--green:hover {
  background-color: #57B749;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 128, 141, 0.1), rgba(50, 184, 198, 0.05));
  z-index: 1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(33, 128, 141, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(50, 184, 198, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, rgba(33, 128, 141, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: float 20s ease-in-out infinite;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: center; /* center on all screens */
}

.hero-actions .btn {
  flex: 1 1 30%;
  min-width: 140px;
  max-width: 240px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    align-items: center;
    justify-content: center;
    padding-top: auto;
    padding-left: var(--space-24);
    padding-right: var(--space-24);
    text-align: center;
  }

  .hero-content {
    margin: auto;
    padding: auto;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: none;
  }

  .hero h1,
  .hero p {
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 12px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-actions button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Accreditation */
.accreditation-section {
  background-color: #001f3f; /* Navy Blue */
  padding: var(--space-48) 0;
}

.accreditation-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 100px;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 40px;
}

.accreditation-logo {
  height: 60px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* makes logos white on navy background */
  transition: transform 0.3s ease;
}

.accreditation-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Featured Products */
.featured-products {
  margin: var(--space-32) auto;
  padding: 0 var(--space-24);
  max-width: 1440px;
}

.featured-products h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-top: 96px;
  margin-bottom: var(--space-32);
  text-align: center;
}

/* Featured Products - Mobile Fix */
@media (max-width: 480px) {
  .products-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
  }

  .product-card {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    background-color: var(--color-surface);
  }

  .product-media video,
  .product-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: var(--radius-sm);
  }

  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .product-info p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .product-info .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .featured-products h2 {
    font-size: 1.6rem;
    margin-top: 48px;
    margin-bottom: 24px;
  }
}

/* Grid Structure */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .featured-products h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 16px;
  }

  .products-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
  }

  .product-card {
    width: 100%;
    text-align: center;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }

  .product-media img,
  .product-media video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
  }

  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .product-info p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .product-info .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Product Card Layout */
.product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  transition: all var(--duration-normal) var(--ease-standard);
}

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

/* Image/Video Block */
.product-media {
  flex: 0 0 350px;
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* Play Button */
.product-card:first-child .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text Area */
.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.product-info p {
   font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* === HOME MISSION SECTION (Homepage Only) === */
/* Section Wrapper */
.showcase-section {
  background-color: var(--color-surface);
  padding: var(--space-64) var(--space-24);
}

.showcase-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1440px;
  Height: 700px;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrap on mobile */
}

/* Left Image Block */
.showcase-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

@media (max-width: 480px) {
  .showcase-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
  }

  .showcase-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
  }

  .showcase-text {
    width: 100%;
    text-align: center;
  }

  .subscribe-block {
    padding-top: 16px;
  }

  .subscribe-title {
    font-size: 1.2rem;
  }

  .subscribe-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .subscribe-block button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Right Text Block */
.showcase-text {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
}

.showcase-text h2 {
  font-size: 2.75rem;
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.keywords-line {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.keywords {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  color: var(--color-primary);
  display: inline-block;
}

.global-highlight-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-secondary); /* Adjust if needed */
  max-width: 800px;
  margin-top: var(--space-16);
  margin-bottom: var(--space-32);
}


.subscribe-form {
  margin-top: 0;
  display: flex;
  gap:10px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 220px;
}

.subscribe-form button {
  padding: var(--space-8) var(--space-16);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.subscribe-block {
  margin-top: 96px; /* Adjust this value as needed */
}

.subscribe-title {
  display: block;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
}

.subscribe-text {
  font-size: 0.75rem;
  margin-bottom: var(--space-8);
}



/* Responsive */
@media (max-width: 480px) {
  .product-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .product-text,
  .product-visuals {
    width: 100%;
  }

  .product-image-wrapper {
    text-align: center;
  }

  .product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .product-actions {
    flex-direction: column;
    gap: 12px;
  }

  .product-applications ul {
    padding-left: 18px;
  }

  .product-sizes .product-size {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}

@media (max-width: 768px) {
  .showcase-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .showcase-text {
    max-width: 100%;
  }

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

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

/* Newsletter */
.newsletter {
  margin: var(--space-32) 0;
}

.newsletter-form {
  display: flex;
  gap: var(--space-12);
  align-items: flex-end;
}

.newsletter-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Social Media */
.social-media {
  text-align: center;
  margin: var(--space-32) 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-24);
  margin-top: var(--space-16);
}

.social-link {
  padding: var(--space-12) var(--space-16);
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
}

.social-link:hover {
  background: var(--color-secondary-hover);
  transform: translateY(-2px);
}

/* === About Section: General Layout === */
.about-page {
  background-color: white; /* Add this */
  background-image: none;    /* Or comment this if you want solid */
}

.about-page .container {
  background: none;
  padding: var(--space-64) var(--space-24);
}

.about-content {
  max-width:100%;
  margin: 0 auto;
}

.about-content > div {
  margin-bottom: var(--space-32);
}

.about-page .section-header h1 {
  color: black;
  font-weight: var(--font-weight-bold);
  text-align: left;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-top: 60px;
  margin-bottom: 60px;
}

.about-page .section-header .section-subtitle {
  color: black;
  font-weight: normal;
  text-align: left;
}

.about-founder p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  text-align: justify;
}

.highlight-decade {
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* === Shared Layout for Block Sections (Text + Images) === */
.about-history-block {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row; /* Image on RIGHT */
  gap: var(--space-32);
  background: rgba(255, 255, 255, 0.85);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  margin-bottom: var(--space-64);
}


.about-commitment-block {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Image on LEFT */
  gap: var(--space-32);
  background: rgba(255, 255, 255, 0.85);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  margin-bottom: var(--space-64);
}

.commitment-images {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.section-separator {
  height: 80px;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* === Text Column === */
.history-text-layer {
  flex: 1;
  min-width: 100px;
  display: flex;
  line-height: 2.0;
  flex-direction: column;
  justify-content: center;   /* Vertically center the text */
  color: #000;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  margin-top: 20px;
}

.history-text-layer h2 {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
}


.history-text-layer p {
  font-size: 1.2rem;
  text-align: justify;
  flex: 1;
  min-width: 100px;
  display: flex;
  line-height: 2.0;
  flex-direction: column;
  justify-content: center;   /* Vertically center the text */
  color: #000;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  margin-top: 20px;
}

/* === Image Column === */
.history-images {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.history-img,
.commitment-img {
  width: 100%;
  max-width: 400px; /* or whatever you prefer */
  height: auto;
  object-fit: contain; /* show full image without cropping */
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  align-self: center; /* center the image vertically in the column */
}


/* === Typography Override for All Text Inside .about-page === */
.about-page p,
.about-page h2,
.about-page h3,
.about-page li {
  color: #000 !important;
}

/* === Responsive Adjustment === */
@media (max-width: 768px) {
  .about-history-block,
  .about-commitment-block {
    flex-direction: column;
  }

  .history-img,
  .commitment-img {
    margin-bottom: var(--space-24);
  }
}

/* === Feature Grid === */
.highlight-grid-wrapper {
  max-width: 900px;
  margin: 0 auto; /* Center the block */
  padding: 0 var(--space-24); /* Optional padding */
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
}

.highlight-item {
  border: 1px solid var(--color-border);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  text-align: center;
}

.highlight-item h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.highlight-item p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.feature-item:hover {
  transform: scale(1.03); /* Subtle hover effect for interactivity */
}

/*
.feature-item h3 {
  font-size: 1.6rem; /* Previously likely 1.2-1.4rem */
  margin-bottom: var(--space-16);
  font-weight: bold;
}
*/

.feature-item p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .product-card {
    width: 100%;
    text-align: center;
  }

  .product-card img,
  .product-card video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .ecommerce-header h1 {
    font-size: 1.5rem;
  }

  .ecommerce-headsub {
    font-size: 1rem;
    margin-bottom: 16px;
  }
}

/* === Facilities Grid === */
.facilities-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  text-align: center;
  line-height: 1.2;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
  align-items: start;
}

.facility-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%; /* allow flexible height */
}

.facility-img {
  width: 100%;
  height: 300px;
  object-fit: contain; /* Fit full image without zoom/crop */
  margin-bottom: var(--space-16);
  border-radius: var(--radius-md);
}

.facility-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-8);
  line-height: 1.2;
}

.about-facilities .facilities-wrapper h2 {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
  margin-bottom: 40px;
}


.facility-card p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.2;
  text-align: justify;
}

.alice-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
}

.status {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-top: var(--space-8);
}

.status--success {
  background-color: #e0fbe5;
  color: #118c4f;
}

.status--warning {
  background-color: #fff4cc;
  color: #b98500;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Products Section */
.products-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.product-item {
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* === Split Layout === */
.product-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .product-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .product-text {
    flex: 1 1 60%;
  }

  .product-visuals {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
  }
  
  @media (min-width: 1024px) {
  .products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32);
  }

  .product-item {
    height: 100%;
  }
}

/* === Image + Badge === */
.product-image-wrapper {
  position: relative;
  margin-bottom: var(--space-16);
}

.product-image {
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #2ecc71;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--color-surface);
}

.status-badge--danger {
  position: absolute;
  top: 32px; /* below the green badge */
  right: -10px;
  background-color: #f39c12; /* vibrant orange */
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--color-surface);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* === Description and Applications === */
.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
}

.product-applications {
  margin-bottom: var(--space-24);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.product-applications ul {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0 0;
}

.product-applications li {
  padding: var(--space-4) 0;
  padding-left: var(--space-16);
  position: relative;
}

.product-applications li:before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
}

/* === Action Buttons === */
.product-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-16);
}

.product-btn {
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 8px;
}

.product-btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.product-btn--outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.product-btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border: 2px solid transparent;
}

.product-btn--primary:hover {
  background-color: var(--color-primary-hover);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* === Sizes === */
.product-sizes {
  margin-top: var(--space-16);
  text-align: right;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.product-size {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f1f1;
  font-weight: 600;
  color: #333;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.product-size:hover {
  transform: scale(1.1);
  background-color: #e5f6ff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Industries Section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
}

#industries {
  padding: 0; /* optional: extra spacing */
  margin-top: 40px;
}

.industry-card {
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

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

.industry-card h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.industry-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-16) 0;
}

.industry-card li {
  padding: var(--space-6) 0;
  padding-left: var(--space-16);
  position: relative;
}

.industry-card li:before {
  content: "✓";
  color: var(--color-success);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.industry-benefits {
  margin-top: var(--space-20);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-card-border-inner);
}

.industry-benefits h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* E-commerce Section */
.ecommerce-content {
  max-width:4000px;
  margin: 0 auto;
}

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

.ecommerce-header h1 {
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.ecommerce-headsub {
  font-size: var(--font-size-md); /* Or 15px if your scale doesn't support it */
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  line-height: 1.5;
}

.payment-options {
  margin-bottom: var(--space-32);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.payment-option {
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.payment-options h2 {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
}

.products-catalog {
  margin-bottom: var(--space-32);
}

.products-catalog h2 {
  margin-bottom: var(--space-32);
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
  }

  .product-text {
    width: 100%;
    text-align: left;
  }

  .product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .product-text ul,
  .product-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Product Card */
.catalog-item {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Image Container with Fixed Aspect Ratio */
.product-image-bundle-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* Controls image consistency */
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Product Image */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges */
.product-image-bundle-container .badge {
  position: absolute;
  top: var(--space-8);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: var(--radius-sm);
  color: #fff;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

.badge--purity {
  left: var(--space-8);
  background-color: #28a745;
}

.badge--hazard {
  right: var(--space-8);
  background-color: #fd7e14;
}

/* Content inside card */
.catalog-item > h3,
.catalog-item > .pricing,
.catalog-item > .quantity-selector,
.catalog-item > .terms-section,
.catalog-item > #paypal-aluminum {
  padding: var(--space-16) var(--space-20) 0;
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-12) 0;
}

.price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.bulk-price {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.quantity-selector {
  margin: var(--space-16) 0;
}

.purchase-terms {
  margin-top: var(--space-32);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.term-item {
  padding: var(--space-20);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
}

.terms-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.terms-box {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.terms-scroll {
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding-right: 10px;
}

.terms-box .close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.catalog-item [id^="paypal-"] {
  margin-top: 15px !important;
  display: block;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
  }

  .product-text {
    width: 100%;
    text-align: left;
  }

  .product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .product-text ul,
  .product-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Custom Quantity Input */
.custom-input {
  display: none;
  margin-top: var(--space-12);
}

.custom-input label {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  display: block;
}

.custom-input input {
  width: 100%;
  padding: var(--space-8);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
}

.custom-input {
  display: none;
  margin-top: 10px;
}

.custom-input.show {
  display: block !important;
}

.purchase-terms {
  margin-top: var(--space-32); /* Match spacing like payment section */
  padding: 0;                  /* No inner padding */
  background: none;            /* Inherit background */
  border: none;                /* Remove visual separator */
}

.purchase-terms h2 {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
  margin-bottom: var(--space-24);
  color: var(--color-text);
  text-align: left; /* If payment method uses left */
}

.term-item {
  background: #fdfdfd;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.term-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.term-item h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-12);
  color: var(--color-primary);
}

.term-item ul {
  list-style-type: disc;
  padding-left: var(--space-20);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.term-item ul li {
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Certifications Section */
.certifications-content {
  max-width: 1000px;
  margin: 0 auto;
}

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

.certification-header h1 {
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.certification-headsub {
  font-size: var(--font-size-md); /* Or 15px if your scale doesn't support it */
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  line-height: 1.5;
}

.cert-card {
  margin-top: var(--space-32); /* Match spacing like payment section */
  padding: 0;                  /* No inner padding */
  background: none;            /* Inherit background */
  border: none;                /* Remove visual separator */
  text-align: justify; /* card*/
}

.cert-card h2 {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-top: 20px;
  margin-bottom: var(--space-24);
  color: var(--color-text);
  text-align: center; /* If payment method uses left */
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.cert-card {
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
}

.cert-details {
  margin: var(--space-16) 0;
}

.cert-details ul {
  list-style: none;
  padding: 0;
  margin: var(--space-12) 0;
}

.cert-details li {
  padding: var(--space-6) 0;
  padding-left: var(--space-16);
  position: relative;
}

.cert-details li:before {
  content: "✓";
  color: var(--color-success);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.cert-button-box {
  background: var(--color-secondary, #f2f2f2);
  padding: 16px;
  border-radius: var(--radius-base, 8px);
  margin-top: 20px;
  text-align: center;
}

.cert-button {
  background: var(--color-primary, #0047ab);
  color: white;
  border: none;
  border-radius: var(--radius-sm, 6px);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cert-button:hover {
  background: var(--color-primary-hover, #003580);
}

.sds-downloads {
  margin-bottom: var(--space-32);
  text-align: center;
}

.sds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.enterprise-requirements h2 {
  margin-top: var(--space-48);
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-24);
  color: var(--color-text);
  text-align: left; /* If payment method uses left */
}

.cert-card {
  margin-top: var(--space-32); /* Match spacing like payment section */
  padding: 0;                  /* No inner padding */
  background: none;            /* Inherit background */
  border: none;                /* Remove visual separator */
  text-align: justify; /* card*/
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.requirement-item {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.05));
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.requirement-item h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary, #0047ab);
}

.requirement-item p {
  font-size: 1.2rem;
  color: var(--color-text, #444);
  margin-top: 8px;
  margin-bottom: 8px;
}


.certification-image-container {
  margin: 40px 0;
  text-align: center;
}

.certification-image-container .cert-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.industry-insight {
  background: var(--color-surface);
  padding: 40px 20px;
  margin: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.insight-header h2 {
  font-size: 2.75rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.insight-header p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  text-align: justify;
}

.insight-article h3 a {
  color: var(--color-link);
  margin-bottom: 20px;
  font-size: 1.55rem;
  text-decoration: none;
  font-size: 1.25rem;
}

.insight-article p {
  color: var(--color-text);
  line-height: 1.6;
  text-align: justify;
}

.read-more a {
  font-weight: bold;
  text-decoration: underline;
  color: var(--color-accent);
}

/* Mobile spacing and typography tweaks */
@media (max-width: 768px) {
  .certifications-grid {
    gap: 20px;
  }

  .cert-card {
    padding: 20px;
  }

  .insight-header h2 {
    font-size: 1.5rem;
  }

  .insight-article h3 a {
    font-size: 1.1rem;
  }
}

/* Contact Section */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-column {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.facility-info {
  margin-bottom: 20px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.newsletter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  font-weight: 600;
}

.status--success {
  background: #d4f5e0;
  color: #117d3f;
}

.status--warning {
  background: #fff2cc;
  color: #8a6d00;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.facility-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.05));
  text-align: center;
  transition: transform 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-4px);
}

.facility-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 16px;
}

.facility-role {
  font-weight: 600;
  color: var(--color-primary, #0047ab);
  margin-bottom: 8px;
}

.facility-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted, #666);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .facility-grid {
    flex-direction: column;
  }

  .facility-card {
    width: 100%;
  }
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-column {
    width: 100%;
  }

  .newsletter-group {
    flex-direction: column;
  }
}

.contact-form-section {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-lg, 12px);
  padding: 32px;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.05));
}

.contact-form-section h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--color-primary, #0047ab);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text, #333);
}

.form-control {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  color: #333;
  transition: border 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-primary, #0047ab);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn--full-width {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
}

#contact-message {
  min-height: 160px;         /* Increases visible height */
  resize: vertical;          /* Allows the user to manually stretch it if needed */
  line-height: 1.6;
  padding: 12px;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

.newsletter-signup {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-lg, 12px);
  padding: 32px;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.05));
  margin-top: 32px;
  text-align: center;
}

.newsletter-signup h2 {
  font-size: 1.5rem;
  color: var(--color-primary, #0047ab);
  margin-bottom: 8px;
}

.newsletter-signup p {
  color: var(--color-text-muted, #666);
  margin-bottom: 20px;
}

.newsletter-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-group .form-control {
  flex: 1 1 50px;
}

.newsletter-group .btn {
  flex-shrink: 0;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .section-class {
    flex-direction: column; /* or grid-template-columns: 1fr; */
    padding: 16px;
    text-align: center;
    gap: 16px;
  }

  .section-class img {
    max-width: 100%;
    height: auto;
  }

  .section-class h1,
  .section-class h2 {
    font-size: 1.5rem;
  }
}

/* Mobile tweak */
@media (max-width: 600px) {
  .newsletter-group {
    flex-direction: column;
  }

  .newsletter-group .form-control {
    width: 100%;
  }

  .newsletter-group .btn {
    width: 100%;
  }
}


/* Privacy Section */
/* === Final Styling for #privacy-policy using only .container === */
#privacy-policy {
  padding: var(--space-64, 64px) 0;
  background-color: #f9f9f9;
}

#privacy-policy .container {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text, #1a1a1a);
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

#privacy-policy h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-24, 24px);
  color: var(--color-primary, #002f6c);
  text-align: center;
}

#privacy-policy h2 {
  font-size: 1.5rem;
  margin-top: var(--space-40, 40px);
  margin-bottom: var(--space-12, 12px);
  color: var(--color-heading, #004b91);
  border-bottom: 2px solid var(--color-heading, #004b91);
  padding-bottom: 6px;
}

#privacy-policy h3 {
  font-size: 1.25rem;
  margin-top: var(--space-24, 24px);
  margin-bottom: var(--space-8, 8px);
  color: var(--color-primary-dark, #003366);
}

#privacy-policy p {
  margin-bottom: var(--space-12, 12px);
  font-size: 1rem;
  text-align: justify;
}

#privacy-policy ul {
  padding-left: var(--space-24, 24px);
  margin-bottom: var(--space-20, 20px);
}

#privacy-policy ul li {
  margin-bottom: var(--space-8, 8px);
  list-style-type: disc;
}

#privacy-policy a {
  color: var(--color-link, #0047ab);
  text-decoration: underline;
}

#privacy-policy a:hover {
  text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #privacy-policy h1 {
    font-size: 2rem;
  }

  #privacy-policy h2 {
    font-size: 1.3rem;
  }

  #privacy-policy h3 {
    font-size: 1.1rem;
  }

  #privacy-policy p,
  #privacy-policy ul li {
    font-size: 0.95rem;
    
  }
}

/* Footer - General Improvements for Responsiveness */
.footer {
  background-color: #001f3f;
  border-top: 1px solid var(--color-border);
  padding: var(--space-32) var(--space-16) var(--space-16);
  color: white;
  margin-top: var(--space-32);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  padding: 0 var(--space-16);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--space-16);
  color: #b0c4e8;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-8);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d0d6e1;
}

.footer-section li a {
  color: #b0c4e8;
  transition: color 0.3s ease;
}

.footer-section li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border);
}

.social-buttons {
  display: flex;
  gap: var(--space-24);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-16);
}

.social-button img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 40px;  /* Default desktop/tablet size */
  height: 40px;
}

@media (max-width: 500px) {
  .social-button img {
    width: 28px !important;
    height: 28px !important;
  }
}

.social-button:hover img {
  transform: scale(1.1);
}

.footer a {
  color: white;
  text-decoration: none;
}

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

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    margin-bottom: var(--space-24);
  }
  .social-buttons {
    gap: var(--space-16);
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-24) var(--space-12);
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section li {
    font-size: 0.9rem;
  }

  .social-button {
    width: 2px;
    height: 2px;
  }
}

.chat-widget {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-20);
  z-index: 1000;
}

.chat-button {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: none;
  color: white;
  font-size: var(--font-size-xl);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.chat-button:hover {
  transform: translateY(-2px);
}

.chat-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-height: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
}

.chat-popup.active {
  display: flex;
}

@media (max-width: 768px) {
  .chat-popup {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .chat-popup {
    width: calc(100vw - 40px);
    right: var(--space-20);
  }
}

@media (max-width: 500px) {
  .social-buttons img {
    width: 2px !important;
    height: 2px !important;
    border: 2px solid red; /* TEMP visual aid */
  }
}


.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.chat-messages {
  flex: 1;
  padding: var(--space-16);
  overflow-y: auto;
  max-height: 300px;
}

.chat-message {
  margin-bottom: var(--space-12);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
}

.chat-message.bot {
  background: var(--color-secondary);
  margin-right: var(--space-32);
}

.chat-message.user {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  margin-left: var(--space-32);
  text-align: right;
}

.chat-input {
  display: flex;
  padding: var(--space-16);
  border-top: 1px solid var(--color-border);
  gap: var(--space-8);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-8);
  font-size: var(--font-size-sm);
}

.chat-input button {
  padding: var(--space-8) var(--space-12);
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-size: var(--font-size-sm);
}


/* Smooth transitions */
* {
  transition: color var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}