/* ==================================================
   VARIÁVEIS GLOBAIS E TEMA
   ================================================== */
:root {
    --roxo-principal: #64147D;
    --roxo-escuro: #3C0A41;
    --roxo-profundo: #1E002D;
    --verde-principal: #05CD46;
    --verde-hover: #04A438;
    --color-text-dark: #212529;
    --color-text-body: #495057;
    --color-text-light: #F8F9FA;
    --bg-light: #FFFFFF;
    --bg-soft-light: #F8F9FA;
    --border-color: #E9ECEF;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}



/* ==================================================
   ESTILOS GERAIS E RESETS
   ================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-weight: 400;
    background-color: var(--bg-light);
    color: var(--color-text-body);
    -webkit-font-smoothing: antialiased;
}

/* ==================================================
   TEMA ESCURO
   ================================================== */
[data-theme="dark"] {
    --color-background: var(--roxo-profundo);
    --color-surface: var(--roxo-escuro);
    --color-heading: #FFFFFF;
    --color-text: #E0E0E0;
    --color-muted: #FFFFFF;
    --color-border: #4A2552;
}
[data-theme="dark"] .diferenciais-section, 
[data-theme="dark"] .values-section, 
[data-theme="dark"] .journey-section, 
[data-theme="dark"] .testimonials-section, 
[data-theme="dark"] .contact-section,
[data-theme="dark"] .blog-page-body {
    background-color: var(--color-surface);
}

[data-theme="dark"] .post-sidebar .widget {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .blog-header {
    background: linear-gradient(90deg, var(--roxo-profundo), var(--roxo-escuro));
}

[data-theme="dark"] .main-nav a {
    color: var(--color-heading);
}
    
[data-theme="dark"] .author-name {
    color: var(--color-heading);
}


[data-theme="dark"] {
    .post-page-body {
    background-color: var(--color-background);
    }

    .section-title span, 
    .section-subtitle {
        color: var(--color-text-light);
    }
    .page-header-content .section-subtitle {
        color: rgba(255, 255, 255, 0.85);
    }
}
[data-theme="dark"] {
    .section-title h2,
    .section-title span {
        color: #FFFFFF;
    }

    .post-page-body {
        background-color: var(--roxo-profundo);
    }
}

[data-theme="dark"] .post-page-body .post-body p {
    color: #E0E0E0 !important;
}

[data-theme="dark"] .post-page-body .post-body h1,
[data-theme="dark"] .post-page-body .post-body h2,
[data-theme="dark"] .post-page-body .post-body h3,
[data-theme="dark"] .post-page-body .post-body h4 {
    color: #FFFFFF !important;
}

/* =============== Seção "Leia Também" ================= */

[data-theme="dark"] .post-sidebar .widget {
    background-color: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}

[data-theme="dark"] .post-sidebar .widget h4,
[data-theme="dark"] .post-sidebar .section-title h2 {
    color: #FFFFFF !important;
    border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .post-sidebar .post-card {
    background-color: var(--roxo-escuro) !important;
    border-color: var(--color-border) !important;
}

[data-theme="dark"] .post-sidebar .post-card h3 a {
    color: #FFFFFF !important;
}
[data-theme="dark"] .post-sidebar .post-card h3 a:hover {
    color: var(--verde-principal) !important;
}

[data-theme="dark"] .post-sidebar .post-card .post-category {
    color: #FFFFFF !important;
}

.post-body ul,
.post-body ol {
    padding-left: 50px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .post-page-body .post-body li {
    color: #E0E0E0 !important;
}

[data-theme="dark"] .section-tagline {
    color: var(--color-text-light);
}

/* ============================================================
   CONFIGURAÇÃO DA SIDEBAR (Leia Também / Compartilhe)
   ============================================================ */
.post-sidebar .widget.is-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    transition: all 0.4s ease;
}

.post-sidebar .widget:last-child {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.post-sidebar .widget:not(:last-child) {
    margin-bottom: 30px;
}

/* ==================================================
   ANIMAÇÕES DE SCROLL
   ================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-load {
    opacity: 0;
    animation: fadeInAnimation 0.8s ease-out forwards;
}
.page-header-content .animate-on-load { animation-delay: 0.2s; }
.hero-title.animate-on-load { animation-delay: 0.2s; }
.hero-tagline.animate-on-load { animation-delay: 0.4s; }
.hero-buttons.animate-on-load { animation-delay: 0.6s; }

@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.post-sidebar .widget.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==================================================
   TIPOGRAFIA
   ================================================== */
h1, h2, h3, h4 { color: var(--color-text-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { text-decoration: none; color: var(--verde-principal); font-weight: 500; }
a:hover { color: var(--verde-hover); }
.section-title span, .section-subtitle {
    display: block; font-size: 1rem; font-weight: 600;
    color: var(--roxo-principal); margin-bottom: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    
}

/* ========= LAYOUT E HELPERS ========= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
section { padding: 10px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }

/* ==================================================
   COMPONENTES
   ================================================== */
.btn {
    display: inline-block; padding: 14px 36px;
    border-radius: 50px; font-weight: 600; text-decoration: none;
    transition: all var(--transition-speed) ease; cursor: pointer; border: 2px solid transparent;
}
.btn-highlight {
    background-color: var(--verde-principal); color: var(--roxo-profundo); border-color: var(--verde-principal);
}
.btn-highlight:hover {
    background-color: var(--verde-hover);
    border-color: var(--verde-hover);
    transform: translateY(-3px);
    color: white;
}
.btn-secondary {
    background-color: transparent; color: var(--border-color); border-color: var(--border-color);
}
.btn-secondary:hover { background-color: var(--color-text-dark); color: var(--bg-light); border-color: var(--color-text-dark); }

/* ==================================================
   CABEÇALHO
   ================================================== */
.header {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; padding: 20px 0;
    background: transparent;
    transition: all var(--transition-speed) ease;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.header .container { display: flex; align-items: center; }
.logo-img { max-height: 40px; width: auto; filter: brightness(0) invert(1); transition: filter var(--transition-speed) ease; }
.header.scrolled .logo-img { filter: none; }
.main-nav { margin: 0 auto; }
.main-nav ul { list-style: none; display: flex; gap: 40px; }
.main-nav a { color: var(--color-text-light); font-weight: 500; }
.header.scrolled .main-nav a { color: var(--color-text-dark); }
.main-nav a.active { color: var(--verde-principal); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn-secondary { color: var(--color-text-light); border-color: rgba(255,255,255,0.5); }
.header.scrolled .header-actions .btn-secondary { color: var(--color-text-dark); border-color: var(--border-color); }
.header-actions .btn-secondary:hover {
    color: var(--bg-light) !important;
    background-color: var(--color-text-dark);
}
.header.scrolled .header-actions .btn-secondary:hover { background-color: var(--color-text-dark); }
.theme-toggle, .hamburger-menu { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-light); }
.header.scrolled .theme-toggle, .header.scrolled .hamburger-menu {
    color: var(--roxo-profundo);
}
.hamburger-menu { display: none; }

#mobile-nav, .hamburger-menu {
    display: none;
}

#desktop-nav {
    margin: 0 auto;
}

/* ==================================================
   RODAPÉ
   ================================================== */
.footer {
    background: var(--roxo-profundo); color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-logo { max-height: 40px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--color-text-light); font-weight: 600; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 1rem; }
.footer-col a, .footer-col p { color: rgba(255, 255, 255, 0.7); font-weight: 400; font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-text-light); }
.newsletter-form { position: relative; margin-top: 1rem; }
.newsletter-form input {
    width: 100%; border: 1px solid rgba(255,255,255,0.2); background: transparent;
    color: var(--color-text-light); padding: 12px 50px 12px 15px; border-radius: 50px;
    transition: border-color var(--transition-speed) ease;
}
.newsletter-form input:focus { outline: none; border-color: var(--verde-principal); }
.newsletter-form button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    border: none; background: var(--verde-principal); color: var(--roxo-profundo);
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: grid; place-items: center;
    transition: background-color var(--transition-speed) ease;
}
.newsletter-form button:hover { background-color: var(--verde-hover); }
.footer-bottom { text-align: center; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 16px; font-size: 1.2rem; }


/* ========= HERO SECTION ========= */
.hero-banner {
    position: relative;
    min-height: 600px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    padding: 0;
    background: url('../assets/img/LOGO NEONORTE ROXO - BG PRETO.png') no-repeat center center/cover;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--roxo-profundo) 30%, rgba(30, 0, 45, 0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: center;
}
.hero-title {
    color: var(--color-text-light);
    margin: 1rem 0;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}
.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.hero-buttons .btn-secondary {
    border-color: rgba(255,255,255,0.5);
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--color-text-dark);
    border-color: var(--bg-light);
}

/* ========= SEÇÕES DE CONTEÚDO (DIFERENCIAIS, CLIENTES, CONTATO) ========= */
.diferenciais-section, .values-section { background: var(--bg-soft-light); }
.benefits-grid, .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.benefit-card, .value-card {
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: 32px; text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.benefit-card:hover, .value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.icon-wrapper {
    margin-bottom: 1.5rem; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--roxo-principal); color: var(--color-text-light); font-size: 1.8rem;
}
.benefit-card h3, .value-card h3 { margin-bottom: 0.5rem; }
.stats-section { background: var(--roxo-profundo); color: var(--color-text-light); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { color: var(--verde-principal); font-size: 3rem; font-weight: 800; }
.stat-item p { color: rgba(255,255,255,0.8); margin: 0; }

/* ==================================================
   SEÇÃO DE DEPOIMENTOS
   ================================================== */
.testimonials-section {
    background-color: var(--bg-soft-light);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}
.star-rating {
    color: var(--verde-principal);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-body);
    border-left: 3px solid var(--verde-principal);
    padding-left: 20px;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name {
    font-weight: 600;
    font-style: normal;
    color: var(--color-text-dark);
}
.author-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-section { background: var(--bg-soft-light); }

/* ==================================
   ESTILOS DO FORMULÁRIO DE CONTATO (v3 - CTA + Info | Form)
================================== */

.contact-grid-form {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1 parte CTA/Info, 1.5 parte Form */
    gap: 0; /* Removido gap, as colunas vão se tocar */
    align-items: stretch;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden; /* Importante para as bordas arredondadas */
}

/* Coluna da Esquerda (CTA Rápido + Info) */
.contact-info.cta-block {
    background-color: var(--bg-soft-light);
    color: var(--color-text-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}
.contact-info.cta-block h3 {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center; /* Centraliza o título */
}
.contact-info.cta-block p {
    color: var(--color-text-body);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center; /* Centraliza o parágrafo */
    margin-bottom: 15px;
}
/* Botão WhatsApp */
.contact-info.cta-block .btn-highlight {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: white !important;
    text-align: center;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}
.contact-info.cta-block .btn-highlight:hover {
    background-color: #20a151 !important;
    border-color: #20a151 !important;
}

/* Divisor dentro do CTA */
.cta-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    margin: 30px 0;
}

/* Itens de Info (Telefone, Email, Endereço) dentro do CTA */
.contact-info.cta-block .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left; /* Alinha o texto da info à esquerda */
}
.contact-info.cta-block .info-item .fas {
    font-size: 1rem; /* Ícone menor */
    color: var(--roxo-principal); /* Ícone verde */
    width: 35px; /* Círculo menor */
    height: 35px;
    display: grid;
    place-items: center;
    background-color: #fff; /* Fundo branco sutil */
    border: 1px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px; /* Alinha ícone com o título */
}
.contact-info.cta-block .info-item h4 {
    font-size: 1.1rem;
    margin: 0 0 3px 0;
    color: var(--color-text-dark); /* Texto branco */
}
.contact-info.cta-block .info-item p,
.contact-info.cta-block .info-item a {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-body); /* Texto branco sutil */
    font-weight: 400; /* Mais leve */
    text-decoration: none;
}
.contact-info.cta-block .info-item a:hover {
    color: var(--roxo-principal);
    text-decoration: underline;
}


/* Coluna da Direita (Formulário) */
.contact-form-wrapper {
    padding: 40px;
}
.contact-form-wrapper h3 {
    color: var(--color-text-dark);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.contact-form-wrapper p {
    color: var(--color-text-body);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 25px;
}

/* ==================================
   MODO ESCURO - SEÇÃO DE CONTATO (Página Inicial)
================================== */

[data-theme="dark"] .contact-section {
    background-color: var(--color-surface);
}

[data-theme="dark"] .contact-grid-form {
    background-color: var(--color-surface); /* Tira o fundo branco da caixa */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Coluna da Esquerda (Info/CTA) */
[data-theme="dark"] .contact-info.cta-block {
    background-color: var(--roxo-profundo); /* Fundo roxo mais escuro */
    border-right-color: var(--color-border); /* Borda escura */
    color: var(--color-text-light);
}
[data-theme="dark"] .contact-info.cta-block h3 {
    color: var(--color-text-light);
}
[data-theme="dark"] .contact-info.cta-block p,
[data-theme="dark"] .contact-info.cta-block .info-item p {
    color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .contact-info.cta-block .info-item .fas {
    background-color: var(--color-surface); /* Fundo do ícone roxo-escuro */
    color: var(--verde-principal);
    border-color: var(--color-border);
}
[data-theme="dark"] .contact-info.cta-block .info-item h4 {
    color: var(--color-text-light);
}
[data-theme="dark"] .contact-info.cta-block .info-item a {
    color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .contact-info.cta-block .info-item a:hover {
    color: #fff;
}
[data-theme="dark"] .cta-divider {
    background-color: var(--color-border);
}

/* Coluna da Direita (Formulário) */
[data-theme="dark"] .contact-form-wrapper h3,
[data-theme="dark"] .contact-form-wrapper p {
    color: var(--color-text-light);
}
[data-theme="dark"] .form-group label {
    color: var(--color-heading);
}
[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="tel"],
[data-theme="dark"] .form-group textarea {
    background-color: var(--roxo-profundo);
    border-color: var(--color-border);
    color: var(--color-text);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(5, 205, 70, 0.2);
}

/* Mensagens de sucesso/erro do formulário */
[data-theme="dark"] .message.success {
    background-color: #04A438;
    color: #fff;
    border-color: var(--verde-principal);
}
 [data-theme="dark"] .message.error {
    background-color: #dc3545;
    color: #fff;
    border-color: #c82333;
}

/* ==================================================
   PÁGINA SOBRE
   ================================================== */
.page-header-section {
    padding: 180px 0 100px 0; text-align: center; position: relative;
    background: url('assets/img/Funcionamento_placa.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Efeito Parallax */
}
.page-header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, var(--roxo-profundo) 0%, rgba(30, 0, 45, 0.6) 100%); }
.page-header-content { position: relative; z-index: 2; color: var(--color-text-light); }
.page-header-content h1 { color: var(--color-text-light); }
.page-header-content .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.about-intro .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-medium); width: 100%; }
.manifesto-section { background: var(--roxo-profundo); color: var(--color-text-light); text-align: center; }
.manifesto-content { max-width: 800px; margin: 0 auto; }
.manifesto-content .fa-quote-left { font-size: 3rem; color: var(--verde-principal); }
.manifesto-content blockquote { border: none; font-size: 1.5rem; font-style: italic; margin: 1.5rem 0; color: var(--color-text-light); }
.journey-section { background: var(--bg-soft-light); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: var(--border-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    background-color: var(--verde-principal); border: 3px solid var(--bg-soft-light);
    top: 25px; border-radius: 50%; z-index: 1;
}
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd)::after { right: -7.5px; }
.timeline-item:nth-child(even)::after { left: -7.5px; }
.timeline-content { background: var(--bg-light); border: 1px solid var(--border-color); padding: 30px; border-radius: var(--border-radius); }

.about-intro.immersive-section {
    position: relative;
    color: var(--color-text-light);
    padding: 140px 0 100px 0;
}

.about-intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-intro-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro-background .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--roxo-profundo) 40%, rgba(30, 0, 45, 0.6) 100%);
}

.about-intro .container {
    position: relative;
    z-index: 2;
}

.about-intro-content {
    max-width: 600px;
}

.about-intro-content h2,
.about-intro-content p {
    color: var(--color-text-light);
}

.about-intro-content .section-subtitle {
    color: var(--verde-principal);
}

/* ==================================================
   PÁGINA DE BLOG
   ================================================== */
.blog-page-body { background: var(--bg-soft-light); }

.blog-content-section { padding: 80px 0; }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 992px) {
    .blog-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

.blog-header .page-header-overlay {
    background: linear-gradient(90deg, var(--roxo-profundo) 40%, rgba(30, 0, 45, 0.6) 100%);
}

.hero-banner .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner .page-header-content {
    padding: 0;
}

.hero-banner .section-subtitle {
    color: var(--verde-principal);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-banner h1 {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 0 1rem 0;
}

.hero-banner .page-header-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =================== POST EM DESTAQUE ================== */
.featured-post-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 60px;
}
.featured-image-link {
    display: block;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.featured-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.featured-post-card:hover .featured-image-link img {
    transform: scale(1.05);
}
.featured-card-content {
    padding: 40px;
}
.featured-card-content .post-category {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}
.featured-card-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.featured-card-content h2 a {
    color: var(--color-text-dark);
}
.featured-card-content h2 a:hover {
    color: var(--roxo-principal);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-8px); }
.card-image-wrapper { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover img { transform: scale(1.05); }
.post-category {
    position: absolute; top: 16px; left: 16px; z-index: 1;
    background: var(--verde-principal); color: var(--roxo-profundo);
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.1rem; margin-bottom: 1rem; flex-grow: 1; }
.card-content h3 a { color: var(--color-text-dark); }
.card-content h3 a:hover { color: var(--roxo-principal); }
.post-meta { font-size: 0.8rem; color: var(--color-text-muted); display: flex; gap: 1rem;}

/* ==================================================
   SIDEBAR DO BLOG
   ================================================== */
.sidebar .widget {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.search-form { display: flex; }
.search-form input {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-soft-light);
    padding: 10px 15px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.search-form button {
    border: none;
    background: var(--roxo-principal);
    color: var(--color-text-light);
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.category-list, .recent-posts-list { list-style: none; }
.category-list li, .recent-posts-list li { margin-bottom: 0.5rem; }
.category-list a, .recent-posts-list a {
    color: var(--color-text-body);
    font-weight: 500;
    display: block;
    padding: 8px;
    border-radius: 4px;
}
.category-list a:hover, .recent-posts-list a:hover {
    background-color: var(--bg-soft-light);
    color: var(--roxo-principal);
}

.post-sidebar .widget.is-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    transition: all 0.4s ease;
}

.post-sidebar .widget:last-child {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 10;
}

/* ==================================================
                      PAGINAÇÃO
   ================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}
.page-link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--color-text-dark);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}
.page-link:hover {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    border-color: var(--roxo-principal);
}
.page-link.current {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    border-color: var(--roxo-principal);
}


/* ==================================
   ESTILOS DE FORMULÁRIO DO PAINEL ADMIN
================================== */

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Foco */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--roxo-principal);
    box-shadow: 0 0 0 3px rgba(100, 20, 125, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 8px 12px;
    background-color: var(--bg-soft-light);
}

.form-group small {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 8px;
    display: block;
}

/* Wrapper para o botão */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.form-actions .btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.form-actions .btn-primary {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    border-color: var(--roxo-principal);
}
.form-actions .btn-primary:hover {
     background-color: var(--roxo-escuro);
     border-color: var(--roxo-escuro);
}

/* ==================================================
               PÁGINA DE ARTIGO INDIVIDUAL
   ================================================== */

.post-page-body { 
    background-color: var(--bg-light); 
}

/* --- Cabeçalho do Post (Mantido) --- */
.post-header-immersive {
    position: relative;
    padding: 200px 0 100px 0;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
}
.post-header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--roxo-profundo) 5%, rgba(30, 0, 45, 0.7) 100%);
}
.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.post-header-content h1 {
    color: var(--color-text-light);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin: 1rem 0;
    font-family: var(--font-family); /* Título do Header em Poppins */
}
.post-category-tag {
    background: var(--verde-principal);
    color: var(--roxo-profundo);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.post-header-content .post-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 20px;
}

/* --- Layout do Post (Mantido) --- */
.post-body-layout {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
@media (min-width: 992px) {
    .post-body-layout {
        grid-template-columns: 3fr 1fr;
    }
}

.post-body {
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-weight: 400; 
    font-size: 1rem;  
    line-height: 1.4; /* <<< ESPAÇAMENTO ENTRE LINHAS  */
    color: var(--color-text-body);
}

p {
  font-size: 15px; 
  align-items: justify-content;
}

/* Parágrafos (Texto) */
.post-body p {
    font-weight: 400; 
    text-indent: 1.5em; 
    text-align: justify; 
    margin-bottom: 5px;
    word-spacing: 0.1px;/* <<< ESPAÇAMENTO ENTRE PARÁGRAFOS  */
}

/* Títulos (h2) */
.post-body h2 {
    font-weight: 700;
    font-size: 1.6rem; 
    line-height: 1.5;
    margin: 40px 0 20px 0;
    color: var(--color-text-dark);
    text-align: left;
}

/* Subtítulos (h3) */
.post-body h3 {
    font-weight: 700; 
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 30px 0 15px 0;
    color: var(--color-text-dark);
    text-align: left;
}

/* --- Estilização de Listas (Visível) --- */
.post-body ul,
.post-body ol {
    margin: 25px 0;
    padding-left: 40px; 
    text-align: left; 
    font-weight: 400; 
}
.post-body li {
    margin-bottom: 10px; /* Espaço entre itens */
    padding-left: 20px;
    line-height: 1; 
    font-size: 15px;
}

/* Estilo do marcador de lista (bullet point) */
.post-body ul li::marker {
    color: var(--roxo-principal); 
    font-size: 20px; 
    font-weight: 700; 
}

/* Estilo do marcador numérico (número) */
.post-body ol li::marker {
    color: var(--roxo-principal); 
    font-weight: 700; 
    font-size: 1em; 
}


.post-body a {
    text-decoration: underline;
    font-weight: 700; 
    color: var(--verde-principal);
}


.post-body,
.post-body *,
.post-body p,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body li,
.post-body span,
.post-body a {
    font-family: Georgia, 'Times New Roman', Times, serif !important;
}


/* --- Sidebar do Post  --- */
.post-sidebar .widget {
    background-color: var(--bg-soft-light);
    border-radius: var(--border-radius);
    padding: 30px;
    position: sticky;
    top: 120px;
}
.widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
}
.social-share-links {
    display: flex;
    gap: 15px;
}
.social-share-links a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}
.social-share-links a:hover {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    transform: scale(1.1);
}

.related-posts-section {
    background-color: var(--bg-soft-light);
    border-top: 1px solid var(--border-color);
}

.author-name {
    color: var(--verde-principal);
}
h2 {
  margin-top: 30px; 
}

.bloco-de-topico {
  margin-bottom: 40px;
}

/* ==================================================
   WIDGET DE POSTS RELACIONADOS NA SIDEBAR
   ================================================== */
.related-posts-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-posts-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.related-post-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-body);
}

.related-posts-list a:hover .related-post-title {
    color: var(--verde-principal);
}

/* ========================================
   ESTILO DA LEGENDA DA IMAGEM (FIGCAPTION)
   ======================================== */

/* Container da imagem + legenda */
.post-body figure {
  margin: 25px 0; 
  padding: 0;
  text-align: center; 
}

/* Garante que a imagem dentro da 'figure' seja responsiva */
.post-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Opcional: borda arredondada */
}

/* A legenda (a "Fonte") */
.post-body figcaption {
  display: block;
  font-size: 0.9rem;      /* Tamanho um pouco menor */
  font-style: italic;
  color: #777;           /* Cor cinza */
  padding: 8px 0;
  text-align: center;
}

/* Links dentro da legenda */
.post-body figcaption a {
  color: #555;
  text-decoration: underline;
}

.post-body figcaption a:hover {
  color: #000;
}

/* ================================================================
   ESTILO PARA O BOTÃO DE MOSTRAR/ESCONDER SENHA
   ================================================================ */
.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--roxo-principal);
}

/* --- Modo Noturno --- */
[data-theme="dark"] .author-box {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .author-avatar {
    background-color: var(--roxo-profundo);
}

[data-theme="dark"] .author-avatar .fas {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .author-info h4 {
    color: var(--color-heading);
}

[data-theme="dark"] .author-info p {
    color: var(--color-text);
}


/* ================================================================
   SEÇÃO "SOBRE O AUTOR"
================================================================ */

.author-box {
    background-color: var(--bg-soft-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar .fas {
    font-size: 2.5rem;
    color: #a0a0a0;
}

.author-info {
    flex-grow: 1;
}

.author-info h4 {
    margin: 5px 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.author-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin: 0;
}

/* --- AJUSTES PARA O TEMA ESCURO --- */
[data-theme="dark"] .author-box {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .author-avatar {
    border-color: var(--color-surface);
    background-color: var(--roxo-profundo);
}

[data-theme="dark"] .author-avatar .fas {
    color: var(--color-border);
}

[data-theme="dark"] .author-info h4 {
    color: var(--color-heading);
}

[data-theme="dark"] .author-info p {
    color: var(--color-text);
}


/* ================================================================
   PAINEL ADMIN
   ================================================================ */
body.admin-page {
    display: flex;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--border-color);
    color: var(--color-text-body);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--color-text-dark);
    font-weight: 600;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 25px;
    margin: 2px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav li a:hover {
    background-color: #e9ecef;
    color: var(--color-text-dark);
}

.sidebar-nav li.active a {
    background-color: rgba(100, 20, 125, 0.1);
    color: var(--roxo-principal);
    font-weight: 600;
}
.sidebar-nav li.active a i {
    color: var(--roxo-principal);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #6c757d;
    transition: color 0.2s ease;
}
.sidebar-nav li a:hover i {
    color: var(--color-text-dark);
}

.nav-separator hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 15px 25px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #6c757d;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-footer p {
    margin: 0;
    flex-grow: 1;
}
.sidebar-footer .theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: #6c757d;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sidebar-footer .theme-toggle:hover {
    background-color: #e9ecef;
    color: var(--color-text-dark);
}


.admin-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 30px 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.admin-content-header h1 {
    margin: 0;
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 1.8em;
}
.admin-content-header .btn {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
}
.admin-content-header .btn-primary {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
}
.admin-content-header .btn-primary:hover {
    background-color: var(--roxo-escuro);
}
.admin-content-header .back-link {
    text-decoration: none;
    color: var(--roxo-principal);
    font-weight: 500;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(100, 20, 125, 0.08);
    transition: background-color 0.2s ease;
}
.admin-content-header .back-link:hover {
    background-color: rgba(100, 20, 125, 0.15);
}


.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}
.posts-table,
.users-table {
    width: 100%;
    border-collapse: collapse;
}
.posts-table th, .posts-table td,
.users-table th, .users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}
.posts-table th,
.users-table th {
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-text-dark);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--bg-soft-light);
}
.posts-table tbody tr:hover,
.users-table tbody tr:hover {
    background-color: var(--bg-soft-light);
}

.users-table th:last-child,
.users-table td.actions {
    text-align: right;
}
.users-table td[data-label="Status"] span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.status-active {
    background-color: var(--verde-principal);
    color: var(--roxo-profundo);
}
.status-inactive {
    background-color: #dc3545;
    color: #fff;
}
.users-table td.actions span {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    display: inline-block;
}

.actions a {
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    font-size: 0.9em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}
.actions a:first-child {
    margin-left: 0;
}
.actions .edit-link { color: var(--roxo-principal); }
.actions .edit-link:hover { color: var(--roxo-escuro); border-color: var(--roxo-escuro);}
.actions .delete-link { color: #dc3545; }
.actions .delete-link:hover { color: #a02331; border-color: #a02331;}
.actions .enable-link { color: #198754; }
.actions .enable-link:hover { color: #146c43; border-color: #146c43;}
.actions .disable-link { color: #ffc107; }
.actions .disable-link:hover { color: #d9a300; border-color: #d9a300;}
.actions .reset-link { color: var(--roxo-principal); }
.actions .reset-link:hover { color: var(--roxo-escuro); border-color: var(--roxo-escuro);}


.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.success { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.error { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }

/* ==================================
   ESTILOS DO DASHBOARD ADMIN (Versão Limpa)
================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid var(--border-color);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--color-text-body);
    font-weight: 500;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    display: block;
    margin-bottom: 10px;
}

.stat-card a {
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--roxo-principal);
}
.stat-card a:hover { text-decoration: underline; }

.stat-card.shortcut-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stat-card.shortcut-card h4 { margin-bottom: 15px; }
.stat-card.shortcut-card .btn-primary {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    border-color: var(--roxo-principal);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}
.stat-card.shortcut-card .btn-primary:hover {
    background-color: var(--roxo-escuro);
    border-color: var(--roxo-escuro);
}

/* Regras da lista de posts recentes (agora em coluna única) */
.column-recent {
    margin-top: 30px;
}
.column-recent h3 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.recent-list li:last-child { border-bottom: none; }

.recent-list li a {
    text-decoration: none;
    color: var(--color-text-body);
    font-weight: 500;
    transition: color 0.2s ease;
}
.recent-list li a:hover { color: var(--roxo-principal); }

.recent-list li .meta {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    white-space: nowrap;
}
.recent-list li .meta.status-draft { color: #ffc107; font-weight: 600; }
.recent-list li .meta.status-published { color: #198754; font-weight: 600; }

/* ==================================
   ESTILOS PARA PÁGINA EDITAR PERFIL
================================== */

.admin-content-header .back-link {
    text-decoration: none;
    color: var(--roxo-principal);
    font-weight: 500;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(100, 20, 125, 0.08);
    transition: background-color 0.2s ease;
}
.admin-content-header .back-link:hover {
    background-color: rgba(100, 20, 125, 0.15);
}

/* Container branco interno */
.content-wrapper {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 30px 40px;
    margin: 0 auto;
    max-width: 900px;
}

/* Layout do formulário */
.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

/*
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}
*/
/*
.form-group textarea, .form-group input[type="file"], .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}
.form-group textarea {
    min-height: 180px;
    resize: vertical;
}
.form-group input[type="file"] {
    padding: 8px 12px;
    background-color: var(--bg-soft-light);
}
.form-group small {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 8px;
    display: block;
}
*/
/* Estilo da foto atual */
.profile-photo-current {
    margin-bottom: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-soft-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.profile-photo-current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo-default {
     font-size: 4rem;
     color: #adb5bd;
}

/* Botão de salvar */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}
.form-actions .btn {
    display: inline-block; padding: 10px 30px;
    border-radius: 50px; font-weight: 600; text-decoration: none;
    transition: all var(--transition-speed) ease; cursor: pointer; border: 2px solid transparent;
}
.form-actions .btn-primary {
    background-color: var(--roxo-principal);
    color: var(--color-text-light);
    border-color: var(--roxo-principal);
}
.form-actions .btn-primary:hover {
     background-color: var(--roxo-escuro);
     border-color: var(--roxo-escuro);
}


/* ==================================
   ESTILOS PARA EXCLUIR PERFIL
================================== */

.sidebar-delete-link:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
}

.sidebar-delete-link:hover i {
    color: #dc3545 !important;
}

/* ==================================
   GERENCIAR USUÁRIOS
================================== */

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.users-table th,
.users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}

.users-table th {
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-text-dark);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--bg-soft-light);
}
.users-table th:last-child {
    text-align: right;
}

.users-table tbody tr:hover {
    background-color: var(--bg-soft-light);
}

/* --- Estilos Específicos para Colunas --- */

.users-table td[data-label="Status"] span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.status-active {
    background-color: var(--verde-principal);
    color: var(--roxo-profundo);
}
.status-inactive {
    background-color: #dc3545;
    color: #fff;
}

.users-table td.actions {
    white-space: nowrap;
    text-align: right;
}
.actions a {
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    font-size: 0.9em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: inline-block;
}
.actions a:first-child {
    margin-left: 0;
}

.actions .enable-link { color: #198754; }
.actions .enable-link:hover { color: #146c43; border-color: #146c43;}
.actions .disable-link { color: #ffc107; }
.actions .disable-link:hover { color: #d9a300; border-color: #d9a300;}
.actions .reset-link { color: var(--roxo-principal); }
.actions .reset-link:hover { color: var(--roxo-escuro); border-color: var(--roxo-escuro);}
.actions .delete-link { color: #dc3545; }
.actions .delete-link:hover { color: #a02331; border-color: #a02331;}

.users-table td.actions span {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    display: inline-block;
}


/* ==================================
   MODO ESCURO PAINEL ADMIN
================================== */
[data-theme="dark"] body.admin-page { background-color: var(--color-background); }
[data-theme="dark"] .admin-sidebar { background-color: var(--color-surface); border-right-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .sidebar-header { border-bottom-color: var(--color-border); }
[data-theme="dark"] .sidebar-header h3 { color: var(--color-heading); }
[data-theme="dark"] .sidebar-nav li a { color: var(--color-text); }
[data-theme="dark"] .sidebar-nav li a:hover { background-color: rgba(255, 255, 255, 0.05); color: #fff; }
[data-theme="dark"] .sidebar-nav li.active a { background-color: var(--verde-principal); color: var(--roxo-profundo); }
[data-theme="dark"] .sidebar-nav li.active a i { color: var(--roxo-profundo); }
[data-theme="dark"] .sidebar-nav i { color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .sidebar-nav li a:hover i { color: #fff; }
[data-theme="dark"] .nav-separator hr { border-top-color: var(--color-border); }
[data-theme="dark"] .sidebar-footer { border-top-color: var(--color-border); color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .sidebar-footer .theme-toggle { border-color: var(--color-border); color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .sidebar-footer .theme-toggle:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
[data-theme="dark"] .content-wrapper { background-color: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
[data-theme="dark"] .admin-content-header { border-bottom-color: var(--color-border); }
[data-theme="dark"] .admin-content-header h1 { color: var(--color-heading); }
[data-theme="dark"] .admin-content-header .btn-primary { background-color: var(--verde-principal); color: var(--roxo-profundo); border-color: var(--verde-principal);}
[data-theme="dark"] .admin-content-header .btn-primary:hover { background-color: var(--verde-hover); border-color: var(--verde-hover);}
[data-theme="dark"] .admin-content-header .back-link { background-color: rgba(255, 255, 255, 0.05); color: var(--verde-principal); }
[data-theme="dark"] .admin-content-header .back-link:hover { background-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .table-wrapper { background-color: var(--color-surface); }
[data-theme="dark"] .posts-table th, [data-theme="dark"] .users-table th { background-color: var(--roxo-profundo); color: var(--color-heading); }
[data-theme="dark"] .posts-table td, [data-theme="dark"] .users-table td { border-bottom-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .posts-table tbody tr:hover, [data-theme="dark"] .users-table tbody tr:hover { background-color: var(--roxo-profundo); }
[data-theme="dark"] .actions .edit-link { color: var(--verde-principal); }
[data-theme="dark"] .actions .edit-link:hover { color: var(--verde-hover); border-color: var(--verde-hover);}
[data-theme="dark"] .actions .reset-link { color: var(--verde-principal); }
[data-theme="dark"] .actions .reset-link:hover { color: var(--verde-hover); border-color: var(--verde-hover);}
[data-theme="dark"] .users-table td.actions span { color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .form-group label { color: var(--color-heading); }
[data-theme="dark"] .form-group input[type="text"], [data-theme="dark"] .form-group input[type="email"], [data-theme="dark"] .form-group input[type="password"], [data-theme="dark"] .form-group input[type="datetime-local"], [data-theme="dark"] .form-group textarea, [data-theme="dark"] .form-group select { background-color: var(--roxo-profundo); border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .form-group input:focus, [data-theme="dark"] .form-group textarea:focus, [data-theme="dark"] .form-group select:focus { border-color: var(--verde-principal); box-shadow: 0 0 0 3px rgba(5, 205, 70, 0.2); }
[data-theme="dark"] .form-group input[type="file"] { background-color: var(--roxo-profundo); }
[data-theme="dark"] .form-group small { color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .profile-photo-current { background-color: var(--roxo-profundo); border-color: var(--color-border); }
[data-theme="dark"] .profile-photo-default { color: #4A2552; }
[data-theme="dark"] .form-actions { border-top-color: var(--color-border); }
[data-theme="dark"] .form-actions .btn-primary { background-color: var(--verde-principal); color: var(--roxo-profundo); border-color: var(--verde-principal); }
[data-theme="dark"] .form-actions .btn-primary:hover { background-color: var(--verde-hover); border-color: var(--verde-hover); }
[data-theme="dark"] .message.success { background-color: #04A438; color: #fff; border-color: var(--verde-principal); }
[data-theme="dark"] .message.error { background-color: #dc3545; color: #fff; border-color: #c82333; }

/* =============================================
   BANNER MOBILE
   ============================================= */
@media (max-width: 992px) {
    .hero-banner {
        height: 75vh;
        min-height: 500px;
    }
}


/* ==================================
   RESPONSIVIDADE - SEÇÃO DE CONTATO
================================== */

@media (max-width: 992px) {
    .contact-grid-form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info.cta-block {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* Ajuste para o tema escuro no mobile */
    [data-theme="dark"] .contact-info.cta-block {
         border-bottom-color: var(--color-border);
    }
}

/* ==================================================
   RESPONSIVIDADE GERAL E PAINEL ADMIN (CONSOLIDADO)
   ================================================== */
@media (max-width: 992px) {
    
    /* --- Site Público --- */
    #desktop-nav, .header-actions .btn {
        display: none;
    }
    
    #mobile-nav, .hamburger-menu {
    display: flex;
    }
    
    .stats-grid, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-intro .container, .contact-grid {
        grid-template-columns: 1fr;
    }
    .post-body-layout {
        grid-template-columns: 1fr;
    }

    .post-header-immersive {
        padding: 140px 0 60px 0;
        min-height: auto;
    }
    .post-header-immersive h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    .post-sidebar .widget,
    .post-sidebar .widget:last-child {
        position: static;
        top: auto;
    }
    .post-body {
        font-size: 1rem;
    }

    #mobile-nav {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100%;
        padding: 60px 20px 20px 20px;
        background-color: var(--bg-light);
        z-index: 1002;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        align-items: flex-start;
    }
     
    #mobile-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }
    .main-nav a {
        font-size: 1.2rem;
        color: var(--color-text-dark);
        padding: 10px 15px;
        display: block;
        width: 100%;
        border-radius: var(--border-radius);
    }
    .main-nav a:hover {
        background-color: var(--bg-soft-light);
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--color-text-body);
        cursor: pointer;
    }

    [data-theme="dark"] .main-nav {
        background: var(--color-surface);
    }
    [data-theme="dark"] .main-nav a {
        color: var(--color-text);
    }
    [data-theme="dark"] .main-nav a:hover {
        background-color: var(--roxo-profundo);
    }
    [data-theme="dark"] .close-menu {
        color: var(--color-text);
    }

    .header .container {
        justify-content: space-between;
    }

    /* --- Painel Admin --- */
    .admin-sidebar {
        width: 70px;
        overflow: hidden;
    }
    .admin-sidebar .sidebar-header h3,
    .admin-sidebar .sidebar-nav li a span, 
    .admin-sidebar .sidebar-footer p {
        display: none;
    }
     .admin-sidebar .sidebar-nav li a {
        justify-content: center;
        padding: 15px 10px;
        margin: 2px 10px;
    }
     .admin-sidebar .nav-separator hr {
        margin: 15px 10px;
    }
    .admin-content {
        margin-left: 70px;
        padding: 30px;
    }
    .content-wrapper {
        padding: 20px 30px;
    }
}
 
@media (max-width: 768px) {
    
    /* --- Site Público --- */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .stats-grid, .footer-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-cta h3 {
        font-size: 1.6rem;
    }
    .contact-cta .btn {
        width: auto !important;
        padding: 12px 28px !important;
        font-size: 0.95rem !important;
    }
    .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: -7.5px !important;
    }

    /* --- Painel Admin --- */
    body.admin-page {
        flex-direction: column;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: none;
        box-shadow: none;
        overflow-y: visible;
    }
    .admin-sidebar .sidebar-nav ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 0 10px;}
    .admin-sidebar .sidebar-nav li { flex-basis: auto; }
    .admin-sidebar .sidebar-nav li a { padding: 10px 15px; }
    .admin-sidebar .sidebar-header, .admin-sidebar .sidebar-footer, .admin-sidebar .nav-separator { display: none; }
    
    .admin-content {
        margin-left: 0;
        padding: 20px 15px;
    }
     .content-wrapper {
         padding: 20px;
    }
    .admin-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    .admin-content-header a.btn { float: none !important; display: inline-block; }
    
    /* Tabelas Admin viram Cards (Regra unificada) */
    .table-wrapper { overflow-x: visible; padding: 0; background: none; box-shadow: none; margin-top: 0;}
    
    .posts-table thead,
    .users-table thead { 
        display: none; 
    }
    .posts-table, .posts-table tbody, .posts-table tr, .posts-table td,
    .users-table, .users-table tbody, .users-table tr, .users-table td { 
        display: block; width: 100%; 
    }
    .posts-table tr,
    .users-table tr { 
        margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; background: #fff; box-shadow: var(--shadow-soft); 
    }
    .posts-table tbody tr:last-child,
    .users-table tbody tr:last-child { 
        margin-bottom: 0; 
    }
    .posts-table td,
    .users-table td { 
        border-bottom: none; text-align: right; padding-left: 45%; position: relative; padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; min-height: 38px; 
    }
    .posts-table td:not(:last-child),
    .users-table td:not(:last-child) { 
        border-bottom: 1px solid #f0f0f1; margin-bottom: 8px; padding-bottom: 12px; 
    }
    .posts-table td::before,
    .users-table td::before { 
        content: attr(data-label); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); text-align: left; font-weight: 600; color: var(--color-text-dark); white-space: nowrap; font-size: 0.9em; 
    }
    
    /* Ajustes Específicos de Cards */
    .users-table td[data-label="Status"] span { font-size: 0.8em; }
    
    .posts-table td.actions,
    .users-table td.actions { 
        padding-top: 15px; justify-content: flex-end; white-space: normal; flex-wrap: wrap; min-height: auto; 
    }
    .posts-table td.actions::before,
    .users-table td.actions::before { 
        top: 15px; transform: none; 
    }
    .actions a { 
        margin-left: 10px; font-size: 0.85em; margin-bottom: 5px; 
    }

    /* Responsividade Formulário Perfil */
    .form-row { grid-template-columns: 1fr; gap: 30px; }
    .profile-photo-group { display: flex; flex-direction: column; align-items: center; }
    .profile-photo-current { width: 120px; height: 120px; }
    .form-actions { text-align: center; }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}