/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 20px;
}

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

.site-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.menu-btn, .search-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.search-bar {
  display: none;
  width: 100%;
  max-width: 200px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

nav ul li a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  padding: 10px 20px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #007bff;
}

/* Article Section */
.article-details {
  padding: 20px;
  background-color: #f9f9f9;
}

.article-details h1 {
  font-size: 28px;
  color: black;
}

.article-details .author {
  font-size: 14px;
  color: gray;
}

.article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
}

.article-content {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
}

/* Related Articles Section (Carousel) */
.related-articles {
  padding: 20px;
}

.related-articles h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.article-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.carousel-item {
  flex: 0 0 auto;
  width: 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  width: 100%;
  border-radius: 10px;
}

.carousel-item h3 {
  font-size: 16px;
  margin-top: 10px;
}

.carousel-item a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  display: block;
  margin-top: 10px;
  transition: color 0.3s;
}

.carousel-item a:hover {
  color: #0056b3;
}

/* Footer */
footer {
  background: #f1f1f1;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

footer p {
  font-size: 14px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  display: inline;
  margin: 0 10px;
}

footer ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

footer ul li a:hover {
  color: #007bff;
}
