/* === PAGE BASE === */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #0d1526;
  color: #e9e9e9;
  font-family: "Georgia", serif;
}

/* === TEXT BANNER (FIXED) === */
.banner {
  position: fixed; /* THIS IS THE FIX. Header is locked to the top. */
  top: 0;
  width: 100%;
  background-color: #0d1526;
  color: #9fc5ff;
  text-align: center;
  padding: 1.5rem 0 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 10;
  border-bottom: 2px solid #142544;
}

.banner h1 {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 1px;
}

.banner h2 {
  font-family: "Georgia", serif;
  font-size: 1rem;
  margin: 0.3rem 0 0.6rem;
  color: #b7e3ff;
}

.banner h3 {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.main-site-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #9fc5ff;
  font-family: "Cinzel", serif;
  text-decoration: none;
}

.main-site-link:hover {
  text-decoration: underline;
  color: #b7e3ff;
}

/* === SCROLLABLE CONTENT AREA (FIXED MARGINS) === */
main {
  /* THIS IS THE FIX. Pushes the content down from the fixed header and up from the fixed footer. */
  padding-top: 180px; 
  padding-bottom: 80px;
}

#article-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Style for the "Latest Articles" heading */
#article-list h2 {
  font-family: "Cinzel", serif;
  text-align: center;
  font-size: 1.8rem;
  color: #9fc5ff;
}

/* === ARTICLE BOXES === */
.article-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem; /* Space between articles */
  border: 1px solid #223355;
}

.article-item:hover {
  transform: translateY(-2px);
  background: rgba(159, 197, 255, 0.05);
  box-shadow: 0 4px 12px rgba(159, 197, 255, 0.1);
}

/* === CONTENT INSIDE THE BOX (FIXED) === */
.thumbnail {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #223355;

  /* These three lines are the magic */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.text-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
  font-family: "Cinzel", serif;
}

.article-item a {
  color: #b7e3ff;
  text-decoration: none;
}

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

.meta {
  font-size: 0.85rem;
  color: #6f8ab8;
  margin-bottom: 0.5rem;
}

.excerpt {
  margin: 0.5rem 0;
  line-height: 1.4;
  font-size: 0.95rem;
}

.read-more-container {
  margin-top: auto;
  padding-top: 0.5rem;
}

.read-more {
  font-weight: bold;
  font-family: "Cinzel", serif;
}


/* === FOOTER (FIXED) === */
.footer {
  position: fixed; /* THIS IS THE FIX. Footer is locked to the bottom. */
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #6f8ab8;
  background-color: #0d1526;
  border-top: 1px solid #142544;
}