/* Blog styles — matches ABCDEmprendes brand */
.blog-page-title {
    font-family: var(--font-heading), sans-serif;
    font-size: var(--h1-size);
}

.blog-page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.blog-category-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.blog-category-pill:hover,
.blog-category-pill.active {
    background: #f0c040;
    color: #000;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-image-placeholder {
    background: linear-gradient(135deg, #f0c040 0%, #e8a020 100%);
    color: #333;
    font-weight: 700;
    height: 200px;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #c8960a;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

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

.blog-card-title a:hover {
    color: #c8960a;
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-meta-author,
.blog-meta-date {
    font-size: 0.85rem;
    color: #888;
}

.blog-meta-date::before {
    content: " · ";
}

.blog-read-more,
.blog-cta-btn {
    background: #f0c040;
    color: #000;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.blog-read-more:hover,
.blog-cta-btn:hover {
    background: #e8a020;
    color: #000;
}

/* Article page */
.blog-article-cover {
    max-height: 420px;
    object-fit: cover;
}

.blog-article-title {
    font-family: var(--font-heading), sans-serif;
    font-size: var(--h2-size);
    line-height: 1.2;
}

.blog-article-meta {
    color: #666;
    font-size: 0.95rem;
}

.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.25rem;
}

.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    font-family: var(--font-heading), sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-article-content iframe {
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-article-content table th,
.blog-article-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.blog-article-content blockquote {
    border-left: 4px solid #f0c040;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

/* Table of contents */
.blog-toc {
    background: #fafafa;
    border: 1px solid #eee;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
}

.blog-toc-item {
    margin-bottom: 0.35rem;
}

.blog-toc-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-toc-item a:hover {
    color: #c8960a;
}

.blog-toc-level-3 { padding-left: 1rem; }
.blog-toc-level-4 { padding-left: 2rem; }

/* Social share */
.blog-share-btn {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

.blog-share-reddit { background: #ff4500; }
.blog-share-linkedin { background: #0a66c2; }
.blog-share-facebook { background: #1877f2; }
.blog-share-twitter { background: #000; }

/* Author box */
.blog-author-box {
    background: #fafafa;
    border: 1px solid #eee;
}

.blog-author-box-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

/* CTAs */
.blog-cta-card {
    background: #fff;
    border: 2px solid #f0c040;
    border-radius: 12px;
}

/* Newsletter & contact */
.blog-newsletter,
.blog-contact-form {
    background: #fafafa;
    border: 1px solid #eee;
}

/* Blog header override — solid background on blog pages */
body.blog-page header {
    position: relative !important;
    background: #fff !important;
}

body.blog-page .header-bar {
    box-shadow: none !important;
}
