/* ABCDEmprendes Blog — branded layout */

body.blog-page {
    --blog-header-offset: 4.5rem;
    overflow-x: clip;
}

/* Blog header override */
body.blog-page header {
    position: fixed !important;
    background: transparent !important;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

body.blog-page .header-bar {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(8px);
}

/* Neutralize home.css global p { font-size: var(--h3-size) } on blog shell UI */
body.blog-page .blog-page-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
}

body.blog-page .blog-card-excerpt,
body.blog-page .blog-author-box p,
body.blog-page .blog-cta-card p,
body.blog-page .blog-newsletter p {
    font-size: 0.95rem;
    line-height: 1.65;
}

body.blog-page .blog-article-meta,
body.blog-page .blog-meta-author,
body.blog-page .blog-meta-author-inline {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Hero banner (listing page) */
.blog-hero-banner {
    background: linear-gradient(135deg, #1a5c78 0%, #0e3d52 55%, #0a2d3d 100%);
    padding: 7rem 0 4rem;
    margin-top: 0;
}

.blog-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.blog-hero-eyebrow {
    display: inline-block;
    background: #f0c040;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.blog-page-title {
    font-family: var(--font-heading), sans-serif;
    font-size: clamp(2rem, 5vw, var(--h1-size));
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.blog-page-subtitle {
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.blog-listing {
    background: #f7f8fa;
}

/* Category pills */
.blog-category-pill {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e5ea;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

/* Cards */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eceef2;
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.blog-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

.blog-card-image-placeholder {
    background: linear-gradient(135deg, #f0c040 0%, #e8a020 50%, #1a5c78 100%);
    color: #fff;
    font-weight: 700;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.blog-card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f0c040;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.blog-card-category-badge--inline {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
}

.blog-card-body--compact {
    padding: 1rem 1.25rem 1.25rem;
}

.blog-card-meta-top {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.blog-card-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

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

.blog-card-excerpt {
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.blog-meta-author {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.blog-read-more {
    color: #1a5c78;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.blog-read-more:hover {
    color: #f0c040;
}

/* Article page hero */
.blog-article-hero {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    margin-top: var(--blog-header-offset);
}

.blog-article-header--below-nav {
    padding-top: calc(var(--blog-header-offset) + 1rem);
    margin-top: 0;
}

.blog-article-hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.blog-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

.blog-article-header {
    margin-bottom: 1.5rem;
}

.blog-article-header--overlap {
    margin-top: -2rem;
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 2rem 1.5rem 0;
}

@media (min-width: 768px) {
    .blog-article-header--overlap {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.blog-article-title {
    font-family: var(--font-heading), sans-serif;
    font-size: clamp(1.75rem, 4vw, var(--h2-size));
    line-height: 1.2;
    color: #111;
}

.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.35rem;
}

/* Article body typography lives in blog-content.css (matches Tiptap editor) */

/* Social share */
.blog-social-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 0.75rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.blog-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.blog-share-email { background: #555; }
.blog-share-linkedin { background: #0a66c2; }
.blog-share-whatsapp { background: #25d366; }
.blog-share-reddit { background: #ff4500; }
.blog-share-twitter { background: #000; }
.blog-share-copy { background: #1a5c78; }

.blog-share-copied {
    background: #2e7d32 !important;
}

.blog-share-bottom {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Author box */
.blog-author-box {
    background: linear-gradient(135deg, #f7f9fb 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.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: 14px;
    transition: box-shadow 0.2s;
}

.blog-cta-card:hover {
    box-shadow: 0 6px 20px rgba(240,192,64,0.25);
}

.blog-cta-btn {
    background: #f0c040;
    color: #000;
    border: none;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
}

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

/* Newsletter & contact */
.blog-newsletter {
    background: linear-gradient(135deg, #1a5c78 0%, #0e3d52 100%);
    border: none;
    color: #fff;
    border-radius: 16px;
}

.blog-newsletter h2,
.blog-newsletter p {
    color: #fff;
}

.blog-contact-form {
    background: #f7f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

/* Related articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e8ecf0;
}

.related-articles-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #111;
}

@media (max-width: 767.98px) {
    body.blog-page {
        --blog-header-offset: 3.75rem;
    }

    body.blog-page header > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .blog-hero-banner {
        padding: calc(var(--blog-header-offset) + 1.5rem) 0 2.5rem;
    }

    .blog-page-title {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
    }

    .blog-page-subtitle {
        font-size: 0.95rem;
    }

    .blog-categories {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .blog-categories::-webkit-scrollbar {
        display: none;
    }

    .blog-category-pill {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.4rem 0.95rem;
    }

    .blog-card-image,
    .blog-card-image-placeholder {
        height: 200px;
    }

    .blog-card-body {
        padding: 1.15rem 1.15rem 1rem;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .blog-article-hero-img {
        height: min(240px, 52vw);
    }

    .blog-article-header--overlap {
        margin-top: -1.25rem;
        padding: 1.25rem 1rem 0;
        border-radius: 12px 12px 0 0;
    }

    .blog-article-header--below-nav {
        padding-top: calc(var(--blog-header-offset) + 0.75rem);
    }

    .blog-article-title {
        font-size: clamp(1.35rem, 6.5vw, 1.85rem);
        word-break: break-word;
    }

    .blog-article-meta {
        font-size: 0.82rem;
        gap: 0.65rem !important;
    }

    .blog-social-buttons {
        gap: 0.35rem !important;
    }

    .blog-share-btn span {
        display: none;
    }

    .blog-share-btn {
        padding: 0.55rem;
    }

    .blog-author-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .related-articles {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .related-articles-title {
        font-size: 1.35rem;
    }

    .blog-newsletter {
        padding: 1.5rem 1.15rem !important;
    }

    .blog-contact-form {
        padding: 1.25rem !important;
    }
}
