/* static/css/main.css */

/* =========================
   RESET
========================= */
:where(html, body, :root, *) { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* =========================
   PALETTE: extracted color tokens and semantic mapping
========================= */
:root {
  --palette-primary-600: #163046;
  --palette-primary-500: #1f3a5f;
  --palette-accent-500: #2fa4a9;

  --palette-surface: #ffffff;
  --palette-neutral-100: #f4f7fb;

  --palette-text-900: #1f2937;
  --palette-muted-500: #6b7280;

  --palette-success-500: #10b981;
  --palette-danger-500: #ef4444;

  --palette-table-even: #f1f5fb;
  --palette-table-odd: #ffffff;
  --palette-table-hover: #e6f4f4;

  --palette-overlay-weak: rgba(0,0,0,0.06);
}

/* Semantic tokens */
:root {
  --color-primary: var(--palette-primary-500);
  --color-primary-acc: var(--palette-primary-600);
  --color-accent: var(--palette-accent-500);

  --color-surface: var(--palette-surface);
  --color-bg-soft: var(--palette-neutral-100);

  --color-text: var(--palette-text-900);
  --color-muted: var(--palette-muted-500);

  --color-success: var(--palette-success-500);
  --color-danger: var(--palette-danger-500);

  --table-row-even: var(--palette-table-even);
  --table-row-odd: var(--palette-table-odd);
  --table-hover: var(--palette-table-hover);

  --overlay-weak: var(--palette-overlay-weak);
  --white: var(--palette-surface);
}

/* Dark mode - system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --palette-surface: #0b1220;
    --palette-neutral-100: #071020;
    --palette-text-900: #e6eef8;
    --palette-muted-500: #9fb4c9;
    --palette-primary-500: #6fa7ff;
    --palette-primary-600: #3b7bd6;
    --palette-table-even: #091421;
    --palette-table-odd: #07131f;
    --palette-table-hover: rgba(111,167,255,0.08);
    --palette-overlay-weak: rgba(0,0,0,0.06);
    --palette-accent-500: #2fa4a9;
  }
}

/* Dark mode - manual override */
:root[data-theme="dark"] {
  --palette-surface: #0b1220;
  --palette-neutral-100: #071020;
  --palette-text-900: #e6eef8;
  --palette-muted-500: #9fb4c9;
  --palette-primary-500: #6fa7ff;
  --palette-primary-600: #3b7bd6;
  --palette-table-even: #091421;
  --palette-table-odd: #07131f;
  --palette-table-hover: rgba(111,167,255,0.08);
  --palette-overlay-weak: rgba(0,0,0,0.06);
  --palette-accent-500: #2fa4a9;
}

/* =========================
   GLOBAL
========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   DESIGN TOKENS
========================= */
:root {
  /* Radii */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-soft: 0 12px 28px rgba(0,0,0,0.08);
  --shadow-lift: 0 18px 40px rgba(0,0,0,0.12);

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;

  /* Breakpoints (documented for reference) */
  --bp-lg: 992px;
  --bp-md: 768px;
  --bp-sm: 600px;
  --bp-xs: 480px;

  /* Assets */
  --footer-wave-url: url('../pages/waves.png');

  /* Semantic tokens */
  --focus-outline: rgba(47,164,169,0.28);
  --focus-outline-strong: rgba(47,164,169,0.35);
  --header-grad-start: var(--color-primary);
  --header-grad-end: var(--color-primary-acc);
  --flag-width: 40px;
  --flag-height: 26px;
}

/* =========================
   BASE TYPOGRAPHY
========================= */
html { font-size: 16px; }
body {
  font-family: Inter, "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.75;
  color: var(--color-text);
  background: radial-gradient(circle at top, #f8fafc 0%, var(--color-bg-soft) 65%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(h1,h2,h3) {
  color: var(--color-primary);
  font-weight: 700;
  margin-block-end: 0.75em;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.3px;
}

p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  text-decoration: underline;
}

b, strong {
  font-size: 1.1em;
}

/* =========================
   LAYOUT: HEADER & NAVBAR
========================= */
header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-acc) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar {
  background: transparent;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-brand img {
  max-height: 56px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: #1f2937;
  font-weight: 500;
  position: relative;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(47,164,169,0.25);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
}

:where(.navbar-nav .nav-link, .navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus, .navbar-nav .nav-link.active) {
  text-decoration: none;
  border-bottom: none;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-acc) 50%, var(--color-accent) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: -4rem -3.5rem 3rem -3.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  color: white;
  animation: slideInDown 0.6s ease-out;
}

.hero-section p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: slideInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
  animation: slideInUp 0.6s ease-out 0.4s backwards;
}

.hero-cta .btn {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100px;
    opacity: 1;
  }
}

/* =========================
   MAIN CONTENT
========================= */
main {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 3.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: fadeIn 0.4s ease-out;
}

main h1 {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

main h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 2px;
  animation: slideInRight 0.6s ease-out 0.2s backwards;
}

main > h2 {
  margin-top: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-soft);
}

.content-section {
  margin-bottom: 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(47,164,169,0.03) 0%, rgba(31,58,95,0.02) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(31,58,95,0.08);
  border-bottom: 1px solid rgba(47,164,169,0.1);
  animation: scaleIn 0.3s ease-out;
}

.content-section:hover {
  box-shadow: 0 12px 32px rgba(31,58,95,0.12);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-intro {
  font-size: 1.05rem;
  margin-bottom: 1.2em;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn:hover::before,
.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  color: var(--white);
  padding: 0.85em 2.2em;
  box-shadow: 0 8px 20px rgba(47,164,169,0.3);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47,164,169,0.4);
  will-change: transform, box-shadow;
}

.btn-primary:not(:hover):not(:active) {
  will-change: auto;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--focus-outline-strong);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(31,58,95,0.1);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31,58,95,0.25);
  transform: translateY(-2px);
}

input[type="submit"],
input[type="button"],
button[type="submit"] {
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  color: var(--white);
  padding: 0.75em 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47,164,169,0.3);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47,164,169,0.4);
}

input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
button[type="submit"]:focus-visible {
  outline: 3px solid var(--focus-outline-strong);
  outline-offset: 2px;
}

/* =========================
   SIDEBAR
========================= */
aside {
  border-left: 2px solid var(--color-accent);
  padding-inline-start: 2rem;
}

.sponsors-widget {
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(47,164,169,0.03) 100%);
  border: 1px solid rgba(47,164,169,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.sponsors-widget h6 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.sponsor-card {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  background: linear-gradient(135deg, rgba(47,164,169,0.1), rgba(31,58,95,0.05));
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px rgba(47,164,169,0.15);
  transform: translateY(-4px);
  will-change: transform, background;
}

.sponsor-card:not(:hover):not(:focus-visible) {
  will-change: auto;
}

.sponsor-card .sponsor-logo,
.sponsor-card img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 72px;
  height: auto;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.sponsor-card:hover .sponsor-logo,
.sponsor-card:focus-visible .sponsor-logo,
.sponsor-card:hover img,
.sponsor-card:focus-visible img {
  transform: scale(1.08);
}

/* =========================
   TABLES
========================= */
.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  background: var(--color-surface);
  contain: paint layout;
}

.table-responsive table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, var(--header-grad-start), var(--header-grad-end));
  color: var(--white);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.schedule-table,
.conf-schedule,
.noheader-striped {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.5;
}

.schedule-table th,
.schedule-table td,
.conf-schedule th,
.conf-schedule td,
.noheader-striped th,
.noheader-striped td {
  padding: 0.9em 1.1em;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  text-align: left;
}

.schedule-table thead th,
.conf-schedule thead th,
.noheader-striped thead th {
  background: linear-gradient(180deg, var(--header-grad-start), var(--header-grad-end));
  color: var(--white);
  font-weight: 700;
  position: relative;
}

.schedule-table thead th:first-child,
.conf-schedule thead th:first-child,
.noheader-striped thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.schedule-table thead th:last-child,
.conf-schedule thead th:last-child,
.noheader-striped thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

.schedule-table tbody tr:last-child > td:first-child,
.conf-schedule tbody tr:last-child > td:first-child,
.noheader-striped tbody tr:last-child > td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.schedule-table tbody tr:last-child > td:last-child,
.conf-schedule tbody tr:last-child > td:last-child,
.noheader-striped tbody tr:last-child > td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

.schedule-table tbody tr:nth-of-type(odd) > * {
  background: var(--table-row-odd);
}

.schedule-table tbody tr:nth-of-type(even) > * {
  background: var(--table-row-even);
}

.schedule-table tbody tr:is(:hover, :focus-within) > * {
  background: var(--table-hover);
  transform: translateZ(0);
  will-change: background, transform;
}

.schedule-table tbody tr:not(:hover):not(:focus-within) {
  will-change: auto;
}

.conf-schedule tbody tr:nth-of-type(odd) > * {
  background: var(--table-row-odd);
}

.conf-schedule tbody tr:nth-of-type(even) > * {
  background: var(--table-row-even);
}

.conf-schedule tbody tr:is(:hover, :focus-within) > * {
  background: var(--table-hover);
  transform: translateZ(0);
  will-change: background, transform;
}

.conf-schedule tbody tr:not(:hover):not(:focus-within) {
  will-change: auto;
}

.noheader-striped tbody tr:nth-of-type(odd) > * {
  background: var(--table-row-odd);
}

.noheader-striped tbody tr:nth-of-type(even) > * {
  background: var(--table-row-even);
}

.noheader-striped tbody tr:is(:hover, :focus-within) > * {
  background: var(--table-hover);
  transform: translateZ(0);
}

/* =========================
   IMPORTANT DATES
========================= */
.important-dates {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
}

.important-dates h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.date-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--color-bg-soft);
  border: 1px solid rgba(47,164,169,0.1);
  box-shadow: 0 6px 18px rgba(47,164,169,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(47,164,169,0.12);
}

.icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7cff, #6a9cff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79,124,255,0.2);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  display: block;
  vertical-align: middle;
  transform-origin: center;
  transform: translateY(0.1em);
}

.icon--filled svg,
.icon--filled svg * {
  fill: currentColor;
  stroke: none;
}

.icon--line svg,
.icon--line svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.icon--line svg {
  transform: translateY(0.08em) scale(1.06);
}

.icon--line path[fill]:not([stroke]) {
  fill: none;
  stroke: currentColor;
}

.icon--accent {
  --icon-foreground: var(--white);
  color: var(--icon-foreground);
}

.icon--success {
  --icon-foreground: var(--white);
  color: var(--icon-foreground);
}

.icon--muted {
  --icon-foreground: var(--color-muted);
  color: var(--icon-foreground);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.date {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* =========================
   FORMS
========================= */
form {
  max-width: 700px;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.form-label .required,
.form-label .required::after,
.required {
  display: inline;
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-bg-soft);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(47,164,169,0.08);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--focus-outline), 0 4px 12px rgba(47,164,169,0.15);
  background: linear-gradient(135deg, rgba(47,164,169,0.02), rgba(31,58,95,0.01));
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  padding: 1rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.form-check:hover {
  background: linear-gradient(135deg, rgba(47,164,169,0.04), rgba(31,58,95,0.02));
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0.3rem;
  accent-color: var(--color-accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-check-label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.text-danger {
  color: var(--color-danger);
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col-md-6 {
  flex: 0 0 50%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

/* =========================
   INFO & WARNING BOXES
========================= */
.info-box {
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-primary);
  padding: 1em 1.2em;
  border-radius: 8px;
  margin: 1em 0 1.5em 0;
}

.warning-box {
  background: #fff8e6;
  border-left: 4px solid #f59e0b;
  padding: 1em 1.2em;
  border-radius: 8px;
  margin: 1.5em 0;
}

.account-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--overlay-weak);
  padding: 1.2em;
  border-radius: 10px;
  margin-top: 1em;
}

/* =========================
   LISTS
========================= */
ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.6;
}

ul li, ol li {
  margin: 0 0 0.4rem 0;
  padding: 0;
  color: var(--color-muted);
}

.feature-list ul {
  margin-left: 1.2em;
}

.feature-list li {
  margin-bottom: 0.4em;
}

/* =========================
   DETAILS TABLE
========================= */
.details-table {
  border-collapse: collapse;
}

.details-table td {
  padding: 0.35em 0.8em 0.35em 0;
  vertical-align: top;
}

.details-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 160px;
}

/* =========================
   FOOTER
========================= */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
  border-radius: 0;
}

footer > * {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  color: var(--white);
}

footer a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

footer::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: 140px;
  background-image: var(--footer-wave-url);
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: cover;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* =========================
   LOGO & FLAGS
========================= */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 60px;
  overflow: visible;
  flex-wrap: nowrap;
  margin: 2.5rem 0;
}

.logo-wrap h1 {
  flex: 1;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.navbar-logo {
  max-height: 56px;
  height: auto;
}

.navbar-logo + .navbar-logo {
  margin-left: 0.75rem;
}

.sponsor-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.flag-img,
.language-flag,
.flag-icon,
.flag-icon-squared {
  width: var(--flag-width);
  height: var(--flag-height);
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =========================
   LINK STYLES
========================= */
a:not(.btn):not(.nav-link):not(.sponsor-card) {
  position: relative;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn):not(.nav-link):not(.sponsor-card):hover {
  border-bottom-color: var(--color-accent);
  padding-bottom: 4px;
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus,
.skip-link:active {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--color-primary);
  color: var(--white);
  z-index: 9999;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

:where(button, a, .btn, .sponsor-card, .navbar-nav .nav-link):focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 3px;
  box-shadow: 0 6px 18px rgba(47,164,169,0.12);
}

/* =========================
   UTILITIES
========================= */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.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;
}

.vh-focusable:focus {
  clip: auto;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
}

.text-muted {
  color: var(--color-muted);
}

.muted {
  font-size: 0.85em;
  color: var(--color-muted);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

/* =========================
   RESPONSIVE STYLES
========================= */
@media (max-width: 992px) {
  main {
    margin: 2rem 1rem;
    padding: 2rem;
  }

  .hero-section {
    margin: -4rem -1rem 2rem -1rem;
    padding: 4rem 1.5rem;
  }

  aside {
    border-left: none;
    border-top: 2px solid var(--color-accent);
    padding-inline-start: 0;
    padding-top: 2rem;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .date-item {
    padding: 1rem;
  }

  .col-md-6 {
    flex: 0 0 100%;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 2.5rem 1rem;
    margin: -4rem -1rem 1.5rem -1rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-section p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  main {
    margin: 1rem 0.5rem;
    padding: 1.5rem;
  }

  .sponsors-widget {
    padding: 1.5rem;
  }

  .sponsor-card .sponsor-logo,
  .sponsor-card img {
    max-width: 104px;
    max-height: 64px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.6em 0.8em;
    font-size: 0.9rem;
  }

  .logo-wrap {
    min-height: 48px;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo {
    max-height: 48px;
  }

  .logo-wrap h1 {
    flex-basis: 100%;
  }

  .flag-img,
  .language-flag,
  .flag-icon,
  .flag-icon-squared {
    width: 34px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .date-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .icon {
    width: 40px;
    height: 40px;
  }
}

/* =========================
   FORCED COLORS MODE
========================= */
@media (forced-colors: active) {
  :where(.navbar-nav .nav-link::after) {
    background-color: ButtonText;
  }

  :where(button, a, .btn):focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

.venue-map {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (max-width: 768px) {
  .venue-map {
    height: 300px;
  }
}

/* =========================
   LANGUAGE SWITCH - ENHANCED
========================= */
.language-switch {
  gap: 0.5rem;
}

.lang-form {
  display: inline-block;
}

.lang-btn {
  position: relative;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.flag-img {
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  display: block;
}

.flag-img.selected-flag {
  border: 4px solid var(--color-accent);
  box-shadow: 0 0 20px rgba(47, 164, 169, 0.8),
              0 0 0 8px rgba(47, 164, 169, 0.15);
  transform: scale(1.2);
}

.flag-img:not(.selected-flag) {
  opacity: 0.6;
  border: 2px solid transparent;
}

.flag-img:not(.selected-flag):hover {
  opacity: 1;
  transform: scale(1.08);
}

.lang-btn:active .flag-img:not(.selected-flag) {
  transform: scale(0.98);
}

.lang-btn:not(.active) {
  border: none;
  background: none;
  box-shadow: none;
}

.lang-btn:not(.active):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}