:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --primary: #0b3c5d;
  --primary-light: #1f77b4;
  --border: #d1d9e0;
  --footer-bg: #eef2f6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 1000px;
  --news-bg: #f8fbfd;
  --pub-bg: #fbfcfe;
  --collab-bg: #f9fbfc;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-text {
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  color: white;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a,
.menu-toggle,
.flag-link {
  padding: 9px 13px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: white;
  color: var(--primary);
  font-size: 14px;
  transition: 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav a:hover,
.menu-toggle:hover,
.flag-link:hover {
  opacity: 0.92;
  text-decoration: none;
}

nav a.active {
  background: var(--primary-light);
  color: white;
}

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

.flag-link {
  min-width: 46px;
  padding: 8px 10px;
  font-size: 20px;
  line-height: 1;
}

.flag-link.active-lang {
  background: var(--primary-light);
  color: white;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}

.menu-toggle {
  display: none;
  font-weight: bold;
}

.mobile-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.hero {
  background: linear-gradient(135deg, #0b3c5d, #1f77b4);
  color: white;
  border-radius: 14px;
  padding: 40px 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  color: white;
}

.hero p {
  margin: 0 0 18px;
  font-size: 17px;
  color: #e5edf5;
  max-width: 700px;
  line-height: 1.7;
}

.hero .hero-button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
}

.hero .hero-button:hover {
  background: #f0f0f0;
  text-decoration: none;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.news-card {
  background: var(--news-bg);
  border: 1px solid var(--border);
}

.featured-card {
  background: var(--pub-bg);
  border: 1px solid var(--border);
}

.collaborator-card {
  background: var(--collab-bg);
  border: 1px solid var(--border);
}

.news-item + .news-item,
.section-block + .section-block,
.pub-entry + .pub-entry {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pub-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 12px;
}

.pub-title {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.contact-line {
  margin-top: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

h1, h2 {
  color: var(--text);
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.2;
}

p, li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

ul {
  padding-left: 20px;
  margin-top: 12px;
  margin-bottom: 0;
}

footer {
  background: var(--footer-bg);
  color: var(--text);
  padding: 40px 20px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 52px;
  width: auto;
  background: white;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.footer-text p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

.linkedin-footer {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0A66C2;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.linkedin-badge:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 900px) {
  header {
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  header {
    padding: 12px 14px;
    align-items: center;
  }

  .logo-text {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
  }

  .mobile-panel.open {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  nav a {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .flags {
    gap: 6px;
  }

  .flag-link {
    min-width: 42px;
    font-size: 18px;
  }

  .container {
    padding: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 10px;
  }

  .hero {
    padding: 26px 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .pub-title {
    font-size: 16px;
  }

  h2 {
    font-size: 24px;
  }

  p, li {
    font-size: 15px;
  }

  .footer-logos img {
    height: 46px;
  }
}
