/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

header, section, footer {
  padding: 20px 0;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo h1 {
  margin: 0;
  font-size: 1.5em;
}

.header .navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.header .navigation ul li a {
  color: #333;
  font-weight: bold;
}

/* Top Section Styles */
.top-section {
  padding-top: 100px; /* To avoid overlap with fixed header */
  background-color: #f9f9f9;
}

.top-section h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.top-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Recent News Section Styles */
.recent-news {
  background-color: #fff;
}

.recent-news h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.recent-news .posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.recent-news .post {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #f4f4f4;
  padding: 15px;
  margin-bottom: 20px;
}

.recent-news .post img {
  max-width: 100%;
  height: auto;
}

.recent-news .post a {
  font-weight: bold;
  color: #007bb5;
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer ul li a {
  color: white;
}

/* Blog Page Styles */
.main-content {
  padding-top: 100px; /* To avoid overlap with fixed header */
}

.article-container {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.article h2 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.article .meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 20px;
}

.article .featured-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.article .article-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .navigation ul {
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 10px;
    display: none;
  }

  .header .navigation ul.show {
    display: block;
  }

  .header .navigation::after {
    content: "☰";
    color: #333;
    font-size: 1.5em;
    cursor: pointer;
  }

  .recent-news .posts-container {
    flex-direction: column;
  }

  .recent-news .post {
    flex: 1 1 100%;
  }

  .footer ul {
    flex-direction: column;
  }
}

/* JavaScript for Responsive Menu Toggle */
.header .navigation::after {
  content: "☰";
  color: #333;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .header .navigation::after {
    display: inline-block;
  }

  .header .navigation ul {
    display: none;
  }

  .header .navigation ul.show {
    display: block;
  }
}
