/* freearticles.css */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;

  background-image: url('/images/wallpapers/headlines-articles.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  backdrop-filter: blur(8px);
}

header {
  background-color: #2e6118;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 4px solid #bf9000;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.branding img.logo {
  height: 120px;
  width: auto;
  margin-bottom: 0.1rem;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .branding img.logo {
    height: 90px;
  }
}

.title-group h1 {
  font-family: 'Cambria', serif;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}

.title-group .tagline {
  font-family: 'Segoe Script', cursive;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #f3f6f4;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

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

.nav-buttons a {
  background-color: #9fc5e8;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-buttons a:hover {
  background-color: #2869a4;
  color: #fff;
}

.nav-buttons a.active {
  background-color: #2869a4;
  color: #fff;
}

main {
    padding: 2rem;
}

.copyright-disclaimer {
  text-align: center;
  background-color: #fff7db;
  border: 2px dashed #facc15;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  color: #4b5563;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.copyright-disclaimer h3 {
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #b45309;
  letter-spacing: 1px;
}

.copyright-disclaimer p {
  font-style: italic;
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.6;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-card h2 {
  font-size: 1.4rem;
  color: #2e6118;
  margin-bottom: 0.5rem;
}

.article-card .excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.read-button {
  background-color: #facc15;
  color: #000;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.read-button:hover {
  background-color: #eab308;
  color: white;
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  max-width: 800px;
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

#modal-article h2 {
  margin-top: 0;
  color: #1e3a8a;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}
