/* Blog Page CSS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  animation: fadeInPage 1s ease-in-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-header p {
  font-size: 1rem;
  font-weight: 300;
  max-width: 600px;
  color: #d9d8d8;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3rem 5%;
  max-width: 1200px;
  margin: auto;
  justify-items: center;
}

.blog-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.blog-post img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post h2 {
  font-size: 1.5rem;
  margin: 1rem;
  color: #222;
}

.blog-post p {
  font-size: 1rem;
  margin: 0 1.2rem 1rem;
  color: #555;
  flex-grow: 1;
}

.blog-post a {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-post a:hover {
  color: #0056b3;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #000;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 3rem;
}

@media screen and (max-width: 768px) {
  .blog-header h1 {
    font-size: 2.2rem;
  }

  .blog-header p {
    font-size: 1rem;
  }

  .blog-container {
    padding: 2rem 4%;
    gap: 2rem;
  }

  .blog-post h2 {
    font-size: 1.3rem;
  }

  .blog-post p,
  .blog-post a {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.8rem;
  }

  .blog-header p {
    font-size: 0.95rem;
  }

  .blog-container {
    padding: 1.5rem 3%;
  }

  .blog-post h2 {
    font-size: 1.2rem;
  }

  .blog-post p,
  .blog-post a {
    font-size: 0.9rem;
  }
}

/* ===== Custom Scrollbar Styling ===== */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #333;
}
