/* World Foundry Organization — EU Institutional style */
:root {
  --eu-blue: #003399;
  --eu-blue-dark: #001F5C;
  --eu-blue-mid: #004494;
  --eu-blue-soft: #E8EFF8;
  --eu-gold: #FFCC00;
  --eu-gold-dark: #CCA300;
  --navy: #003399;
  --navy-mid: #004494;
  --navy-light: #4069B4;
  --gold: #FFCC00;
  --gold-hover: #E6B800;
  --text: #171717;
  --text-secondary: #444444;
  --text-muted: #707070;
  --bg: #F4F6F9;
  --card: #ffffff;
  --line: #D4DBE8;
  --container: 1200px;
  --font: Arial, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --ease: 0.2s ease;
  --shadow: 0 2px 8px rgba(0, 51, 153, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 51, 153, 0.12);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.site-theme {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.eu-theme { background: var(--card); }

a { color: inherit; text-decoration: none; transition: color var(--ease), background var(--ease), box-shadow var(--ease); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: var(--card);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--eu-gold);
}

.header-top {
  background: var(--eu-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.header-top-link { color: rgba(255,255,255,0.75); }
.header-top-link:hover { color: #fff; }
.header-top-actions { display: flex; align-items: center; gap: 10px; }
.header-top-sep { opacity: 0.35; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.logo { flex-shrink: 0; }

.logo-img {
  height: 52px;
  width: auto;
  max-width: min(400px, 60vw);
}

.main-nav { position: relative; }

.nav-check { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list > li > a,
.nav-trigger {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--eu-blue);
  border-radius: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.nav-list > li > a:hover,
.nav-trigger:hover { color: var(--eu-blue-dark); background: var(--eu-blue-soft); }

.nav-list > li.is-active > a,
.nav-item-dropdown.is-active > .nav-trigger {
  color: var(--eu-blue-dark);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--eu-gold);
  border-radius: 0;
  background: transparent;
}

.nav-item-dropdown { position: relative; }

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
}

@media (min-width: 769px) {
  .nav-item-dropdown:hover .nav-submenu,
  .nav-item-dropdown:focus-within .nav-submenu { display: block; }
  .nav-item-dropdown:hover .nav-chevron { transform: rotate(180deg); }
}

.nav-submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-submenu a:hover {
  background: var(--bg);
  color: var(--navy);
}

.nav-chevron { transition: transform var(--ease); }

/* ===== Home Hero ===== */
.home-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.hero-slide.is-on {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 51, 153, 0.88) 0%, rgba(0, 51, 153, 0.35) 55%, transparent 100%);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 0 56px;
}

.hero-caption .container { max-width: var(--container); }

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-caption h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 720px;
}

.hero-caption p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  max-width: 600px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--eu-gold);
  color: var(--eu-blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
}

.hero-btn:hover {
  background: var(--eu-gold-dark);
  color: var(--eu-blue-dark);
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
}

.hero-arrow:hover { background: rgba(255,255,255,0.25); }

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-on { background: var(--eu-gold); }

/* EU quick access bar */
.eu-quickbar {
  background: var(--eu-blue);
  color: #fff;
  border-bottom: 4px solid var(--eu-gold);
}

.eu-quickbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.eu-quickbar a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--ease);
}

.eu-quickbar a:last-child { border-right: none; }

.eu-quickbar a:hover { background: rgba(0, 0, 0, 0.12); }

.eu-quickbar strong {
  font-size: 15px;
  font-weight: 700;
}

.eu-quickbar span {
  font-size: 12px;
  opacity: 0.75;
}

/* ===== Home Sections ===== */
.home-section {
  padding: 72px 0;
}

.home-section--alt { background: var(--bg); }

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eu-blue);
  background: var(--eu-blue-soft);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.section-intro h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-intro p {
  font-size: 17px;
  color: var(--text-secondary);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-head-row h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-light);
}

.section-link:hover { color: var(--gold); }

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-strip-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-strip-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-strip-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--card);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--eu-blue);
  box-shadow: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.news-card:hover {
  transform: none;
  border-left-color: var(--eu-gold);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
}

.news-card time {
  font-size: 12px;
  font-weight: 600;
  color: var(--eu-blue-mid);
  letter-spacing: 0.03em;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 12px;
  line-height: 1.4;
}

.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-light);
  letter-spacing: 0.03em;
}

/* Event grid */
.event-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.event-tile {
  display: block;
  background: var(--card);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--eu-blue);
  box-shadow: none;
  transition: border-color var(--ease);
}

.event-tile:hover {
  transform: none;
  border-top-color: var(--eu-gold);
}

.event-tile img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.event-tile div {
  padding: 20px;
}

.event-tile h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.event-tile span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Conference spotlight */
.conference-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--eu-blue);
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  border-left: 6px solid var(--eu-gold);
}

.conference-spotlight img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.conference-spotlight-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.conference-spotlight-body .section-label { color: var(--gold); }

.conference-spotlight-body h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.conference-spotlight-body p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.75;
}

/* Partners */
.partner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: var(--card);
  border-radius: 0;
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color var(--ease);
}

.partner-item:hover {
  border-color: var(--eu-blue);
  box-shadow: none;
}

.partner-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.partner-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Contact CTA */
.contact-cta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-cta-item {
  padding: 24px;
  background: var(--card);
  border-radius: 0;
  border-left: 4px solid var(--eu-blue);
  border: 1px solid var(--line);
  border-left: 4px solid var(--eu-gold);
  box-shadow: none;
}

.contact-cta-item strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-cta-item span {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-mid);
}

/* ===== Inner pages ===== */
.inner-main { background: var(--bg); padding-bottom: 64px; }

.page-hero {
  background: var(--eu-blue);
  color: #fff;
  padding: 48px 0 40px;
  border-bottom: 4px solid var(--eu-gold);
}

.page-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.9); }

.inner-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-top: 40px;
  align-items: start;
}

.inner-layout.layout-no-sidebar {
  grid-template-columns: 1fr;
}

.inner-layout.layout-no-sidebar .inner-sidebar {
  display: none;
}

.inner-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.inner-sidebar-hd {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--eu-blue);
  border-bottom: 3px solid var(--eu-gold);
}

.inner-sidebar-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
}

.inner-sidebar-nav a:hover {
  background: var(--bg);
  color: var(--navy);
}

.inner-sidebar-nav a.is-active {
  background: var(--eu-blue-soft);
  color: var(--eu-blue-dark);
  font-weight: 600;
  border-left-color: var(--eu-blue);
}

.inner-content {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

/* Prose & components */
.prose .lead {
  font-size: 18px;
  color: var(--navy-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.prose p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.8; }
.prose h2 { font-size: 22px; color: var(--navy); margin: 28px 0 14px; }
.prose ul { margin: 0 0 20px 20px; list-style: disc; }
.prose li { margin-bottom: 8px; color: var(--text-secondary); }
.prose .meta { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.text-link {
  font-weight: 600;
  color: var(--navy-light);
}

.text-link:hover { color: var(--gold); }

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

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

.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

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

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.info-card {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  text-align: center;
}

.info-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}

.info-card span {
  font-size: 13px;
  color: var(--text-muted);
}

.article-list li {
  border-bottom: 1px solid var(--line);
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  align-items: flex-start;
}

.article-list a:hover h3 { color: var(--gold); }

.article-list time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  min-width: 90px;
}

.article-list h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.article-list p {
  font-size: 14px;
  color: var(--text-muted);
}

.article-figure {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-figure img { width: 100%; }

.event-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  gap: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease);
}

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

.event-card img { height: 160px; object-fit: cover; }
.event-card div { padding: 20px; }
.event-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.event-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--navy-light); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.contact-card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-mid);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--eu-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  border-top: 4px solid var(--eu-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-logo-img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-contact-list li { font-size: 13px; opacity: 0.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

.footer-bottom a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid-home { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; }
  .conference-spotlight { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .contact-cta { grid-template-columns: repeat(2, 1fr); }
  .inner-layout { grid-template-columns: 1fr; }
  .inner-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
  }

  .nav-check:checked ~ .nav-list { display: flex; }

  .nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .eu-quickbar-inner { grid-template-columns: repeat(2, 1fr); }
  .eu-quickbar a:nth-child(2) { border-right: none; }
  .news-grid,
  .event-grid-home,
  .partner-row,
  .contact-cta,
  .event-cards,
  .contact-cards,
  .info-cards { grid-template-columns: 1fr; }

  .inner-content { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
