/* ========================================
   Blog Styles
   Relies on CSS variables defined in ../style.css (:root)
   ======================================== */

.blog-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
    color: var(--vivid-teal);
    text-decoration: none;
}

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

/* ---------- Blog index / listing page ---------- */

.blog-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

.post-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--background-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    transition: border-color 0.2s ease;
}

.post-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: var(--cream);
}

.post-card:hover {
    border-color: var(--vivid-teal);
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.post-card h2 {
    margin: 0.4rem 0 0.6rem;
    font-size: 1.4rem;
}

.post-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--vivid-teal);
}

.post-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.post-card .read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vivid-teal);
    text-decoration: none;
}

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

/* ---------- Individual article page ---------- */

.article {
    max-width: 720px;
    margin: 0 auto;
    background: var(--background-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2.5rem 3rem;
}

@media (max-width: 640px) {
    .article {
        padding: 1.75rem 1.5rem;
    }
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.article h1 {
    font-size: 2rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0.3rem 0 1.5rem;
}

.article-hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: block;
    background: var(--cream);
}

.image-credit {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0 0 1.75rem;
    font-style: italic;
}

.image-credit a {
    color: var(--text-gray);
    text-decoration: underline;
}

.article h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.article h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem;
}

.article p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #333;
    margin: 0 0 1.1rem;
}

.article ul, .article ol {
    margin: 0 0 1.1rem 1.3rem;
    line-height: 1.75;
    color: #333;
}

.article li {
    margin-bottom: 0.4rem;
}

.article a {
    color: var(--vivid-teal);
}

.article strong {
    color: var(--text-dark);
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.92rem;
}

.article table th, .article table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.article table th {
    background: #f7f7f7;
    font-weight: 700;
}

.article-cta {
    background: #f7fbfc;
    border: 1px solid var(--border-teal);
    border-left: 4px solid var(--vivid-teal);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.article-cta p {
    margin: 0 0 0.6rem;
    font-size: 0.98rem;
}

.article-cta a.cta-link {
    display: inline-block;
    background: var(--vivid-teal);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.article-cta a.cta-link:hover {
    background: var(--hot-pink);
}

.article-footnote {
    font-size: 0.85rem;
    color: var(--text-gray);
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding-top: 1rem;
}

.article-tags {
    margin-top: 1.5rem;
}

.article-tag {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-gray);
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    margin-right: 0.4rem;
}
