/* ===========================================
   BLOG LISTING PAGE — idealbrico.ro
   =========================================== */

/* ── Page header ───────────────────────────── */
.blog-page .section-title {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary-color, #05a845);
}

.blog-page .section-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

/* ── Grid layout ───────────────────────────── */
.blog-page .main-section {
  overflow: hidden;
}

.blog-page .main-products {
  gap: 24px !important;
}

/* ── Article card ──────────────────────────── */
.blog-page article {
  border: none;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.blog-page .article-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.blog-page .article-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-page .article-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── Card image ────────────────────────────── */
.blog-page .article-image {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.blog-page .article-image img {
  transition: transform 0.4s ease;
  width: 100%;
  object-fit: cover;
}

.blog-page .article-card:hover .article-image img {
  transform: scale(1.04);
}

/* ── Card body ─────────────────────────────── */
.blog-page .article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

/* ── Tag badge ─────────────────────────────── */
.blog-page .article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color, #05a845);
  background: rgba(5, 168, 69, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* ── Title ─────────────────────────────────── */
.blog-page .article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.blog-page .article-title a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
  display: block;
}

.blog-page .article-card:hover .article-title {
  color: var(--primary-color, #05a845);
}

/* ── Meta info ─────────────────────────────── */
.blog-page .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.blog-page .article-date,
.blog-page .article-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-page .article-meta svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.blog-page .article-info {
  color: #888;
  font-size: 13px;
  line-height: 1.4em;
}

/* ── Excerpt ───────────────────────────────── */
.blog-page .article-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Read more ─────────────────────────────── */
.blog-page .article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color, #05a845);
  margin-top: auto;
}

.blog-page .article-read-more svg {
  transition: transform 0.2s;
}

.blog-page .article-card:hover .article-read-more svg {
  transform: translateX(4px);
}

/* ── Desktop ───────────────────────────────── */
@media (min-width: 750px) {
  .blog-page .section-title h1 {
    font-size: 36px;
  }
}
