/* General Reset */
body, h1, h2, p, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
  padding: 0px;
}

header {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background: #444;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

main {
  margin: 20px 0; 
}

/* Recent Articles Section */
#recent-articles {
  margin: 40px auto; /* Adds more space above and centers the section */
  width: 90%;        /* Section takes up 90% of the page width */
}

#recent-articles h2 {
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 20px; /* Adds space above the title */
}

#recent-articles ul {
  list-style: none;
  padding: 0;
}

#recent-articles ul li {
  background: #fff;
  margin: 10px 0;
  padding: 15px;
  border: 1px solid #ddd;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

#recent-articles ul li h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

#recent-articles ul li p {
  margin: 5px 0;
}

#recent-articles ul li a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

#recent-articles ul li a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 20px;
  padding: 10px 0;
  background: #333;
  color: #fff; 
}

/* Masthead */
.masthead {
  height: 120px; /* Set masthead height */
  background-color: #000; /* Match the menu bar background color */
  display: flex;
  align-items: center; /* Vertically center content */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
}

.masthead img {
  height: 100%; /* Scales the image to the masthead's height */
  width: auto; /* Maintains the aspect ratio */
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
}

.masthead .blog-title {
  color: #eaeaea; /* Not-quite-white color */
  height: 120px;
  font-size: 48px; /* Adjust font size for visibility */
  font-weight: bold;
  text-align: right; /* Align text to the right */
  margin: 0 0 0 auto; /* Remove any default margin */
  padding-right: .5em;
}

/* Navigation Bar */
.menu-bar {
  background-color: #444; /* Match the masthead background color */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Retain the drop shadow */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
  display: flex; /* Use flexbox for alignment */
  justify-content: center;
  align-items: center; /* Vertically align menu items */
  display: flex;
}

.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* Align menu items horizontally */
  justify-content: center;
}

.menu-bar ul li {
  margin: 0; /* Remove spacing between menu items */
}

.menu-bar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px 20px; /* Adjust padding for clickable area */
  display: block;
}

.menu-bar ul li a:hover {
  color: #f4f4f4; /* Lighter hover effect */
}

#article-content {
  margin: 20px auto;
  width: 90%; /* Same as recent articles for consistent layout */
  line-height: 1.8;
  font-size: 18px;
  color: #333;
}

#article-content p {
  margin-bottom: 20px;
}