/* =====================================================
   HelpStar — Blog Page Styles
   ===================================================== */

.blog-hero {
    background-color: var(--color-hs-cream-bg, #FAF8F5);
    padding: 4.5rem 0 4rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-hero-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.blog-title {
    color: #f59e0b; /* Yellow from screenshot */
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.blog-description {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    padding-top: 0.5rem;
}

/* ── Blog Grid ── */
.blog-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 0; /* Boxy look like the screenshots */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.blog-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-card-tint);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Placeholder styles if we don't have images */
.blog-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.blog-author {
    color: #94a3b8;
    margin-bottom: 0.25rem;
    display: block;
}

.blog-options-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.blog-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-title:hover {
    text-decoration: underline;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog pagination */
.blog-pagination .pagination {
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.blog-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0.5rem 0.85rem;
    color: var(--text-body-dark);
    background-color: var(--surface-card-base);
    border: 1px solid var(--border-color-soft);
    border-radius: 10px;
    box-shadow: none;
    font-weight: 600;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.blog-pagination .page-item .page-link:hover,
.blog-pagination .page-item .page-link:focus {
    color: #fff;
    background-color: var(--color-brand-green);
    border-color: var(--color-brand-green);
}

.blog-pagination .page-item.active .page-link {
    color: #fff;
    background-color: var(--color-brand-green);
    border-color: var(--color-brand-green);
}

.blog-pagination .page-item.disabled .page-link {
    color: var(--text-body-muted);
    background-color: var(--surface-card-tint);
    border-color: var(--border-color-soft);
    opacity: 0.65;
}

@media (max-width: 575.98px) {
    .blog-pagination .pagination {
        gap: 0.3rem;
    }

    .blog-pagination .page-item .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0.4rem 0.65rem;
    }
}

/* Specific background colors for placeholders to match screenshot vibe */
.bg-placeholder-1 { background-color: #e2e8f0; }
.bg-placeholder-2 { background-color: #86b98e; color: #fff; }
.bg-placeholder-3 { background-color: #fca5a5; }
.bg-placeholder-4 { background-color: #e0f2fe; }

/* ── Blog Placeholders & Empty States (Replaces inline styles) ── */
.blog-img-placeholder-bg {
    background: linear-gradient(135deg, var(--surface-card-tint), var(--border-color-soft));
}

.blog-empty-icon {
    color: var(--border-color-soft);
}

.blog-empty-title {
    color: var(--text-main-bold);
}

.blog-empty-text {
    color: var(--text-body-muted);
}

/* ── Blog Show Page (Replaces inline styles) ── */
.blog-post-header-bg {
    background: var(--surface-card-tint);
}

.blog-post-header-img {
    max-height: 40px;
    object-fit: cover;
}

.blog-post-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background-color: var(--surface-card-tint);
    border: 1px solid var(--border-color-soft);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.blog-post-body-text {
    color: var(--text-main);
    line-height: 1.8;
}
