:root {
  --blue: #0070C0;
  --blue-dark: #0070C0;
  --cobalt: #0070C0;
  --teal: #0f9bbd;
  --purple: #6b5bff;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1b1c1e;
  --muted: #5f6370;
  --border: #d6dce8;
  --shadow: 0 18px 40px rgba(15, 40, 90, 0.14);
  --radius: 12px;
  --max-width: 1180px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', 'Segoe UI Light', 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(11,110,216,0.06), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(111,91,255,0.05), transparent 30%),
              radial-gradient(circle at 60% 70%, rgba(15,155,189,0.06), transparent 35%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 30px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center-v { align-items: center; }
.grid { display: grid; gap: 20px; }
.muted { color: var(--muted); }

.pill-accent { background: rgba(255,255,255,0.7); }

::selection { background: rgba(11,110,216,0.2); }

.topbar {
  background: linear-gradient(90deg, var(--blue-dark), var(--cobalt));
  color: #fff;
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  letter-spacing: 0.1px;
}
.topbar .site-name { font-weight: 700; margin-right: 10px; }
.topbar .site-tagline { color: rgba(255,255,255,0.9); font-weight: 300; }
.lang-link { margin-left: 12px; padding: 4px 6px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.lang-link.active { background: #fff; color: var(--blue); border-color: #fff; }

/* Language dropdown */
.lang-dropdown { position: relative; margin-left: 12px; }
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 10px 4px 8px;
  line-height: 1.4;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-dropdown-toggle:hover { background: rgba(255,255,255,0.22); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-caret { font-size: 11px; opacity: 0.8; margin-left: 2px; transition: transform 0.18s; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a2a47;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 160px;
  z-index: 1000;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lang-option:hover { background: rgba(255,255,255,0.10); color: #fff; }
.lang-option.active { color: #fff; background: rgba(255,255,255,0.15); font-weight: 600; }

.main-nav {
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  margin-right: 20px;
}
.nav-logo {
  height: 48px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 20px;
  box-shadow: 0 10px 20px rgba(11,110,216,0.25);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--blue-dark); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.nav-item { position: relative; }
.nav-item::after { content: '|'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: #d2d3d4; }
.nav-item:last-child::after { content: ''; }
.nav-item a { display: block; padding: 20px 0; font-weight: 600; color: var(--text); letter-spacing: 0.1px; transition: color 0.2s ease; }
.nav-item.active > a { color: var(--blue-dark); border-bottom: 3px solid var(--blue-dark); }
.nav-item.parent-active > a { color: var(--blue); border-bottom: 3px solid var(--blue); font-weight: 700; }
.nav-item a:hover { color: var(--blue); }

/* Submenu Styles */
.nav-item.has-submenu { position: relative; }
.nav-item.has-submenu > a { display: flex; align-items: center; gap: 6px; }
.submenu-arrow { 
  font-size: 10px; 
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.nav-item.has-submenu:hover .submenu-arrow { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(11,110,216,0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 40, 90, 0.18);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-item { 
  margin: 0;
  border-bottom: 1px solid rgba(11,110,216,0.06);
}
.submenu-item:last-child { border-bottom: none; }
.submenu-item a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.submenu-item a:hover {
  background: linear-gradient(90deg, rgba(11,110,216,0.08), transparent);
  color: var(--blue-dark);
  border-left-color: var(--blue);
}
.submenu-item.active a {
  background: linear-gradient(90deg, rgba(11,110,216,0.12), transparent);
  color: var(--blue-dark);
  border-left-color: var(--blue-dark);
  font-weight: 600;
}

/* Indented submenu items (product detail pages) */
.submenu-item.submenu-indent a {
  padding-left: 36px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.submenu-item.submenu-indent a::before {
  content: '└ ';
  position: absolute;
  left: 20px;
  color: rgba(11,110,216,0.4);
}
.submenu-item.submenu-indent a:hover {
  color: var(--blue-dark);
}
.submenu-item.submenu-indent.active a {
  color: var(--blue-dark);
  font-weight: 500;
}

.page { padding-bottom: 60px; }
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 25%),
              linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 60%);
  transform: rotate(18deg);
}

/* Hero background SVG art – injected randomly per page load */
.hero-bg-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  max-width: 680px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
  /* Fade in after JS injection */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-bg-art.loaded {
  opacity: 1;
}
.hero-bg-art svg {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
  color: #ffffff;
  opacity: 0.13;
}
/* Ensure hero text content sits above the background art */
.hero .container {
  position: relative;
  z-index: 1;
}
/* On small screens hide the art so it doesn't obscure text */
@media (max-width: 680px) {
  .hero-bg-art { display: none; }
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin: 0 0 6px; font-size: 13px; }
.hero h1 { margin: 8px 0 12px; font-size: 36px; font-weight: 700; }
.hero .lead { margin: 0 0 18px; font-size: 19px; color: rgba(255,255,255,0.94); max-width: 760px; font-weight: 300; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--blue-dark);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.btn:hover { background: #f0f6ff; }

.section { padding: 34px 0; }
.section-head h2 { margin: 0 0 6px; font-size: 22px; }
.section-head .kicker { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-size: 12px; }

/* Text content styling */
.section p {
  line-height: 1.7;
  margin: 0 0 16px;
}
.section p:last-child {
  margin-bottom: 0;
}

/* Styled bullet list */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 16px 8px;
}
.styled-list li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(11, 110, 216, 0.3);
}
.styled-list li:last-child {
  margin-bottom: 0;
}

/* Style bullet points (•) in text */
.section p br + br {
  display: block;
  margin-bottom: 8px;
}

/* ── Features grid (Windows 11 Fluent style) ─────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(214,220,232,0.75);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 14px rgba(15,40,90,0.07), inset 0 0 0 1px rgba(255,255,255,0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15,40,90,0.13), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.feature-card p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.feature-link:hover {
  gap: 8px;
  opacity: 0.85;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* ── Reference detail modal ─────────────────────────────────────────────── */
.card-details-btn { margin-top: 12px; background: none; border: 1px solid var(--accent, #0b6ed8); color: var(--accent, #0b6ed8); border-radius: 6px; padding: 6px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.card-details-btn:hover { background: var(--accent, #0b6ed8); color: #fff; }
.ref-modal { border: none; border-radius: 12px; padding: 0; max-width: 640px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(0,0,0,.28); }
.ref-modal::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.ref-modal-inner { padding: 32px 28px 28px; position: relative; }
.ref-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #666; line-height: 1; padding: 4px 8px; border-radius: 4px; }
.ref-modal-close:hover { background: #f0f0f0; color: #111; }
.ref-modal-image-wrap { margin-bottom: 18px; border-radius: 8px; overflow: hidden; }
.ref-modal-image-wrap img { width: 100%; height: auto; display: block; }
.ref-modal-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; padding-right: 32px; }
.ref-modal-body { font-size: .97rem; line-height: 1.7; color: #374151; white-space: pre-line; }
.card {
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}
.card:nth-child(4n+1) { background: linear-gradient(145deg, rgba(11,110,216,0.12), rgba(255,255,255,0.9)); }
.card:nth-child(4n+2) { background: linear-gradient(145deg, rgba(15,155,189,0.12), rgba(255,255,255,0.9)); }
.card:nth-child(4n+3) { background: linear-gradient(145deg, rgba(107,91,255,0.12), rgba(255,255,255,0.9)); }
.card:nth-child(4n+4) { background: linear-gradient(145deg, rgba(14,125,202,0.12), rgba(255,255,255,0.9)); }
.card h3 { margin-top: 0; margin-bottom: 8px; font-size: 18px; }
.card p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; white-space: pre-line; font-size: 14px; }
.card-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 14px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.5;
  color: var(--muted);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(11, 110, 216, 0.3);
}
.card-list li:last-child {
  margin-bottom: 0;
}
.more { font-weight: 700; }
.card a.card-link { 
  text-decoration: none; 
  color: inherit; 
  display: block; 
  height: 100%;
}
.card a.card-link:hover { color: inherit; }
.card a.card-link .more { 
  color: var(--blue-dark); 
  font-size: 14px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.card:hover a.card-link .more { 
  transform: translateX(4px); 
}

/* Section Variants */
/* Compact variant - smaller, denser cards */
.section-variant-compact .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.section-variant-compact .card {
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 40, 90, 0.08);
}
.section-variant-compact .card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.section-variant-compact .card p {
  font-size: 13px;
  line-height: 1.5;
}

/* Accent variant - stronger colors and borders */
.section-variant-accent .card {
  border: 2px solid rgba(11,110,216,0.2);
  box-shadow: 0 12px 30px rgba(15, 40, 90, 0.12);
}
.section-variant-accent .card:nth-child(4n+1) { 
  background: linear-gradient(145deg, rgba(11,110,216,0.18), rgba(255,255,255,0.95));
  border-color: rgba(11,110,216,0.3);
}
.section-variant-accent .card:nth-child(4n+2) { 
  background: linear-gradient(145deg, rgba(15,155,189,0.18), rgba(255,255,255,0.95));
  border-color: rgba(15,155,189,0.3);
}
.section-variant-accent .card:nth-child(4n+3) { 
  background: linear-gradient(145deg, rgba(107,91,255,0.18), rgba(255,255,255,0.95));
  border-color: rgba(107,91,255,0.3);
}
.section-variant-accent .card:nth-child(4n+4) { 
  background: linear-gradient(145deg, rgba(14,125,202,0.18), rgba(255,255,255,0.95));
  border-color: rgba(14,125,202,0.3);
}
.section-variant-accent .card h3 {
  color: var(--blue-dark);
  font-size: 19px;
}

/* Bordered variant - emphasis on borders, minimal shadows */
.section-variant-bordered .card {
  background: #fff;
  border: 2px solid rgba(11,110,216,0.15);
  box-shadow: 0 2px 8px rgba(15, 40, 90, 0.04);
}
.section-variant-bordered .card::before {
  display: none;
}
.section-variant-bordered .card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(15, 40, 90, 0.12);
}
.section-variant-bordered .card:nth-child(4n+1) { background: #fff; border-left: 4px solid var(--blue); }
.section-variant-bordered .card:nth-child(4n+2) { background: #fff; border-left: 4px solid var(--teal); }
.section-variant-bordered .card:nth-child(4n+3) { background: #fff; border-left: 4px solid var(--purple); }
.section-variant-bordered .card:nth-child(4n+4) { background: #fff; border-left: 4px solid var(--cobalt); }

/* Minimal variant - clean, simple style */
.section-variant-minimal .card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,110,216,0.08);
  box-shadow: 0 4px 12px rgba(15, 40, 90, 0.06);
  backdrop-filter: blur(8px);
}
.section-variant-minimal .card::before {
  display: none;
}
.section-variant-minimal .card:nth-child(4n+1),
.section-variant-minimal .card:nth-child(4n+2),
.section-variant-minimal .card:nth-child(4n+3),
.section-variant-minimal .card:nth-child(4n+4) {
  background: rgba(255,255,255,0.6);
}
.section-variant-minimal .card:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(11,110,216,0.2);
}

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li {
  border: 1px solid rgba(11,110,216,0.12);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.list li .styled-list li {
  border: none;
  padding: 0;
  padding-left: 42px;
  box-shadow: none;
  background: transparent;
  margin-bottom: 10px;
}
.link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--blue-dark); color: var(--blue-dark); padding: 9px 14px; border-radius: 999px; font-weight: 600; background: rgba(11,110,216,0.08); }

.footer { background: linear-gradient(135deg, var(--blue-dark), var(--cobalt)); color: #fff; padding: 32px 0 0; margin-top: 44px; }
.footer h4 { margin-top: 0; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.footer a { color: #fff; text-decoration: none; opacity: 0.9; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer .logo-mark { margin: 0 0 10px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; display: block; }
.footer .muted { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.5; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { margin-top: 18px; background: #1a1a1f; color: #fff; padding: 12px 0; }
.to-top { color: #fff; }

/* Contact Cards with Windows 11 Design */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,110,216,0.04), rgba(255,255,255,0));
  pointer-events: none;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 40, 90, 0.18);
}
.contact-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11,110,216,0.3);
  letter-spacing: 1px;
}
.contact-body {
  flex: 1;
  min-width: 0;
}
.contact-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.contact-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--blue-dark);
  font-weight: 600;
}
.contact-languages {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.contact-languages .label {
  font-weight: 600;
  color: var(--text);
}
.contact-description {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.contact-info {
  display: grid;
  gap: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.contact-item .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(11,110,216,0.08);
  border-radius: 6px;
  font-size: 14px;
}
.contact-item a {
  color: var(--blue-dark);
  font-weight: 600;
}
.contact-item a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Region Cards */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.region-card {
  display: block;
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 40, 90, 0.22);
  border-color: rgba(11,110,216,0.25);
}
.region-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.region-card:hover::before {
  opacity: 0.5;
}
.region-card:nth-child(4n+1) {
  background: linear-gradient(145deg, rgba(11,110,216,0.09), rgba(255,255,255,0.95));
}
.region-card:nth-child(4n+2) {
  background: linear-gradient(145deg, rgba(15,155,189,0.09), rgba(255,255,255,0.95));
}
.region-card:nth-child(4n+3) {
  background: linear-gradient(145deg, rgba(107,91,255,0.09), rgba(255,255,255,0.95));
}
.region-card:nth-child(4n+4) {
  background: linear-gradient(145deg, rgba(14,125,202,0.09), rgba(255,255,255,0.95));
}
.region-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.region-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.region-arrow {
  font-size: 20px;
  color: var(--blue);
  transition: transform 0.3s ease;
  display: inline-block;
}
.region-card:hover .region-arrow {
  transform: translateX(4px);
}

/* Data Tables */
.table-wrapper {
  margin-top: 24px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.08);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.data-table thead {
  background: linear-gradient(135deg, rgba(11,110,216,0.08), rgba(15,155,189,0.05));
  border-bottom: 2px solid rgba(11,110,216,0.15);
}
.data-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.data-table th:first-child {
  border-top-left-radius: var(--radius);
}
.data-table th:last-child {
  border-top-right-radius: var(--radius);
}
.data-table tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s ease;
}
.data-table tbody tr:hover {
  background: rgba(11,110,216,0.02);
}
.data-table tbody tr:last-child {
  border-bottom: none;
}
.data-table td {
  padding: 12px 18px;
  color: var(--text);
  white-space: nowrap;
}
.data-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.data-table tbody tr:nth-child(even) {
  background: rgba(11,110,216,0.01);
}
.data-table tbody tr:nth-child(even):hover {
  background: rgba(11,110,216,0.03);
}

/* Step-by-Step Guide */
.steps-container {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  position: relative;
}
.step-item::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(180deg, rgba(11,110,216,0.3), rgba(11,110,216,0.05));
}
.step-item:last-child::before {
  display: none;
}
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(11,110,216,0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content {
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 40, 90, 0.18);
  border-color: rgba(11,110,216,0.15);
}
.step-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
}
.step-content p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text);
}
.step-content p:last-child {
  margin-bottom: 0;
}
.step-image {
  margin-top: 16px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(11,110,216,0.1);
  background: #f8f9fa;
  display: inline-block;
  max-width: 100%;
}
.step-image img {
  max-width: 800px;
  height: auto;
  display: block;
}
.step-content:hover .step-image img {
  /* Removed zoom effect */
}

/* Images Grid Section */
.images-grid {
  display: block;
  margin-top: 24px;
}
.image-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  margin-bottom: 24px;
}
.image-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.image-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
}
.image-wrapper {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(11,110,216,0.1);
  background: #f8f9fa;
  box-shadow: 0 8px 20px rgba(15, 40, 90, 0.1);
  margin-bottom: 12px;
  display: inline-block;
  max-width: 100%;
}
.image-wrapper img {
  max-width: 800px;
  height: auto;
  display: block;
}
.image-card:hover .image-wrapper img {
  /* Removed zoom effect */
}
.image-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Anchor Navigation */
.section-anchor-nav {
  padding: 0.5rem 0 0.25rem;
  background: none;
  box-shadow: none;
}
.section-anchor-nav .section-head {
  display: none;
}
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.anchor-btn {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  border: 2px solid var(--clr-primary, #0b6ed8);
  color: var(--clr-primary, #0b6ed8);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.anchor-btn:hover {
  background: var(--clr-primary, #0b6ed8);
  color: #fff;
}

/* Server Availability Timeline */
.server-timeline-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted, #6b7280);
  margin-top: 0.6rem;
  padding: 0 0.25rem;
}
.tl-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 3px;
}
.tl-active  { background: #0b6ed8; }
.tl-expired { background: #b0bec5; opacity: 0.5; }
.tl-today-mark {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2px dashed #e65100;
  vertical-align: middle;
  margin-right: 3px;
}

/* Availability Table */
.availability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
.availability-table th,
.availability-table td {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border, #e2e8f0);
  text-align: left;
}
.availability-table thead tr {
  background: var(--surface2, #f0f4f8);
  font-weight: 600;
  color: var(--clr-primary, #0b6ed8);
}
.avail-group-row td {
  font-weight: 700;
  background: var(--surface2, #f0f4f8);
  color: var(--clr-primary, #0b6ed8);
  border-top: 2px solid var(--clr-primary, #0b6ed8);
}
.avail-expired td {
  opacity: 0.5;
  color: var(--muted, #6b7280);
}

/* News Banner */
.news-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(11,110,216,0.08), rgba(15,155,189,0.08));
  border-radius: var(--radius);
  margin-top: 24px;
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 4px;
}
/* Scrolling content track */
.banner-track {
  flex: 1;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}
/* Each item: 2-col grid – icon spans both rows, title+body share the right col */
.banner-item {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-content: center;
  padding: 10px 12px 10px 16px;
  text-decoration: none;
  color: var(--text);
  /* Default: at resting position but invisible – avoids jump when toggling classes */
  transform: translateX(0);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-item.is-active {
  visibility: visible;
  transform: translateX(0);
}
.banner-item.is-exiting {
  visibility: visible;
  transform: translateX(-100%);
}
.banner-item.is-exiting-back {
  visibility: visible;
  transform: translateX(100%);
}
a.banner-item           { color: var(--text); }
a.banner-item:hover .banner-title { color: var(--blue); }
/* Col 1: icon, vertically centred over both rows */
.banner-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 18px;
  line-height: 1;
}
/* Col 2 row 1: headline */
.banner-title {
  grid-column: 2;
  grid-row: 1;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Col 2 row 2: scrolling body */
.banner-body {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  position: relative;
}
.banner-body-inner {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
}
.banner-body-inner.needs-scroll {
  animation: banner-body-scroll 5s ease-in-out 0.7s 1 forwards;
}
@keyframes banner-body-scroll {
  0%, 12%   { transform: translateX(0); }
  78%, 100% { transform: translateX(var(--scroll-distance, 0)); }
}
/* Prev / Next buttons flanking the track */
.banner-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(11,110,216,0.22);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--blue-dark);
  transition: background 0.18s, border-color 0.18s;
  padding: 0;
  margin: 0 4px;
}
.banner-btn:hover {
  background: rgba(11,110,216,0.1);
  border-color: rgba(11,110,216,0.4);
}

/* Bar Chart / Progress Bar Styles */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}
.bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.bar-title {
  flex: 1;
}
.bar-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  min-width: 80px;
  text-align: right;
}
.bar-track {
  height: 48px;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cobalt));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 -2px 8px rgba(0,0,0,0.1);
}
.bar-fill.variant-green {
  background: linear-gradient(90deg, #0e8e4e, #10b361);
}
.bar-fill.variant-purple {
  background: linear-gradient(90deg, #6b5bff, #8b7aff);
}
.bar-fill.variant-teal {
  background: linear-gradient(90deg, #0f9bbd, #15b8e0);
}
.bar-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.bar-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
.comparison-side {
  text-align: center;
}
.comparison-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin: 16px 0;
}
.comparison-value.optimized {
  color: #10b361;
}
.comparison-value.standard {
  color: var(--blue-dark);
}
.comparison-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.comparison-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.savings-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #10b361, #0e8e4e);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(16, 179, 97, 0.3);
}

.standalone-image {
  margin: 32px 0;
  text-align: center;
}
.standalone-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 40, 90, 0.1);
}
.standalone-image a {
  display: inline-block;
}
.standalone-image a:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card-image {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 266px;
  margin-left: auto;
  margin-right: auto;
}
.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.column-left .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column-left .checklist li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 16px;
}

.column-left .checklist .checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cobalt));
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.column-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.column-right .logo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; width: 100%; padding: 12px 0; }
  .nav-list.open { display: flex; }
  .nav-item::after { display: none; }
  .nav-item a { padding: 10px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 26px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; text-align: center; }
  .contact-avatar { margin: 0 auto; }
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
  .step-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .step-item::before {
    left: 22px;
    top: 44px;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .step-content {
    padding: 18px;
  }
  .step-content h3 {
    font-size: 18px;
  }
  .images-grid {
    grid-template-columns: 1fr;
  }
  .image-card {
    padding: 16px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .banner-title {
    font-size: 13px;
  }
  .banner-body-inner {
    font-size: 12px;
  }
  .banner-icon {
    font-size: 15px;
  }
  .banner-btn {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .section-variant-compact .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-variant-compact .card {
    padding: 16px;
  }
  .bar-comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .comparison-value {
    font-size: 42px;
  }
  .bar-value {
    font-size: 16px;
  }
  .bar-track {
    height: 40px;
  }
  .bar-fill {
    font-size: 14px;
    padding-right: 12px;
  }
}

/* ==========================================================================
   Events
   ========================================================================== */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.events-empty {
  color: var(--muted);
  font-style: italic;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 4px 18px rgba(15,40,90,0.07);
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: var(--shadow); }
.event-card--cancelled { opacity: 0.55; }
.event-card--full .btn-register { display: none; }

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
.event-date, .event-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.event-badge--low      { background: #fff3cd; color: #856404; }
.event-badge--full     { background: #f8d7da; color: #842029; }
.event-badge--cancelled{ background: #e2e3e5; color: #41464b; }

.event-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.event-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.event-body {
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--text);
}

.event-capacity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.capacity-bar {
  flex: 1;
  max-width: 200px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.capacity-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.event-closed {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}

/* Registration form (hidden until "Register" is clicked) */
.event-registration-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease;
}
.event-registration-form h4 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--blue-dark);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Forms (shared by contact-form and event registration)
   ========================================================================== */

.contact-form-wrap {
  max-width: 680px;
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel input[type="number"],
.form-panel textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-panel input:focus,
.form-panel textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,112,192,0.12);
  background: #fff;
}
.form-panel input.invalid,
.form-panel textarea.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}
.form-panel textarea { resize: vertical; min-height: 110px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--blue-dark); }

.btn-register {
  margin-top: 4px;
}

.form-notice {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.form-feedback {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.form-feedback.success {
  background: #d1e7dd;
  color: #0a3622;
}
.form-feedback.error {
  background: #f8d7da;
  color: #58151c;
}

/* ── Bot protection fields ───────────────────────────────────────────────── */
/* Honeypot: visually gone but NOT display:none – bots skip those */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Consent checkbox row */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  /* Use a consistent size that works across browsers and touch targets */
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue);
}
/* Larger tap target on touch devices */
@media (hover: none) and (pointer: coarse) {
  .consent-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
}
.consent-label a { color: var(--blue); text-decoration: underline; }
.consent-label a:hover { color: var(--blue-dark); }
.consent-label.invalid { color: #dc3545; outline: 1px solid #dc3545; border-radius: 4px; padding: 4px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .event-card { padding: 20px; }
  .event-card-header { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { max-width: 100%; }
}

/* ── Highlighted Contact nav item ────────────────────────────────────── */
.nav-item.nav-cta > a {
  border: 2px solid var(--blue-dark);
  border-radius: 20px;
  padding: 6px 18px !important;
  margin: 0;
  color: var(--blue-dark) !important;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-item.nav-cta > a:hover,
.nav-item.nav-cta.active > a {
  background: var(--blue-dark);
  color: #fff !important;
  border-color: var(--blue-dark);
  border-bottom: none !important;
}
.nav-item.nav-cta::after { content: ''; }

/* ── Regional contact flyover widget ──────────────────────────────── */
.contact-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 290px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 40, 90, 0.22);
  border-top: 4px solid var(--blue-dark);
  transform: translateY(calc(100% + 50px));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.contact-widget.visible {
  transform: translateY(0);
}
.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--blue-dark), var(--teal));
  padding: 10px 14px;
}
.cw-label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.cw-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}
.cw-dismiss:hover { color: #fff; }
.cw-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px 10px;
}
.cw-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(11,110,216,0.25);
}
.cw-info { flex: 1; min-width: 0; }
.cw-name {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-title {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.cw-region {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cw-actions {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cw-action-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cw-action-link:hover { color: var(--blue-dark); }
.cw-icon { font-size: 14px; flex-shrink: 0; }
.cw-all-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  width: 100%;
}
.cw-all-link:hover { color: var(--teal); }

@media (max-width: 480px) {
  .contact-widget {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
  }
}

/* ── Back-to-top button ──────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(15,40,90,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 28px rgba(11,110,216,0.35);
}
@media (max-width: 480px) {
  .back-to-top {
    left: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}

.cw-reopen {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 10px 18px 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11,110,216,0.35);
  transform: translateY(calc(100% + 50px));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.cw-reopen.visible {
  transform: translateY(0);
}
.cw-reopen:hover {
  box-shadow: 0 12px 32px rgba(11,110,216,0.45);
}
.cw-reopen-icon { font-size: 16px; line-height: 1; }

@media (max-width: 480px) {
  .cw-reopen {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px 10px 12px;
  }
}

@media (max-width: 768px) {
  .nav-item.nav-cta > a {
    border-radius: 8px;
    display: inline-block;
    width: auto;
  }
}

/* ── Blog & Posts ────────────────────────────────────────────────────────── */

/* Post type badges */
.post-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-type-post         { background: #e8f3fd; color: #0f78d4; }
.post-type-news         { background: #e6f7ee; color: #187c3b; }
.post-type-announcement { background: #fff4e5; color: #b55a00; }

/* Post filter bar */
.post-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.post-filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--border, #e0e6ef);
  border-radius: 20px;
  background: #fff;
  color: var(--text, #1a1a2e);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.post-filter-btn:hover  { border-color: var(--blue, #0f78d4); color: var(--blue, #0f78d4); }
.post-filter-btn.active { background: var(--blue, #0f78d4); border-color: var(--blue, #0f78d4); color: #fff; }
.post-active-tag {
  margin-left: auto;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted, #6b7a99);
}
.post-tag-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border, #e0e6ef);
  color: var(--text, #1a1a2e);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  line-height: 1;
}
.post-tag-clear:hover { background: #c0c8d8; }

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1.5px solid var(--border, #e0e6ef);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(15,120,212,0.10);
  border-color: var(--blue, #0f78d4);
  transform: translateY(-2px);
}
.post-card[hidden] { display: none; }
.post-card-image-link { display: block; }
.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-subtle, #f5f7fb);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-date {
  font-size: 12px;
  color: var(--muted, #6b7a99);
}
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}
.post-card-title a {
  color: var(--text, #1a1a2e);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--blue, #0f78d4); }
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--muted, #6b7a99);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e0e6ef);
}
.post-card-author {
  font-size: 12px;
  color: var(--muted, #6b7a99);
  font-weight: 600;
}
.post-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue, #0f78d4);
  text-decoration: none;
  white-space: nowrap;
}
.post-read-more:hover { text-decoration: underline; }
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.post-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bg-subtle, #f0f4fa);
  border-radius: 12px;
  font-size: 11px;
  color: var(--muted, #6b7a99);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.post-tag:hover { background: #dde6f5; color: var(--blue, #0f78d4); }
.post-tag--sm   { font-size: 10px; padding: 2px 7px; }
.posts-empty    { color: var(--muted, #6b7a99); font-style: italic; }

/* Post detail view */
.hero--post .eyebrow a.hero-breadcrumb {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
}
.hero--post .eyebrow a.hero-breadcrumb:hover { color: #fff; }

.post-detail-wrap {
  padding: 40px 0 60px;
}
.post-detail-container {
  max-width: 800px;
}
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.post-author { font-size: 13px; color: var(--muted, #6b7a99); font-weight: 600; }
.post-hero-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/7;
  background: var(--bg-subtle, #f5f7fb);
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text, #1a1a2e);
}
.post-body p          { margin: 0 0 18px; }
.post-body ul         { margin: 0 0 18px; padding-left: 1.5em; }
.post-body li         { margin-bottom: 6px; }
.post-body h2.post-heading { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--text, #1a1a2e); }
.post-body h3.post-heading { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--text, #1a1a2e); }
.post-body h4.post-heading { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: var(--text, #1a1a2e); }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0 24px;
}
.post-nav-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e0e6ef);
}
.post-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue, #0f78d4);
  text-decoration: none;
}
.post-back:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-filter-bar { gap: 6px; }
  .post-filter-btn { padding: 6px 13px; font-size: 12px; }
  .post-detail-container { max-width: 100%; }
  .post-body { font-size: 15px; }
}

/* Post body enriched elements */
.post-heading {
  color: #1a2c45;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.post-heading:first-child { margin-top: 0; }
h3.post-heading { font-size: 1.2rem; }
h4.post-heading { font-size: 1.05rem; }

.post-numbered-item {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}
.post-numbered-item strong {
  color: #1a2c45;
  margin-right: 4px;
}

/* Inline body image */
.post-body-figure {
  margin: 1.5rem auto;
  text-align: center;
}
.post-body-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.post-body-figure figcaption {
  margin-top: 0.5rem;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

.post-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.post-table th,
.post-table td {
  padding: 10px 14px;
  border: 1px solid #dde3ee;
  text-align: left;
  vertical-align: top;
}
.post-table th {
  background: #f0f4fa;
  font-weight: 600;
  color: #1a2c45;
}
.post-table td { background: #fff; }
.post-table tr:last-child td { border-bottom: none; }

/* Code blocks */
.post-code {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 13px;
  line-height: 1.65;
}
.post-code code {
  font-family: 'Consolas', 'Cascadia Code', 'Fira Code', monospace;
  white-space: pre;
  color: inherit;
  background: none;
  padding: 0;
}


.post-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}
.post-figure {
  flex: 1 1 280px;
  margin: 0;
  text-align: center;
}
.post-figure img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: block;
  margin: 0 auto;
}
.post-figure figcaption {
  margin-top: 0.5rem;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

/* ── Glossary term highlights ───────────────────────────────────────────── */
abbr.gloss {
  text-decoration: underline dashed var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
}
.gloss-tip {
  position: absolute;
  background: #1e2130;
  color: #e8eeff;
  font-size: 12.5px;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  padding: 6px 13px;
  border-radius: 8px;
  max-width: 340px;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.gloss-tip.visible { opacity: 1; }

/* ── Nav search bar ──────────────────────────────────────────────────────── */
.nav-search-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 6px;
}
.nav-search-item::after { display: none !important; }
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 7px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-search-btn:hover { background: rgba(11,110,216,0.08); color: var(--blue); }
.nav-search-form {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-search-item.open .nav-search-form {
  width: 230px;
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.nav-search-input:focus { border-color: var(--blue); }
.nav-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 7px 11px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-search-submit:hover { background: var(--blue-dark); }

/* ── Search results section ─────────────────────────────────────────────── */
.search-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.search-hint {
  color: var(--muted);
  font-size: 15px;
  padding: 32px 0;
  text-align: center;
}
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-result-card {
  background: var(--panel);
  border: 1px solid rgba(11,110,216,0.09);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(15,40,90,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.search-result-card:hover {
  box-shadow: 0 8px 28px rgba(15,40,90,0.12);
  transform: translateY(-2px);
}
.search-result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(11,110,216,0.1);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.search-result-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  line-height: 1.3;
}
.search-result-title:hover { color: var(--blue); text-decoration: underline; }
.search-result-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.search-no-results {
  text-align: center;
  padding: 56px 0 32px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.search-no-results svg { opacity: 0.25; }
.search-no-results p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.search-no-results-hint {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Mobile search adjustments */
@media (max-width: 800px) {
  .nav-search-item {
    width: 100%;
    margin-left: 0;
    padding: 4px 0 10px;
  }
  .nav-search-btn { display: none; }
  .nav-search-form {
    width: 100% !important;
    overflow: visible;
  }
  .nav-search-input { flex: 1; }
}
