.hero-header-premium {
    width: 100%;
    min-height: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-header-premium.no-bg {
    background-color: var(--primary-catholic);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, var(--header-bg) 100%);
    z-index: 1;
}

.hero-title {
    color: var(--gold-sacred);
    font-family: var(--font-inter);
    font-size: 3.1rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

body.dark-mode .hero-title {
    color: #fff;
}

.hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-header-premium .breadcrumb,
.hero-header-premium .breadcrumb a,
.hero-header-premium .breadcrumb-item,
.hero-header-premium .breadcrumb-item::before {
    color: #ffffff !important;
    font-weight: 500;
}

.hero-post-info {
    color: #ffffff !important;
    opacity: 0.9;
}

.article-body-premium {
    position: relative;
    z-index: 20;
    margin-top: -70px;
    padding: 2.5rem 3.25rem !important;
    border-top: 4px solid var(--gold-sacred);
    border-radius: 16px;
}

.article-body-premium__content {
    max-width: 850px;
    margin-top: -30px;
    font-size: 1.12rem;
    line-height: 1.95;
    color: var(--text-body);
}

.article-body-premium__content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-catholic); /* Fallback light mode */
}

body.dark-mode .article-body-premium__content h2 {
    color: #ffffff !important;
}

.resource-box {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background-color: var(--bg-subtle);
    text-align: center;
}

.resource-box__icon {
    color: var(--gold-sacred);
}

.resource-box__title {
    color: var(--text-strong);
}

.resource-box__text {
    color: var(--text-muted);
}

.footer-actions {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background-color: var(--bg-surface);
}

.share-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--primary-catholic);
    font-size: 1.2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.share-btn-inline:hover {
    transform: translateY(-2px);
    border-color: rgba(75, 0, 130, 0.18);
    box-shadow: var(--shadow-soft);
    color: var(--gold-sacred);
}

.share-btn-inline.whatsapp:hover {
    color: #25d366;
}

.share-btn-inline.facebook:hover {
    color: #1877f2;
}

@media (max-width: 991px) {
    .hero-header-premium {
        min-height: 280px;
    }

    .hero-title {
        font-size: 2.45rem !important;
    }

    .article-body-premium {
        margin-top: -60px;
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-header-premium {
        min-height: 320px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .article-body-premium {
        margin-top: -80px;
        padding: 1.8rem 1.2rem !important;
    }

    .article-body-premium__content {
        margin-top: -20px;
        font-size: 1.02rem;
    }

    .footer-actions {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .footer-actions > div {
        width: 100%;
    }

    #download-pdf {
        width: 100% !important;
        justify-content: center;
        border-radius: 12px !important;
    }

    .social-share-inline {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* PDF Generation specific tweaks (Guaranteed Version) */
.is-printing-pdf {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
}

/* PDF Generation - Overpower Dark Mode overrides */
body.dark-mode .is-printing-pdf h1, 
body.dark-mode .is-printing-pdf h2, 
body.dark-mode .is-printing-pdf h3,
.is-printing-pdf h1, 
.is-printing-pdf h2, 
.is-printing-pdf h3 {
    color: var(--primary-catholic) !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

body.dark-mode .is-printing-pdf *,
body.dark-mode .is-printing-pdf .entry-content,
.is-printing-pdf *, 
.is-printing-pdf .article-body-premium,
.is-printing-pdf .entry-content {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.is-printing-pdf .footer-actions,
.is-printing-pdf .no-print,
.is-printing-pdf #download-pdf {
    display: none !important;
}

.is-printing-pdf .article-body-premium {
    box-shadow: none !important;
    border: none !important;
    margin-top: 0 !important;
}

/* Fallback for print */
@media print {
    .no-print {
        display: none !important;
    }
}
