
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #fffdd0;
  color: #111;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

header {
  background: url('images/header.jpg') center/cover no-repeat;
  color: #ffeb3b;
  text-align: center;
  padding: 100px 20px 80px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  font-weight: 700;
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9);
}

header p {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

blockquote {
  font-style: italic;
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid #ccc;
}


nav {
  background-color: #005f99;
  z-index: 1000;
  position: relative;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
  width: 100%;
}

.nav-toggle {
  background: none;
  border: none;
  color: #ffeb3b;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

nav a {
  color: #ffeb3b;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #005f99;
    padding-top: 10px;
  }

  .nav-links:not(.show) {
    display: none !important;
  }

  nav a {
    padding: 12px 0;
    display: block;
  }
}

.container {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Homepage article cards - flex version */
.featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.article {
  background-color: white;
  border-radius: 10px;
  border: 2px solid #ffe600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.article:hover {
  transform: scale(1.02);
}

.article img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #004080;
}

.article-content h3 a {
  color: #004080;
  text-decoration: none;
}

.article-content h3 a:hover {
  text-decoration: underline;
}

.article-content p {
  font-size: 0.95rem;
  color: #444;
}

footer {
  background-color: #004080;
  color: #ffeb3b;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}


/* Fixes for subpage image scaling and layout in Chrome/Edge */

.featured-article img,
.portrait-article img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.featured-article,
.portrait-article {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.portrait-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.portrait-article {
  flex: 1 1 300px;
  max-width: 300px;
}
