.blog-card-horizontal {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: 250px; /* ✅ Fixed height */
  min-height: 250px;
}

.blog-image-horizontal {
  width: 40%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

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



.blog-content-horizontal {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 60%;
  overflow: hidden;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tag {
  background-color: #ff6243;
  color: ff5722;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
}

.tag.secondary {
  background-color: #e0e0e0;
  color: #333;
}

.blog-title {
  font-size: 1.25rem;
  color: #222831;
  margin: 0.5rem 0;
  line-height: 1.3;
  max-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-excerpt {
font-size: 0.95rem;
  color: #6e6e6e;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 4.2rem; /* 3 lines approx */
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.read-more {
  background-color: #2563eb;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: #1d4ed8;
}

/* Responsive styles for horizontal blog card */
@media (max-width: 1024px) {
  .blog-card-horizontal {
    height: 200px;
    min-height: 200px;
  }
  .blog-image-horizontal {
    height: 100%;
  }
  .blog-content-horizontal {
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 800px) {
  .blog-card-horizontal {
    height: 160px;
    min-height: 160px;
  }
  .blog-title {
    font-size: 1.05rem;
  }
  .blog-content-horizontal {
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .blog-card-horizontal {
    flex-direction: column;
    height: auto;
    min-height: 0;
    width: 100%;
    border-radius: 10px;
  }
  .blog-image-horizontal {
    width: 100%;
    height: 180px;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
  }
  .blog-content-horizontal {
    width: 100%;
    padding: 0.7rem 0.5rem;
  }
  .blog-title {
    font-size: 1rem;
    max-height: 2.2rem;
  }
  .blog-excerpt {
    font-size: 0.9rem;
    max-height: 3.2rem;
  }
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (max-width: 400px) {
  .blog-image-horizontal {
    height: 120px;
  }
  .blog-title {
    font-size: 0.9rem;
  }
  .blog-content-horizontal {
    padding: 0.4rem 0.2rem;
  }
}
