/* blog.css — Content hub (blog) styles for AICasePredict.
   Builds on css/design-system.css tokens (--navy, --gold, --slate, etc.). */

/* ---- Breadcrumb spacing on content pages ---- */
.blog-breadcrumb-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}

/* ---- Hub: card grid ---- */
.blog-hub-section {
    padding: 2.5rem 2rem 5rem;
    background: var(--cream, #fafbfc);
}

.blog-hub-container {
    max-width: 1140px;
    margin: 0 auto;
}

.blog-hub-intro {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate, #415a77);
}

.blog-section-label {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy, #0d1b2a);
    max-width: 1140px;
    margin: 0 auto 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(13, 27, 42, 0.04));
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover,
.blog-card:focus-within {
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(13, 27, 42, 0.08));
    transform: translateY(-3px);
}

.blog-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 163, 115, 0.14);
    color: var(--gold-dark, #bc8a5f);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.blog-card-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--gold-dark, #bc8a5f);
    margin-bottom: 0.4rem;
}

.blog-card-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy, #0d1b2a);
    margin: 0 0 0.6rem;
}

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

.blog-card-title a:hover {
    color: var(--gold-dark, #bc8a5f);
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    color: var(--slate, #415a77);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1 1 auto;
}

.blog-card-link {
    align-self: flex-start;
    color: var(--gold-dark, #bc8a5f);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-link:hover {
    color: var(--navy, #0d1b2a);
}

.blog-card-link i {
    transition: transform 0.2s ease;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

/* ---- Article: prose layout ---- */
.blog-article-section {
    padding: 2rem 2rem 5rem;
    background: var(--cream, #fafbfc);
}

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

.blog-article {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md, 0 2px 8px rgba(13, 27, 42, 0.06));
}

.blog-article-meta {
    font-size: 0.875rem;
    color: var(--slate-light, #778da9);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.blog-article .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate, #415a77);
    margin-bottom: 1.75rem;
}

.blog-article h2 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy, #0d1b2a);
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

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

.blog-article h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy, #0d1b2a);
    margin: 1.5rem 0 0.65rem;
}

.blog-article p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate, #415a77);
    margin: 0 0 1.1rem;
}

.blog-article a {
    color: var(--gold-dark, #bc8a5f);
    text-decoration: none;
    border-bottom: 1px solid var(--gold, #d4a373);
}

.blog-article a:hover {
    color: var(--navy, #0d1b2a);
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 1.25rem;
    padding-left: 0;
    list-style: none;
}

.blog-article ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--slate, #415a77);
    line-height: 1.7;
}

.blog-article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold, #d4a373);
}

.blog-article ol {
    counter-reset: blog-ol;
}

.blog-article ol li {
    position: relative;
    counter-increment: blog-ol;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
    color: var(--slate, #415a77);
    line-height: 1.7;
}

.blog-article ol li::before {
    content: counter(blog-ol);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(212, 163, 115, 0.16);
    color: var(--gold-dark, #bc8a5f);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Definition-style field list (used by the case-report guide) */
.blog-fields {
    margin: 0 0 1.5rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.blog-fields div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.blog-fields div:last-child {
    border-bottom: none;
}

.blog-fields dt,
.blog-fields .field-name {
    font-weight: 600;
    color: var(--navy, #0d1b2a);
    font-size: 0.9375rem;
}

.blog-fields dd,
.blog-fields .field-desc {
    margin: 0;
    color: var(--slate, #415a77);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .blog-fields div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* ---- Disclaimer + data-source asides (shared) ---- */
.blog-disclaimer,
.blog-source-note {
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.blog-disclaimer {
    background: rgba(13, 27, 42, 0.035);
    border-left: 4px solid var(--navy, #0d1b2a);
    color: var(--slate, #415a77);
}

.blog-disclaimer-title {
    font-weight: 700;
    color: var(--navy, #0d1b2a);
    margin: 0 0 0.4rem;
}

.blog-source-note {
    background: rgba(212, 163, 115, 0.1);
    border-left: 4px solid var(--gold, #d4a373);
    color: var(--slate, #415a77);
}

.blog-disclaimer p,
.blog-source-note p {
    margin: 0;
}

.blog-source-note a,
.blog-disclaimer a {
    color: var(--gold-dark, #bc8a5f);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Back-to-hub + related links ---- */
.blog-backlink {
    margin: 2.25rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
    font-size: 0.9375rem;
}

.blog-backlink a {
    color: var(--gold-dark, #bc8a5f);
    font-weight: 600;
    text-decoration: none;
}

.blog-related {
    margin-top: 1.25rem;
}

.blog-related h2 {
    border-top: none;
    padding-top: 0;
}

/* ---- Inline CTA to search ---- */
.blog-cta {
    margin: 2rem 0;
    padding: 1.75rem;
    text-align: center;
    background: var(--navy, #0d1b2a);
    border-radius: 14px;
    color: #fff;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
}

.blog-cta .blog-cta-btn {
    display: inline-block;
    background: var(--gold, #d4a373);
    color: var(--navy, #0d1b2a);
    font-weight: 700;
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    border-bottom: none;
}

.blog-cta .blog-cta-btn:hover {
    background: #e6bd92;
    color: var(--navy, #0d1b2a);
}
