/* --- Internal Pages Layout --- */
.page-container {
    margin-top: var(--header-height);
    padding: 60px 24px;
    min-height: calc(100vh - var(--header-height) - 100px);
    /* Account for footer */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark-green);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Generalized Card Component */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 32px;
    border: 1px solid #f3f4f6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Typography styles inside content */
.content-box {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
    color: #4b5563;
}

.content-box .lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 24px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--dark-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1f3d2f;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--dark-green);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--dark-green);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--dark-green);
    color: var(--white);
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(90, 176, 128, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
}

.contact-feedback {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.contact-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.contact-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Grids */
.testimonials-grid,
.blog-grid,
.pricing-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Testimonials */
.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: var(--dark-green);
}

/* Blog Page */
.blog-page {
    background-color: var(--white);
    max-width: 100%;
    padding: 60px 15%;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 20px;
}

.blog-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Featured Article */
.featured-article {
    display: flex;
    gap: 48px;
    margin-bottom: 80px;
    align-items: center;
}

.featured-image {
    flex: 1;
    max-width: 50%;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-content {
    flex: 1;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.featured-meta .tag {
    background-color: rgba(90, 176, 128, 0.2);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.featured-meta .read-time {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.2;
    margin-bottom: 20px;
}

.featured-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.featured-date svg {
    opacity: 0.7;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-read-more:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
}

/* Recent Articles Section */
.recent-articles {
    margin-top: 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    cursor: pointer;
    transition: transform 0.2s;
}

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

.article-card:hover {
    transform: translateY(-4px);
}

.article-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-image .tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ── Article Page — 3-column layout ──────────────────────────── */
.article-page-outer {
    margin-top: var(--header-height);
    background: var(--white);
    min-height: calc(100vh - var(--header-height));
}

.article-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 200px 1fr 290px;
    gap: 52px;
    align-items: start;
}

/* ── Left: TOC ───────────────────────────────────────────────── */
.article-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
}
.article-toc::-webkit-scrollbar { display: none; }

.toc-readtime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
}
.toc-readtime svg { color: #9ca3af; flex-shrink: 0; }

.toc-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0 16px;
}

.toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-empty {
    font-size: 0.78rem;
    color: #d1d5db;
}

.toc-link {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
    text-decoration: none;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: color 0.15s, border-color 0.15s;
}
.toc-link:hover { color: #1f2937; }
.toc-link.active { color: #2D544A; border-left-color: #2D544A; font-weight: 600; }
.toc-link.toc-h2 { font-weight: 600; color: #374151; }
.toc-link.toc-h3 { padding-left: 18px; font-size: 0.78rem; }
.toc-link.toc-h4 { padding-left: 26px; font-size: 0.75rem; }

/* ── Center: Article ─────────────────────────────────────────── */
.article-main {
    min-width: 0;
}

/* Article Page (legacy override) */
.article-page {
    background-color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.article-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
}

.back-link:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-description {
    font-size: 1.25rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-info {
    display: flex;
    gap: 24px;
    color: #374151;
    font-size: 0.9rem;
    align-items: center;
}

.article-author-ig {
    color: #c2185b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.article-author-ig:hover { color: #880e4f; text-decoration: underline; }
[data-theme="dark"] .article-author-ig { color: #f48fb1; }
[data-theme="dark"] .article-author-ig:hover { color: #f8bbd0; }

.article-hero-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-image-caption {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.article-image-caption strong { font-style: normal; }
.article-image-caption a { color: var(--accent-green); text-decoration: none; }
.article-image-caption a:hover { text-decoration: underline; }

.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem !important;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body p,
.article-body span,
.article-body li {
    font-size: 0.97rem !important;
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #111827;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.25rem;
    color: #111827;
    margin: 32px 0 16px;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body blockquote {
    border-left: 4px solid #16a34a;
    margin: 32px 0;
    padding: 16px 24px;
    background: #f0fdf4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #166534;
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-body blockquote p {
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
}

.article-body li {
    margin-bottom: 8px;
}

/* ── Alinhamento de texto (classes geradas pelo Quill) ──────── */
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right  { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }

/* ── Imagens inline no corpo do artigo ───────────────────────── */
.article-body img {
    max-width: 80%;
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}
.article-body img.img-small  { width: 40%;  max-width: 40%; }
.article-body img.img-medium { width: 70%;  max-width: 70%; }
.article-body img.img-full   { width: 80%;  max-width: 80%; }
.article-body img.img-center { margin-left: auto; margin-right: auto; float: none; }
.article-body img.img-left   { float: left;  margin: 8px 20px 8px 0; }
.article-body img.img-right  { float: right; margin: 8px 0 8px 20px; }

.article-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.article-keywords-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.article-keyword-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #374151;
    transition: background 0.15s, color 0.15s;
}

.article-keyword-tag:hover {
    background: #2D544A;
    color: #fff;
    border-color: #2D544A;
}

[data-theme="dark"] .article-keywords {
    border-top-color: #374151;
}

[data-theme="dark"] .article-keyword-tag {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .article-keyword-tag:hover {
    background: #2D544A;
    color: #fff;
    border-color: #2D544A;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.article-footer p {
    margin-bottom: 16px;
    color: var(--text-gray);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.share-btn {
    padding: 10px 28px;
    background-color: #2d544a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.15s;
}

.share-btn:hover {
    background-color: #224039;
    transform: translateY(-1px);
}

/* Dark mode for article page */
[data-theme="dark"] .article-page {
    background-color: #1f2937;
}

[data-theme="dark"] .article-title,
[data-theme="dark"] .article-body,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3 {
    color: #ffffff;
}

[data-theme="dark"] .article-body *,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li,
[data-theme="dark"] .article-body ul,
[data-theme="dark"] .article-body ol,
[data-theme="dark"] .article-body span,
[data-theme="dark"] .article-body strong,
[data-theme="dark"] .article-body em {
    color: #e5e7eb !important;
}

[data-theme="dark"] .article-body blockquote {
    background: #052e16;
    border-left-color: #22c55e;
    color: #bbf7d0 !important;
}

[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .article-body a {
    color: #5ab080 !important;
}

[data-theme="dark"] .article-description,
[data-theme="dark"] .article-info,
[data-theme="dark"] .article-footer p {
    color: #e5e7eb;
}

[data-theme="dark"] .article-footer {
    border-top-color: #374151;
}

/* Blog Page Responsive */
@media (max-width: 1024px) {
    .blog-page {
        padding: 60px 8%;
    }

    .blog-main-title {
        font-size: 3rem;
    }

    .featured-article {
        flex-direction: column;
        gap: 32px;
    }

    .featured-image {
        max-width: 100%;
    }

    .featured-title {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-page {
        padding: 40px 24px;
    }

    .blog-main-title {
        font-size: 2.25rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 1.75rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* Pricing */
.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    border: 2px solid var(--accent-green);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 32px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
    flex: 1;
}

.pricing-card ul li {
    margin-bottom: 16px;
    color: #4b5563;
}

/* Footer Section */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 40px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-gray);
}

.footer-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--dark-green);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}

.footer-whatsapp-btn:hover {
    background-color: #1f3d2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Nav Active Link Style */
.nav-links a.active {
    color: var(--dark-green);
    font-weight: 600;
    border-bottom: 2px solid var(--dark-green);
    padding-bottom: 4px;
}

/* Dark Mode Styles for Pages */
[data-theme="dark"] .page-container {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .page-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 4px 6px -1px var(--card-shadow);
}

[data-theme="dark"] .content-box {
    color: var(--text-gray);
}

[data-theme="dark"] .contact-form {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .pricing-card ul li,
[data-theme="dark"] .blog-info p {
    color: var(--text-gray);
}

[data-theme="dark"] .blog-info h3,
[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .pricing-card .price,
[data-theme="dark"] .testimonial-card h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-color);
    color: #ffffff;
}

[data-theme="dark"] .btn-outline {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

[data-theme="dark"] .btn-outline:hover {
    background-color: var(--accent-green);
    color: var(--bg-primary);
}

/* Dark Mode Styles for Blog Page */
[data-theme="dark"] .blog-page {
    background-color: #1f2937;
}

[data-theme="dark"] .blog-main-title,
[data-theme="dark"] .featured-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .article-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .blog-subtitle,
[data-theme="dark"] .featured-description,
[data-theme="dark"] .featured-meta .read-time,
[data-theme="dark"] .featured-date,
[data-theme="dark"] .article-content p {
    color: #9ca3af;
}

/* ── Right: Spotlight ────────────────────────────────────────── */
.article-spotlight {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
}
.article-spotlight::-webkit-scrollbar { display: none; }

.spotlight-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.spotlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
    transition: opacity 0.15s;
}
.spotlight-item:hover { opacity: 0.75; }

.spotlight-item-text {
    flex: 1;
    min-width: 0;
}

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2D544A;
    text-transform: none;
    margin-bottom: 5px;
}
.spotlight-tag svg { color: #5ab080; flex-shrink: 0; }

.spotlight-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.spotlight-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.spotlight-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 12px 0;
}

/* Spotlight newsletter card */
.spotlight-newsletter {
    margin-top: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 70%, #7c2d12 100%);
    border-radius: 16px;
    padding: 24px 20px;
    color: #fff;
}

.spotlight-nl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.spotlight-nl-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.spotlight-nl-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    line-height: 1.5;
}

.spotlight-nl-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-nl-input {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    backdrop-filter: blur(4px);
    transition: border-color 0.15s;
}
.spotlight-nl-input::placeholder { color: rgba(255,255,255,0.45); }
.spotlight-nl-input:focus { outline: none; border-color: rgba(255,255,255,0.5); }

.spotlight-nl-btn {
    padding: 10px;
    background: rgba(255,255,255,0.9);
    color: #1e1b4b;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.spotlight-nl-btn:hover { background: #fff; }

.spotlight-nl-success {
    display: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    text-align: center;
    padding: 8px 0;
}

/* ── Article layout responsive ───────────────────────────────── */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr 260px;
        gap: 36px;
    }
    .article-toc { display: none; }
}

@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 40px;
    }
    .article-spotlight { position: static; max-height: none; overflow: visible; }
    .article-layout { overflow: visible; }
}

/* ── Artigos Relacionados ─────────────────────────────────────── */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

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

.related-card-img { width: 100%; height: 140px; object-fit: cover; }

.related-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }

.related-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2D544A;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .related-articles { border-top-color: #374151; }
[data-theme="dark"] .related-title { color: #f3f4f6; }
[data-theme="dark"] .related-card { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .related-card-title { color: #f3f4f6; }
[data-theme="dark"] .related-card-desc { color: #9ca3af; }

/* ── Dark mode ───────────────────────────────────────────────── */
[data-theme="dark"] .article-page-outer { background: #111827; }
[data-theme="dark"] .toc-readtime { color: #e5e7eb; }
[data-theme="dark"] .toc-link { color: #d1d5db; }
[data-theme="dark"] .toc-link.toc-h2 { color: #e5e7eb; }
[data-theme="dark"] .toc-link:hover { color: #ffffff; }
[data-theme="dark"] .toc-link.active { color: #5ab080; border-left-color: #5ab080; }
[data-theme="dark"] .toc-divider,
[data-theme="dark"] .spotlight-divider { border-top-color: #374151; }
[data-theme="dark"] .spotlight-label { color: #9ca3af; }
[data-theme="dark"] .spotlight-title { color: #ffffff; }
[data-theme="dark"] .spotlight-tag { color: #9ca3af; }
[data-theme="dark"] .spotlight-date { color: #9ca3af; }
[data-theme="dark"] .related-card-desc { color: #d1d5db; }

/* Dark mode toggle icon transition */
.dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: none;
}