html {
  scroll-behavior: smooth;
}
.blog-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  color: #333;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 16px; /* Rounded corners */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 280px; /* Reduced size */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  width: 100%;
  height: 160px; /* Reduced height */
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: block;
}

.blog-content {
  padding: 16px;
}

.blog-content h2 {
  
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #222;
}

.blog-content p {
  font-size: 0.89em;
  text-align: justify;
  color: #555;
  line-height: 1.5;
}

.blog-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}
/* Tablet view (below 1024px) */
@media (max-width: 1024px) {
  .blog-card {
    max-width: 240px;
  }

  .blog-card img {
    height: 140px;
  }
}

/* Mobile view (below 768px) */
@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
    align-items: center;
  }

  .blog-card {
    max-width: 90%;
  }

  .blog-card img {
    height: 140px;
  }
}

/* Extra small screens (below 480px) */
@media (max-width: 480px) {
  .blog-card {
    max-width: 95%;
  }

  .blog-card img {
    height: 120px;
  }

  .blog-content h2 {
    font-size: 1em;
  }

  .blog-content p {
    font-size: 0.9em;
  }
}

