.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}

.blog-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-excerpt {
  flex-grow: 1;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.blog-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #1976d2;
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.blog-btn:hover {
  background: #1259a5;
}


@media (max-width: 600px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-img {
    height: 150px;
  }
}


@media (max-width: 400px) {
  .blog-title {
    font-size: 1.1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }
}

.blog-post .post {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

.post-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #222;
}

.post-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.post-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #444;
}

.back-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: #1976d2;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #1259a5;
}
@media (max-width: 600px) {
  .post-img {
    height: 200px;
  }

  .post-title {
    font-size: 1.5rem;
  }
}@media (max-width: 400px) {
  .post-title {
    font-size: 1.3rem;
  }

  .post-content p {
    font-size: 0.95rem;
  }
}