/* ============================================================
   BLOG — Public styles
============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.blog-hero {
    background: var(--color-dark, #0d2b2e);
    padding: 120px 5% 64px;
    text-align: center;
}
.blog-hero-inner { max-width: 700px; margin: 0 auto; }
.blog-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-coral, #e85c3a);
    margin-bottom: 16px;
}
.blog-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin: 0;
}

/* ── List section ─────────────────────────────────────────── */
.blog-list-section { padding: 72px 5%; background: #f8fafb; }
.blog-container    { max-width: 1100px; margin: 0 auto; }
.blog-empty        { text-align: center; color: #666; font-size: 1.1rem; padding: 48px 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px;
}

/* ── Card ─────────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.blog-card-image-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image { transform: scale(1.04); }
.blog-card-image--placeholder {
    background: linear-gradient(135deg, #0d2b2e 0%, #1a4a50 100%);
    display: flex; align-items: center; justify-content: center;
}
.blog-card-image--placeholder span {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem; color: rgba(255,255,255,0.3);
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
    display: flex; gap: 12px; align-items: center;
    font-size: 0.8rem; color: #888; margin-bottom: 12px;
}
.blog-card-author { color: var(--color-coral, #e85c3a); font-weight: 600; }
.blog-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem; line-height: 1.35;
    color: var(--color-dark, #0d2b2e);
    margin: 0 0 12px;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--color-teal, #2a9d8f); }
.blog-card-excerpt { font-size: 0.92rem; color: #555; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.blog-card-link {
    font-size: 0.88rem; font-weight: 700;
    color: var(--color-teal, #2a9d8f);
    text-decoration: none;
    letter-spacing: 0.03em;
    align-self: flex-start;
}
.blog-card-link:hover { color: var(--color-coral, #e85c3a); }

/* ── Pagination ───────────────────────────────────────────── */
.blog-pagination { margin-top: 56px; display: flex; justify-content: center; }

/* ── Article / Post ───────────────────────────────────────── */
.post-hero {
    background: var(--color-dark, #0d2b2e);
    padding: 120px 5% 56px;
}
.post-hero-inner { max-width: 760px; margin: 0 auto; }
.post-back {
    display: inline-block;
    font-size: 0.85rem; font-weight: 600;
    color: var(--color-teal, #2a9d8f);
    text-decoration: none; margin-bottom: 24px;
}
.post-back:hover { color: #fff; }
.post-meta {
    display: flex; gap: 10px; align-items: center;
    font-size: 0.82rem; color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}
.post-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff; line-height: 1.2; margin: 0 0 16px;
}
.post-excerpt { font-size: 1.05rem; color: rgba(255,255,255,0.7); line-height: 1.65; margin: 0; }

.post-featured-image-wrap { max-height: 480px; overflow: hidden; }
.post-featured-image { width: 100%; height: 480px; object-fit: cover; display: block; }

.post-article { padding: 64px 5%; }
.post-container { max-width: 760px; margin: 0 auto; }

/* YouTube embed responsive */
.post-video-wrap {
    position: relative; padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: 10px; margin-bottom: 40px;
}
.post-video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Rich text (Quill output) */
.prose h1, .prose h2, .prose h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--color-dark, #0d2b2e);
    margin: 1.6em 0 0.6em;
}
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.2rem; }
.prose p  { font-size: 1.05rem; line-height: 1.75; color: #333; margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.prose li { font-size: 1.05rem; line-height: 1.7; color: #333; margin-bottom: 0.4em; }
.prose a  { color: var(--color-teal, #2a9d8f); text-decoration: underline; }
.prose blockquote {
    border-left: 4px solid var(--color-coral, #e85c3a);
    margin: 1.5em 0; padding: 0.5em 1.2em;
    color: #555; font-style: italic;
}

/* Related articles */
.post-related { padding: 56px 5%; background: #f8fafb; }
.post-related-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem; color: var(--color-dark, #0d2b2e);
    margin: 0 0 36px;
}
.blog-grid--related { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-hero  { padding: 100px 5% 40px; }
}
