.news-bubble-link {
  text-decoration: none !important;
  display: block;
  color: inherit;
}
.news-bubble-link:hover .news-bubble {
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
  cursor: pointer;
}
/* News single page */
.news-single {
  max-width: 700px;
  margin: 2em auto;
  background: #f7f7f7;
  border-radius: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2em 2.5em;
  border: 2px solid #e0e0e0;
}
body.dark-mode .news-single {
  background: #222;
  color: #eee;
  border: 2px solid #444;
}
.news-single h1 {
  margin-top: 0;
  font-size: 2em;
}
.news-single .news-date {
  font-size: 1em;
  color: #888;
  margin-bottom: 1em;
}
body.dark-mode .news-single .news-date {
  color: #bbb;
}
.news-single .news-summary {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #333;
}
body.dark-mode .news-single .news-summary {
  color: #eee;
}
.news-single .news-content {
  font-size: 1em;
  color: #222;
}
body.dark-mode .news-single .news-content {
  color: #eee;
}
.back-link {
  display: inline-block;
  margin-top: 2em;
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}
body.dark-mode .back-link {
  color: #8ab4f8;
}
/* News bubble list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin: 2em 0;
}
.news-bubble {
  display: flex;
  align-items: center;
  gap: 2em;
  background: #f7f7f7;
  border-radius: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5em 2em;
  border: 2px solid #e0e0e0;
}
body.dark-mode .news-bubble {
  background: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border: 2px solid #444;
}
.news-info {
  flex: 1;
}
.news-info h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
}
.news-date {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 0.5em;
}
body.dark-mode .news-date {
  color: #bbb;
}
.news-summary {
  font-size: 1em;
  color: #333;
}
body.dark-mode .news-summary {
  color: #eee;
}
body.dark-mode .person-bubble {
  background: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border: 2px solid #444;
}
body.dark-mode .person-photo {
  
  background: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
body.dark-mode .person-info {
  color: #eee;
}
/* People bubble list */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin: 2em 0;
}
.person-bubble {
  display: flex;
  align-items: center;
  gap: 2em;
  background: #f7f7f7;
  border-radius: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5em 2em;
  border: 2px solid #e0e0e0;
}
.person-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-right: 1em;
}
.person-info {
  flex: 1;
}
.person-info h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.3em;
}
@media (max-width: 600px) {
  .person-bubble {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
    gap: 1em;
  }
  .person-photo {
    margin-right: 0;
    margin-bottom: 1em;
    width: 80px;
    height: 80px;
  }
}
/* Horizontally align header section */
.header-logos.refined-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 2em 1em 1em 1em;
  background: #f3f3f3;
  border-bottom: 2px solid #222;
}
footer {
  background: #f3f3f3;
}
body.dark-mode header.header-logos.refined-header {
  background: linear-gradient(90deg, #222 0%, #333 100%);
}
body.dark-mode footer {
  background: linear-gradient(90deg, #222 0%, #333 100%);
}

.logo-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 0;
}
h1 {
  font-size: 2.2em;
  margin: 0 1em;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  min-width: 200px;
}
nav {
  margin: 0 1em;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1em;
  width: fit-content;
}
/* Vertically align logos in header while keeping their shape */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 1em;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 1em;
}
.center-logo {
  max-width: 260px;
  width: 30vw;
  height: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-radius: 16px;
  background: #fff;
  padding: 0.7em 1.5em;
  border: 1px solid #e0e0e0;
}
.side-logo {
  max-height: 54px;
  width: auto;
  vertical-align: middle;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 0.3em 0.7em;
  border: 1px solid #e0e0e0;
}
footer {
  padding: 1em;
  background: #ededed;
    text-align: center;
    font-size: 1em;
  text-align: center;
    color: #222;
    border-top: 2px solid #222;
}
.side-logo {
  max-height: 54px;
  width: auto;
  vertical-align: middle;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 0.3em 0.7em;
  border: 1px solid #e0e0e0;
}
nav {
  margin: 1em auto 0.5em auto;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1em;
  width: fit-content;
}
nav a {
  margin: 0 1em;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.2s;
}
nav a:hover {
  color: #444;
  text-decoration: underline;
}
body.dark-mode nav a {
  color: #fff;
}
body.dark-mode nav a:hover {
  color: #bbb;
}
main {
  padding: 2em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  margin: 2em auto;
  max-width: 900px;
  border: 2px solid #e0e0e0;
}
footer {
  padding: 1em;
  background: #ededed;
  text-align: center;
  font-size: 1em;
  color: #222;
  border-top: 2px solid #222;
}
.theme-toggle-container {
  position: absolute;
  top: 1.2em;
  right: 2em;
  z-index: 100;
}
#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.7em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}
#theme-toggle:hover {
  /* No hover effect */
}
body.dark-mode #theme-toggle {
  background: transparent;
  color: #fff;
  border: none;
}
body.dark-mode {
  background: #222;
  color: #eee;
}

@media (max-width: 600px) {
  .logo-row {
    flex-direction: column;
    gap: 0.5em;
  }
  .center-logo {
    max-width: 90vw;
    padding: 0.5em 1em;
  }
  main {
    padding: 1em;
    margin: 1em;
    border-radius: 8px;
  }
}
h1 {
  font-size: 2.2em;
  margin: 0.5em 0 0.2em 0;
  font-weight: 700;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.2em;
  margin: 0.5em auto 0.2em auto;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  display: block;
  width: fit-content;
}

nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}
main {
  padding: 2em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin: 2em auto;
  max-width: 900px;
}
footer {
  padding: 1em;
  background: #ffffff;
  text-align: center;
  font-size: 1em;
  color: #444;
  border-top: 1px solid #ffffff;
}
body.dark-mode {
  background: #222;
  color: #eee;
}
body.dark-mode header.header-logos {
  background: linear-gradient(90deg, #222 0%, #333 100%);
}
body.dark-mode main {
  background: #222;
  color: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
body.dark-mode footer {
  background: #333;
  color: #eee;
  border-top: 1px solid #444;
}
body.dark-mode .inspect-logo, body.dark-mode .small-logo {
  background: #333;
}
@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 0.5em 0;
  }
  main {
    padding: 1em;
    margin: 1em;
    border-radius: 8px;
  }
  .main-logo {
    margin-bottom: 0.5em;
  }
  .inspect-logo {
    max-width: 90vw;
  }
}
@media (max-width: 500px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
  }
  nav a {
    flex: 1 1 40%;
    min-width: 120px;
    margin: 0.3em 0.2em;
    text-align: center;
    display: inline-block;
  }
}

.missions-img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 70%;
  height: auto;
}
