:root {
  --gov-blue: #003a8f;
  --gov-light: #e6eef8;
  --gov-grey: #f2f2f2;
  --text-dark: #1a1a1a;
  --primary: #0b3c5d;
  --primary-light: #328cc1;
  --accent: #d9b310;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  background: #f8f9fa;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Header */
header {
  background: var(--gov-blue);
  color: var(--white);
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

header .tagline {
  font-size: 0.9rem;
  opacity: 0.9;
  font-style: italic;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-top: 15px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
}

/* Dropdown Menu */
nav ul li {
  position: relative;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--gov-blue);
  padding: 10px 0;
  min-width: 180px;
  flex-direction: column;
  gap: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-radius: 4px;
}

nav ul li.active > ul {
  display: flex;
}

nav ul li ul li {
  width: 100%;
}

nav ul li ul a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

nav ul li ul a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Login/Register Forms */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fdfdfd;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-primary {
    background-color: #3399cc; /* Blue from screenshot */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #f2f2f2;
    color: #555;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--gov-light), #ffffff);
  border-bottom: 4px solid var(--gov-blue);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--gov-blue);
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
}

/* Container */
.container {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.container h2 {
  font-size: 2rem;
  color: var(--gov-blue);
  margin-bottom: 10px;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

/* Section Grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Cards */
.card {
  background: var(--white);
  padding: 25px;
  border-left: 5px solid var(--gov-blue);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 4px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--gov-blue);
  font-size: 1.4rem;
}

.card p {
  color: #555;
  margin-bottom: 15px;
  font-size: 1rem;
}

.card a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: bold;
  font-family: "Segoe UI", Arial, sans-serif;
  display: inline-block;
  transition: color 0.3s;
}

.card a:hover {
  color: var(--gov-blue);
}

/* Article Page Specific */
.article-header {
  background: var(--gov-light);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  flex-wrap: wrap;
}

.article-meta p {
  margin: 0;
}

.article-meta strong {
  color: var(--gov-blue);
}

.article-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gov-blue);
  font-size: 1.8rem;
}

.article-content h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.keywords {
  background: var(--gov-grey);
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.citation-box {
  background: #fffbea;
  border-left: 5px solid var(--accent);
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
}

.citation-box p {
  margin-bottom: 10px;
}

.citation-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.citation-buttons a {
  background: var(--gov-blue);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.citation-buttons a:hover {
  background: var(--primary);
}

/* Search & Filter */
.search-filter {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--gov-light);
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.search-box button {
  padding: 12px 30px;
  background: var(--gov-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.search-box button:hover {
  background: var(--primary);
}

.filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filters select {
  padding: 8px 15px;
  border: 2px solid var(--gov-light);
  border-radius: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  background: white;
}

/* Back Button */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--gov-blue);
  color: var(--white);
  padding: 30px 40px;
  text-align: center;
  margin-top: 60px;
  font-family: "Segoe UI", Arial, sans-serif;
}

footer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

footer .disclaimer {
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 900px;
  margin: 15px auto 10px;
  font-style: italic;
}

footer .last-updated {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 15px;
}

/* Issue Badge */
.issue-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Author Profile */
.author-profile {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.author-profile h2 {
  color: var(--gov-blue);
  margin-bottom: 15px;
}

.author-profile .affiliation {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.author-profile .bio {
  margin-bottom: 20px;
}

.author-profile .contact {
  background: var(--gov-grey);
  padding: 15px;
  border-radius: 4px;
}

/* PDF Viewer */
.pdf-viewer {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin: 20px 0;
}

#pdf-canvas {
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pdf-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pdf-controls button {
  padding: 10px 20px;
  background: var(--gov-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.pdf-controls button:hover {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 20px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
}

/* Accessibility */
a:focus, button:focus, input:focus, select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header, nav, footer, .search-filter, .back-link {
    display: none;
  }

  body {
    background: white;
  }

  .card, .article-header {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Editorial Board Styles */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center;
}
.board-member {
    text-align: center;
    width: 100%;
    max-width: 250px;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
}
.board-member:hover {
    transform: translateY(-5px);
}
.board-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background-color: var(--gov-grey);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.board-member h3 {
    margin: 10px 0 5px;
    color: var(--primary); 
    font-size: 1.1em;
    font-weight: 600;
}
.board-member h4 {
    margin: 10px 0 5px;
    color: var(--primary);
    font-size: 1em;
    font-weight: 600;
}
.board-member p {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.4;
}
.section-heading {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}
.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent, #e67e22); 
    margin: 10px auto 0;
}
.young-editors-list {
    list-style-type: disc;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}
.young-editors-list li {
    margin-bottom: 10px;
    color: #444;
}
