/* ============================================
   Blog Post List: Side-by-Side Layout
   Reference: seven-blog.pages.dev style
   Text on left, Cover image on right
   ============================================ */

/* Card container */
.home-article-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: var(--redefine-background-color, #fff) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 16px !important;
}

.home-article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Text content: left side */
.home-article-item > .flex.flex-col {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
  padding: 20px 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Thumbnail: right side, fixed width, auto height */
.home-article-item .home-article-thumbnail {
  flex: 0 0 240px !important;
  width: 240px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  order: 2;
  position: relative !important;
  margin: 12px 12px 12px 0;
}

/* Override the theme's absolute positioning on img */
.home-article-item .home-article-thumbnail img {
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block;
  transition: transform 0.3s ease;
}

.home-article-item:hover .home-article-thumbnail img {
  transform: scale(1.03);
}

/* Title */
.home-article-item .home-article-title {
  position: static !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Excerpt text */
.home-article-item .home-article-content {
  font-size: 0.85rem;
  color: var(--redefine-text-second-color, #999);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Meta info row */
.home-article-item .home-article-meta-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
  margin-top: 4px;
}

.home-article-item .home-article-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--redefine-text-third-color, #aaa);
}

/* Tags as small pills */
.home-article-item .home-article-tag ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-article-item .home-article-tag li {
  font-size: 0.72rem;
  color: var(--redefine-text-third-color, #aaa);
  background: var(--redefine-background-color-transparent-15, rgba(0,0,0,0.05));
  padding: 2px 10px;
  border-radius: 8px;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .home-article-item {
    flex-direction: column !important;
  }

  .home-article-item .home-article-thumbnail {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    order: -1 !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
  }

  .home-article-item > .flex.flex-col {
    padding: 16px 20px !important;
  }
}
