/* Blog listing page */

.blog-listing-header {
  margin-bottom: 28px;
}

.blog-listing-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--blackColor);
}

.blog-listing-intro {
  margin: 0;
  color: var(--optionalColor);
  font-size: 1.02rem;
  line-height: 1.6;
}

.blog-listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f0f2f5;
  color: var(--blackColor);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-filter-chip:hover,
.blog-filter-chip:focus {
  background: #e6e9ee;
  color: var(--mainColor);
}

.blog-filter-chip i {
  font-size: 16px;
  line-height: 1;
}

.blog-filter-clear {
  font-size: 13px;
  font-weight: 700;
  color: var(--mainColor);
  text-decoration: none;
  margin-left: 4px;
}

.blog-filter-clear:hover,
.blog-filter-clear:focus {
  text-decoration: underline;
}

.blog-results-info {
  margin: 0;
  color: var(--optionalColor);
  font-size: 14px;
}

.blog-empty-state {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 48px 28px;
  text-align: center;
  margin-bottom: 30px;
}

.blog-empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blackColor);
}

.blog-empty-state p {
  margin: 0 0 20px;
  color: var(--optionalColor);
}

/* Featured lead card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eceef2;
  box-shadow: none;
  background: #fff;
}

.blog-featured-card__image {
  display: block;
  overflow: hidden;
  min-height: 100%;
}

.blog-featured-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-featured-card:hover .blog-featured-card__image img {
  transform: scale(1.04);
}

.blog-featured-card__body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}

.blog-featured-card__body .category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--optionalColor);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}

.blog-featured-card__body .category:hover,
.blog-featured-card__body .category:focus {
  color: var(--mainTextColor);
}

.blog-featured-card__body h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
}

.blog-featured-card__body h2 a {
  color: var(--blackColor);
  text-decoration: none;
}

.blog-featured-card__body h2 a:hover,
.blog-featured-card__body h2 a:focus {
  color: var(--mainColor);
}

.blog-featured-card__body .post-content-footer {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  gap: 18px;
}

.blog-featured-card__body .post-content-footer li {
  position: relative;
  color: var(--optionalColor);
  font-size: 14px;
  padding-left: 22px;
}

.blog-featured-card__body .post-content-footer li i {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--mainTextColor);
}

/* Grid cards */
.blog-listing-grid > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.blog-listing-area .single-blog-post-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eceef2;
  box-shadow: none;
  background: #fff;
}

.blog-listing-area .single-blog-post-box .post-image,
.blog-listing-area .single-blog-post-box .post-image a,
.blog-listing-area .single-blog-post-box .post-image a img {
  border-radius: 10px 10px 0 0;
}

.blog-listing-area .single-blog-post-box .post-image a {
  display: block;
  overflow: hidden;
}

.blog-listing-area .single-blog-post-box .post-image a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-listing-area .single-blog-post-box:hover .post-image a img {
  transform: scale(1.05);
}

.blog-listing-area .single-blog-post-box .post-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background-color: #fff;
  padding: 18px 18px 16px;
}

.blog-listing-area .single-blog-post-box .post-content .category {
  min-height: 1.35em;
}

.blog-listing-area .single-blog-post-box .post-content h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: calc(1.05rem * 1.35 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  margin: 0 0 4px;
  color: var(--optionalColor);
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: calc(0.95rem * 1.55 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-listing-area .single-blog-post-box .post-content-footer {
  margin-top: auto;
  padding-top: 14px;
}

.blog-listing-area .single-blog-post-box .post-content-footer li {
  padding-left: 22px;
  font-size: 13px;
}

.blog-listing-area .single-blog-post-box .post-content-footer li i {
  left: 0;
  top: 1px;
  font-size: 15px;
}

.blog-listing-area .single-blog-post-box .post-content-footer li:first-child {
  padding-left: 22px;
}

.blog-listing-animate {
  animation: blogListingFadeUp 0.5s ease both;
}

@keyframes blogListingFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-listing-animate,
  .blog-featured-card__image img,
  .blog-listing-area .single-blog-post-box .post-image a img {
    animation: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-card__image img {
    min-height: 220px;
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  .blog-listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-listing-area .single-blog-post-box .post-image a img {
    height: 170px;
  }
}
