/* Blog page */

.blog-section {
  padding: 60px 0;
  background: #f5f7fb;
  font-family: "Open Sans", sans-serif;
}

.blog-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: left;
  color: #111827;
}

/* Card grid */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* Blog card */

.blog-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

/* Category badge */

.blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  z-index: 2;
}

.badge-green {
  background: #16a34a;
}

.badge-blue {
  background: #2563eb;
}

.badge-teal {
  background: #0d9488;
}

/* Image */

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */

.blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 13px;
  color: #05035d;
  margin: 0 0 8px;
}

.blog-card-heading {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 20px;
}

/* Read more button */

.blog-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: #05035d;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.1s ease;
}

.blog-read-more:hover {
  background: #00a383;
  transform: translateY(-1px);
}

/* Responsive */

@media (max-width: 1199px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .blog-section {
    padding: 40px 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-body {
    padding: 18px 18px 20px;
  }
}
