/* ============================================
   BASE GLOBAL STYLING (MOBILE-FIRST)
   ============================================ */

body {
  font-family: "Noto Sans", sans-serif;
  font-size: 1em;
  color: #3B3B3B;
  line-height: 1.6em;
  padding: 5px;
}

#container {
  display: flex;
  flex-direction: column;
}

#column-left {
  display: none;
}

#content {
  order: 1;
}

#column-right {
  order: 0;
}

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



/* HEADER LAYOUT */
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 1em;     /* horizontal padding respected on all browsers */
}

/* RESPONSIVE LOGO */
.header-logo img {
  width: 100%;          /* scales with available space */
  max-width: 140px;     /* keeps desktop size similar to your original */
  height: auto;
  flex-shrink: 1;        /* allows shrinking on small screens */
}

/* RESPONSIVE TITLE (with Firefox fix) */
.header-title {
  font-size: clamp(1.1em, 4vw, 1.6em);
  line-height: 1.2em;
  min-width: 0;          /* Firefox Android FIX: allows text to shrink */
  overflow-wrap: break-word;
}

.header-title .highlight-red {
  color: #D42A2A;
}

/* OPTIONAL: Better mobile layout */
@media (max-width: 500px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 5px 1em 15px 1em;     /* horizontal padding respected on all browsers */
  }
}

.social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.membermessage {
  font-style: italic;
  font-size: 0.94em;
  color: #888787;
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: #3442A6;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #4D4DFF;
}

/* Footer links */
footer {
  text-align: center;
}

footer a {
  color: #4F4F4F;
}

footer a:hover {
  text-decoration: none;
  color: #4F4F4F;
}

/* Button links */

.button {
  color: inherit;
}

.button a {
  text-decoration: none;
  color: inherit;
}

.button a:hover {
  color: white;
}

/* ============================================
   TEXT ELEMENTS
   ============================================ */

div.highlight {
  display: flex;
  justify-content: center;
  padding-bottom: 1em;
}

div.box {
  display: inline-block;
  padding: 0 1em;
  margin: 0;
  font-weight: 400;
  border-top: 2px solid #5baa2b;
  border-bottom: 2px solid #5baa2b;
  /* background-color: #fffddd; #efefef; #c8f6ab;*/
  line-height: 1.2em;
}

h1 {
  font-size: 2em;
  font-weight: normal;
  margin: 0;
  color: #4d4dff;
  box-shadow: -3px 0 0 #4d4dff;
  padding: 0 0 0.5em 1em;
}

h2 {
  font-size: 1.6em;
  font-weight: 500;
  line-height: 1.4em;
  margin: 1.4em 0 1em;
}

.publishedtime + h2 { margin-top: 0; }

h3 {
  font-size: 1.2em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2em;
}

.publishedtime {
  display: flex;
  align-items: center;
  list-style: square outside url('../images/clock-icon.svg');
  margin: 2.5em 0 0;
}

.copyright {
  font-size: 0.9em; margin-top: 0.8em;
}

.center-icon {
  display: inline-block;
  vertical-align: center;
}

nav#sitemap {
  padding: 1em 10% 2em 10%;
}

nav ul, nav ul a {
  list-style: none;
  color: #6F6F6F;
  font-size: 1em;
  line-height: 1.4em;
  padding: 0;
  margin: 0;
}

nav ul a:hover {
  color: #3B3B3B;
}

nav ul ul {
  padding-left: 1em;
}

nav ul li a {
  display: block;
  white-space: nowrap;       /* Keep text on one line */
  overflow: hidden;          /* Hide the overflowing text */
  text-overflow: ellipsis;   /* Show "..." */
}


/* ============================================
   IMAGE LISTS
   ============================================ */

div.imagelist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}

div.imagelist dl {
  flex: 1;
}

/* ============================================
   FORMS
   ============================================ */

form {
  max-width: 400px;
  margin: 2em auto;
  font-family: Arial, sans-serif;
}

label {
  display: block;
  margin-top: 1em;
}

input,
textarea {
  width: 100%;
  padding: 0.5em;
}

button,
div.button {
  margin-top: 1em;
  padding: 0.6em 1.2em;
  background: #4D4DFF;
  color: white;
  border: none;
  cursor: pointer;
}

div.button {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hidden-field {
  display: none;
}

.required::after { content: " *"; color: red; }
.checkbox-group { margin-top: 10px; }
.submit-btn { margin-top: 25px; padding: 12px 20px; background: #003366; color:#fff; border: none; cursor:pointer; }
.submit-btn:hover { background:#0055aa; }

/* ============================================
   DESKTOP LAYOUT (≥900px)
   ============================================ */

@media (min-width: 900px) {

  
  /* Main container switches to multi-column */
  #container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }

  #column-left,
  #content,
  #column-right {
    min-width:0;
  }
  
  #column-left {
    display: block;
    flex: 0.8;
    order: 0;
  }

  #content {
    flex: 2;
    order: 1;
  }

  #column-right {
    flex: 0.8;
    order: 2;
  }
  
  nav#sitemap{
    padding: 0 0 1em 0;
  }

}

