/* General Styles */
body {
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* Header Section */
header {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

header div {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensures responsiveness */
}

header span {
  font-size: 14px;
}

header a {
  text-decoration: none;
  color: white;
  background-color: #388e3c;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

header a:hover {
  background-color: #2e7d32;
}

/* Main Content */
main {
  max-width: 90%;
  width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #4caf50;
}

/* Blog List */
ul#blog-list {
  list-style-type: none;
  padding: 0;
}

ul#blog-list li {
  margin: 10px 0;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

ul#blog-list li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

ul#blog-list li a:hover {
  color: #4caf50;
}
/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header div {
    justify-content: center;
  }

  main {
    width: 95%;
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  header div {
    gap: 10px;
  }

  header span,
  header a {
    font-size: 12px;
    padding: 4px 8px;
  }

  h1 {
    font-size: 20px;
  }

  ul#blog-list li {
    padding: 8px;
  }
}
