/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.2;
  background-color: #F9F9FF;
  color: #333;
}

body {
  flex: 1 0 auto;
}

/* Container to center and constrain content */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 20px 40px;
  color: #333333;
  flex: 1 0 auto;
}

/* Header */
header {
  width: 100%;
  background-color: #0071BC;
  color: white;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Header content layout */
.header-container {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 16px;
}

/* Logo */
.logo {
  height: 60px;
  width: 60px;
  flex-shrink: 0;
}

/* Heading and menu block */
.text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

/* Site Heading */
.site-heading {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-align: left;
  margin-top: 4px;
}

/* Desktop Menu */
.menu-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.menu-row a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.2s, text-decoration 0.2s;
}

.menu-row a:hover {
  background-color: #014E82;
  text-decoration: underline;
  color: white; /* Explicitly keep text white */
}

/* Footer */
footer {
  width: 100%;
  background-color: #e0e0e0;
  color: #666;
  font-size: 0.9rem;
  padding: 1rem 0;
  margin-top: auto;
  text-align: center;
  box-sizing: border-box;
}

/* Main Content */
main {
  flex: 1 0 auto;
}

/* Headings */
h1, h2 {
  color: #014E82;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

h3 {
  color: #80B8DE;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

.subtle {
  color: #999999;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.75rem;
  text-align: justify;
}

li > ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* Global Links */
a {
  color: #014E82;
  text-decoration: none;
}

a:hover {
  color: #0071BC;
  text-decoration: underline;
}

.link-redblue {
  color: red;
  text-decoration: none;
}

.link-redblue:hover {
  color: blue;
  text-decoration: underline;
}

/* Buttons */
.button-blue {
  background-color: #5895ED;
  color: white;
  padding: 4px 12px;
  text-decoration: none;
  border-radius: 12px;
}

.button-orange {
  background-color: #FF9800;
  color: white;
  padding: 6px 20px;
  text-decoration: none;
  border-radius: 14px;
  font-weight: bold;
}

/* Contact Form */
.contact-form {
  margin: auto;
  max-width: 900px;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.contact-table td {
  padding: 0.5rem;
  vertical-align: top;
}

.contact-table td:first-child {
  width: 140px;
  font-weight: bold;
}

.contact-table input,
.contact-table textarea {
  width: 100%;
  max-width: 600px;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-table textarea {
  resize: vertical;
  min-height: 100px;
}

.confirmation-message {
  text-align: center;
  color: green;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  align-self: flex-start;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 16px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 2000;
}

/* Show menu when .open class is present */
.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #014E82;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  background-color: #f2f2f2;
}

/* Responsive Layout */
@media (max-width: 740px) {
  .site-heading {
    font-size: 16px;
    max-width: 70%;
  }

  .menu-row {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

  .header-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .text-block {
    flex: 1;
  }
}
