body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.light-page {
  background: #f8fafc;
  color: #111827;
}

.page-header {
  padding: 24px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #061833;
  color: white;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

nav a {
  color: #dbeafe;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
}

nav a:hover {
  color: #ffffff;
}

.article-hero {
  padding: 70px 8% 40px;
  background: linear-gradient(135deg, #061833, #0b3d91);
  color: white;
}

.article-hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

.article-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: #dbeafe;
}

.article-filters {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#searchInput,
.article-filters select {
  width: 100%;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.article-list {
  padding: 50px 8%;
  max-width: 1000px;
  margin: 0 auto;
}

.article-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 5px solid #2563eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.article-card h2 {
  margin: 8px 0 12px;
}

.article-card h2 a {
  color: #0f172a;
  text-decoration: none;
}

.article-card h2 a:hover {
  color: #2563eb;
}

.article-card p {
  color: #475569;
  line-height: 1.6;
}

.article-meta {
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
}

.article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.article-actions .read-more {
  margin-top: 0;
}

.article-download {
  padding: 9px 14px;
  font-size: 14px;
}

.reader > .article-download {
  margin: 16px 0 6px;
}

.results-summary {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 20px;
  padding: 9px 12px;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.pagination a {
  background: white;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination .current-page {
  background: #2563eb;
  color: white;
}

.library-list {
  padding: 50px 8%;
  max-width: 1000px;
  margin: 0 auto;
}

.library-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  background: white;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 5px solid #2563eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.library-card h2 {
  margin: 8px 0 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.3;
}

.library-card p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.download-button {
  flex: 0 0 auto;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.download-button:hover {
  background: #1d4ed8;
}

.article-page {
  background: #f8fafc;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 8%;
  background: white;
}

.article-content h2 {
  margin-top: 42px;
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.3;
}

.article-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 22px;
}

.article-content strong {
  color: #0f172a;
}

.reader {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 8%;
  background: white;
}

.reader h1 {
  font-size: 42px;
  line-height: 1.2;
  color: #0f172a;
}

.reader h2 {
  margin-top: 36px;
  color: #0f172a;
}

.reader p,
.reader li {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
}

.reader .lead {
  font-size: 21px;
  color: #1e293b;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 24px;
  background: #061833;
  color: #cbd5e1;
  font-size: 14px;
}

@media (max-width: 700px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 16px;
  }

  nav a {
    display: inline-block;
    margin: 8px 12px 0 0;
  }

  .article-hero h1,
  .reader h1 {
    font-size: 34px;
  }

  .article-content {
    padding: 40px 7%;
  }

  .library-card {
    flex-direction: column;
    gap: 18px;
  }

  .article-filters {
    display: grid;
  }

  #searchInput,
  .article-filters select {
    max-width: none;
    box-sizing: border-box;
  }
}
