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

.blog-hero {
    background-color: #f8fafc;
    padding: 3rem 0;
    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: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 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;
}

/* 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; }
