.blog-hero {
    background: linear-gradient(135deg, #f3f7ff 0%, #fff 100%);
    padding: 36px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Grid cards (blog index + homepage) ── */
.blog-card--grid,
.pz-blog__card {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    box-shadow: 0 17px 42px rgba(93, 93, 93, 0.14);
    transition: transform .2s, box-shadow .2s;
}
.blog-card--grid:hover,
.pz-blog__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(93, 93, 93, 0.18);
}

.blog-card__img-wrap,
.pz-blog__thumb {
    display: block;
    position: relative;
    overflow: hidden;
}
.blog-card__img,
.pz-blog__thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}
.blog-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.blog-card__date,
.pz-blog__date {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0 8px 0 0;
}
.blog-card__date i,
.pz-blog__date i { font-size: 12px; opacity: .9; }

.blog-card__body,
.pz-blog__meta {
    padding: 18px 18px 20px;
}
.blog-card__title,
.pz-blog__meta h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin: 0 0 12px;
}
.blog-card__title a,
.pz-blog__meta h3 a {
    color: inherit;
    text-decoration: none;
}
.blog-card__title a:hover,
.pz-blog__meta h3 a:hover { color: var(--secondary, #245dea); }

.blog-card__readmore,
.pz-blog__readmore {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}
.blog-card__readmore:hover,
.pz-blog__readmore:hover { color: var(--secondary, #245dea); }

/* legacy card aliases */
.blog-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}
.blog-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f3f4f6;
}
.blog-card-body { padding: 18px; }
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-meta { font-size: .8rem; color: #6b7280; margin-bottom: 10px; }
.blog-excerpt { font-size: .9rem; color: #4b5563; line-height: 1.6; }

/* ── Single post ── */
.blog-details__hero {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}
.blog-details__img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.blog-details__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 16px;
    background: #7c3aed;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}
.blog-details__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 18px;
}
.blog-details__excerpt {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.7;
}
.blog-article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
}
.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.blog-article-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.blog-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.blog-share__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.blog-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-share__links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.blog-share__links a:hover {
    background: var(--secondary, #245dea);
    color: #fff;
}

/* ── Latest Blog sidebar ── */
.blog-latest {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px 18px;
}
.blog-latest__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #22c55e;
    display: inline-block;
}
.blog-latest__item + .blog-latest__item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}
.blog-latest__link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.blog-latest__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #e5e7eb;
}
.blog-latest__thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}
.blog-latest__post-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 4px;
}
.blog-latest__link:hover .blog-latest__post-title {
    color: var(--secondary, #245dea);
}
.blog-latest__copy time {
    font-size: 12px;
    color: #6b7280;
}

/* ── Sidebar widgets ── */
.blog-sidebar-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    margin-bottom: 16px;
}
.blog-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.blog-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    text-decoration: none;
}
.blog-cat-link:last-child { border-bottom: 0; }
.blog-cat-link.active,
.blog-cat-link:hover { color: var(--secondary, #245dea); }

.blog-recent-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.blog-recent-item:last-child { border-bottom: 0; }
.blog-recent-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
}
.blog-subscribe-form .form-control { font-size: .9rem; }

@media (max-width: 767px) {
    .blog-card__img,
    .pz-blog__thumb img { height: 190px; }
    .blog-details__img { max-height: 260px; }
}
