/* =========================================================
   EUFTAC — European Union Financial Transparency & Accountability Council
   Main Stylesheet
   ========================================================= */

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #003366;
  --navy-dark:   #001F40;
  --navy-mid:    #0051A0;
  --navy-light:  #1A6BC5;
  --blue-pale:   #E8EEF7;
  --blue-xpale:  #F0F4FA;
  --gold:        #C8A400;
  --gold-bright: #FFD700;
  --gold-pale:   #FFF8DC;
  --white:       #FFFFFF;
  --gray-50:     #F5F7FA;
  --gray-100:    #EDF0F5;
  --gray-200:    #DDE2EC;
  --gray-300:    #BDC5D5;
  --gray-500:    #7A8499;
  --gray-700:    #4A5468;
  --gray-900:    #1C2340;
  --text:        #1C2340;
  --text-muted:  #4A5468;
  --border:      #DDE2EC;
  --red:         #C0392B;
  --green:       #1A7A4A;

  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,51,102,0.08);
  --shadow:    0 2px 12px rgba(0,51,102,0.10);
  --shadow-lg: 0 8px 32px rgba(0,51,102,0.14);

  --transition: 0.18s ease;
  --max-w: 1280px;
  --header-h: 120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

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

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 0; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; font-size: 14px;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: 16px; align-items: center; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar a {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  transition: color var(--transition);
}
.topbar a:hover { color: var(--white); text-decoration: none; }
.topbar .lang-select {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75); padding: 2px 6px; font-size: 11px;
  border-radius: 2px;
}
.topbar-flag { font-size: 14px; }

/* =========================================================
   HEADER / PRIMARY NAV
   ========================================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0;
}
.logo-emblem {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, #FFD700 100%);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: var(--navy);
  letter-spacing: -1px; flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-acronym {
  display: block;
  font-size: 22px; font-weight: 700; color: var(--white);
  letter-spacing: 2px;
}
.logo-tagline {
  display: block;
  font-size: 9px; font-weight: 400; color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px; text-transform: uppercase; max-width: 240px;
}
.site-logo:hover { text-decoration: none; }
.site-logo:hover .logo-acronym { color: var(--gold-bright); }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; height: 100%; }
.nav-list { display: flex; height: 100%; }
.nav-item { position: relative; height: 100%; }
.nav-link {
  display: flex; align-items: center; height: 100%;
  padding: 0 18px;
  color: rgba(255,255,255,0.9);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--white); background: rgba(255,255,255,0.08);
  text-decoration: none; border-bottom-color: var(--gold-bright);
}
.nav-link .arrow {
  margin-left: 5px; font-size: 10px; opacity: 0.7;
  transition: transform var(--transition);
}
.nav-item:hover .nav-link .arrow { transform: rotate(180deg); }

/* Megamenu */
.megamenu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 680px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}
.nav-item:hover .megamenu,
.nav-item:focus-within .megamenu { display: flex; }
.megamenu-inner { padding: 28px 32px; display: flex; gap: 40px; width: 100%; }
.megamenu-col { flex: 1; min-width: 160px; }
.megamenu-col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--navy); font-weight: 700;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-pale);
}
.megamenu-col ul li { margin-bottom: 2px; }
.megamenu-col ul li a {
  font-size: 13.5px; color: var(--gray-700);
  display: block; padding: 5px 0;
  transition: color var(--transition), padding-left var(--transition);
}
.megamenu-col ul li a:hover {
  color: var(--navy-mid); padding-left: 6px; text-decoration: none;
}
.megamenu-featured {
  background: var(--blue-xpale); padding: 18px 20px; border-radius: var(--radius);
  min-width: 200px;
}
.megamenu-featured .feat-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy-mid); font-weight: 700; margin-bottom: 8px;
}
.megamenu-featured .feat-title {
  font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4;
  margin-bottom: 10px;
}
.megamenu-featured .feat-link {
  font-size: 12px; font-weight: 600; color: var(--navy-mid);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-search {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85); padding: 7px 12px; border-radius: 3px;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.btn-search:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-portal {
  background: var(--gold); color: var(--navy-dark);
  border: none; padding: 8px 16px; border-radius: 3px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  transition: background var(--transition);
}
.btn-portal:hover { background: var(--gold-bright); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: all var(--transition);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12.5px;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--gray-500); }
.breadcrumb li::after { content: '›'; color: var(--gray-300); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li a { color: var(--navy-mid); }
.breadcrumb li:last-child { color: var(--text-muted); font-weight: 500; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0A4080 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200,164,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,81,160,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,164,0,0.15); border: 1px solid rgba(200,164,0,0.4);
  color: var(--gold-bright); padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: '◆'; font-size: 8px; }
.hero h1 {
  font-size: 38px; font-weight: 700; line-height: 1.2;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-lead {
  font-size: 17px; color: rgba(255,255,255,0.80);
  line-height: 1.7; margin-bottom: 32px; max-width: 600px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy-dark);
  padding: 12px 28px; border-radius: 3px; font-weight: 700;
  font-size: 14px; border: none; letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); text-decoration: none; color: var(--navy-dark); }
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 11px 26px; border-radius: 3px; font-weight: 500;
  font-size: 14px; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }

/* Hero stats */
.hero-stats {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px 24px;
  backdrop-filter: blur(8px);
}
.hero-stats h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold-bright); margin-bottom: 20px; font-weight: 700;
}
.stat-item { margin-bottom: 18px; }
.stat-item:last-child { margin-bottom: 0; }
.stat-num {
  font-size: 30px; font-weight: 800; color: var(--white);
  line-height: 1; letter-spacing: -1px;
}
.stat-num span { font-size: 18px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.stat-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 14px 0; }

/* =========================================================
   ALERT BANNER
   ========================================================= */
.alert-banner {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: 14px 0;
}
.alert-inner {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--gray-900);
}
.alert-badge {
  background: var(--gold); color: var(--navy-dark);
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  padding: 3px 8px; border-radius: 2px; flex-shrink: 0;
  text-transform: uppercase;
}
.alert-close {
  margin-left: auto; background: none; border: none;
  color: var(--gray-500); font-size: 18px; line-height: 1;
  padding: 0 4px;
}

/* =========================================================
   PRIORITY LINKS BAR
   ========================================================= */
.priority-bar {
  background: var(--navy);
  padding: 0;
}
.priority-list {
  display: flex;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.priority-item {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.priority-link {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  color: rgba(255,255,255,0.85); font-size: 13.5px;
  transition: background var(--transition), color var(--transition);
}
.priority-link:hover {
  background: rgba(255,255,255,0.07); color: var(--white); text-decoration: none;
}
.priority-icon {
  font-size: 20px; flex-shrink: 0;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; background: rgba(200,164,0,0.15);
  border-radius: 6px;
}
.priority-label { font-weight: 500; line-height: 1.3; }
.priority-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }

/* =========================================================
   SECTION UTILITIES
   ========================================================= */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 88px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-dark { background: var(--navy-dark); color: var(--white); }
.section-blue { background: var(--blue-pale); }

.section-header { margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--navy-mid); font-weight: 700; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--gold);
}
.section-title {
  font-size: 28px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.3px; line-height: 1.25;
  margin-bottom: 12px;
}
.section-navy .section-title,
.section-dark .section-title { color: var(--white); }
.section-navy .section-eyebrow { color: var(--gold-bright); }
.section-lead {
  font-size: 15.5px; color: var(--text-muted); line-height: 1.6; max-width: 640px;
}
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.view-all-link {
  color: var(--navy-mid); font-size: 13px; font-weight: 600;
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.view-all-link::after { content: '→'; }
.view-all-link:hover { color: var(--navy); }

/* =========================================================
   CARDS
   ========================================================= */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/9; background: var(--blue-pale); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--navy-mid); opacity: 0.4;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--gray-500); margin-bottom: 10px;
}
.card-tag {
  background: var(--blue-pale); color: var(--navy-mid);
  padding: 2px 8px; border-radius: 2px; font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-tag.red { background: #FDECEA; color: var(--red); }
.card-tag.green { background: #E8F5ED; color: var(--green); }
.card-tag.gold { background: var(--gold-pale); color: #7A6000; }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 10px;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--navy-mid); text-decoration: none; }
.card-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.card-link {
  color: var(--navy-mid); font-weight: 600; font-size: 12.5px;
  display: flex; align-items: center; gap: 5px;
}
.card-link::after { content: '→'; }
.card-link:hover { color: var(--navy); text-decoration: none; }

/* News card variant */
.news-card { flex-direction: row; }
.news-card .card-body { padding: 18px; }
.news-card .card-img {
  width: 120px; min-width: 120px; aspect-ratio: auto; height: auto;
}

/* =========================================================
   FEATURE TILES
   ========================================================= */
.feature-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.feature-tile {
  background: var(--white);
  padding: 32px 28px;
  border-left: 4px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.feature-tile:hover {
  border-left-color: var(--navy-mid);
  background: var(--blue-xpale);
}
.tile-icon {
  font-size: 28px; margin-bottom: 16px;
  width: 52px; height: 52px;
  background: var(--blue-pale); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.tile-title {
  font-size: 16px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3;
}
.tile-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.tile-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--navy-mid); font-size: 12.5px; font-weight: 600;
  margin-top: 12px;
}
.tile-link::after { content: '→'; }

/* =========================================================
   CONSULTATION / ALERT CARDS
   ========================================================= */
.consult-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--transition);
}
.consult-card:hover { box-shadow: var(--shadow); }
.consult-card .deadline {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--red); font-weight: 600;
}
.consult-card .deadline::before { content: '⏰'; font-size: 13px; }
.consult-title { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.consult-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.consult-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.btn-sm {
  padding: 7px 16px; border-radius: 3px; font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--navy-mid); color: var(--navy-mid);
  transition: all var(--transition);
}
.btn-sm:hover { background: var(--navy-mid); color: var(--white); text-decoration: none; }
.btn-sm.solid { background: var(--navy-mid); color: var(--white); }
.btn-sm.solid:hover { background: var(--navy); border-color: var(--navy); }

/* =========================================================
   PUBLICATIONS TABLE / LIST
   ========================================================= */
.pub-list { display: flex; flex-direction: column; gap: 1px; }
.pub-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.pub-item:hover { background: var(--blue-xpale); }
.pub-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; color: var(--navy-mid); }
.pub-content { flex: 1; }
.pub-title { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--navy-mid); text-decoration: none; }
.pub-meta { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.pub-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--blue-pale); color: var(--navy-mid);
  padding: 2px 7px; border-radius: 2px; margin-left: 8px;
}
.pub-download {
  flex-shrink: 0; color: var(--navy-mid); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 3px;
  transition: all var(--transition);
}
.pub-download:hover { background: var(--navy-mid); color: var(--white); text-decoration: none; }

/* =========================================================
   DATA PANEL / METRICS
   ========================================================= */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.metric-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.metric-num {
  font-size: 38px; font-weight: 800; color: var(--gold-bright);
  line-height: 1; letter-spacing: -1.5px;
}
.metric-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }
.metric-trend {
  font-size: 11px; font-weight: 600; margin-top: 8px;
  color: #4ADE80;
}

/* =========================================================
   CALENDAR / EVENTS
   ========================================================= */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-date {
  text-align: center; background: var(--navy); color: var(--white);
  padding: 8px 12px; border-radius: var(--radius-sm); min-width: 52px; flex-shrink: 0;
}
.event-month { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-bright); }
.event-day { font-size: 22px; font-weight: 800; line-height: 1; }
.event-content { flex: 1; }
.event-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy-mid); font-weight: 700; margin-bottom: 4px;
}
.event-title { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.event-location { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-bar {
  background: var(--navy-dark);
  padding: 24px 0;
  display: none;
}
.search-bar.open { display: block; }
.search-form { display: flex; gap: 0; }
.search-input {
  flex: 1; padding: 12px 20px; border: none; font-size: 15px;
  border-radius: 3px 0 0 3px; outline: none; background: var(--white);
}
.search-submit {
  background: var(--gold); color: var(--navy-dark); border: none;
  padding: 12px 24px; font-weight: 700; font-size: 14px;
  border-radius: 0 3px 3px 0; cursor: pointer;
}
.search-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 22px; padding: 0 0 0 14px; cursor: pointer;
}

/* =========================================================
   PARTNERS / LINKS
   ========================================================= */
.partners-row {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.partner-item {
  flex: 1; padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.partner-item:last-child { border-right: none; }
.partner-item:hover { background: var(--blue-xpale); }
.partner-abbr { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: 0.5px; }
.partner-name { font-size: 11px; color: var(--gray-500); margin-top: 2px; line-height: 1.3; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer-top {
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-acronym { font-size: 20px; }
.footer-brand p {
  font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.55);
  margin-top: 12px; margin-bottom: 20px;
}
.footer-eu-note {
  background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 11px; color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold-bright); font-weight: 700; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65); font-size: 13px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-col ul li a::before { content: '›  '; color: rgba(255,255,255,0.3); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 14px;
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); text-decoration: none; }

.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* =========================================================
   INNER PAGE — HERO / TITLE
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 48px 0 52px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.page-hero h1 { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.25; }
.page-hero .page-subtitle { color: rgba(255,255,255,0.7); margin-top: 8px; font-size: 15px; }

/* =========================================================
   SIDEBAR LAYOUT
   ========================================================= */
.content-sidebar-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sidebar-widget-header {
  background: var(--navy); padding: 14px 18px;
  font-size: 12px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1px;
}
.sidebar-widget-body { padding: 16px 18px; }
.sidebar-widget ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-widget ul li a {
  font-size: 13.5px; color: var(--navy-mid);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-widget ul li a:hover { color: var(--navy); text-decoration: none; }
.sidebar-widget ul li a::before { content: '›'; color: var(--gray-300); }

/* =========================================================
   TABS
   ========================================================= */
.tabs { margin-bottom: 28px; }
.tab-list {
  display: flex; border-bottom: 2px solid var(--border);
  gap: 0; overflow-x: auto;
}
.tab-btn {
  padding: 12px 22px; background: none; border: none;
  color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all var(--transition);
}
.tab-btn:hover { color: var(--navy-mid); }
.tab-btn.active { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 14px; font-family: inherit;
  transition: border-color var(--transition); outline: none;
}
.form-control:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(0,81,160,0.1); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%234A5468' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; appearance: none; padding-right: 32px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-row .form-control { flex: 1; min-width: 180px; }

/* =========================================================
   RISK GAUGE / INDICATOR
   ========================================================= */
.risk-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 3px; font-size: 13px; font-weight: 700;
}
.risk-low { background: #E8F5ED; color: var(--green); }
.risk-medium { background: #FFF3E0; color: #E65100; }
.risk-high { background: #FDECEA; color: var(--red); }
.risk-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  background: var(--navy); color: var(--white);
  width: 42px; height: 42px; border-radius: 3px;
  border: none; font-size: 18px; display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--navy-mid); }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--navy-dark); color: rgba(255,255,255,0.85);
  padding: 16px 0; font-size: 13px; line-height: 1.5;
}
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-sm { font-size: 12.5px; }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: #E8F5ED; color: var(--green); }
.badge-updated { background: var(--blue-pale); color: var(--navy-mid); }
.badge-urgent { background: #FDECEA; color: var(--red); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 280px; gap: 40px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-divider { display: none; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-tiles { grid-template-columns: 1fr 1fr; }
  .priority-list { flex-wrap: wrap; }
  .priority-item { flex: 1 0 50%; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .megamenu { min-width: 100%; left: 0; right: 0; position: fixed; top: 72px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .topbar { display: none; }
  .primary-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 15px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .feature-tiles { grid-template-columns: 1fr; }
  .priority-item { flex: 1 0 100%; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 40px 0 32px; }
  .news-card { flex-direction: column; }
  .news-card .card-img { width: 100%; height: 160px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .header-inner { height: 60px; }
}

/* =========================================================
   MOBILE NAV (JS-driven)
   ========================================================= */
.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark); overflow-y: auto; z-index: 999;
  padding: 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-item a {
  display: block; padding: 14px 0; color: rgba(255,255,255,0.85);
  font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-item a:hover { color: var(--gold-bright); text-decoration: none; }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .site-footer, .back-to-top, .cookie-banner { display: none; }
  .hero { background: none; color: var(--text); padding: 20px 0; }
  .hero h1 { color: var(--navy); }
}
