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

header, .header-bar {
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  box-sizing: border-box;
}

header {
  background: #fff;
  border-bottom: 2px solid #4088D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 32px;
  border-bottom: 2px solid #4088D0;
}

.header-bar .logo {
  align-self: center;
}

.header-navs {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

header img.logo {
  height: 60px;
  margin-right: 32px;
  margin-top: 0;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #4088D0;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.2s;
}

nav a.active {
  color: #4088D0;
  text-decoration: underline;
}

nav a:hover {
  color: #000;
  text-decoration: underline;
}

.caret {
  font-size: 0.8em;
  margin-left: 0.3em;
}

/* --- Unified Dropdown --- */
.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 6px);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #4088D0;
  box-shadow: 0 2px 8px rgba(156,186,196,0.12);
  border-radius: 4px;
  display: none;
  padding: 0;
  min-width: 100%;
  width: max-content;
  z-index: 200;
  margin-top: 6px;
}

.dropdown-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: none;
  color: #4088D0;
  padding: 0 8px;
  text-align: left;
  cursor: pointer;
  font-size: 1em;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0px;
  box-shadow: none;
  outline: none;
}

.dropdown-menu button,
.dropdown-menu button:focus,
.dropdown-menu button:active,
.dropdown-menu button:hover,
.dropdown-menu button:visited {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: none;
}

.dropdown-menu button:last-child {
  margin-bottom: 0;
}

.dropdown-menu button.active, .dropdown-menu button:hover {
  background: #4088D0;
  color: #fff;
  border-radius: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

/* --- Unified Switcher --- */
.switcher {
  display: flex;
  align-items: center;
  position: relative;
  margin-right: 0;
  height: 40px;
}

.switcher button {
  background: #fff;
  border: 1px solid #4088D0;
  color: #4088D0;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
}

.switcher button.active, .switcher button:hover {
  background: #4088D0;
  color: #fff;
}

/* Responsive: show .switcher on mobile, hide on desktop */
@media (max-width: 800px) {
  .switcher {
    display: flex !important;
    height: 100%;
  }
}
@media (min-width: 801px) {
  #page-switcher.switcher {
    display: none !important;
  }
  #lang-switcher.switcher {
    display: flex !important;
  }
}

main {
  max-width: 900px;
  margin: 2px auto 0 auto;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  flex: 1 0 auto;
}

main hr {
  border: none;
  border-top: 2px solid #4088D0;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

main a {
  color: #4088D0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

main a.active {
  color: #4088D0;
  text-decoration: underline;
}

main a:hover {
  color: #000;
  text-decoration: underline;
}

footer {
  margin-top: 48px;
  padding: 16px 0;
  text-align: center;
  font-size: 0.95em;
  color: #888;
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

footer a {
  text-decoration: none;
  color: #8EB0D2;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.2s;
}

footer a.active {
  color: #8EB0D2;
  text-decoration: underline;
}

footer a:hover {
  color: #000;
  text-decoration: underline;
}

.header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px;
  height: 40px;
}

.header-controls > * {
  height: 40px; /* Match parent for alignment */
  display: flex;
  align-items: center;
}

#current-page-btn, #current-lang-btn {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bigger {
  font-size: 1.2em;
}

.spaced-list > li {
  margin-bottom: 1em;
}

.profile-container {
  display: flow-root;
}

.profile-img {
  float: left;
  width: 80px;
  height: auto;
  margin-right: 24px;
  margin-bottom: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(156,186,196,0.15);
}

.profile-container p {
  max-width: 500px;
  width: 100%;
}

/* Responsive style for mobile devices (0px - 600px) */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }
  nav {
    flex-direction: column;
    gap: 8px;
  }
  main {
    padding: 12px;
  }
  .profile-img {
    float: none;
    display: block;
    margin: 0 auto 12px auto;
    width: 80px;
  }
  .profile-container p {
    max-width: 100%;
  }
}

/* Responsive style for header bar on tablets and smaller devices (0px - 800px) */
@media (max-width: 800px) {
  .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    padding: 12px;
  }
  .header-navs {
    display: none !important;
  }
  .header-controls {
    margin-left: auto;
    gap: 8px;
  }
  nav[data-lang] {
    display: none !important;
  }
  #page-switcher {
    display: flex !important;
    height: 100%;
  }
}

/* Responsive style for header bar on desktops ( > 800px) */
@media (min-width: 801px) {
  .header-navs {
    display: flex !important;
  }
  #page-switcher {
    display: none !important;
  }
  .header-controls {
    margin-left: 0;
  }
}

/* Contact form entry fields background color */
.contact-form input[type="text"],
.contact-form textarea {
  background: #f6f8f9;
}
