:root {
    --primary: #006FF9;
    --primary-hover: #0056cc;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: transparent; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
}

nav a:hover {
    color: var(--white);
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-login {
    background-color: var(--white);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Menu Hamburguer (Base) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Hero Section & Search */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #004ecc 100%);
    padding: 9rem 5% 5rem;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Quick Links (Tópicos de Ajuda) */
.quick-links {
    padding: 4rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.quick-links h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.icon-card:hover .icon-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-card span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
}

.icon-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Base de Conhecimento Cards */
.faq-section {
    padding: 4rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: var(--transition);
    display: block;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Interativo (Accordion) */
.accordion-section {
    padding: 2rem 5% 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.accordion {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-header i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.accordion-content-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Bar */
.info-bar {
    background-color: var(--text-main);
    color: var(--white);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo {
        width: 20px;
        height: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 99;
    }

    .nav-menu.active {
        right: 0; 
    }

    .nav-menu nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .nav-menu .btn-login {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   ESTILOS PARA A PÁGINA INTERNA DE ARTIGO
   ========================================= */

/*Topo Interno (Busca e Breadcrumb) */
.internal-search {
    background-color: var(--bg-light);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-internal {
    position: relative;
    background-color: var(--primary);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
    margin: 0 0.5rem;
}

.small-search {
    max-width: 400px;
    margin: 0;
}

.small-search input {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.small-search i {
    left: 1rem;
    font-size: 1rem;
}

/* Layout Principal (Grid com Sidebar) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
}

/* Conteúdo do Artigo */
.article-content h1 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-main);
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Blocos de Alerta (Info e Aviso) */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.alert-info {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary);
}

.alert-info i {
    color: var(--primary);
}

.alert-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.alert-warning i {
    color: #f59e0b;
}

/* Bloco de Código/Configuração */
.code-block {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Feedback Section */
.article-feedback {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.article-feedback p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.feedback-buttons button {
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
}

.btn-yes {
    background-color: #10b981;
}

.btn-yes:hover { background-color: #059669; }

.btn-no {
    background-color: #ef4444;
}

.btn-no:hover { background-color: #dc2626; }

/* Artigos Relacionados */
.related-articles h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 0.8rem;
}

.related-articles a {
    color: var(--primary);
    position: relative;
    padding-left: 1.2rem;
}

.related-articles a::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

/* Barra Lateral (Sidebar) */
.sidebar-widget {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.sidebar-widget li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.sidebar-widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-widget a {
    color: var(--primary);
    font-size: 0.95rem;
}

.sidebar-widget a:hover {
    text-decoration: underline;
}

/* Banner Promocional */
.sidebar-promo {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.sidebar-promo h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.sidebar-promo h5 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sidebar-promo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sidebar-promo .price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.sidebar-promo .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-promo {
    display: inline-block;
    background-color: #e2e8f0;
    color: var(--text-main);
    padding: 0.6rem 2rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-promo:hover {
    background-color: var(--border-color);
}

/* Responsividade da Página Interna */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}