.blogs-container {
  margin-bottom: 200px;
}
.blogs-container h2 {
  font-weight: 500;
  text-align: center;
  font-size: 2.1875rem;
  margin: 0;
}
.blogs-header {
  margin-bottom: 46px;
}
.blog-page-btn {
  width: 196px;
}
.blog-page-btn a {
  text-decoration: none;
  color: #484848;
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  border: 1px solid #bfbfbf;
  padding: 14px 24px;
  border-radius: 50px;
  gap: 1rem;
  transition: all 0.2s ease-in;
}
.blog-page-btn a svg {
  margin-right: 10px;
  transition: all 0.2s ease-in;
}
.blog-page-btn a:hover {
  background-color: #f1fffe;
  border-color: #138483;
}
.blog-page-btn a:hover svg {
  margin-right: 0px;
}
.blogs-wrapper .blog-card {
  border: 1px solid #dedede;
  background-color: #fbfbfb;
  border-radius: 20px;
  overflow: hidden;
}
.blogs-wrapper .blog-card .blog-content {
  padding: 1rem;
}
.blogs-wrapper .blog-card-link {
  display: block;
  height: 100%;
}

/* make columns stretch so cards have equal height */
.blogs-wrapper > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.blogs-wrapper > [class*="col-"] .blog-card-link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blogs-wrapper .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blogs-wrapper .blog-card .blog-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* single-line title with ellipsis to prevent card expansion */
.blogs-wrapper .blog-card .blog-content h3 {
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* optional: clamp excerpt to 2 lines */
.blogs-wrapper .blog-card .blog-content .blog-excerpt {
  margin: 0;
  color: #6b6b6b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blogs-wrapper .blog-card .blog-content a {
  color: #1c1c1c;
  font-size: 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease-in-out;
}
.blogs-wrapper .blog-card .blog-content a:hover {
  text-decoration: underline;
}
.blogs-wrapper .blog-card .blog-content p {
  color: #737373;
  margin-bottom: 14px;
  font-size: 0.875rem;
}
.blogs-wrapper .blog-card .blog-content p a {
  color: #138483;
  text-decoration: none;
  font-size: 0.875rem;
}
.blogs-wrapper .blog-card .blog-content p a:hover {
  text-decoration: underline;
}
.blog-card .blog-img {
  height: 240px;
  width: 100%;
  overflow: hidden;
}
.blog-card .blog-img img {
  transition: all 0.3s ease-in-out;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog-card:hover .blog-img img {
  scale: 1.1;
}

/* responsive */
@media (max-width: 576px) {
  .blogs-container h2 {
    font-size: 1.5625rem;
  }
  .blogs-container {
    margin-bottom: 100px;
  }
  .blogs-wrapper .blog-card .blog-content a {
    font-size: 1.5rem;
  }
}
