/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Page Layout Fix for Sticky Footer */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background-color: #0000ff;
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  color: white;
  text-decoration: none;
}

.menu {
  display: flex;
  list-style: none;
}

.menu li {
  margin-left: 2rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.menu a:hover {
  color: #ddd;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem;
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #0000ff;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.article-content {
  margin-top: 2rem;
}

.article-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0000ff;
}

.article-content h2,
h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: #000000 !important;
}

.article-content h3,
h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem 0;
  color: #000000 !important;
}

.article-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.article-content th {
  background-color: #0000ff;
  color: white;
}

.article-content tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Footer Always at Bottom */
footer {
  background-color: #0000ff;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #0000ff;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 0.8rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .article-content h1 {
    font-size: 1.6rem;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .article-content table {
    font-size: 0.9rem;
  }

  /* Prevent content overflow */
  .main-content {
    padding: 0 1rem;
  }
}
