:root {
  --color-primary: #1a365d;
  --color-secondary: #e53e3e;
  --color-background: #ffffff;
  --color-footer-bg: #2d3748;
  --color-button: #1a365d;

  --section-bg-1: #f7fafc;
  --section-bg-2: #ffffff;
  --section-bg-3: #edf2f7;

  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-white: #ffffff;
  --color-black: #000000;

  --color-border: #000000;

  --radius-sm: 0px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-button: 4px 4px 0 #000000;
  --shadow-card: 6px 6px 0 #000000;
  --shadow-card-hover: 10px 10px 0 #000000;
  --shadow-elev: 0 2px 0 #000000, 0 4px 0 #000000;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-heading: "IBM Plex Serif", Georgia, "Times New Roman", Times, serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Base */
html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-secondary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-sm) 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}
.section:nth-of-type(odd) {
  background-color: var(--section-bg-1);
}
.section:nth-of-type(even) {
  background-color: var(--section-bg-2);
}
.section.alt {
  background-color: var(--section-bg-3);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Cards (Neo-Brutalism: thick border, shadow offset) */
.card {
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-hover);
}
.card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}
.card h3, .card h4, .card h5 {
  margin-top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
  text-decoration: none;
  user-select: none;
}
.btn-primary {
  background-color: var(--color-button);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
  background-color: var(--color-primary);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}
.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
  background-color: #c53030;
}
.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}
.btn-outline {
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-button);
}
.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
  background-color: var(--section-bg-3);
}
.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px dashed var(--color-secondary);
  outline-offset: 3px;
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}
.form-group {
  display: grid;
  gap: 0.5rem;
}
.form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-control {
  appearance: none;
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  box-shadow: 0 2px 0 #000000;
}
.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
.form-control:hover {
  background-color: var(--section-bg-3);
}
.form-control:focus {
  outline: 3px dashed var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 2px 0 #000000;
}

/* Header (basic styling; preserve Tailwind navbar compatibility) */
.header {
  position: relative;
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-border);
}
.header .nav a {
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--color-footer-bg);
  color: #e2e8f0;
  border-top: 2px solid var(--color-border);
  padding: var(--space-xl) 0;
}
.footer a {
  color: #f7fafc;
  text-decoration: underline;
}
.footer a:hover {
  color: #ffffff;
}

/* Utility badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--section-bg-3);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Hero */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background-color: var(--section-bg-2);
  border-bottom: 2px solid var(--color-border);
}
.hero h1 {
  margin-bottom: var(--space-sm);
}
.hero p.lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* News ticker (CSS animation) */
.news-ticker {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  overflow: hidden;
  white-space: nowrap;
}
.news-ticker__inner {
  display: inline-block;
  padding: 0.5rem 0;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.news-ticker__item {
  display: inline-block;
  margin-right: 2.5rem;
  font-weight: 700;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Featured grid */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--space-lg); }
}

/* Table (clean but bold) */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-elev);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table th, .table td {
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}
.table thead th {
  background-color: var(--section-bg-1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table tbody tr:nth-child(even) td {
  background-color: var(--section-bg-3);
}
.table tbody tr:hover td {
  background-color: #e6fffa;
}

/* Accent rule */
.hr-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  border: 2px solid var(--color-border);
  border-radius: 2px;
  margin: var(--space-lg) 0;
}

/* Small helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print */
@media print {
  .news-ticker, .btn { display: none !important; }
  .card, .table { box-shadow: none !important; }
  a { text-decoration: none !important; }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}