/* Blog-only styles.
 *
 * main.css is built by Tailwind in the sister `landing` project, which scans
 * that project's HTML - not this theme. Utilities that main.css does not
 * already contain therefore cannot be used here, so the few extra rules the
 * blog needs live in this hand-written file. */

.blog-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Card excerpt: three lines, then ellipsis, so the cards keep an even height. */
.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 3rem 0;
}

/* ---------- Pagination ---------- */

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(3, 56, 62, 0.2);
    border-radius: 0.375rem;
    text-align: center;
    color: #03383e;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.blog-pagination a:hover {
    background-color: #03383e;
    color: #fff;
}

.blog-pagination .is-active {
    background-color: #0396a6;
    border-color: #0396a6;
    color: #fff;
}

/* ---------- Article ---------- */

.blog-article {
    max-width: 900px;
    margin: 0 auto;
}

.blog-article-cover {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .blog-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.blog-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #0396a6;
    text-decoration: none;
}

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