body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}

body.dark {
  background: #1e1e1e;
  color: #eaeaea;
}

header {
  text-align: center;
  padding: 30px 10px;
}

.logo {
  height: 90px;
}

.motto {
  font-style: italic;
  font-size: 16px;
}

nav {
  background: #f5f5f5;
  padding: 10px 0;
  text-align: center;
}

nav a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 12px;
  margin: 0 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  color: #0066cc;
  background: #eaeaea;
}

.toggle-button {
  float: right;
  margin: 10px;
  cursor: pointer;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

footer {
  background: #f5f5f5;
  padding: 15px;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* Optional: shrink logo a bit on small screens */
@media (max-width: 600px) {
  .logo {
    height: 70px;
  }
  header h1 {
    font-size: 1.2em;
  }
  .motto {
    font-size: 1em;
  }
}

/* --- ARTICLE PREVIEW / THUMBNAIL BLOCKS --- */
.article-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: flex-start;
}
.article-preview {
  display: flex;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: box-shadow 0.2s;
  min-height: 44px;
  flex: 1 1 320px;
  max-width: 340px;
  box-sizing: border-box;
}
.article-preview:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.article-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-right: 1px solid #eee;
  border-radius: 5px 0 0 5px;
  flex-shrink: 0;
  margin-right: 10px;
}
.article-info {
  padding: 0.35em 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-info h4 {
  margin: 0 0 0.18em 0;
  font-size: 1.08em;
}
.article-meta {
  color: #888;
  font-size: 0.95em;
  margin: 0 0 0.22em 0;
}
.article-teaser {
  margin: 0;
  color: #444;
  font-size: 0.98em;
}

/* --- Related Articles Section --- */
.related-articles {
  background: #fafbfc;
  padding: 1em 1em 1.5em 1em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  margin-top: 2em;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.related-article {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  width: 280px;
  max-width: 100%;
  min-height: 44px;
}
.related-article:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
.related-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-right: 1px solid #eee;
  border-radius: 5px 0 0 5px;
  flex-shrink: 0;
  margin-right: 10px;
}
.related-info {
  padding: 0.35em 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.related-title {
  font-weight: bold;
  font-size: 1.08em;
  margin-bottom: 0.18em;
}
.related-meta {
  color: #999;
  font-size: 0.95em;
  margin-bottom: 0.22em;
}
.related-teaser {
  font-size: 0.98em;
  color: #444;
}

/* --- REGION GRID CARDS --- */
.region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7em;
  justify-content: center;
  margin-top: 2.2em;
}
.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 125px;
  padding: 22px 12px 16px 12px;
  border-radius: 18px;
  background: linear-gradient(150deg, #e5efff 60%, #f9fafc 100%);
  box-shadow: 0 3px 12px rgba(0,50,120,0.04);
  text-decoration: none;
  color: #1a222b;
  font-size: 1.13em;
  position: relative;
  transition: box-shadow 0.19s, transform 0.13s, background 0.3s;
  border: 1px solid #e6eef8;
  margin-bottom: 0.2em;
}
.region-card .region-icon {
  font-size: 2.5em;
  margin-bottom: 0.3em;
  text-shadow: 0 1px 2px rgba(20,70,200,0.09);
  user-select: none;
}
.region-title {
  font-weight: bold;
  text-align: center;
  font-size: 1.05em;
  margin-bottom: 0.1em;
  letter-spacing: 0.01em;
}
.region-soon {
  color: #aaa;
  font-size: 0.94em;
  margin-top: 0.27em;
  font-style: italic;
}
.region-card-cee     { background: linear-gradient(140deg,#e6f1ff 60%, #e2f3e6 100%);}
.region-card-west    { background: linear-gradient(140deg,#f9e9ff 62%, #fafafc 100%);}
.region-card-africa  { background: linear-gradient(140deg,#fff7e5 67%, #fafafc 100%);}
.region-card-america { background: linear-gradient(140deg,#e8f8ff 60%, #f3f9f3 100%);}
.region-card-asia    { background: linear-gradient(140deg,#ffe6ef 62%, #f9fafc 100%);}
.region-card:active        { transform: scale(0.97); }
.region-card:focus,
.region-card:hover {
  box-shadow: 0 6px 24px rgba(0,70,190,0.14), 0 1.5px 6px rgba(0,0,0,0.07);
  background: linear-gradient(155deg,#f5fafe 45%, #e1f2fd 90%);
  color: #104da6;
  outline: none;
}
.region-card:not(a) {
  cursor: default;
  opacity: 0.63;
  pointer-events: none;
}

/* --- EXPERT CARD THUMBNAILS (LARGER, PORTRAIT) --- */
.expert-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: flex-start;
  margin-top: 2em;
}
.expert-preview {
  display: flex;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.22s;
  width: 370px;
  max-width: 100%;
  min-height: 120px;
}
.expert-preview:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.expert-thumb {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-right: 1px solid #e6e6e6;
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
  margin-right: 16px;
  background: #eee;
}
.expert-info {
  padding: 1em 1em 0.7em 0.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.expert-name {
  font-weight: bold;
  font-size: 1.13em;
  margin-bottom: 0.25em;
}
.expert-title {
  color: #5981b3;
  font-size: 1em;
  margin-bottom: 0.22em;
}
.expert-teaser {
  font-size: 1em;
  color: #444;
}

/* ---- Responsive: Tablets ---- */
@media (max-width: 800px) {
  .region-grid { gap: 1em; }
  .region-card { min-width: 135px; min-height: 100px; font-size: 1em; padding: 15px 7px 11px 7px;}
  .expert-preview-list { flex-direction: column; gap: 1.3em; }
  .expert-preview { width: 100%; min-height: 90px; }
  .expert-thumb { width: 72px; height: 90px; }
}

/* ---- Responsive: Mobiles ---- */
@media (max-width: 700px) {
  .article-preview-list {
    flex-direction: column;
    gap: 1.5em;
  }
  .article-preview {
    max-width: 100%;
    flex-basis: 100%;
  }
  .related-list {
    flex-direction: column;
  }
  .related-article {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .region-grid { flex-direction: column; align-items: stretch; gap: 0.8em; margin-top: 1.3em;}
  .region-card { width: 100%; min-width: 0; font-size: 1em; padding: 11px 4px 10px 4px;}
  .article-preview {
    flex-direction: column;
    min-height: unset;
    max-width: 100%;
    flex-basis: 100%;
  }
  .article-thumb {
    width: 100%;
    height: 120px;
    border-right: none;
  }
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin-top: 2em;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 1em;
  width: 180px;
  transition: background-color 0.3s ease;
}

.contact-card:hover {
  background-color: #e0e0e0;
}

.contact-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5em;
}

.email-button {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #004080;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  margin: 1em auto;
  display: block;
  text-align: center;
  max-width: 400px;
  transition: background-color 0.3s ease;
}

.email-button:hover {
  background-color: #002d5a;
}

.section-title {
  font-size: 1.3em;
  margin-top: 1.5em;
  color: #2c3e50;
}

.box {
  background: #f9f9f9;
  border-left: 4px solid #5981b3;
  padding: 1em;
  margin: 0.5em 0 1.5em 0;
}

.email-button {
  display: inline-block;
  margin: 0.5em 0 2em 0;
  padding: 0.6em 1.2em;
  background: #5981b3;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}
.email-button:hover {
  background: #4a6a94;
}

/* center the mail buttons */
.email-button {
  display: block !important;
  margin: 1em auto 2em auto !important;
  text-align: center;
}

