/* =========================================================
   Blog Styles — SLO Education Hub
   ========================================================= */

/* Blog grid layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Individual blog card */
.blog-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-card-tag {
    background: #eaf3fb;
    color: #2980b9;
    border-radius: 12px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #3498db;
}

.blog-card p {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

.blog-card .read-more {
    align-self: flex-start;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card .read-more:hover {
    text-decoration: underline;
}

/* Empty state */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #7f8c8d;
    font-size: 1rem;
    padding: 3rem 0;
}

/* ─── Individual Post Page ─── */

.blog-post-content {
    max-width: 760px;
    margin: 0 auto;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 0.75rem;
    color: #2c3e50;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    color: #2c3e50;
}

.blog-post-content p {
    margin-bottom: 1.1rem;
    line-height: 1.75;
    color: #444;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.1rem 1.5rem;
    line-height: 1.75;
    color: #444;
}

.blog-post-content a {
    color: #3498db;
}

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

.blog-post-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.blog-post-tag {
    background: #eaf3fb;
    color: #2980b9;
    border-radius: 12px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
