/* Global Styling */
body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
}

body {
  background-color: #121212;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styling */
header {
  background-color: #121212;
  color: #fff;
  padding: 20px 0;
  animation: fadeInDown 1s ease-in-out;
}

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

header .logo h1 {
  font-size: 2rem;
}

header .logo h1 a {
  font-size: 2rem;
  color: #d47ce9;
  text-decoration: none;
}

header .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

header .nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease-in-out;
}

header .nav-links li a:hover {
  color: #ffdd57;
}

header .nav-links li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ffdd57;
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

header .nav-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-content {
  text-align: center;
  padding: 50px 0;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

/* Search Bar Styling */
#search-bar {
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 20px;
}

/* Blog List Styling */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-list article {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.blog-list h2 a {
  text-decoration: none;
  color: #d47ce9;
  font-size: 1.5rem;
  font-weight: bold;
}

.blog-list h2 a:hover {
  color: #ffdd57;
}

.blog-list .post-details {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.blog-list .post-summary {
  font-size: 1rem;
  margin-bottom: 20px;
}

.blog-list .read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #d47ce9;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.blog-list .read-more-button:hover {
  background-color: #ffdd57;
  color: #121212;
}

/* Footer Styling */
footer {
  background-color: #121212;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  opacity: 0;
  animation: fadeInUp 1.5s ease-in-out forwards;
}

footer p {
  margin-bottom: 10px;
}

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

footer .social-media li {
  display: inline;
}

footer .social-media li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease-in-out;
}

footer .social-media li a:hover {
  color: #ffdd57;
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}
